| 1 |
# You can use this script unmodified to connect to cellular networks. |
| 2 |
# The APN is specified in the peers file as the argument of the -T command |
| 3 |
# line option of chat(8). |
| 4 |
|
| 5 |
# For details about the AT commands involved please consult the relevant |
| 6 |
# standard: 3GPP TS 27.007 - AT command set for User Equipment (UE). |
| 7 |
# (http://www.3gpp.org/ftp/Specs/html-info/27007.htm) |
| 8 |
|
| 9 |
ABORT BUSY |
| 10 |
ABORT VOICE |
| 11 |
ABORT "NO CARRIER" |
| 12 |
ABORT "NO DIALTONE" |
| 13 |
ABORT "NO DIAL TONE" |
| 14 |
ABORT "NO ANSWER" |
| 15 |
ABORT "DELAYED" |
| 16 |
ABORT "ERROR" |
| 17 |
|
| 18 |
# cease if the modem is not attached to the network yet |
| 19 |
ABORT "+CGATT: 0" |
| 20 |
|
| 21 |
"" AT |
| 22 |
TIMEOUT 12 |
| 23 |
OK ATH |
| 24 |
OK ATE1 |
| 25 |
|
| 26 |
# +CPIN provides the SIM card PIN |
| 27 |
#OK "AT+CPIN=1234" |
| 28 |
|
| 29 |
# +CFUN may allow to configure the handset to limit operations to |
| 30 |
# GPRS/EDGE/UMTS/etc to save power, but the arguments are not standard |
| 31 |
# except for 1 which means "full functionality". |
| 32 |
#OK AT+CFUN=1 |
| 33 |
|
| 34 |
OK AT+CGDCONT=1,"IP","\T","",0,0 |
| 35 |
OK ATD*99# |
| 36 |
TIMEOUT 22 |
| 37 |
CONNECT "" |
| 38 |
|