Send Unicode (USC2) SMS with AT commands

时光怂恿深爱的人放手 提交于 2019-12-17 20:27:27

问题


I am trying to send Unicode SMS using at commands and USC2 encoding. But it doesn't work, as I get errors. Here is my inputs:

AT
OK
AT+CSCS = ? 
+CSCS: ("IRA","GSM","UCS2")
AT+CSCS="UCS2"
OK
AT+CMGF=1
OK
AT+CSMP=1,167,0,8 //So this one doesnt work, let's try with 17,167,0,8
ERROR

AT+CSMP=17,167,0,8
OK
AT+CMGS="+370********"
ERROR

Or maybe I should use PDU mode to achieve this?

I have tried using older modem, and USC2 works in that one, however not in one im using. But im sure this conflicting modem supports USC2.


回答1:


I found I just needed to encode my number in AT+CMGS to UCS2, and now it works:

AT+CMGS="002B003300370030************************"


来源:https://stackoverflow.com/questions/24950901/send-unicode-usc2-sms-with-at-commands

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!