[Bug]: After I have set "Shutdown on power loss" device just shuts down after turned on #8503
Replies: 6 comments
-
|
Confirm, exact same issue on my xaio nrf. |
Beta Was this translation helpful? Give feedback.
-
|
This is expected behavior, refer to the documentation: Power loss refers to external power supply, not internal power. I’m assuming your expected behavior actually refers to shutting down on low battery power, not power loss. |
Beta Was this translation helpful? Give feedback.
-
Well yes. I did expect it to be triggered by battery voltage. I see no sense in shutting down if external power is lost. For that to work, device has t have battery anyways, and in that case I see it more important to shut down before battery is empty. Well then, it seems Wio Tracker L1 does not detect external power so that is reason it goes into shutting down loop? If that is the case then firmware should at least warn user that there is no external power and device would be shut down as soon as that option is set. |
Beta Was this translation helpful? Give feedback.
-
|
It is working as intended and documented, you are looking for a different
feature, it’s not a bug…
…On Fri, Oct 31, 2025 at 00:37 pedjas ***@***.***> wrote:
*pedjas* left a comment (meshtastic/firmware#8469)
<#8469 (comment)>
This is expected behavior, refer to the documentation:
https://meshtastic.org/docs/configuration/radio/power/#shutdown-after-losing-power
Power loss refers to external power supply, not internal power. I’m
assuming your expected behavior actually refers to shutting down on low
battery power, not power loss.
Well yes. I did expect it to be triggered by battery voltage. I see no
sense in shutting down if external power is lost. For that to work, device
has t have battery anyways, and in that case I see it more important to
shut down before battery is empty.
Well then, it seems Wio Tracker L1 does not detect external power so that
is reason it goes into shutting down loop? If that is the case then
firmware should at least warn user that there is no external power and
device would be shut down as soon as that option is set.
—
Reply to this email directly, view it on GitHub
<#8469 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACAFAHN3346FM7BCJZ6D2L32I5D7AVCNFSM6AAAAACKK3QIXGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTINRYHE2TOMZVGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
The power state is being detected through the charge IC and GPIO, so you
need to supply USB power or 5V (internally they are connected).
Battery power is not external power.
…On Fri, Oct 31, 2025 at 00:49 Andrew Yong ***@***.***> wrote:
It is working as intended and documented, you are looking for a different
feature, it’s not a bug…
On Fri, Oct 31, 2025 at 00:37 pedjas ***@***.***> wrote:
> *pedjas* left a comment (meshtastic/firmware#8469)
> <#8469 (comment)>
>
> This is expected behavior, refer to the documentation:
> https://meshtastic.org/docs/configuration/radio/power/#shutdown-after-losing-power
>
> Power loss refers to external power supply, not internal power. I’m
> assuming your expected behavior actually refers to shutting down on low
> battery power, not power loss.
>
> Well yes. I did expect it to be triggered by battery voltage. I see no
> sense in shutting down if external power is lost. For that to work, device
> has t have battery anyways, and in that case I see it more important to
> shut down before battery is empty.
>
> Well then, it seems Wio Tracker L1 does not detect external power so that
> is reason it goes into shutting down loop? If that is the case then
> firmware should at least warn user that there is no external power and
> device would be shut down as soon as that option is set.
>
> —
> Reply to this email directly, view it on GitHub
> <#8469 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AACAFAHN3346FM7BCJZ6D2L32I5D7AVCNFSM6AAAAACKK3QIXGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTINRYHE2TOMZVGY>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
Same problem for me. But the patch from #4376 works for me with the Studio Wio Tracker L1 Pro after changing Power.cpp:468 to diff --git a/src/Power.cpp b/src/Power.cpp
index ea4fcf42a..9d4623e88 100644
--- a/src/Power.cpp
+++ b/src/Power.cpp
@@ -465,7 +465,7 @@ class AnalogBatteryLevel : public HasBatteryLevel
// technically speaking this should work for all(?) NRF52 boards
// but needs testing across multiple devices. NRF52 USB would not even work if
// VBUS was not properly connected and detected by the CPU
-#elif defined(MUZI_BASE) || defined(PROMICRO_DIY_TCXO)
+#elif defined(MUZI_BASE) || defined(PROMICRO_DIY_TCXO) || defined(SEEED_WIO_TRACKER_L1)
return powerHAL_isVBUSConnected();
#endif
return getBattVoltage() > chargingVolt;So the new comment by @geeksville made in this patch seems right. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Category
Other
Hardware
Other
Is this bug report about any UI component firmware like InkHUD or Meshtatic UI (MUI)?
Firmware Version
2.7.11
Description
I have Seed Studio Wio Tracker L1 Pro (it is not available in upper list) and firmware 2.7.11.
Device measures and shows battery voltage properly and it is at 98% not near having empty battery. Device was actually powered by USB cable.
I changed Shutdown on power loss to 30 seconds.
Immediately it went shutting down without even waiting 30 seconds.
After I turned it on, it went to shut down again without waiting at least those 30 seconds.
And again and again.
All the time battery was at 98% and device was powered via USB cable.
It took number of failed attempts to reset Shutdown on power loss back to unset. Shutdowns were to quick so it was hard to manage to enter option and set value before it goes off.
What I would expect:
Device should not shutdown at all for power loss if battery is not empty and especially if it is connected to external USB power
Device should wait at least specified number of seconds before Shutdown
Device should inform user of reason for Shutdown and offer user option to cancel shutdown or have some other mean to stop device shutting down again and again
Relevant log output
Beta Was this translation helpful? Give feedback.
All reactions