Thread View: comp.sys.mac.databases
2 messages
2 total messages
Started by craig
Sun, 13 Sep 1992 01:01
4D serial port help requested
Author: 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
Re: 4D serial port help requested
Author: Mike Hennahane
Date: Sun, 13 Sep 1992 21:05
Date: Sun, 13 Sep 1992 21:05
13 lines
935 bytes
935 bytes
craig@hyperion.loni.ucla.edu writes:
[trying to get modem to dial from 4d...]
>$number:=$1` put code to strip out junk from number here
>SEND PACKET("ATDT"+$number)
you need to append a carriage return to the end of your "ATDT" packet
to make the modem dial. you might also think about having the modem
turn off after you pick up the phone so that it doesn't keep the phone
off the hook after you hang up.
--mike
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads