Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Seeed Tracker T1000-E tracker doesn't detect when USB power is applied #4367

Closed
geeksville opened this issue Aug 1, 2024 · 2 comments · Fixed by #4376
Closed

[Bug]: Seeed Tracker T1000-E tracker doesn't detect when USB power is applied #4367

geeksville opened this issue Aug 1, 2024 · 2 comments · Fixed by #4376
Assignees
Labels
bug Something isn't working

Comments

@geeksville
Copy link
Member

geeksville commented Aug 1, 2024

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:

DEBUG | 15:45:39 155470 [Power] Battery: usbPower=0, isCharging=0, batMv=4114, batPct=94

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
@geeksville geeksville added the bug Something isn't working label Aug 1, 2024
@geeksville geeksville self-assigned this Aug 1, 2024
@thebentern
Copy link
Contributor

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

@geeksville
Copy link
Member Author

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants