Справочник Пользователя для Motorola G24

Скачать
Страница из 642
Chapter 3:  AT Commands Reference
 December  31, 2007
AT Commands Reference Manual
3-101
+CMGF, Message Format 
This command is a basic command. The Set command handles the selection of the message 
format used with send, list, read and write commands, as well as the format of unsolicited result 
codes resulting from message receipts. The G24 supports both PDU mode (where entire TP data 
units are used) and text mode (where the body of the message and its headers are given as 
separate parameters).
The following table shows the +CMGF parameters.
Example
AT+CMGF=1
OK
AT+CMGF?
+CMGF: 1
OK
AT+CMGF=?
+CMGF: (0,1)
OK
+CSCA, Service Center Address 
This command handles the selection of the SCA and the TOSCA. The SCA is the phone number 
of the SC (Service Center). The TOSCA can be 129 (local) or 145 (international), where 129 is 
the default value. The TOSCA parameter of the Set command is optional, and can be omitted. If 
the SCA parameter of the Set command is prefixed by the "+" character, it indicates that TOSCA 
is 145.
Command Type
Syntax
Response/Action
Remarks
Set
+CMGF=<mode>
OK
or:
+CMS ERROR: <err>
The Set command sets the message 
format to use.
Read
+CMGF?
+CMGF:<mode>
The Read command displays the 
current message format.
Test
+CMGF=?
+CMGF:(list of 
supported <mode>s)
The Test command lists all the 
supported message formats.
Table 3-53: +CMGF Parameters
<Parameter>
Description
<mode>
Message format:
0
PDU mode (default)
1 Text 
mode