win32file serial port madness...

Jason blipoh at mail.com
Mon Oct 7 22:41:35 CEST 2002


I have been using pySerial for a while (a great package I might add),
and I was wondering if somebody could help me with something that it
doesn't seem to do. I was wondering if it is possible to read data
from the comm port "file" and then either put it back in the buffer or
reset the file pointer so that the next thing read will be the same as
what was just read.

What I need to do is detect the "No carrier" message from a modem. So
if anyone has an easier way to do that than just reading in the data
on a set interval and checking it, that information would be greatly
appreciated.

Thanks.

Jason Foster
jfoster at ksegaming.com



More information about the Python-list mailing list