ttySx
Bo M. Maryniuck
b.maryniuk at forbis.lt
Fri Sep 6 11:08:25 EDT 2002
Hi, all.
Is anybody know how to check modem status from the Python on Linux?
I need something like send 'ATZ' and get "OK" or something.
I've tried do somethig like:
modem = open('/dev/ttyS0', 'r+')
modem.write('ATZ\r')
modem.read() # Hang here forewer
This is bad. Then I've tried use several modules for serial port, wheere I can
write, but if I read, always get ''.
Perhaps I should figure out with DTR status and so on.... Any ideas?
--
Regards, Bogdan
Anybody who doesn't cut his speed at the sight of a police car is
probably parked.
More information about the Python-list
mailing list