| ripo: | send "AT&FQðT\r" | # Reset to factory defaults. | |
| 
 | ignore "ð\r" or "OK\r\n" timeout 2 | # Ignore modem response. | |
| 
 | send "ATEðT\r" | # Initialize modem: Echo OFF, | |
| 
 | expect "ð\r" or "OK\r\n" timeout 2 | # | Enable responses (Numeric), | 
| 
 | send "ATQðVðXðT\r" | # | Limit response codes. | 
| 
 | expect "ð\r" timeout 2 | # Confirm commands successful. | |
| 
 | send "ATSð=ð\r" | # Set AutoAnswer OFF | |
| 
 | expect "ð\r" timeout 2 | # Confirm command successful. | |
| 
 | send "AT&C1&D2\r" | # Detect carrier and DTR. | |
| 
 | expect "ð\r" timeout 2 | # Confirm command successful. | |
| 
 | done | # RI Power On enabled. | |
| error: | 
 | # Handle unexpected modem | |
| 
 | 
 | # | responses. | 
expect "8\r" or "7\r" or "6\r" or "4\r" or "3\r" delay 2
done
