Heltec V4 charging issue

Open
#3,993 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
c
Domain
embedded-iot

Research direction

Start with the firmware paths that initialize Heltec V4 charging and read the battery state, then compare the board's power-switch behavior with the working Meshtastic setup. Reproduce the failure with USB connected, a depleted battery, and the switch moved from off to on. The work is done when the charging indicator and reported battery state behave correctly and the device does not enter sleep or shut down solely because USB power is present.

Written by the indexing model from the issue text.

Description

Discovered this issue and not sure if there is a way I can fix it as I am no programmer.

I have a switch between the physical battery and the battery plug on the heltec v4 board.

Here are the symptoms:

  • switch off and usb plugged in - Meshcore runs fine
  • changing switch from off to on while usbc is plugged in (if battery is low, meshcore says dead battery and turns off or goes to super sleep mode). If battery is full enough, meshcore just states the battery percentage and doesn't charge (have tested while plugged in for several hours).
  • white light charging indicator doesn't flash for meshcore when battery and usb are plugged into the board.

I only know it is an issue because the same exact hardware with meshtastic charges fine.
In Meshtastic, the white light will flash occasionally, showing me the battery is charging (which is also shown on the screen and in the app).
Also in Meshtastic, if I have a dead battery and the usb is plugged in, it won't go to sleep mode or turn off like meshcore does.
This makes me believe it is a meshcore firmware issue and not a board or wiring or some other charging issue.

Thanks for looking into this or confirming this issue in advance (so I know I am not missing something).

Dominant language
C
Stars
3.9k
Forks
1.5k
Avg merge
2d 7h
Merged PRs (30d)
56

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from meshcore-dev/MeshCore

All issues in meshcore-dev/MeshCore

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.