1.1. Content of this document
This document describes the AT commands supported by the SAGEM 3xxx cellular phones family. These commands refer to 3GPP 27.007 and 27.005 GSM recommendations; nevertheless, some of the commands implemented in the SAGEM mobile phones may not be fully compatible with the 3GPP recommendations.
Depending on the model of your mobile phone, a few of the following commands may not be implemented. You can check which AT commands are available on your mobile phone using the AT+CLAC command.
For more detailed informations about specific parameter or command, you should refer to the above-noticed recommendations.
--------------------------------------------------------------------------------
1.2. Implementation of indexes
SMS and phonebook entries can be stored in either SIM card or mobile phone memory. For each type of memory, a valid range of indexes are defined. These ranges may vary according to SIM / mobile phone type. For instance, + for SMS:
When the preferred memory storage is set to SM, the indexes begin from 1 to 10 (if the SIM card supports up to 10 SMS).
When the preferred memory storage is set to ME, the indexes begin from 900 to 919 (if the Mobile equipment supports up to 20 SMS).
When the preferred memory storage is set to MT, the indexes begin from 1 to 10 (if the SIM card supports up to 10 SMS) and jump to 900 to 919 (if the Mobile equipment supports up to 20 SMS).
The reason of this implementation is to have the same numbering from a mobile point of view and a TE point of view for the user.
+ for phonebook management:
When the preferred memory storage is set to SM, the indexes begin from 1 to 80 (if the SIM card supports up to 80 phonebook entries).
When the preferred memory storage is set to ME, the indexes begin from 750 to 999 (if the Mobile equipment supports up to 250 phonebook entries).
When the preferred memory storage is set to MT, the indexes begin from 1 to 80 (if the SIM card supports up to 80 phonebook entries) and jump to 750 to 999 (if the Mobile equipment supports up to 250 phonebook entries). The reason of this implementation is to have the same numbering from a mobile point of view and a TE point of view for the user.
--------------------------------------------------------------------------------
1.3. Modification of this document
The commands described in this document are subject to change without notice, and shall only be used as
a support for usual AT commands use.
--------------------------------------------------------------------------------
2. SMS SPECIFIC COMMANDS
2.1. Text Mode
2.1.1. Set Text Mode Parameters +CSMP
Command Parameters / Possible response(s)
+CSMP=[
71 6 hours
167 24 hours (default)
173 7 days
255 63 weeks
(default 0)
Response
OK or ERROR
+CSMP? +CSMP:
+CSMP=? +CSMP:(list of supported
--------------------------------------------------------------------------------
2.1.2. Preferred Message Storage +CPMS
Command Parameters / Possible response(s)
+CPMS=
memory to which writing and sending operations are made
Response
+CPMS:
+CPMS? +CPMS:
+CPMS=? +CPMS: (list of supported
--------------------------------------------------------------------------------
2.1.3. Message Format +CMGF
Command Parameters / Possible response(s)
+CMGF=[
0 PDU mode
1 text mode
Response
OK or ERROR
+CMGF? +CMGF:
+CMGF=? +CMGF: (list of supported
--------------------------------------------------------------------------------
2.1.4. Message Service Failure Result Code +CMS ERROR:
128...255 GSM 03.40 subclause 9.2.3.22 values
300 ME failure
301 SMS service of ME reserved
302 operation not allowed
303 operation not supported
304 invalid PDU mode parameter
305 invalid text mode parameter
310 SIM not inserted
311 SIM PIN required
312 PH-SIM PIN required
313 SIM failure
314 SIM busy
315 SIM wrong
316 SIM PUK required
317 SIM PIN2 required
318 SIM PUK2 required
320 memory failure
321 invalid memory index
322 memory full
330 SMSC address unknown
331 no network service
332 network timeout
340 no +CNMA acknowledgement expected
500 unknown error
511 other values in range 256...511 are reserved
512... manufacturer specific
--------------------------------------------------------------------------------
2.1.5. Service Centre Address +CSCA
Command Parameters / Possible response(s)
+CSCA=
Center)
Response
OK or ERROR
+CSCA? +CSCA? +CSCA:
+CSCA=? +CSCA=? +CSCA: list of supported
--------------------------------------------------------------------------------
2.1.6. List Messages +CMGL
Command Command Parameters / Possible response(s)
+CMGL[=
numbers supported by the associated memory
status of message in memory; defined values:
0 "REC UNREAD" received unread message (i.e. new message)
1 "REC READ" received read message
2 "STO UNSENT" stored unsent message (only applicable to SMS)
3 "STO SENT" stored sent message (only applicable to SMS)
4 "ALL" all messages (only applicable to +CMGL command)
format
characters of the message body
GSM 03.40 TP-User-Data in text mode responses
Response
If command successful and SMS-SUBMITs and/or SMS-DELIVERs:
If
+CMGL:
[+CMGL:
If
+CMGL:
[+CMGL:
Otherwise:
+CMS ERROR:
+CMGL? +CMS ERROR:
+CMGL=? +CMGL: (list of supported
--------------------------------------------------------------------------------
2.1.7. Read Message +CMGR
Command Parameters / Possible response(s)
+CMGR=
See command above.
Response
If command successful and SMS-DELIVER:
+CMGR:
If command successful and SMS-SUBMIT:
+CMGR:
Otherwise:
+CMS ERROR:
+CMGR? +CMS ERROR:
+CMGR=? +CMS ERROR:
--------------------------------------------------------------------------------
2.1.8. Write Message to Memory +CMGW
Command Parameters / Possible response(s)
+CMGW=
text is entered
See command above.
Response
+CMGW:
+CMS ERROR:
+CMGW? +CMS ERROR:
+CMGW=? OK
--------------------------------------------------------------------------------
2.1.9. Delete Message +CMGD
Command Parameters / Possible response(s)
+CMGD=
See command above.
Response
OK or +CMS ERROR:
+CMGD? +CMS ERROR:
+CMGD=? +CMS ERROR:
--------------------------------------------------------------------------------
2.1.10. Send Message +CMGS
Command Parameters / Possible response(s)
+CMGS=
text is entered
See command above.
Response
If sending successful: +CMGS: 0
If sending fails: +CMS ERROR:
+CMGS? +CMS ERROR:
+CMGS=? OK
--------------------------------------------------------------------------------
2.1.11. Send Message from Storage +CMSS
Command Parameters / Possible response(s)
+CMSS=
See command above.
Response
If sending successful: +CMSS: 0
If sending fails: +CMS ERROR:
--------------------------------------------------------------------------------
2.1.12. New Message Indications to TE +CNMI
Command Parameters / Possible response(s)
+CNMI=
0 Buffer unsolicited result codes in the TA. If TA result
code buffer is full, the oldest indications may be discarded
and replaced with the new received indications.
1 Discard indication and reject new received message unsolicited result codes when TA-TE link is reserved (e.g. in on-line data mode). Otherwise forward them directly to the TE.
2 Buffer unsolicited result codes in the TA when TA-TE link is reserved (e.g. in on-line data mode) and flush them to the TE after reservation. Otherwise forward them directly to the TE.
0 No SMS-DELIVER indications are routed to the TE.
1 If SMS-DELIVER is stored into ME/TA, indication of the memory location is routed to the TE using unsolicited result code +CMTI:
0 No CBM indications are routed to the TE.
0 No SMS-STATUS-REPORTs are routed to the TE.
0 TA buffer of unsolicited result codes defined within this
command is flushed to the TE when
response shall be given before flushing the codes).
1 TA buffer of unsolicited result codes defined within this
command is cleared when
Response
ERROR
+CNMI? +CNMI:
+CNMI=? +CNMI=? +CNMI: ?
No comments :
Post a Comment