🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #672

Re: program to send dial code to modem

#672
From: Bart Bartholomew
Date: Sat, 11 Apr 1992 07:31
33 lines
2272 bytes
The problem is not all that hard, assuming you have a Hayes-
compatible modem.  Hayes modems respond to ascii sequences
to perform standard commands.  I leave the speed, parity, etc.,
to you to set up.  You need to send the following sequences
to your modem:
the characters crlf, three plusses ('+') followed by a one second
delay, the (optional) string atx4e1 should be sent once, the
sequence atc0dp#######crlf, where the ##'s are the number you
want, which can include things like area codes, etc.  Most modems
will ignore dashes'-' in the number, but I don't know if you can
depend on that.  In the sequence atc0dp (Attention, turn off carrier,
dial pulses) you can use atc0dt for touch-tones instead.
The case doesn't matter much, except you should use all upper or
lower; some modems don't like it mixed.
The three plusses at the start of a line (after the crlf) followed
by the one second delay, alert the modem to go to command mode and
wait for further orders.  This sequence is deemed unlikely to occur
in normal traffic.  The 'at' confirms that a command follows.
x4 enables dial tone and busy detects.  e1 turns on character echoing,
which I find handy for debugging.  e0 turns of character echoing.
	All this should have been in the manual for the modem.
How you get the characters to the modem is up to you; you can 
write a program, print to com1: or whatever, use echo to com1,
copy a file to the appropriate com port, whatever.  Naturally, 
if your modem is on com2, use that instead.  Note that some 
computers don't work properly for com3 and com4.
	Bart

-- 
"It's not the thing you fling, it's the fling itself" - Chris Stevens
 If there's one thing I just can't stand, it's intolerance.
*No One* is responsible for my views, I'm a committee. Please do not
infer that which I do not imply.  hcbarth@afterlife.ncsc.mil
Technical Details
Message-ID: <1992Apr11.073149.11924@afterlife.ncsc.mil>
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!relay.nswc.navy.mil!afterlife!hcbarth
References: <s30jrINN2ek@matt.ksu.ksu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!relay.nswc.navy.mil!afterlife!hcbarth
From: hcbarth@afterlife.ncsc.mil (Bart Bartholomew)
Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer
Subject: Re: program to send dial code to modem
Message-ID: <1992Apr11.073149.11924@afterlife.ncsc.mil>
Date: 11 Apr 92 07:31:49 GMT
References: <s30jrINN2ek@matt.ksu.ksu.edu>
Organization: The Great Beyond
Lines: 33