# M-Som Network Standby Sleep

**URL:** <https://community.particle.io/t/m-som-network-standby-sleep/69778>\
**Category:** Firmware\
**Tags:** m404\
**Created:** [July 3, 2025, 4:17pm UTC](https://community.particle.io/t/m-som-network-standby-sleep/69778 "2025-07-03T16:17:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SammyG](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/sammyg/32/19920_2.png) [@SammyG](https://community.particle.io/u/SammyG)\
**Post date:** [July 3, 2025, 4:17pm UTC](https://community.particle.io/t/m-som-network-standby-sleep/69778/1 "2025-07-03T16:17:02Z")

</div>

Testing out some sleep scenarios with my M404, and I am having some issues when I try to sleep with network standby.

Looking at the [sleep docs](https://docs.particle.io/reference/device-os/api/sleep-sleep/network-systemsleepconfiguration/), I see the note where `Wake on network is not supported on the P2, Photon 2, M-SoM.`

I'm not looking to wake from network, but I would like to keep the modem on while sleeping. For instances when we would be publishing quicker than every 10 minutes.

So I am trying to implement  
`.network(NETWORK_INTERFACE_CELLULAR, SystemSleepNetworkFlag::INACTIVE_STANDBY);`

However the following sleep calls do not put the M-Som to sleep:

```auto
SystemSleepConfiguration config;
config.mode(SystemSleepMode::STOP)
      .network(NETWORK_INTERFACE_CELLULAR);
      .duration(10min);
System.sleep(config);

```

```auto
SystemSleepConfiguration config;
config.mode(SystemSleepMode::STOP)
      .network(NETWORK_INTERFACE_CELLULAR, SystemSleepNetworkFlag::INACTIVE_STANDBY);
      .duration(10min);
System.sleep(config);

```

```auto
SystemSleepConfiguration config;
config.mode(SystemSleepMode::ULTRA_LOW_POWER)
      .network(NETWORK_INTERFACE_CELLULAR);
      .duration(10min);
System.sleep(config);

```

```auto
SystemSleepConfiguration config;
config.mode(SystemSleepMode::ULTRA_LOW_POWER)
      .network(NETWORK_INTERFACE_CELLULAR, SystemSleepNetworkFlag::INACTIVE_STANDBY);
      .duration(10min);
System.sleep(config);

```

HIBERNATE works as expected (obviously no network standby during HIBERNATE)

```auto
    SystemSleepConfiguration config;
    config.mode(SystemSleepMode::HIBERNATE)
        .duration(60min);
    System.sleep(config);

```

Is there no option to keep the modem connected while sleeping with the M-Som?

---

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [July 3, 2025, 4:44pm UTC](https://community.particle.io/t/m-som-network-standby-sleep/69778/2 "2025-07-03T16:44:30Z")

</div>

Basically `.network(NETWORK_INTERFACE_CELLULAR)` can't be specified on RTL872x. Your use case makes sense, but you can't do that because it will fail validation of the sleep configuration and not go to sleep. There is no way to keep the cellular modem connected in sleep, unfortunately.

---

<div class="post-metadata">

**Author:** ![SammyG](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/sammyg/32/19920_2.png) [@SammyG](https://community.particle.io/u/SammyG)\
**Post date:** [July 3, 2025, 4:47pm UTC](https://community.particle.io/t/m-som-network-standby-sleep/69778/3 "2025-07-03T16:47:10Z")

</div>

So best option is to stay awake if sleeping less than 10 mins, so we don't get kicked off the network from too many reconnects?

---

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [July 3, 2025, 5:50pm UTC](https://community.particle.io/t/m-som-network-standby-sleep/69778/4 "2025-07-03T17:50:05Z")

</div>

Yes, that's really the only option.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/6/4/64635adccc35238caa19e9b553ec3e98b163d026.png) [@system](https://community.particle.io/u/system)\
**Post date:** [August 3, 2025, 3:50am UTC](https://community.particle.io/t/m-som-network-standby-sleep/69778/5 "2025-08-03T03:50:17Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
