Dialing out on MODEM

David McInnis david at dataovation.com
Fri Jun 28 08:53:00 EDT 2002


This is my object

>>> import serial
>>> modem = serial.Serial
>>> modem = serial.Serial(2)
>>> modem.write("atdt3120992\n")

I have also tried with 

>>> import serial
>>> modem = serial.Serial
>>> modem = serial.Serial(2)
>>> modem.write("atdt3120992")

David McInnis

-----Original Message-----
From: python-list-admin at python.org [mailto:python-list-admin at python.org]
On Behalf Of Peter Hansen
Sent: Friday, June 28, 2002 5:50 AM
To: python-list at python.org
Subject: Re: Dialing out on MODEM

David McInnis wrote:
> 
> I need to write a small script that opens com3 and writes an ATDT to
> dial out, answer the line and send a numeric message.  Basically, I
> paging utility.
> 
> I am using pyserial and cannot seem to get my modem to dial with
> 
> Modem.write("ATDT5555555")

Is Modem an object from pyserial, or one of yours?  And does it
automatically append the \n or CR or do you have to do that yourself?

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






More information about the Python-list mailing list