Professional Documents
Culture Documents
Page
SMS
Page
SMS - Overview
Referred to as Point to Point Short Message Service
Block mode - This was the original mode implemented initially for GSM. This is not supported by
anyone any more.
PDU mode - Mode implemented in all of the previous generation of modules, gives more control
of SMS than text mode but is more complex. This is the raw data that is sent over the air to the
network.
Text mode - A later mode designed to make it easier for people to write software, basically
translation software from text to PDU.
Page
PDUs are shown how to be constructed in the document How to handle SMS contained on
the CD.
Page
Setting parameters
at+cmgf=1
Sets the module to use text mode
at+csdh=1
Allows user to edit/use the text mode parameters
at+csmp=17,167,0,0
Sets Validity period
Sending an SMS
at+cgms=+447787154042
Phone number SMS is to be sent to
> Hello Text to send, ended with the ctrl-z character
cgms : 128 Confirmation from the module that the SMS has been sent
Page
Cell broadcast
Messages are Broadcast by each cell, these are in a similar format to SMS as a result
they are known as SMS-CB.
Detailed in GSM 3.41 or 3GPP 23.041
Generally used in location based services.
Example of a Vodafone CB message from Sony Ericsson Maplewood building.
+CBM:8800B200320111B098AC66038140205043D168341A8D46A3D168341A8D46A3D1
68341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46
A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D100
Controlled using the CNMI and CSCB commands
New message indications need to be set to at+cnmi=3,0,2
The CSCB command needs to be setup to receive the correct message type from the network I.e.
Vodafone use message type 50.
Page
SMS storage
The module has two areas of storage SM (SIM) and ME which it can use, these
are controlled by the following
AT+CPMS command
at+cpms?
+CPMS: "SM",0,15,"SM",0,15,"ME",0,40 Default setting
at+cpms="sm","sm","sm
Command all preferred memory to be set to SIM
+CPMS: 0,15,0,15,0,15
Return from the module showing the capacity and
amount used
SMS and where they are stored is controlled with a combination of the different
classes of SMS and the preferred storage command
Class 0 - Displayed immediately on a screen, not really applicable to modules
Class 1 (default value) - ME specific
Class 2 - SIM specific
Class 3 - TE specific
If all storage is set to that above no SMSs will ever be stored on the module, they
will all go to the SIM.
Page
Page
When using SMS, how the messages are received and passed onto the module is of
paramount importance. This is achieved using the CNMI command.
AT+CNMI - parameters which it can use to route messages in different ways are
Page
Command - Used for applications such as over the air updating of WAP and data accounts.
Currently there is no way to handle this as previously it was handled by the MMI software.
Status - This is a request sent to the network to find the status of previously sent SMSs.
Delivery - This is a bit which is set in the PDU to tell the network to report to the terminal when
the SMS has been delivered, this would consist of a class zero SMS sent to the terminal.
Note : Both status and delivery SMSs may not be supported by all networks.
Page
Page
Voice call
atd01256774626
Data call
Page
Page
Page
Page
GPRS sessions
Page
at+cgdcont command
The command below creates a data account in profile 1 of type IP with an APN of internet
at+cgdcont=1,IP,internet,0,0
Quality of Service parameters are specified by the commands at+cgqreq and at+cgqmin
at+cgqmin=?
Requests the minimum acceptable QoS
+CGQMIN: "IP",(0-3),(0-4),(0-5),(0-5),(0-18,31)
OK
at+cgqreq=?
Request the required QoS
+CGQREQ: "IP",(0-3),(0-4),(0-5),(0-5),(0-18,31)
OK
Page
Page
at+cgdcont?
Request what data accounts exist
+CGDCONT: 1,"IP","internet","",0,0
Account 1 setup for Vodafone
+CGDCONT: 2,"IP","adf.btcellnet.net","",0,0 Account 2 setup for BTCellnet
OK
atd*99***1#
Place a GPRS call using profile 1
CONNECT
Response from the network stating it has connected
successfully
at+cgdcont=1
Request the module to clear account 1
OK
at+cgdcont?
Request existing accounts
+CGDCONT: 2,"IP","adf.btcellnet.net","",0,0 BTCellnet account remains
OK
Page
PPP is the underlying protocol used by the internet to establish and secure a point to
point link. The module has a PPP stack on board which we shall go through in a
moment. Extra security can be added using PAP (PPP Authentication Protocol) and
CHAP (Configure Handshake Authentication Protocol).
TCP/IP
This is the protocol used to route and address information going across the internet.
This is a cut down version of TCP/IP optimised for wireless networks. The module
does have a WAP stack on board but there is currently no way to make a WAP call as
this was previously done through the MMI software.
Page
Page
Registration
Registration
AT+CREG shows information regarding registration on the GSM network
AT+CGREG shows information regarding registration on the GPRS network (or packet based bearers)
at+creg? Requests the GSM registration status
+CREG: 0,1
OK
at+cgreg?Queries the status of GPRS registration
+CGREG: 0,1 Module is registered on the GPRS network
OK
at+cgreg=2
Changes the mode of the at+cgreg command
OK
at+cgreg?
+CGREG: 2,1,"1600","0D91 Returns the status in the new mode
OK
Page
Networks
The module provides a number of commands which allow the user to monitor and control
the networks around it
Available networks
AT+COPS shows more user facing information I.e. network name
at+cops=?
+COPS: (2,"UK VODAFONE","UK VODA","23415")
+COPS: (3,"UK Orange PCS Ltd","Orange","23433")
+COPS: (3,"UK BTCELLNET","BTCELLNET","23410")
+COPS: (3,"UK one2one","one2one","23430")
OK
Timing advance
This is a parameter that is generated in CS calls (data or voice) which give you a time (at the speed
of light) to the base station the MS has the call up with
Page
Glossary
BCCH - Broadcast Control Channel
CB - Cell Broadcast
CGSN - Combined GPRS Support Node
EDGE - Enhanced GSM Data for GSM
FDMA - Frequency Division Multiple Access
FTP - File Transfer Protocol
GGSN - Gateway GPRS Support Node
GM - GSM Module
GPRS - General Packet Radio System
GSM - Global System for Mobile communications
HDLC - High Data Link Control
IETF - Internet Engineering Task Force
IMEI - Individual Mobile Equipment Identity
IMSI - Individual Mobile Subscriber Identity
IP - Internet Protocol
ISP - Internet Service Provider
ITU - International Telecoms Union
LA - Location Area
LAC - Location Area Code
MCC - Mobile Country Code
MNC - Mobile Network Code
MS - Mobile Station
MSC - Mobile Switching Centre
PACCH - Packet Associated Control Channel
PAGCH - Packet Access Grant Channel
PBCCH - Packet Broadcast Control Channel
Page