home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 April A
/
Pcwk4a98.iso
/
Wtestowe
/
OnNet16
/
IBMONCM1.SCR
< prev
next >
Wrap
Text File
|
1996-04-16
|
1KB
|
51 lines
<* language=slang *>
<* ftp Software, Inc. Copyright 1995 *>
<* You run this script to establish a CDPD connection *>
<* between the ftp Software TCP/IP kernel and the *>
<* IBM PCMCIA Wireless Cellular/CDPD modem. *>
(poll, physical, open, 1000,,
{
(slang_init_modem)
(loop,
{
<* Adjust AT+WVCPRF= 0 = A Side Carrier / 1 = B Side Carrier *>
(send,{AT&F+WS46=4+WS45=3+WVCPRF=0+WVCSPN=0&K3&C1}(cr))
(define, RegState, (receive, 8000))
(output, (value, RegState))
(has, RegState, OK, {(lbreak)})
}, 1000)
(has, RegState, OK,
{
(send, {ATD}(cr))
(define, SlipState, (receive, 3000))
(output, (value, SlipState))
(has, SlipState, CONNECT,
{
(poll, physical, open, 5000,
{
(output, {Dialer detects data carrier high.}(cr)(lf)
{Dialer now can assert DTR.}(cr)(lf))
(lbreak)
},
{
(message, {The dialer cannot connect to the modem in CDPD mode.}, OK, STOP)
})
},
{
(message, {The modem would not enter SLIP mode.}, OK, STOP)
})
},
{
(message, {The IBM Wireless Cellular/CDPD modem did not register with the CDPD network.},
OK,STOP )
})
})