mt2503[AT Command]CPBR 读取电话本少 "+"号

来源:互联网 发布:海思监控客户端软件 编辑:程序博客网 时间:2024/05/16 07:25
[DESCRIPTION]

写入联系人:AT+CPBW=6,"+13456170265",145,"006D006E0075006D",0,1
OK
用AT+CPBR读出时丢掉了"+"号,返回+CPBR: 6, "13456170265", 145,
"006D006E0075006D"
OK


[SOLUTION]

+CPBR: 6, "13456170265", 145, "006D006E0075006D"
OK
145就代表"+" ,请参考spec 27.007对CPBR的规范,
[+CPBR: <index1>,<number>,<type>...
<index1>, <index2>, <index>: integer type values in the range of location
numbers of phonebookmemory
<number>: string type phone number of format <type>
<type>: type of address octet in integer format (refer 3GPP TS 24.008 [8]  subclause 10.5.4.7)

这里的number指phone number,没有规定要带"+",而类型由type表示,所以在CPBR返回的number没有包含"+",如果UI需要"+",可以通过判断type来添加。

资料来源:一牛网论坛MT2503

原创粉丝点击