pyserial problem: script stops reading
Frederic Wenzel
freeed at gmail.com
Sat Sep 9 13:04:47 EDT 2006
On 9/9/06, Hendrik van Rooyen <mail at microcorp.co.za> wrote:
> | I wrote a script on Linux that uses pyserial to read status messages
> | from a serial line using readlines(). For now, it just displays what
> | it gets on stdout:
> | (...)
> | ser = serial.Serial(port=1,
> | baudrate=1200,
> | rtscts=1,
>
> if this is enabling hardware flow control try turning it off - at 1200 baud you
> should not need it
Okay I disabled this for once.
> |
> | If the script does not time out there, I am not sure what else it is
> | doing. It seems to be in a wait state it does not get out of.
>
> Sounds more and more like flow control hassle - can you lay your hands on a
> break out box or a datascope?
Unfortunately not. I will run a few more tests without rtscts though.
I am actually not horribly worried about kicking the serial reading
service every once in a while, but it would be better if it detected
the "stall" state itself...
Thanks
Fred
More information about the Python-list
mailing list