# modemDaemon service - le\_sms error

**URL:** <https://forum.legato.io/t/modemdaemon-service-le-sms-error/4385>\
**Category:** Legato Application Framework\
**Created:** [June 6, 2019, 10:18am UTC](https://forum.legato.io/t/modemdaemon-service-le-sms-error/4385 "2019-06-06T10:18:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![annaertd](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@annaertd](https://forum.legato.io/u/annaertd)\
**Post date:** [June 6, 2019, 10:18am UTC](https://forum.legato.io/t/modemdaemon-service-le-sms-error/4385/1 "2019-06-06T10:18:30Z")

</div>

Hi,

I use a WP7607 with firmware release R12 (legato 18.10.3).

When I use _cm tools_ without any custom apps, I see that my syslog contains SMS errors while I don’t use sms functionality:  
_le\_sms.c CloseSessionEventHandler() 2181 | SessionRef (xxx) has been closed_

What could be the root cause of this?  
What does this indicate?

Greetings,  
annaertd

_Jun 6 11:57:55 swi-mdm9x28-wp user.err Legato: =ERR= | modemDaemon[951]/modemDaemon T=main | le\_sms.c CloseSessionEventHandler() 2181 | SessionRef (0x7f61c484) has been closed_  
_Jun 6 11:57:58 swi-mdm9x28-wp user.err Legato: =ERR= | modemDaemon[951]/modemDaemon T=main | le\_sms.c CloseSessionEventHandler() 2181 | SessionRef (0x7f61bf64) has been closed_  
_Jun 6 11:58:01 swi-mdm9x28-wp user.err Legato: =ERR= | modemDaemon[951]/modemDaemon T=main | le\_sms.c CloseSessionEventHandler() 2181 | SessionRef (0x7f61c484) has been closed_  
_Jun 6 11:58:01 swi-mdm9x28-wp user.err Legato: =ERR= | modemDaemon[951]/modemDaemon T=main | le\_sms.c CloseSessionEventHandler() 2181 | SessionRef (0x7f61bf64) has been closed_  
_Jun 6 12:06:38 swi-mdm9x28-wp user.err Legato: =ERR= | modemDaemon[951]/modemDaemon T=main | le\_sms.c CloseSessionEventHandler() 2181 | SessionRef (0x7f61c484) has been closed_  
_Jun 6 12:06:52 swi-mdm9x28-wp user.err Legato: =ERR= | modemDaemon[951]/modemDaemon T=main | le\_sms.c CloseSessionEventHandler() 2181 | SessionRef (0x7f61bf64) has been closed_  
_Jun 6 12:09:11 swi-mdm9x28-wp user.err Legato: =ERR= | modemDaemon[951]/modemDaemon T=main | le\_sms.c CloseSessionEventHandler() 2181 | SessionRef (0x7f61c484) has been closed_  
_Jun 6 12:09:29 swi-mdm9x28-wp user.err Legato: =ERR= | modemDaemon[951]/modemDaemon T=main | le\_sms.c CloseSessionEventHandler() 2181 | SessionRef (0x7f61bf64) has been closed_  
_Jun 6 12:09:43 swi-mdm9x28-wp user.err Legato: =ERR= | modemDaemon[951]/modemDaemon T=main | le\_sms.c CloseSessionEventHandler() 2181 | SessionRef (0x7f61c484) has been closed_

---

<div class="post-metadata">

**Author:** ![sast5](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@sast5](https://forum.legato.io/u/sast5)\
**Post date:** [June 7, 2019, 3:52am UTC](https://forum.legato.io/t/modemdaemon-service-le-sms-error/4385/2 "2019-06-07T03:52:50Z")

</div>

This happens to me as well (i assume all legato versions) but I don’t think it does anything bad IDK why it says error though must just be how they close it

---

<div class="post-metadata">

**Author:** ![plu](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@plu](https://forum.legato.io/u/plu)\
**Post date:** [June 13, 2019, 1:15pm UTC](https://forum.legato.io/t/modemdaemon-service-le-sms-error/4385/3 "2019-06-13T13:15:40Z")

</div>

hi @annaertd,  
can you describe in detail your use case? regarding the cm tool what did you do exactly? can you list the commands? may be one of them is using the sms service .  
Best regards,

---

<div class="post-metadata">

**Author:** ![plu](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@plu](https://forum.legato.io/u/plu)\
**Post date:** [June 13, 2019, 1:49pm UTC](https://forum.legato.io/t/modemdaemon-service-le-sms-error/4385/4 "2019-06-13T13:49:58Z")

</div>

Hi @annaertd@sast5,  
cm tool in fact binds all the services, and when its action is ended, it closes all of them.

regarding the SMS service, instead of having a debug message , as it is done for the other service, the function LE\_ERROR is used in the close function.  
This is the reason why you can see the warning into the logread.

so to solve that, you can modify into the open source file le\_sms.c , the function CloseSessionEventHandler

```auto
// Clean session context.
    LE_ERROR("SessionRef (%p) has been closed", sessionRef);

```

by

```auto
// Clean session context.
    LE_DEBUG("SessionRef (%p) has been closed", sessionRef);

```

Best Regards,

---

<div class="post-metadata">

**Author:** ![sast5](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@sast5](https://forum.legato.io/u/sast5)\
**Post date:** [June 13, 2019, 9:30pm UTC](https://forum.legato.io/t/modemdaemon-service-le-sms-error/4385/5 "2019-06-13T21:30:57Z")

</div>

Thank you there is other stuff that uses the =ERR= instead of DEBUG or INFO or even WARN which is weird not an issue but it was weird at first to see random errors all the time even though it was working fine.
