# WP7702 fails to switch off radio

**URL:** <https://forum.legato.io/t/wp7702-fails-to-switch-off-radio/6594>\
**Category:** Legato Application Framework\
**Created:** [September 20, 2023, 8:36am UTC](https://forum.legato.io/t/wp7702-fails-to-switch-off-radio/6594 "2023-09-20T08:36:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shommersom](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@shommersom](https://forum.legato.io/u/shommersom)\
**Post date:** [September 20, 2023, 8:37am UTC](https://forum.legato.io/t/wp7702-fails-to-switch-off-radio/6594/1 "2023-09-20T08:37:00Z")

</div>

We are seeing some rare issues when doing a test that continuously tries to connect in a test that powers the device for a while and then unpowers it for a while. We’ve added some code that uploads the logfile when it failed to connect on previous attemps and we’re seeing a strange thing where rarely the gateway fails to switch off the radio using `le_mrc_SetRadioPower(LE_OFF); `

This the excerpt from a correct device:

```auto
 myAt[1253]/at T=main | atCommands.c PrintLine() 340 | Unsollicited: 2023-09-19 05:57:38: Cannot Establish connection, switch radio off
 dcsDaemon[1162]/dcsCellular T=main | dcsCellular.c DcsCellularConnEventStateHandler() 254 | State of connection 1 transitioned from up to down
 dcsDaemon[1162]/dcsCellular T=main | dcsCellular.c le_dcsCellular_RetryConn() 1300 | Initiated retrying connection 1; retry attempt 1, backoff 1 secs
 dcsDaemon[1162]/dcsCellular T=main | dcsCellular.c DcsCellularConnEventStateHandler() 311 | Wait for the next retry before failing connection 1
 dcsDaemon[1162]/dcsDaemon T=main | dcsServer.c ChannelEventHandler() 780 | Received for channel reference 0x1a9 event Temporary Down

```

In the case where it fails we see the following:

```auto
myAt[1250]/at T=main | atCommands.c PrintLine() 340 | Unsollicited: 2023-09-20 08:18:35: Cannot Establish connection, switch radio off
swi-mdm9x28-wp user.warn kernel: [208.409847] PSM: Modem oprt mode - 6

```

What does this error mean, and what can we do to clear it? As it looks like it is only cleared with a full power cycle and not with an AT!RESET or similar.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [September 20, 2023, 8:52am UTC](https://forum.legato.io/t/wp7702-fails-to-switch-off-radio/6594/2 "2023-09-20T08:52:53Z")

</div>

When you use “cm radio off”, it actually uses le\_mrc\_SetRadioPower(LE\_OFF).  
After that you can check at+cfun?, it will return “+CFUN: 0”.

have you tried using AT command instead?

---

<div class="post-metadata">

**Author:** ![shommersom](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@shommersom](https://forum.legato.io/u/shommersom)\
**Post date:** [September 20, 2023, 12:31pm UTC](https://forum.legato.io/t/wp7702-fails-to-switch-off-radio/6594/3 "2023-09-20T12:31:44Z")

</div>

Unfortunately this was only passive data collection, so I don’t have that date. I will see if I can get one on my desk with this issue.

---

<div class="post-metadata">

**Author:** ![shommersom](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@shommersom](https://forum.legato.io/u/shommersom)\
**Post date:** [September 22, 2023, 9:59am UTC](https://forum.legato.io/t/wp7702-fails-to-switch-off-radio/6594/4 "2023-09-22T09:59:24Z")

</div>

I’ve still been unable to reproduce this issue, but it has only happened so far when the sim was suspended.

I will see if I can find time next week to see if I can replicate it.
