You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some of our behaviors change when the device realizes it is connected to USB power. I just connected my T1000-E to my desktop and happened to notice this (low priorty/minor) problem:
usbPower should be 1 in this message (because I was connected to USB power)
I suspect we need to add some variant code so that this detection happens (but I haven't yet looked at the schematic). If someone else wants to investigate/fix this then great, otherwise I'll give it a shot sometime in the next few days
Nordic has some API methods to determine this that might work. The RAK 4631 uses this macro to enable them. It should work for the tracker card as well I would imagine #define NRF_APM
btw - I turned on NRF_APM and that didn't help. Which is odd because the code looks like it should. I then went back and confirmed: yep still works great on a RAK4631. I'm going to test on a Wio Tracker 1110 board now (because easier to debug than the 1000-E)
geeksville
added a commit
to geeksville/Meshtastic-esp32
that referenced
this issue
Aug 2, 2024
…trackers
for wio tracker 1110 and 1000-E and possibly other nrf52 boards.
The problem was that nrf52 power stuff wasn't generating regular
powerstatus notifications (because that code was guarded by a batteryLevel
check which was null for those boards). So I've cleaned up the battery status stuff
a bit and we now have fewer special cases.
Tested on a 1000-E, tracker 1110 and a rak4631 board.
Category
Other
Hardware
Other
Firmware Version
master (private build)
Description
Some of our behaviors change when the device realizes it is connected to USB power. I just connected my T1000-E to my desktop and happened to notice this (low priorty/minor) problem:
usbPower should be 1 in this message (because I was connected to USB power)
I suspect we need to add some variant code so that this detection happens (but I haven't yet looked at the schematic). If someone else wants to investigate/fix this then great, otherwise I'll give it a shot sometime in the next few days
(not a big problem but cc @Dylanliacc fyi )
Relevant log output
DEBUG | 15:45:39 155470 [Power] Battery: usbPower=0, isCharging=0, batMv=4114, batPct=94
The text was updated successfully, but these errors were encountered: