samuel_1991 0 Junior Poster in Training

Hi, I got a question on how to convert SMS PDU code in a VB.NET application. All I need is just a function to convert a given PDU code.

Well, I have googled for it, and this is what I got:

Source: http://www.rednaxela.net/pdu.php, http://www.codeproject.com/KB/IP/PDUDecoder.aspx?msg=934853

But I got an issue: If I use a String to PDU convertor (Eg: http://www.codeproject.com/KB/IP/PDUEncoder.aspx), and if the text is an Unicode (Data Coding Scheme is 8 instead of 0) to generate a super long text (More than 70 characters, regardless if the text is plain alphabets that can be used 0 instead or contains special foreign language characters), it does not work well. (At the last few of the characters will get some garbage / unable to decode text.)

Interestingly, http://www.scampers.org/steve/sms/libraries.htm#gsmcommfaq (One of the SMS library: GSMCommShared.dll, GSMCommunication.dll, ) has a FAQ saying "For Smart Messaging (concatenated SMS messages) only creating and sending of Unicode messages is supported, decoding does not work."

So I wonder how to implement the PDU convertor in Unicode Concatentated SMS messages? (As I plan to write a function for it by getting it's RawData)

By the way, is there any other way to implement SMS feature (SMS library)?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.