Difficulty in receiving sms PDU format in legato (18.6.3)

Hi everyone,

I am using sms service to receive sms

when i receive message DecodePduDeliver() function giving warning like Multi part SMS are not available yet.

i am reading message data using le_sms_GetPDU(); it is giving data in encoded format.

how to read correct message? help me on this.

here is the logs i am getting.

Jun 23 15:33:12 | sms[3714]/smsClient T=main | smsMT.c StorageMessageHandler() 125 | A Full storage SMS message is received. Type of full storage 1
Jun 23 15:33:12 | modemDaemon[879]/modemDaemon T=main | smsPdu.c DecodePduDeliver() 1241 | Multi part SMS are not available yet
Jun 23 15:33:12 | sms[3714]/smsClient T=main | smsMT.c RxMessageHandler() 41 | A New SMS message is received with ref.0x10000009
Jun 23 15:33:12 | sms[3714]/smsClient T=main | smsMT.c RxMessageHandler() 52 | Message is received from .
Jun 23 15:33:12 | sms[3714]/smsClient T=main | smsMT.c RxMessageHandler() 62 | Message timestamp is .
Jun 23 15:33:12 | sms[3714]/smsClient T=main | smsMT.c StorageMessageHandler() 125 | A Full storage SMS message is received. Type of full storage 1
Jun 23 15:33:12 | modemDaemon[879]/modemDaemon T=main | smsPdu.c DecodePduDeliver() 1241 | Multi part SMS are not available yet
Jun 23 15:33:12 | sms[3714]/smsClient T=main | smsMT.c RxMessageHandler() 41 | A New SMS message is received with ref.0x1000000d
Jun 23 15:33:12 | sms[3714]/smsClient T=main | smsMT.c RxMessageHandler() 52 | Message is received from .
Jun 23 15:33:12 | sms[3714]/smsClient T=main | smsMT.c RxMessageHandler() 62 | Message timestamp is .

@Shiva,

Hi thanks for replying,

I am using following setup for development activity :

Module: WP7607 (in custom board)
legato version : 18.06.3
Release: R10.1

sms app which i am using is (legato-af/apps/sample/sms at master · legatoproject/legato-af · GitHub).

Thanks & Regards,
Shiva

@Shiva,

What is the kind of sms sent? can you put an example to be able to reproduce your issue!
can you receive a words like : hello, welcome … ?
Have added any modifications at the source code?

Regards

Hi
I din’t modify anything in source code, receiving sms data less than 167 bytes in text format.

Any data more than 167 bytes receiving in pdu encoded format as two parts and DecodePduDeliver() function giving warning as Multi part SMS are not available yet.

Not able to decode those two parts.

Thanks & Regards,
Shiva

@Shiva,

Have you done the test with your smartphone? I did the test with a long message without a problem. Can you please describe your test?

Regards

I am sending message from mobile to WP7607,

this is the message i sent for testing,
“1234567890qwertyuiopasdfghjklzxcvbnm1234567890qwertyuiopasdfghjklzxcvbnm1234567890qwertyuiopasdfghjklzxcvbnm1234567890qwertyuiopasdfghjklzxcvbnm1234567890qwertyuiopasdfghjklzxcvbnm1234567890qwertyuiopasdfghjklzxcvbnm1234567890qwertyuiopasdfghjklzxcvbnm1234567890qwertyuiopasdfghjklzxcvbnm1234567890qwertyuiopasdfghjklzxcvbnm1234567890qwertyuiopasdfghjklzxcvbnm”

here is the log for that message.

Jan 6 00:04:55 | sms[2780]/smsClient T=main | main.c _smsClient_COMPONENT_INIT() 23 | Start SMS Sample!
Jan 6 00:05:22 | sms[2780]/smsClient T=main | smsMT.c StorageMessageHandler() 115 | A Full storage SMS message is received. Type of full storage 1
Jan 6 00:05:23 | modemDaemon[874]/modemDaemon T=main | smsPdu.c DecodePduDeliver() 1241 | Multi part SMS are not available yet
Jan 6 00:05:23 | sms[2780]/smsClient T=main | smsMT.c RxMessageHandler() 38 | A New SMS message is received with ref.0x10000003
Jan 6 00:05:23 | sms[2780]/smsClient T=main | smsMT.c RxMessageHandler() 97 | Warning! I read only Text messages!
Jan 6 00:05:23 | sms[2780]/smsClient T=main | smsMT.c StorageMessageHandler() 115 | A Full storage SMS message is received. Type of full storage 1
Jan 6 00:05:23 | modemDaemon[874]/modemDaemon T=main | smsPdu.c DecodePduDeliver() 1241 | Multi part SMS are not available yet
Jan 6 00:05:23 | sms[2780]/smsClient T=main | smsMT.c RxMessageHandler() 38 | A New SMS message is received with ref.0x10000007
Jan 6 00:05:23 | sms[2780]/smsClient T=main | smsMT.c RxMessageHandler() 97 | Warning! I read only Text messages!
Jan 6 00:05:24 | sms[2780]/smsClient T=main | smsMT.c StorageMessageHandler() 115 | A Full storage SMS message is received. Type of full storage 1
Jan 6 00:05:24 | modemDaemon[874]/modemDaemon T=main | smsPdu.c DecodePduDeliver() 1241 | Multi part SMS are not available yet
Jan 6 00:05:24 | sms[2780]/smsClient T=main | smsMT.c RxMessageHandler() 38 | A New SMS message is received with ref.0x1000000b
Jan 6 00:05:24 | sms[2780]/smsClient T=main | smsMT.c RxMessageHandler() 97 | Warning! I read only Text messages!

are you receiving data in text format or in PDU format?

Thanks & Regards,
Shiva

@Shiva, yes your message is too long. In fact, this SMS sample seems not able to read or receive the PDU message, the API * le_sms_GetPDU(), it is not used. I think you need to add it in your code to get the message PDU data.

BR

i am reading message using le_sms_GetPDU(); it is giving data in encoded format.

not able to get the data which i sent.

@Shiva, can you share the part of code where you receive and read the data?