# Sms reception

**URL:** <https://forum.legato.io/t/sms-reception/38>\
**Category:** Legato Application Framework\
**Created:** [April 23, 2014, 5:14pm UTC](https://forum.legato.io/t/sms-reception/38 "2014-04-23T17:14:32Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![arnaudlanger](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@arnaudlanger](https://forum.legato.io/u/arnaudlanger)\
**Post date:** [April 23, 2014, 5:14pm UTC](https://forum.legato.io/t/sms-reception/38/1 "2014-04-23T17:14:32Z")

</div>

Hi everyone,

I’m currently facing an issue with the event triggering (In particular with the sms reception).  
I tried to run the ModemDemo application from the legato Beta version. I created a new Legato Project for AR755X, using the Legato Application Framework Package (14.1.0.Beta.rc5), with modemDemo as a base project.

Then, I compiled, loaded and started the app with the Remote System Explorer Perspective connected to the chip.

I tried to send several sms to the sim card into the 1st slot but the handler is never triggered. Indeed the first log `LE_DEBUG("smsReceivedHandler called.");` is never shown in the LegatoConsole

My sim card is functional (I can send sms).  
The log level is at DEBUG (in the .adef file under processes section) `envVars: LE_LOG_LEVEL = DEBUG`

Has anyone an idea why the handler is not responding to the sms reception ?

KR,

---

<div class="post-metadata">

**Author:** ![esun](https://avatars.discourse-cdn.com/v4/letter/e/8e7dd6/32.png) [@esun](https://forum.legato.io/u/esun)\
**Post date:** [April 25, 2014, 9:34pm UTC](https://forum.legato.io/t/sms-reception/38/2 "2014-04-25T21:34:36Z")

</div>

Hi,

Can you copy the logs and modem status (at!gstatus?) for us to look at?

Thanks,  
Enoch

---

<div class="post-metadata">

**Author:** ![davidc](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@davidc](https://forum.legato.io/u/davidc)\
**Post date:** [April 26, 2014, 12:29am UTC](https://forum.legato.io/t/sms-reception/38/3 "2014-04-26T00:29:29Z")

</div>

Hiya,

I just had a look at the WP7 board I have, and there are three sim card holders:

2 on the dev board  
1 on the WP7 daughterboard (underneath - you need to remove the daughterboard to access it.

Which card holder are you using?

ciao, Dave

---

<div class="post-metadata">

**Author:** ![zblazek](https://avatars.discourse-cdn.com/v4/letter/z/a9adbd/32.png) [@zblazek](https://forum.legato.io/u/zblazek)\
**Post date:** [April 26, 2014, 2:24am UTC](https://forum.legato.io/t/sms-reception/38/4 "2014-04-26T02:24:00Z")

</div>

It could be that the SMS storage on the SIM is full. You can check this using AT+CPMS?, and you can delete all the messages using AT+CMGD=,4

For example, on my modem, I initially had 20 stored messages out of available storage of 50, and after deleting all the messages, I confirmed that there were no messages stored.

[code]at+cpms?  
+CPMS: “SM”,20,50,“SM”,20,50,“SM”,20,50

at+cmgd=,4  
OK

at+cpms?  
+CPMS: “SM”,0,50,“SM”,0,50,“SM”,0,50[/code]

---

<div class="post-metadata">

**Author:** ![arnaudlanger](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@arnaudlanger](https://forum.legato.io/u/arnaudlanger)\
**Post date:** [April 28, 2014, 8:50am UTC](https://forum.legato.io/t/sms-reception/38/5 "2014-04-28T08:50:00Z")

</div>

Hiya,

Indeed the problem was that the SMS storage on the SIM was full.  
I freed it with the commands you advise me to use (AT+CMGD=,4).

I have trouble to understand why the storage was full up though ? (It wasn’t full at first, I could receive sms)  
Because every handler I made, deletes the message when we are done with it, by using:

```auto
le_sms_msg_DeleteFromStorage(messagePtr);
```

How is it possible to fill up the SIM card storage ?

@davidc: I’m using the first slot on the dev board (UICC1 J800)

@esun: If you still want the status of the modem (state before freeing the storage)  
[![](http://www.heberger-image.fr/data/images/18340_at_gstatus.png)](http://www.heberger-image.fr)

Thanks for your support,

KR

---

<div class="post-metadata">

**Author:** ![zblazek](https://avatars.discourse-cdn.com/v4/letter/z/a9adbd/32.png) [@zblazek](https://forum.legato.io/u/zblazek)\
**Post date:** [April 29, 2014, 2:02am UTC](https://forum.legato.io/t/sms-reception/38/6 "2014-04-29T02:02:31Z")

</div>

Hi,

Please provide us with the output of at+cpms?. I just want to confirm that the SMS messages are being saved on the SIM. They could be saved elsewhere.

Thanks,  
Zeljko

---

<div class="post-metadata">

**Author:** ![arnaudlanger](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@arnaudlanger](https://forum.legato.io/u/arnaudlanger)\
**Post date:** [April 29, 2014, 7:35am UTC](https://forum.legato.io/t/sms-reception/38/7 "2014-04-29T07:35:22Z")

</div>

Hi,

This is the procedure I used to free the sim storage:

[![](http://www.heberger-image.fr/data/images/52621_at_cmgd.png)](http://www.heberger-image.fr)

KR,
