pySerial

david david at nospam.spam
Wed Dec 19 20:26:03 EST 2007


__zip__ wrote:
> 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.

Just a note:
Most modems expect CR (\r), rather than \n.




More information about the Python-list mailing list