!  GlobeSpanVirata ADSL USB Modem
!
! ---- Place call ----
!
@ORIGINATE
matchclr
matchstr 1 2 "CONNECT "
note "ATM Link Established..." 3
write "ATD\13"
matchread 600
jump 10

@LABEL 2
matchclr
matchstr  1  11   "32000"
matchstr  2  12   "64000"
matchstr  3  13   "96000"
matchstr  4  14  "128000"
matchstr  5  15  "160000"
matchstr  6  16  "192000"
matchstr  7  17  "224000"
matchstr  8  18  "256000"
matchstr  9  19  "288000"
matchstr 10  20  "320000"
matchstr 11  21  "352000"
matchstr 12  22  "384000"
matchstr 13  23  "416000"
matchstr 14  24  "448000"
matchstr 15  25  "480000"
matchstr 16  26  "512000"
matchstr 17  27  "544000"
matchstr 18  28  "576000"
matchstr 19  29  "608000"
matchstr 20  30  "640000"
matchstr 21  31  "672000"
matchstr 22  32  "704000"
matchstr 23  33  "736000"
matchstr 24  34  "768000"
matchstr 25  35  "800000"
matchstr 26  36  "832000"
matchstr 27  37  "864000"
matchstr 28  38  "896000"
matchstr 29  39  "928000"
matchstr 30  40  "960000"
matchstr 31  41  "992000"
matchstr 32  42 "1024000"
matchread 10

@LABEL 10
note "Could not read Connection Data Rate from the modem. Internet Connect will display 0 bps." 3
jump 50

@LABEL 11
note "Communicating at 32000 bps." 3
CommunicatingAt 32000
jump 50

@LABEL 12
note "Communicating at 64000 bps." 3
CommunicatingAt 64000
jump 50

@LABEL 13
note "Communicating at 96000 bps." 3
CommunicatingAt 96000
jump 50

@LABEL 14
note "Communicating at 128000 bps." 3
CommunicatingAt 1280000
jump 50

@LABEL 15
note "Communicating at 160000 bps." 3
CommunicatingAt 160000
jump 50

@LABEL 16
note "Communicating at 192000 bps." 3
CommunicatingAt 192000
jump 50

@LABEL 17
note "Communicating at 224000 bps." 3
CommunicatingAt 224000
jump 50

@LABEL 18
note "Communicating at 256000 bps." 3
CommunicatingAt 256000
jump 50

@LABEL 19
note "Communicating at 288000 bps." 3
CommunicatingAt 288000
jump 50

@LABEL 20
note "Communicating at 320000 bps." 3
CommunicatingAt 320000
jump 50

@LABEL 21
note "Communicating at 352000 bps." 3
CommunicatingAt 352000
jump 50

@LABEL 22
note "Communicating at 384000 bps." 3
CommunicatingAt 384000
jump 50

@LABEL 23
note "Communicating at 416000 bps." 3
CommunicatingAt 4166000
jump 50

@LABEL 24
note "Communicating at 448000 bps." 3
CommunicatingAt 448000
jump 50

@LABEL 25
note "Communicating at 480000 bps." 3
CommunicatingAt 480000
jump 50

@LABEL 26
note "Communicating at 512000 bps." 3
CommunicatingAt 512000
jump 50

@LABEL 27
note "Communicating at 544000 bps." 3
CommunicatingAt 544000
jump 50

@LABEL 28
note "Communicating at 576000 bps." 3
CommunicatingAt 576000
jump 50

@LABEL 29
note "Communicating at 608000 bps." 3
CommunicatingAt 608000
jump 50

@LABEL 30
note "Communicating at 640000 bps." 3
CommunicatingAt 640000
jump 50

@LABEL 31
note "Communicating at 672000 bps." 3
CommunicatingAt 672000
jump 50

@LABEL 32
note "Communicating at 704000 bps." 3
CommunicatingAt 704000
jump 50

@LABEL 33
note "Communicating at 736000 bps." 3
CommunicatingAt 736000
jump 50

@LABEL 34
note "Communicating at 768000 bps." 3
CommunicatingAt 768000
jump 50

@LABEL 35
note "Communicating at 800000 bps." 3
CommunicatingAt 800000
jump 50

@LABEL 36
note "Communicating at 832000 bps." 3
CommunicatingAt 832000
jump 50

@LABEL 37
note "Communicating at 864000 bps." 3
CommunicatingAt 864000
jump 50

@LABEL 38
note "Communicating at 896000 bps." 3
CommunicatingAt 896000
jump 50

@LABEL 39
note "Communicating at 928000 bps." 3
CommunicatingAt 928000
jump 50

@LABEL 40
note "Communicating at 960000 bps." 3
CommunicatingAt 960000
jump 50

@LABEL 41
note "Communicating at 992000 bps." 3
CommunicatingAt 992000
jump 50

@LABEL 42
note "Communicating at 1024000 bps." 3
CommunicatingAt 1024000
jump 50

!
! Userhook 2 informs ARA that a modem-to-modem error
! correcting protocol has been negotiated
!
@LABEL 50
userhook 2
!pause 5
exit 0


! ---- Modem Not Responding
@LABEL 100
exit -6019

!
! ---- Answer call ----
!
@ANSWER
note "This modem is dial out only..." 2
pause 10
exit 0
!
! ---- Hang up and reset modem ----
!
@HANGUP
!pause 5
exit 0
