Skip to content

nrf52: allow companion to sleep when idle#1682

Open
oltaco wants to merge 1 commit intomeshcore-dev:devfrom
oltaco:nrf52-lowpower
Open

nrf52: allow companion to sleep when idle#1682
oltaco wants to merge 1 commit intomeshcore-dev:devfrom
oltaco:nrf52-lowpower

Conversation

@oltaco
Copy link
Contributor

@oltaco oltaco commented Feb 13, 2026

Following on from the NRF52 repeater power savings, this adds the same for NRF52 companions.

I've been running it on WioTrackerL1/ThinkNode M1/Heltec T114/Meshtiny for the last week with no issues.

@oltaco
Copy link
Contributor Author

oltaco commented Feb 13, 2026

Forgot to remove some commented testing code, fixed now. 🤦‍♂️

rtc_clock.tick();

#if defined(NRF52_PLATFORM)
board.sleep(1800);
Copy link
Contributor

@weebl2000 weebl2000 Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
board.sleep(1800);
if (!the_mesh.hasPendingWork()) {
board.sleep(1800);
}

Maybe?

Probably need to add hasPendingWork(), _mgr->getOutboundCount(0xFFFFFFFF) > 0 - not sure if it's actually useful.

@towerviewcams
Copy link

I have a WioTracker L1, put up a test bin and I can check this in my lab and report back.

@weebl2000
Copy link
Contributor

I have a WioTracker L1, put up a test bin and I can check this in my lab and report back.

Build it here:

http://mcimages.weebl.me/?commitId=nrf52-lowpower

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.

3 participants