Heltec V4 charging issue

未关闭
#3,993 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
c
领域
embedded-iot

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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).

主要语言
C
星标
3.9k
派生
1.5k
平均合并
2 天 19 小时
30 天内合并 PR
61

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

meshcore-dev/MeshCore 的其他 Issue

查看 meshcore-dev/MeshCore 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。