Closed fifieldt closed 2 months ago
This issue has been mentioned on Meshtastic. There might be relevant details there:
For the heltec you will need to adjust your adc value until is is showing powered properly, the tbeam which has a better power management chip is detecting usb power.
Thanks Garth. I confirm changing the adc value on heltec-wireless-tracker fixes the hasUSB issue.
Perhaps this is just a documentation fix only? Adding a warning to https://meshtastic.org/docs/configuration/radio/power/#shutdown-after-losing-power to check that USB is correctly detected, and alter ADC value if not?
Category
Other
Hardware
Heltec Wireless Tracker
Firmware Version
2.3.4.ea61808
Description
As reported by chrisj, Heltec boards shut down after "Shutdown on battery delay" seconds, even when connected to USB. This is confirmed to affect Heltec V3 and Heltec Wireless Tracker. This is because
PowerStatus->getHasUSB
returns the incorrect value for these boards.PowerStatus->getHasUSB
is used in various places to determine whether a device is connected to external power. For example, insrc/PowerFSMThread.h
, we use getHasUSB to determine whether we should check to shut down a device afterconfig.power.on_battery_shutdown_after_secs
.getHasUSB currently returns 0 (i.e. USB not connected) for Heltec-based devices, even when USB is connected.
Relevant log output