# Difficulty in receiving sms PDU format in legato (18.6.3)

**URL:** <https://forum.legato.io/t/difficulty-in-receiving-sms-pdu-format-in-legato-18-6-3/4451>\
**Category:** Uncategorized\
**Created:** [June 23, 2019, 3:40pm UTC](https://forum.legato.io/t/difficulty-in-receiving-sms-pdu-format-in-legato-18-6-3/4451 "2019-06-23T15:40:34Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shiva](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@Shiva](https://forum.legato.io/u/Shiva)\
**Post date:** [June 23, 2019, 3:40pm UTC](https://forum.legato.io/t/difficulty-in-receiving-sms-pdu-format-in-legato-18-6-3/4451/1 "2019-06-23T15:40:34Z")

</div>

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 .

---

<div class="post-metadata">

**Author:** ![mehdiALL1](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@mehdiALL1](https://forum.legato.io/u/mehdiALL1)\
**Post date:** [July 18, 2019, 1:41pm UTC](https://forum.legato.io/t/difficulty-in-receiving-sms-pdu-format-in-legato-18-6-3/4451/2 "2019-07-18T13:41:46Z")

</div>

@Shiva,

- You use the sms app ([legato-af/apps/sample/sms at master · legatoproject/legato-af · GitHub](https://github.com/legatoproject/legato-af/tree/master/apps/sample/sms)) or your own app based on sms.api ?
- You use which module and legato version/release ?  
BR

---

<div class="post-metadata">

**Author:** ![Shiva](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@Shiva](https://forum.legato.io/u/Shiva)\
**Post date:** [July 19, 2019, 4:51am UTC](https://forum.legato.io/t/difficulty-in-receiving-sms-pdu-format-in-legato-18-6-3/4451/3 "2019-07-19T04:51:35Z")

</div>

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](https://github.com/legatoproject/legato-af/tree/master/apps/sample/sms)).

Thanks & Regards,  
Shiva

---

<div class="post-metadata">

**Author:** ![mehdiALL1](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@mehdiALL1](https://forum.legato.io/u/mehdiALL1)\
**Post date:** [July 22, 2019, 9:17am UTC](https://forum.legato.io/t/difficulty-in-receiving-sms-pdu-format-in-legato-18-6-3/4451/4 "2019-07-22T09:17:56Z")

</div>

@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

---

<div class="post-metadata">

**Author:** ![Shiva](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@Shiva](https://forum.legato.io/u/Shiva)\
**Post date:** [July 23, 2019, 4:52am UTC](https://forum.legato.io/t/difficulty-in-receiving-sms-pdu-format-in-legato-18-6-3/4451/5 "2019-07-23T04:52:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mehdiALL1](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@mehdiALL1](https://forum.legato.io/u/mehdiALL1)\
**Post date:** [August 1, 2019, 8:58am UTC](https://forum.legato.io/t/difficulty-in-receiving-sms-pdu-format-in-legato-18-6-3/4451/6 "2019-08-01T08:58:24Z")

</div>

@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

---

<div class="post-metadata">

**Author:** ![Shiva](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@Shiva](https://forum.legato.io/u/Shiva)\
**Post date:** [August 1, 2019, 12:13pm UTC](https://forum.legato.io/t/difficulty-in-receiving-sms-pdu-format-in-legato-18-6-3/4451/7 "2019-08-01T12:13:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mehdiALL1](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@mehdiALL1](https://forum.legato.io/u/mehdiALL1)\
**Post date:** [August 6, 2019, 1:31pm UTC](https://forum.legato.io/t/difficulty-in-receiving-sms-pdu-format-in-legato-18-6-3/4451/8 "2019-08-06T13:31:07Z")

</div>

@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()](https://docs.legato.io/latest/le __sms__ interface_8h.html#a77555788d56f73fa52f56904cd39cd2f), it is not used. I think you need to add it in your code to get the message PDU data.

BR

---

<div class="post-metadata">

**Author:** ![Shiva](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@Shiva](https://forum.legato.io/u/Shiva)\
**Post date:** [August 7, 2019, 1:42pm UTC](https://forum.legato.io/t/difficulty-in-receiving-sms-pdu-format-in-legato-18-6-3/4451/9 "2019-08-07T13:42:59Z")

</div>

i am reading message using le\_sms\_GetPDU(); it is giving data in encoded format.

not able to get the data which i sent.

---

<div class="post-metadata">

**Author:** ![mehdiALL1](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@mehdiALL1](https://forum.legato.io/u/mehdiALL1)\
**Post date:** [September 3, 2019, 4:04pm UTC](https://forum.legato.io/t/difficulty-in-receiving-sms-pdu-format-in-legato-18-6-3/4451/10 "2019-09-03T16:04:00Z")

</div>

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