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

@lbibass
Copy link

lbibass commented Feb 18, 2026

Here are the results of testing with an NRF PPK and a Heltec T114. Hope this helps!

Before:
image

After:
image

@oltaco
Copy link
Contributor Author

oltaco commented Feb 18, 2026

Here are the results of testing with an NRF PPK and a Heltec T114. Hope this helps!

Before: image

After: image

I hope the before and after are around the wrong way! 😂

@lbibass
Copy link

lbibass commented Feb 18, 2026

Here are the results of testing with an NRF PPK and a Heltec T114. Hope this helps!
Before: image
After: image

I hope the before and after are around the wrong way! 😂

Check the average power consumption! it dropped from almost 12 mA to almost 8 mA.

@towerviewcams
Copy link

towerviewcams commented Feb 18, 2026

Here are the results of testing with an NRF PPK and a Heltec T114. Hope this helps!

@lbibass can you point me on how/where to get this power meter/software your using here? I do allot of testing and would like to add this to my lab.. Thank you.

Found it!!!! yea I'm getting one!

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.

4 participants

Comments