Addressing the modem via pyserial
Fredrik Lundh
fredrik at pythonware.com
Wed Jan 18 11:07:02 EST 2006
Doru-Catalin Togea wrote:
> In the HyperTerminal which comes with Win XP Pro, I can set up a
> connection to COM3 and there type the 'atdt1234' command. It works (I get
> a call since I have the modem connected to a device with a phone on it).
even without pressing enter?
> My question is actually: will an at-command like 'atdt1234' translate to
> ser.write('atdt1234')?
try
ser.write('atdt1234\r\n')
or just
ser.write('atdt1234\n')
</F>
More information about the Python-list
mailing list