
EVK-L20, EVK-L21 - User Guide
UBX-14000422 - R03
Early Production Information
Appendix
Page 15 of 17
C
Examples of AT commands
For the complete description and syntax of supported AT commands, see the
u-blox AT commands Manual
C.1
Internet connection in GPRS mode
Command sent by DTE (user)
DCE response (module)
Description
AT+CGATT?
+CGATT: 1
OK
Check if the cellular module is attached to GPRS service
(1 – attached, 0 – detached).
AT+CGDCONT=1,"IP",
"uni.tim.it"
OK
Define the PDP context parameters.
AT+CGDCONT?
+CGDCONT: 1,"IP","my_apn",
"0.0.0.0",0,0
OK
ATD*99***1#
CONNECT
Initiate the GPRS connection.
+++
NO CARRIER
Disconnect with +++ sequence.
C.2
SMS management
Command sent by DTE (user)
DCE response (module)
Description
AT+CMGF=1
OK
Set the text mode as the format that will be used. To be set
before of the first operation.
AT+CMGS="+3930012345678"
SMS TEXT MESSAGE
0123456789<CTRL-Z>
>
+CMGS: 0
OK
Send 1
st
SMS (+3930012345678 is written here as example).
AT+CMGS="+3930012345678"
>
Send 2
nd
SMS (+3930012345678 is written here as example).
SMS TEXT MESSAGE
0123456789<CTRL-Z>
+CMGS: 1
OK
AT+CMGL
+CMGL:302,"REC UNREAD","+3
930012345678",,"05/09/27,1
6:40:36+08"
SMS TEXT MESSAGE
0123456789
OK
List all the incoming SMSes (+3930012345678 is written
here as example).