将pdu模式转换为文本模式 [英] converting pdu mode to text mode

查看:155
本文介绍了将pdu模式转换为文本模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用"at + cmgl和at + cmgr"命令从手机中检索短信.由于手机不支持文本模式,因此结果以pdu模式显示.我如何将pdu结果转换为文本.谢谢

i am trying to retrieve sms from my phone using the "at+cmgl and at+cmgr" commands. the results are in pdu mode since the phone does not support the text mode. how can i convert the pdu result to text. thank you

推荐答案

您需要将PDU解析为易于阅读的文本(如果存在).请考虑以下内容(如果在SMPP 3.3/3.4中)

http://en.wikipedia.org/wiki/SMPP [ http://www.spboss.com/download/%E8%BF%90% E8%90%A5%E5%95%86%E9%80%9A%E8%AE%AF%E5%8D%8F%E8%AE%AE/SMPP_v3_4_Issue1_2.pdf [
You need to parese the PDU back into human readable text if any exist. Consider the following (if it is in SMPP 3.3/3.4)

http://en.wikipedia.org/wiki/SMPP[^]

This will give you a little insight on how the PDU is constructed and can be deconstructed. Specifically, the link at the bottom of the page to the SMPP 3.4 specification (http://www.spboss.com/download/%E8%BF%90%E8%90%A5%E5%95%86%E9%80%9A%E8%AE%AF%E5%8D%8F%E8%AE%AE/SMPP_v3_4_Issue1_2.pdf[^]) will show you exactly how many bytes are for what.

Give it a try and post back if you get stuck in your programming.


这篇关于将pdu模式转换为文本模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆