Re: read 9 bytes

2007-06-11 Thread Grant Edwards
block until a timeout. > since there > > Is there a trick to read 9 bytes off of a serial port? Please tell us what happened when you tried the obvious: serialport.read(9) -- Grant Edwards grante Yow! Do I have a lifestyle

Re: read 9 bytes

2007-06-10 Thread Tim Roberts
nik <[EMAIL PROTECTED]> wrote: > >I need to read a 9 byte response from a device on the serial port. >From reading the pySerial documentation it appears that I can only >read in characters at a time. Yes, but it is 8-bit characters. That is, characters == bytes in this instance. >If I do: seria

Re: read 9 bytes

2007-06-10 Thread Gabriel Genellina
4) > I would get 8 bytes, Why do you think so? read(4) will read up to 4 bytes, or less if the specified timeout elapses. > Is there a trick to read 9 bytes off of a serial port? read(9) (don't forget to set the timeout) -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

read 9 bytes

2007-06-10 Thread nik
out, since there Is there a trick to read 9 bytes off of a serial port? Thanks, Nik -- http://mail.python.org/mailman/listinfo/python-list