firmware icon indicating copy to clipboard operation
firmware copied to clipboard

GPS power enable pin not defined in latest versions for Heltec v3

Open Juzzle1 opened this issue 3 years ago • 4 comments

Category

Hardware Compatibility

Hardware

Heltec V3

Firmware Version

2.2.10 / Master

Description

For Heltec v3, the PIN_GPS_EN define has been removed from variant.h in https://github.com/meshtastic/firmware/pull/2799

Without this, now my GPS modules remain powered even when I shutdown the device (I can see the LEDs are still active on on the module), causing the battery to drain.

I also noticed that this pin definition has not been removed for the Heltec WSL in this same PR.

For reference my GPS modules are switched via a 2N2222 transistor with base connected to pin 46.

Relevant log output

No response

Juzzle1 avatar Oct 09 '23 16:10 Juzzle1

It's been moved to a config option. I'm not sure if any of the clients support it yet, but it's position.gps_en_gpio. I'll take a look at getting it into the Python client.

jp-bennett avatar Oct 09 '23 16:10 jp-bennett

Great, thanks!

Juzzle1 avatar Oct 09 '23 16:10 Juzzle1

Looks like it's already present in the latest Python client. So meshtastic --set position.gps_en_gpio 46 should get you back.

jp-bennett avatar Oct 09 '23 16:10 jp-bennett

Ah, probably need to update my client to see it.

Thanks for looking!

Juzzle1 avatar Oct 09 '23 16:10 Juzzle1