Skip to content

Fixed hibernate / poweroff for BLE companions and repeaters to stay at uA#2895

Open
IoTThinks wants to merge 6 commits into
meshcore-dev:devfrom
IoTThinks:MCdev-Fixed-poweroff-to-uA-202607
Open

Fixed hibernate / poweroff for BLE companions and repeaters to stay at uA#2895
IoTThinks wants to merge 6 commits into
meshcore-dev:devfrom
IoTThinks:MCdev-Fixed-poweroff-to-uA-202607

Conversation

@IoTThinks

@IoTThinks IoTThinks commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Hi all,
This is another big PR to fix hibernate / poweroff for BLE companions and repeaters to stay at uA. E.g: Heltec v4 is at 13uA (not mA).
When hibernating / powerOff, the device with 3000 mAh should last months or even years.

Current situations in hibernating / poweroff:

  • powerOff / enterDeepSleep are duplicated in many variants and not stay at uA. The boards are stay in 6-10mA or more.
  • GPS: GPS is never off and consumes 10-20mA.
  • BLE companions: BLE companions with GPS does not off GPS when hibernating.
  • Repeaters: powerOff in NRF52 will stay at 6mA not work as "sd_power_system_off()" only works for devices with soft device (such as BLE).
  • poweroff CLI in repeaters does not cut power for OLED, LoRa and GPS.
  • Wakeup when there is LoRa packets: It should remain off even there are coming LoRa packets. In crowded areas, the devices will be waken up in 5s.

The proposed PR:

  • Put powerOff() in NRF52Board and ESP32Board to turn off OLED, LoRa, GPS.
  • Child variants can put in extra code and reuse the powerOff in NRF52Board and ESP32Board
  • Remove wakeup by buttons for ESP32Board. No board uses it. You can click RESET button to power on the board again.

I have tested with common boards in our lab.
However, you are welcome to test the PR for your boards.

Have a great day.

m0urs added a commit to m0urs/MeshCore that referenced this pull request Jul 5, 2026
…-202607

Io t thinks m cdev fixed poweroff to u a 202607
meshcore-dev#2895
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant