Essays24.com - Term Papers and Free Essays
Search

Sms Commands

Essay by   •  July 15, 2010  •  2,927 Words (12 Pages)  •  1,772 Views

Essay Preview: Sms Commands

Report this essay
Page 1 of 12

SMS COMMANDS AT+CMGD Delete SMS message

Read Command

AT+CMGD=?

Response +CMGD:

OK

Write Command Response

AT+CMGD=

TA deletes message from preferred message storage location . OK If error is related to ME functionality: +CMS ERROR

Parameters

integer type; value in the range of location numbers supported by the associated memory AT+CMGF Select SMS Message Format

Read Command Response

AT+CMGF?

+CMGF: OK

Parameters

see write command

Test Command Response

AT+CMGF=?

Write Command

+CMGF: list of supported s OK

Response

AT+CMGF=[]

TA sets parameter to denote which input and output format of messages to use. OK

Parameters

0 PDU mode 1 text mode AT+CMGL List SMS messages from preferred store

Test Command Response

AT+CMGL=?

+CMGL: list of supported s OK

Parameters

see write command

Write Command Parameters

AT+CMGL=[]

1) If text mode: "REC UNREAD" Received unread messages (default) "REC READ" Received read messages "STO UNSENT" Stored unsent messages "STO SENT" Stored sent messages "ALL" All messages

2) If PDU mode: 0 Received unread messages (default) 1 Received read messages 2 Stored unsent messages 3 Stored sent messages 4 All messages

Response

TA returns messages with status value from message storage to the TE. . If status of the message is 'received unread', status in the storage changes to 'received read'. 1) If text mode (+CMGF=1) and command successful: for SMS-SUBMITs and/or SMS-DELIVERs: +CMGL: ,,,[],[][,,]< LF>[ +CMGL: ,,,[],[][,,]< LF>[...]] OK 2) If PDU mode (+CMGF=0) and command successful: +CMGL:,,[], +CMGL: ,,[alpha],[...]] OK 3)If error is related to ME functionality: +CMS ERROR:

Parameters

string type alphanumeric representation of or corresponding to the entry found in MT phonebook; implementation of this feature is manufacturer specific GSM 03.40 TP-Destination-Address Address-Value field in string format; BCD numbers (or GSM default alphabet characters) are converted to characters; type of address given by In the case of SMS: GSM 03.40 TP-User-Data in text mode responses; format: -if indicates that GSM 03.38 default alphabet is used and indicates that GSM 03.40 TP-User-Data-Header-Indication is not set: ME/TA converts GSM alphabet into current TE character set according to rules of Annex A -if indicates that 8-bit or UCS2 data coding scheme is used, or indicates that GSM 03.40 TP-User-Data-Header-Indication is set: ME/TA converts each 8-bit octet into two IRA character long hexadecimal number (e.g. octet with integer value 42 is presented to TE as two characters 2A (IRA 50 and 65)) In the case of CBS: GSM 03.41 CBM Content of Message in text mode responses; format: - if indicates that GSM 03.38 default alphabet is used: ME/TA converts GSM alphabet into current TE character set according to rules of Annex A -if indicates that 8-bit or UCS2 data coding scheme is used: ME/TA converts each 8-bit octet into two IRA character long hexadecimal number

integer type value indicating in the text mode (+CMGF=1) the length of the message body (or ) in characters; or in PDU mode (+CMGF=0), the length of the actual TP data unit in octets (i.e. the RP layer SMSC address octets are not counted in the length) integer type; value in the range of location numbers supported by the associated memory GSM 03.40 TP-Originating-Address Address-Value field in string format; BCD numbers (or GSM default alphabet characters) are converted to characters; type of address given by In the case of SMS: GSM 04.11 SC address followed by GSM 03.40 TPDU in hexadecimal format: ME/TA converts each octet of TP data unit into two IRA character long hexadecimal number (e.g. octet with integer value 42 is presented to TE as two characters 2A (IRA 50 and 65)). In the case of CBS: GSM 03.41 TPDU in hexadecimal format. GSM 03.40 TP-Service-Center-Time-Stamp in time-string format (refer ) GSM 04.11 TP-Destination-Address Type-of-Address octet in integer format (when first character of is + (IRA 43) default is 145, otherwise default is 129) GSM 04.11 TP-Originating-Address Type-of-Address octet in integer format (default refer)

AT+CMGR Read SMS message

Test Command Response

AT+CMGR=?

Write Command

OK

Parameters

AT+CMGR=[,]

integer type; value in the range of location numbers supported by the associated memory 0 normal 1 not change status of the specified SMS record

Response

TA returns SMS message with location value from message storage to the TE. If status of the message is 'received unread', status in the storage changes to 'received read'. 1) If text mode (+CMGF=1) and command successful: for SMS-DELIVER: +CMGR:,,[],[,,,,,,,] for SMS-SUBMIT: +CMGR:,,[][,,,,,[],,,] 2) If PDU mode (+CMGF=0) and command successful: +CMGR: ,[], OK 3) If error is related to ME functionality: +CMS ERROR:

Parameters

string type alphanumeric representation of or corresponding to the entry found in MT phonebook; implementation of this feature is manufacturer specific GSM 03.40 TP-Destination-Address

...

...

Download as:   txt (18.6 Kb)   pdf (284 Kb)   docx (13.4 Kb)  
Continue for 11 more pages »
Only available on Essays24.com