Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Program to control the modem

Status
Not open for further replies.

Guest
Hi,
I'm trying to find out how to write a program to control the modem to dial telephone number. What I've found so far seems to be related to interfacing the PC to the modem, but stops short of saying how the dialling is done. Anyone can point me in the right dirction?
Thanks!
J.
 
Replies continue below

Recommended for you

The modem manufacturers used to provide a manual with the "AT" commands. For example from dos copy con: com1 ATDT 5551212 would dial 5551212 on the modem if it was attached to com1. The syntax may be incorrect but thats the idea.

If your not interfacing with the modem through a PC, I don't know.

Gerald Austin
Weldinginspectionsvcs.com
 
Hi jumbled,

the only way that I have ever heard of being able to program a modem is through the serial port, be that a physical one such as RS-232 or through a virtual port supported by the operating system. To control the modem you use the AT command set as Gerald pointed out. To get a modem to dial you issue the command AT DT 555 1234. The 'D' tells the model to dial, and the 'T' tells it to use tones (as opposed to 'P' for the old decadic pulse dialing). The modem will respond back with a 'CONNECT' message when it has successfully dialed the other party. You can then send whatever charaters you want to the serial port and onto the other end.

Hope this helps.
 
jumbled ...I did make one prgram 1 yr back which used to dial using VC++...For ISDN i remeber i used RasDial(..) APIs
and for Normal modem InternetDial(..) functions ...hope this will solve yur problem..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor