导航

使用AT指令给飞信号发短信失败

使用AT指令给飞信号发短信失败

已经成功,见后文: http://www.cnblogs.com/xilifeng/archive/2013/04/06/3002628.html

目标:
8612 5201 5923 1840 63
6821 2510 9532 8104 36
682125109532810436

信息内容
土豆小姐
\u571f\u8c46\u5c0f\u59d0
571F 8C46 5C0F 59D0
571F8C465C0F59D0
16/2=8=>08
08571F8C465C0F59D0

0891683108200305F01000D9168212510953281043600080008571F8C465C0F59D0

1000D9168212510953281043600080008571F8C465C0F59D0

 

addr=0891683108200305F0

phone=682125109532810436
msg=08571F8C465C0F59D0

phone=11000D91+phone
phone=11000D91682125109532810436
phone=phone+000800+msg
phone=11000D9168212510953281043600080008571F8C465C0F59D0
11000D9168212510953281043600080008571F8C465C0F59D0
50/2=25

addr+phone=
0891683108200305F011000D9168212510953281043600080008571F8C465C0F59D0

2013年04月06日01时37分55秒
AT+CMGF=0
OK
AT+CMGS=25
> 0891683108200305F01000D9168212510953281043600080008571F8C465C0F59D0
ERROR
AT+CMGF=0
OK
AT+CMGS=25AT+CMGS=25
ERROR
AT+CMGS=25
> 0891683108200305F011000D9168212510953281043600080008571F8C465C0F59D0
ERROR

与发送成功的对比:

at+cmgs=25
> 0891683108200305F011000D91685112059236F90008000A5DE54F5C61095FEBFF01
+CMGS: 159

 

0891 丨683108200305F0丨11000D91丨685112059236F9丨000800丨0A丨5DE54F5C61095FEBFF01

0891丨 683108200305F0丨11000D91丨682125109532810436丨000800丨08丨571F8C465C0F59D0

那么,如果短信号码不加86呢?

0891丨 683108200305F0丨11000D91丨682125109532810436丨000800丨08丨571F8C465C0F59D0

变成

0891丨 683108200305F0丨11000D91丨2125109532810436丨000800丨08丨571F8C465C0F59D0

也就是

0891683108200305F011000D91212510953281043600080008571F8C465C0F59D0

相应指令改为

AT+CMGF=0

 

AT+CMGS=24

解雇也是错误,这是为什么?怎么解决?

AT+CMGF=0
OK
AT+CMGS=24
> 0891683108200305F011000D91212510953281043600080008571F8C465C0F59D0
ERROR

2013年4月6日 01:59:26

 

 

已经成功,见后文:

http://www.cnblogs.com/xilifeng/archive/2013/04/06/3002628.html


posted on 2013-04-06 01:59  淅沥枫  阅读(427)  评论(0编辑  收藏  举报