Checking for data on a serial port
Erno Kuusela
erno at iki.fi
Tue Mar 28 17:34:37 EST 2000
>>>>> "Jay" == Jay Freeman <jayfreeman at earthlink.net> writes:
Jay> Howdy, I'm probably missing something obvious in the docs,
Jay> but I'd like to have a way to see if there is any data
Jay> waiting to be read on a serial port.
use the select module.
you might want to open the serial ports in unbuffered mode, or use the
low level os.read/os.write syscalls, so that buffering doesn't get in
the way.
-- erno
More information about the Python-list
mailing list