pySerial

2007-12-18 Thread __zip__
Hi,

I am using pySerial for communication with modem.

Does anyone knows which values are for what in these variables?

xonxoff=0
rtscts=0
dsrdtr=0

if xonxoff=0 is it hardware control on or of (logic says it would be off 
, but who knows).


Second question is: do I need to send \n or soemthing when I use write().

I would like to do:

ser.write("AT")
print ser.readline()

and get "OK".

Am I doing soemthing wrong?

tnx in advance.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: pySerial

2007-12-18 Thread __zip__
Tnx for help. Done it.

The problem was that returning bytes were on few lines and I
didn't look after first \n :(

tnx.
-- 
http://mail.python.org/mailman/listinfo/python-list