GSM Modem Send Message in UCS2 format error

大城市里の小女人 提交于 2019-11-28 01:33:55

I think you are encoding the <da> address argument to AT+CMGS incorrectly.

You refer to 91 and 92 style, but are you actually referring to the '81'/'82' format as explained in the Coding of Alpha fields in the SIM for UCS2 blog post about encoding as specified in 3GPP TS 11.11?

After you run AT+CSCS="UCS2" every single string must be encoded that way, so for instance to switch from UCS2 to UTF-8 would be AT+CSCS="005500540046002D0038".

Alpha fields with 80/81/82 encoding only applies to some cases, and not UCS2 encoded strings in general. In particular notice that the encoding of the string "UTF-8" in the above AT+CSCS command has nothing to do with this. That also applies to the <da> argument to AT+CMGS.

It is very possible that your modem does not support the CMGS with UCS2.

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