Huawei MG323 Recording Equipment User Manual


 
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification Commands for the Phone Book
Issue 02 (2010-11-23)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
187
13.2.2 Writing a Record into the Phone Book
Write
command
AT+CPBW=[<index>][,<number>[,<type>[,<text>]]]
Function
Writes a record into the phone book.
Response
z
In case of successful execution: <CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Note:
<number> or <text> can be left blank, but cannot be left blank simultaneously.
Parameter description
<number>: string, which indicates the phone number.
<type>: integer, which indicates the format of a phone number.
z
145: The phone number contains the international access code “+”.
z
129: The phone number does not contain the international access code “+”.
<text>: string, which indicates the name whose maximum length is <tlength>. The
character type is specified by the AT+CSCS command.
13.2.3 Examples
Example 1:
Query the parameter range supported by this command.
AT+ CPBW=?
+CPBW: (1-250),40,(129,145),16
OK
Example 2:
Write a record into the phone book.
AT+CPBW=“5”,“13903702805”,,“test”
OK