Article View: comp.sys.mac.databases
Article #3054D serial port help requested
From: craig
Date: Sun, 13 Sep 1992 01:01
Date: Sun, 13 Sep 1992 01:01
28 lines
1410 bytes
1410 bytes
The title pretty much says it: I'm trying to implement a simple
modem dial command procedure, and cannot get the modem to respond.
the description of the SET CHANNEL Command tells me that the following
code should work (at least, that is how it looks to me) COuld someone
critique this ? All I want to to is dial my creaky old 1200 baud modem,
although it would be nice to get the modem's responses to.I am using a
Hayes compatible modem.
` function: dial_modem
` synopsis: dial string passed in
$channel:=1` modem port
$channel:=$channel+20` xon/off->20 (dtr=30)
$setup:=94` speed = 1200->94 (2400->46;96->10)
$setup:=$setup+3072` 8 bits (7->1024)
$setup:=$setup+16384` 1 stop bit(1.5->-32768;2->-16384)
$setup:=$setup+0` no parity(od->4096,even->12288)
` or, example says 8 bits, no parity, 1 stop bit at 1200 = 27742
`$setup:=27742
SET CHANNEL($channel;$setup)
$number:=$1` put code to strip out junk from number here
SEND PACKET("ATDT"+$number)
thanks for your comments & suggestions,
Craig Schwartz
craig@hyperion.loni.ucla.edu
Technical Details
Message-ID:
<8059@lee.SEAS.UCLA.EDU>Path:
arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!ucla-cs!ucla-se!hyperion!craigShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!ucla-cs!ucla-se!hyperion!craig From: craig@hyperion.loni.ucla.edu Newsgroups: comp.sys.mac.databases Subject: 4D serial port help requested Keywords: 4D serial help Message-ID: <8059@lee.SEAS.UCLA.EDU> Date: 13 Sep 92 01:01:08 GMT Sender: news@SEAS.UCLA.EDU Distribution: usa Lines: 29