i've just read every posting in the archives on this subject that i could find
and still i am at a loss.
all i need to do is make the modem pick up the phone and dial.
i'm on a powerbook with a stock Apple Internal 56K Modem.
using Remote Access on OS 9 and Internet Connect on OS X I am able to use
verbose logging to capture the exact list of commands that are required to make
a successful call. when i dial my cell number with either of those apps, it
works fine... i hear the line pick up and then all of the numbers beep, then my
cell phone rings. i pick it up and i am successfully connected. i can hear my
voice from the cell over the powerbook speakers. the log looks like this:
Sat Oct 21 06:43:38 2006 : CCLWrite : AT\13
Sat Oct 21 06:43:40 2006 : CCLMatched : OK\13\10
Sat Oct 21 06:43:40 2006 : CCLWrite : ATI4\13
Sat Oct 21 06:43:40 2006 : CCLMatched : Apple Internal Modem\13\10
Sat Oct 21 06:43:40 2006 : CCLWrite : ATI12\13
Sat Oct 21 06:43:40 2006 : CCLMatched : S1\13\10
Sat Oct 21 06:43:40 2006 : CCLWrite :
AT&FE0S95=45&D3S7=120W2+MS=11,1,300,33600\13
Sat Oct 21 06:43:41 2006 : CCLMatched : OK\13\10
Sat Oct 21 06:43:41 2006 : CCLWrite : ATS8=2\13
Sat Oct 21 06:43:41 2006 : CCLMatched : OK\13\10
Sat Oct 21 06:43:41 2006 : CCLWrite : AT\N0\13
Sat Oct 21 06:43:41 2006 : CCLMatched : OK\13\10
Sat Oct 21 06:43:41 2006 : Dialing without tone
Sat Oct 21 06:43:41 2006 : CCLWrite : ATX3S6=4\13
Sat Oct 21 06:43:41 2006 : CCLMatched : OK\13\10
Sat Oct 21 06:43:41 2006 : Dialing 5551212
Sat Oct 21 06:43:41 2006 : CCLWrite : ATDT5551212\13
Sat Oct 21 06:44:01 2006 : Hangup (SIGHUP)
Sat Oct 21 06:44:02 2006 : CCLWrite : +++
Sat Oct 21 06:44:05 2006 : CCLWrite : ATH\13
Sat Oct 21 06:44:05 2006 : CCLMatched : OK\13\10
Sat Oct 21 06:44:05 2006 : CCLWrite : AT&F\13
Sat Oct 21 06:44:05 2006 : CCLMatched : OK\13\10
Sat Oct 21 06:44:05 2006 : Serial link disconnected.
... so then i take all of the "CCLWrite" lines and put them into a little RB
test app like so:
serial1.serialport = system.serialport(0)
serial1.baud = serial1.baud9600
if serial1.open then
box.text = box.text + "WRITE: " + "AT" + chr(13)
serial1.write "AT" + chr(13)
serial1.xmitwait
box.text = box.text + "WRITE: " +
"AT&FE0S95=45&D3S7=120W2+MS=11,1,300,33600" + chr(13)
serial1.write "AT&FE0S95=45&D3S7=120W2+MS=11,1,300,33600" + chr(13)
serial1.xmitwait
box.text = box.text + "WRITE: " + "ATS8=2" + chr(13)
serial1.write "ATS8=2" + chr(13)
serial1.xmitwait
box.text = box.text + "WRITE: " + "AT\N0" + chr(13)
serial1.write "AT\N0" + chr(13)
serial1.xmitwait
box.text = box.text + "WRITE: " + "ATX3S6=4" + chr(13)
serial1.write "ATX3S6=4" + chr(13)
serial1.xmitwait
box.text = box.text + "WRITE: " + "ATDT5551212" + chr(13)
serial1.write "ATDT5551212" + chr(13)
serial1.xmitwait
end
serial1 of course exists, as does box, which is a multiline text field.
in serial1's DataAvailable event handler, i've got:
box.text = box.text + "READ: " + me.readall
...and in the Error event handler:
box.text = box.text + "ERROR: " + str(me.lastErrorCode) + chr(13)
when i run the app, my commands are spit out into the text field and then they
are echo'd back afterward, then a final "OK" and that's it. notice that the
output form Apple's Internet Connect app has an "OK" response after most of the
commands. the line never picks up, no dial tone, no dialing... nothing.
here's the output of my rb test app:
WRITE: AT
WRITE: AT&FE0S95=45&D3S7=120W2+MS=11,1,300,33600
WRITE: ATS8=2
WRITE: AT\N0
WRITE: ATX3S6=4
WRITE: ATDT5574218
READ: AREAD: T
AT&FE0S95=45&D3S7=120W2+
MS=11,1,300,33600
ATS8=2
AT\N0
ATX3S6=4
ATDT5574218
OK
so. what am i doing wrong?
thanks.
(this is RB 5.5 on OS X, by the way.)
- chase
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>