Re: how to read serial stream of data [newbie]

2012-02-07 Thread Antti J Ylikoski
On 7.2.2012 16:02, Peter Otten wrote: Antti J Ylikoski wrote: On 7.2.2012 14:13, Jean Dupont wrote: ser2 = serial.Serial(voltport, 2400, 8, serial.PARITY_NONE, 1, rtscts=0, dsrdtr=0, timeout=15) In Python, if you want to continue the source line into the next text line, you must end the line

Re: how to read serial stream of data [newbie]

2012-02-07 Thread Jean Dupont
On 7 feb, 15:04, Heiko Wundram wrote: > Am 07.02.2012 14:48, schrieb Antti J Ylikoski: > > > On 7.2.2012 14:13, Jean Dupont wrote: > >> ser2 = serial.Serial(voltport, 2400, 8, serial.PARITY_NONE, 1, > >> rtscts=0, dsrdtr=0, timeout=15) > > > In Python, if you want to continue the source line into

Re: how to read serial stream of data [newbie]

2012-02-07 Thread Heiko Wundram
Am 07.02.2012 14:48, schrieb Antti J Ylikoski: On 7.2.2012 14:13, Jean Dupont wrote: ser2 = serial.Serial(voltport, 2400, 8, serial.PARITY_NONE, 1, rtscts=0, dsrdtr=0, timeout=15) In Python, if you want to continue the source line into the next text line, you must end the line to be continued

Re: how to read serial stream of data [newbie]

2012-02-07 Thread Peter Otten
Antti J Ylikoski wrote: > On 7.2.2012 14:13, Jean Dupont wrote: >> ser2 = serial.Serial(voltport, 2400, 8, serial.PARITY_NONE, 1, >> rtscts=0, dsrdtr=0, timeout=15) > > In Python, if you want to continue the source line into the next text > line, you must end the line to be continued with a backs

Re: how to read serial stream of data [newbie]

2012-02-07 Thread Antti J Ylikoski
On 7.2.2012 14:13, Jean Dupont wrote: ser2 = serial.Serial(voltport, 2400, 8, serial.PARITY_NONE, 1, rtscts=0, dsrdtr=0, timeout=15) In Python, if you want to continue the source line into the next text line, you must end the line to be continued with a backslash '\'. So you should write: s

Re: how to read serial stream of data [newbie]

2012-02-07 Thread Jean Dupont
On 7 feb, 06:07, Roy Smith wrote: > In article > , >  Jean Dupont wrote: > > > I'd like to read in a stream of data which looks like this: > > the device sends out a byte-string of 11 bytes roughly every second: > > >     B0B0B0B0B03131B0B50D8A > >     B0B0B0B0B03131B0B50D8A > >     B0B0B031B6313

Re: how to read serial stream of data [newbie]

2012-02-06 Thread Roy Smith
In article , Jean Dupont wrote: > I'd like to read in a stream of data which looks like this: > the device sends out a byte-string of 11 bytes roughly every second: > > B0B0B0B0B03131B0B50D8A > B0B0B0B0B03131B0B50D8A > B0B0B031B63131B0310D8A > B0B034B3323432B3310D8A > B0B03