Dialing out on MODEM
Chris Liechti
cliechti at gmx.net
Fri Jun 28 16:45:43 EDT 2002
"David McInnis" <david at dataovation.com> wrote in
news:mailman.1025270142.10532.python-list at python.org:
> This is my object
>
>>>> import serial
>>>> modem = serial.Serial
>>>> modem = serial.Serial(2)
>>>> modem.write("atdt3120992\n")
somtimes it it's a '\r\n' and maybe you need to send the escape sequence
first, to enter the command mode. if i remember correctly thats 3 times ESC
and then wait 100ms or so. either google or your modem manual should help.
i had to do somthing like that to dial with pyserial, but unfortunately the
code is on an other machine...
chris
--
Chris <cliechti at gmx.net>
More information about the Python-list
mailing list