AT Commands - Generic

Desc: Start the serial session
Send: AT
Expect: OK

Desc: Turn off AT command echo
Send: ATE0
Expect: OK


Desc: Check debugging state
Send: AT+CMEE?
Expect: +CMEE: 0

OK


Desc: Enable debugging
CMEE=0 : Disable error printing
CMEE=1 : Print error numbers
CMEE=2 : Print verbose errors

Send: AT+CMEE=2
Expect: OK


Desc: Check the SIM card status
Send: AT+CPIN?
Expect: +CPIN: READY

OK


Desc: Check registration to GSM network, "0,1" means we are registered
Send: AT+CREG?
0,0 – SIM Error
0,2 – Searching
0,3 – Registration denied
0,5 – Connected roaming
0,1 - Connected

Expect: +CREG: 0,1

OK



// AT+COPS Info: http://m2msupport.net/m2msupport/atcops-plmn-selection/
// 	
// AT+COPS command forces the mobile terminal to select and 
// register the GSM/UMTS/EPS network.
//
// Possible values for mode are:
// 0 automatic ( field is ignored)
// 1 manual ( field shall be present, and optionally)
// 2 deregister from network
// 3 set only (for read command +COPS?), 
// do not attempt registration/deregistration (and fields are ignored);
// this value is not applicable in read command response
// 4 manual/automatic (field shall be present);
// if manual selection fails, automatic mode (=0) is entered
// 
// Possible values for access technology,
// 0 GSM
// 1 GSM Compact
// 2 UTRAN
// 3 GSM w/EGPRS
// 4 UTRAN w/HSDPA
// 5 UTRAN w/HSUPA
// 6 UTRAN w/HSDPA and HSUPA
// 7 E-UTRAN
//
// Example for manual network selection, GSM, "UK ORAGNE" 
// AT+COPS=1,0,"UK ORANGE"



Desc: Get current registered network name
Send:AT+COPS?
Expect: +COPS: 0,0,"UK ORANGE"

OK


Desc: query for all detected networks
Send:AT+COPS=?
Expect: +COPS: (2,"UK ORANGE","","23433")

+COPS: (1,"UK O2","","23410")

+COPS: (1,"UK VODAFONE","","23415")

+COPS: (1,"T-Mobile (UK)","","23430")

OK

Desc: Deregister from the current network
Send: AT+COPS=2
Expect: OK



Desc: Check signal strength (Received Signal Strength Ind, Bit Error Rate), rssi 6 = call cut off
Send: AT+CSQ
Expect: +CSQ: 13,7

OK


Desc: Register to another network listed in AT+COPS=?
Send: AT+COPS=1,0,"UK ORANGE"
Expect: OK


Desc: Check signal strength (Received Signal Strength Indication dBm, Bit Error Rate in percent),
rssi codes:
0 (-113) dBm or less
1 (-111) dBm
2...30 (-109) dBm...(-53) dBm / 2dBm per step
31 (-51)dbM or greater
99 - Not known or not detecable

1 - 9 = Marginal
10 - 14 = OK
15 - 19 = Good
20 - 30 = Excellent

ber values:
0 - less than 0.2% 
1 - 0.2% to 0.4% 
2 - 0.4% to 0.8% 
3 - 0.8% to 1.6% 
4 - 1.6% to 3.2% 
5 - 3.2% to 6.4% 
6 - 6.4% to 12.8% 
7 - more than 12.8% 
99 - not known or not detectable 

Send: AT+CSQ
Expect: +CSQ: 17,0

OK


Desc: List current calls
Send: AT+CLCC
Expect:


Check for call status:
Send: AT+CPAS
Expect: 0 //Ready for call
Expect: 3 //Incomming call
Expect: 4 //Active call


Desc: Answer after 1 ring (0 = disabled)
Send: ATS0=1
Expect:

Desc: Call Pickup
Send: ATA
Expect: OK


Desc: Hang up
Send: ATH
Expect: OK


Desc: Set auto answer. 0 = disabled, 1 = answer after 1 ring, 2 = answer after 2 ring
Send: ATS0=0
Expect: OK


Desc: Change audio path to mic and external speker
Send: AT#CAP=1
Expect: OK


Desc: Send DTMF tones 1,2,3,4
Send: AT+VTS=1;+VTS=2;+VTS=3;+VTS=4;
Expect: OK