Wednesday 15 June 2011

c# - How can I decode PDU with GSMComm or PduBitPacker? -


I want to decode the PDU text from the GSM modem in CD #, I will call it GSMM Or PduBitPacker ?

Please reply me with a code

TY

(PS I have encoded the text and I do not need it to get it from the modem )

Ensure that you can include PDUConverter.dll in your project. incoming SMSPDMS = incoming SMSPD.doc ("079 9 9 9, 5004100640C9189399878168400003160915151238110050003110202C26735B94D87DF41", true); Console.WriteLine (sms.UserDataText);

The first argument of the decode is your RAW PDI string with the header at the end, the second argument is a flag that the header is present, tells the decoder.

You will get SMS text of UserDataText inside.

If you initially see the strangeness character, then the reason is that you have a "smart message", which is a multi-part SMS that should be added to one big message, this One trick is invented by Nokia.

If you want to deal with this smart messaging thing then class GSMMC.pdc.com: smartmessaging.smartmess decoder can be of help.

No comments:

Post a Comment