SARA-U2 series EVK - User Guide
UBX-14001743 - R05
Appendix
Page 18 of 21
C.3
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 the 1
st
SMS (+3930012345678 is
written here as example).
AT+CMGS=”+3930012345678”
>
Send the 2
nd
SMS (+3930012345678 is
written here as example).
SMS TEXT MESSAGE
0123456789<CTRL-Z>
+CMGS: 1
OK
AT+CMGL
+CMGL:302,"REC
UNREAD","+3930012345678",,"05/09
/27,16:40:36+08"
SMS TEXT MESSAGE 0123456789
OK
List all the incoming SMSes
(+3930012345678 is written here as
example).
C.4
Internet connection in GPRS mode (using external TCP/IP stack)
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.5
Internet connection in GPRS mode (using internal TCP/IP stack)
Command sent by DTE (user)
DCE response (module)
Description
AT+UPSD=0,1,"my apn"
OK
Configure PDP-context parameters.
Make sure to have the correct APN.
AT+UPSD=0,2,"my user-name"
OK
Username and password depend on the
mobile operator used. In most cases these
are not required. Simply use space or omit
these commands.
AT+UPSD=0,3,"my password"
OK
AT+UPSD=0
(configuration parameters)
Check the configuration.
AT+UPSDA=0,1
OK
Store configuration in non-volatile memory
(NVM).
AT+UPSDA=0,3
OK
Activate the PDP context.
Verify connection and PDP-context:
Command sent by DTE (user)
DCE response (module)
Description
AT+UPSND=0,0
(IP address)
Check IP addresses assigned.
AT+UPSND=0,1
(IP address of DNS)
Check DNS assigned.
AT+UDNSRN=0,"www.u-blox.com"
195.34.89.137
or 195.34.89.138
OK
Example: resolve DNS name.