done

 

 

disconnect:

delay 2

# Separate from previous data.

 

 

send "+++"

# Assure command mode.

 

delay 2

# Allow mode switching delay.

 

send "ATHð\r"

# Set modem switch-hook down

 

 

# (i.e., hang up).

 

ignore "ð\r" or "OK\r" timeout 2

# Ignore modem response.

 

send "ATEðQ1\r"

# Initialize modem: Echo OFF,

 

ignore "ð\r" timeout 1

#

Disable responses.

 

 

 

 

done

 

 

condin:

send "AT&F\EðEð\r"

# Reset to factory defaults.

 

 

# \Eð=data compression disabled

 

 

# Eð=echo disabled

 

ignore "ð\r" or "OK\r\n" timeout 2

# Ignore modem response.

 

send "AT#Fð\Q2\r"

# Trellis modulation disabled

 

 

# Retrain with adaptive rate

 

expect "ð\r" or "OK\r\n" timeout 2

# Confirm commands successful

 

send "ATVðXðSð=2\r"

# Numeric response code

 

 

# AT compatible messages

 

 

# Answer on 2nd ring

 

expect "ð\r" timeout 2

# Confirm commands successful.

 

done

 

 

waitcall:

ignore "2\r" timeout 1

# Ignore first ring.

 

expect "2\r" timeout 1ð

# Pick up second ring

 

 

#

or timeout.

 

expect "1\r" timeout 6ð

# Expect a connection response.

 

 

 

 

done

 

 

page:

send "ATD%N,%R\r"

# %N = pager call center number

 

 

# commas=6sec wait time to

 

 

#

enter paging number.

 

 

# %R = return number

 

expect "ð\r" or "3\r" timeout 3ð

# Confirm successful command.

 

delay 2

# Wait before hanging up.

 

send "+++"

# Assure command mode.

 

delay 2

# Allow mode switching delay.

 

send "ATHð\r"

# Hang up.

 

expect "ð\r" timeout 2

# Confirm successful command.

 

done

 

 

ripo:

send "AT&F\EðEð\r"

# Reset to factory defaults.

 

 

# \Eð=data compression disabled

 

 

# Eð=echo disabled

 

ignore "ð\r" or "OK\r\n" timeout 2

# Ignore modem response.

 

send "AT#Fð\Q2\r"

# Trellis modulation disabled

 

 

# Retrain with adaptive rate

Appendix C. Modem Configurations-13

Page 257
Image 257
IBM RS/6000 manual Appendix C. Modem Configurations-13