HUAWEI MG323 GSM M2M Module

 

AT Command Interface Specification

Commands for the Phone Book

13.2.2 Writing a Record into the Phone Book

Write AT+CPBW=[<index>][,<number>[,<type>[,<text>]]] command

Function Writes a record into the phone book.

Response z In case of successful execution: <CR><LF>OK<CR><LF>

zIn case of an error during command execution: <CR><LF>ERROR<CR><LF>

zIn 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.

z145: The phone number contains the international access code “+”.

z129: 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

Issue 02 (2010-11-23)

Huawei Proprietary and Confidential

187

Copyright © Huawei Technologies Co., Ltd.

 

 

Page 204
Image 204
Huawei MG323 Writing a Record into the Phone Book, Example Query the parameter range supported by this command, At+ Cpbw=?