Creating an SMS in 7 bit PDU format.
| Mon, 2008-02-11 19:22 | |
|
Can anyone help. I have been tearing my hair out for weeks. I am trying to create an application that sends a message in 7bit Pdu format, At the moment, the applicatiion is ony veing tested on the emulator . I call the necessary API calls with the CSmsMessage and CSmsPDU classes. I created a log and see that the message I am trying to create and send is correctly converted. i.e 11 00 0B 91 64 07 28 15 53 F8 00 00 AA 0A E8 32 9B FD 46 97 D9 EC 37. Everything seems to be OK except that the first two bytes should be 00 or the lenth of the SM service centre and then 11 00 and so on. This might be OK though. The problem is when I create the message and put in the OutBox folder for sending, I open up the messaging application to check that the message is there, there is a slot that has been created for the new outgoing message but there is no phone number, details or message when I select the newly created SMS. I would expect the MESSAGING application for the emulator to be able to read and display a 7 bit SMS PDU messages! But I think the problem could be I am not copying the PDU information correctly into the SMS message body. These are the function calls I am using to put the pdu data into a message. //do user settings HBufC* tmp = HBufC::NewLC( aSmsMessage.Length() ); TGsmSms *sms = new (ELeave) TGsmSms ; SmsClientMtm->SaveMessageL(); I have created SMS text messages so I do have some knowledge of createing SMS messages. So could anyone tell me where I might be going wrong. I am using UIQ3.1 Symbian OS 9.1, so the cSMS ode should be relevant for S60. Thanks in advance Oldman |
|





