发送与PDU格式的串联SMS



先生,我已经通过AT命令发送了PDU FERATE中的SMS。AT CMGS = 180011000C912933334241140000AA04D370DA0C

消息发送成功。但是当我尝试使用UDH&udhl我正在使用以下命令,但向我显示错误.....AT CMGS = 240011000C912933334241140000AA05000303020204D370DA0C我的代码中有什么错,请帮助我。

它编码7位吗?我本人正在尝试解决这个问题,问题本身是您的UDH需要填充消息部分(04D370DA0C)(至少在我的情况下)。

下面的文本来自https://en.wikipedia.org/wiki/concatenated_sms#pdu_mode_sms

the UDH is a total of (number of octets x bit size of octets) 6 x 8 = 48 bits long. Therefore, a single bit of padding has to be prepended to the message. The UDH is therefore (bits for UDH / bits per septet) = (48 + 1)/7 = 7 septets in length.
With a message of "Hello world", the [message] is encoded as
90 65 36 FB 0D BA BF E5 6C 32
as you need to prepend the least significant bits of the next 7bit 
character whereas without padding, the [message] would be
C8 32 9B FD 06 DD DF 72 36 19
and the UDL is 7 (header septets) + 11 (message septets) = 18 septets.

最新更新