Click here to Skip to main content
15,913,722 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900