使用 AT 命令发送 Unicode (USC2) 短信 [英] Send Unicode (USC2) SMS with AT commands
本文介绍了使用 AT 命令发送 Unicode (USC2) 短信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用 at 命令和 USC2 编码发送 Unicode SMS.但它不起作用,因为我收到错误.这是我的输入:
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
或者也许我应该使用 PDU 模式来实现这一点?
Or maybe I should use PDU mode to achieve this?
我曾尝试使用较旧的调制解调器,并且 USC2 可以在该调制解调器中使用,但我正在使用的调制解调器中没有.但我确定这个有冲突的调制解调器支持 USC2.
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.
推荐答案
我发现我只需要将我在 AT+CMGS 中的号码编码为 UCS2,现在它可以工作了:
I found I just needed to encode my number in AT+CMGS to UCS2, and now it works:
AT+CMGS="002B003300370030************************"
这篇关于使用 AT 命令发送 Unicode (USC2) 短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文