直接看代码吧:
AT
OK
ATE0
OK
AT+CMEE=1
OK
AT+CMGF?
+CMGF: 0 OK
AT+CSMS?
+CSMS: 1,1,1,1 OK
AT+CNMI?
+CNMI: 2,1,0,1,1 OK
AT+CSCS?
+CSCS: "GSM" OK
AT+CPMS?
+CPMS: "SM",15,50,"SM",15,50 OK
AT+CSMS=1
+CSMS: 1,1,1 OK
AT+CNMI=2,1,0,1,1
OK
AT+CSCA?
+CSCA: "+8613800898500",145 OK
AT+CMGS=50
>
0031000BA18106011234F40008C48400280031002F0032002900208FD9662F6D4B8BD5957F77ED4FE17B2C0020003100206761FF0C5982679C8BEF53D19001523060A87684624B673A8BF789C18C05FF0C540E976276845B5753EF4EE54E0D770B7684FF0C7EAF7CB9662F4E3A4E8651D1591F003700304E2A5B57FF0C96BE905373B057288FD84E0D591F003700304E2A5B57
+CMGS: 15 OK(这里返回错误:+CMS ERROR: 8 +CMS ERROR: 512 +CMS ERROR: 514)
+CDS: 00060F0BA13146681234F4418050314455234180503154002342 (这里经常返回42,00是正常,但42不知道是什么意思,而且当此处为42的时候,短信接收不到)
主要是两个问题,代码中都标识了:
1 错误信息+CMS ERROR: 8 +CMS ERROR: 512 +CMS ERROR: 514 代表什么,怎么解决?
2 短信状态报告最后两位返回42时代表什么意思,如何解决?
|