
Wavecom GSM Modem
This confidential document is the property of WAVECOM and may not be copied or circulated without permission
31
Application to GSM
AT+CMGF ?
current message format
GSM to application
+CMGF: 1
OK
Text mode
Application to GSM
AT+CMGF=?
Possible message format
GSM to application
+CMGF: (0-1)
OK
Text or PDU modes are
available
Example to send a SMS Message in PDU mode
Application to GSM
AT+CMGF=0
PDU message format
GSM to application
OK
PDU mode valid
Application to GSM
AT+CMGS=14<CR>01F60691214365
000004C9E9340B
Send MSG
GSM to application
+CMGS: 246
OK
MSG correctly sent
14 is the length of
octets
of the PDU buffer coded as GSM 03.40 . In
this case this buffer is 0x01 0xF6 0x06 0x91 0x21 0x43 0x65 0x00 0x00 0x04
0xC9 0xE9 0x34 0x0B which means regarding to GSM 03.40 :
TP-MTI : 0x01 (SMS-SUBMIT)
<mr>: 0xF6
<da>: 0x06 0x91 0x21 0x43 0x65 (+123456)
<pid>: 0x00
<dcs>: 0x00 (Data coding scheme : 7 bits alphabet chosen)
TP-UDL : 0x04 (User data length)
TP-UD : 0xC9 0xE9 0x34 0x0B (User data : ISSY)
TPDU in hexadecimal format must be converted into two ascii
characters. E.G octet with hexadecimal value 0x2A is presented to the mobile
as two characters ‘2’ (ascii 50) and ‘A’ (ascii 65).