
Across the Boards
Communications Device Drivers
Section 5 - General Configuration and Usage Information
Page 202
cfSOFTWARE Confidential,
2000
5.14 cfPPP Driver Usage (continued)
; Dial phone
send ‘ATDT9,16305742790’ cr
waitfor ‘CONNECT’
waitfor ‘LAPM’
delay (.5)
; Start PPP negotiation
+send sysreq
; Wait for PPP negotiation to complete
waitfor ‘PPP: Connected’
end
:err
; Failure, just shut down and exit with a code
send test, test
delay(3)
send ‘+++’
delay(3)
send ‘AT Z’ cr
quit(4) ‘Link startup failed’
Sample Link Shutdown Script
dev(atcp-ppp)
line sp(38kb) da(8) st(1) pa(n) hwflow(cts)
on timeout goto err
; Start PPP shut down
send test
; Wait for PPP shutdown to complete
waitfor ‘PPP: Down’
delay(2)
send ‘+++’
waitfor ‘OK’
send ‘AT Z’ cr
end
:err
; Failure, force shut down and exit with a code
send test, test
delay(3)
send ‘+++’
delay(3)
send ‘AT Z’ cr
quit(4) ‘Link shutdown failed’
Comentarios a estos manuales