Modifying CCL Scripts
893-826-A
8-15
jump 59
!
!
! If speaker on flag is true, jump to label 8. Else turn off the speaker
!
@LABEL 6
ifstr 2 8 “1”
pause 5
matchstr 1 8 “OK\13\10”
write “ATM0\13”
matchread 30
jump 59
!
! The modem is ready so enable answering, or originate a call
!
@LABEL 8
pause 5
ifANSWER 30
note “Dialing ^1” 3
write “ATDT^1\13”
!
@LABEL 9
matchstr 1 11 “CONNECT 1200\13\10”
matchstr 2 12 “CONNECT 2400\13\10”
matchstr 3 13 “CONNECT 4800\13\10”
matchstr 4 19 “CONNECT 7200\13\10”
matchstr 5 14 “CONNECT 9600\13\10”
matchstr 6 20 “CONNECT 12000\13\10”
matchstr 7 18 “CONNECT 14400\13\10”
matchstr 8 50 “NO CARRIER\13\10”
matchstr 9 50 “ERROR\13\10”
matchstr 10 52 “NO DIAL TONE\13\10”
matchstr 11 53 “BUSY\13\10”
matchstr 12 54 “NO ANSWER\13\10”
matchread 700
jump 59
!
! Notice that all we do for different connect speeds is issue a
! “CommunicatingAt” command. Remember, we locked the interface speed
! to 19,200 bps so we don't want to reset the serial speed after we connect.
! CommunicatingAt tells ARA what the actual line speed is so that it
! can set it's timers appropriately. I guess your performance would be
! sub-optimal if you don't set this...
!
@LABEL 11
note “Communicating at 1200 bps.” 2
CommunicatingAt 1200
jump 15
These “jump 15” commands
!
point to the “success” label.
!
@LABEL 12
note “Communicating at 2400 bps.” 2
CommunicatingAt 2400
jump 15
!
@LABEL 13
note “Communicating at 4800 bps.” 2
CommunicatingAt 4800
jump 15
!
@LABEL 19
note “Communicating at 7200 bps.” 2
CommunicatingAt 7200
jump 15
!
@LABEL 14
note “Communicating at 9600 bps.” 2
CommunicatingAt 9600
jump 15
!
@LABEL 20
Summary of Contents for 3395A
Page 8: ...viii 893 826 A ...
Page 10: ...x 893 826 A ...
Page 14: ...Preface Preface xiv 893 826 A ...
Page 34: ...Introducing the Communication Server 1 20 893 826 A ...
Page 58: ...Setting Up Basic Modem Applications 3 14 893 826 A ...
Page 84: ...Serial Line Internet Protocol SLIP 5 8 893 826 A ...
Page 98: ...Setting Up ARAP 6 14 893 826 A ...
Page 112: ...Model 3395A Server Support for the Xremote Protocol 7 14 893 826 A ...