[Feature request] Report battery voltage from an INA3221 channel
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 57/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- c
- 領域
- embedded-iot
調査の方向性
Start by reading the default getBattMilliVolts() implementation for ESP32 boards and how EnvironmentSensorManager exposes INA3221 channel voltages. Check how build flags and conflicts with PIN_VBAT_READ are handled. Done means the selected channel supplies the battery reading when configured, while the existing behavior remains without the flag; the issue leaves the access path and flag name open.
索引モデルが issue の本文から書いたものです。
説明
Use case: Solar repeaters often monitor panel, battery and load with an INA3221. EnvironmentSensorManager already reports all three channels as telemetry, but getBattMilliVolts() only reads an ADC pin. Boards without a PIN_VBAT_READ divider therefore report 0 V in the status, CLI stats and telemetry channel 1, even though the battery voltage is being measured.
Proposal: a build flag selecting the battery channel:
-D BATT_INA3221_CHANNEL=2 ; 1..3 as labelled on the chip
When set, the board's battery reading returns that channel's bus voltage instead of 0. Nothing changes without the flag; setting it together with PIN_VBAT_READ is a build error. Scope: ESP32 boards that use the default getBattMilliVolts().
Questions: Should the voltage come from EnvironmentSensorManager (so it uses whatever address and bus the sensor manager detected, which matters if #3325's address scanning lands), or be read directly in ESP32Board? Any preference on the flag name?
Related: #3325 (INA3221 detection and shunt value).
Hardware: Xiao S3 WIO, INA3221 '0x40', battery on CH2. Happy to submit the PR.
- 主要言語
- C
- スター
- 3.9k
- フォーク
- 1.5k
- 平均マージ
- 2日 19時間
- マージ済み PR(30日)
- 61
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
meshcore-dev/MeshCore のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
meshcore-dev/MeshCore#4015 ·
メンテナーはふだん 2 日以内に返信
-
CMD_SET_DEFAULT_FLOOD_SCOPE leaves an older, longer name's tail after the new name対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
meshcore-dev/MeshCore#3891 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
meshcore-dev/MeshCore#3826 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
meshcore-dev/MeshCore#3825 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
meshcore-dev/MeshCore#3781 ·
メンテナーはふだん 2 日以内に返信
meshcore-dev/MeshCore の issue をすべて見る
似ている issue
-
CF_CFDP_S_SendFileData computes the file checksum from the SB buffer after CFE_SB_TransmitBufferオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
389ds/389-ds-base#8251 ·
メンテナーはふだん 1 日以内に返信
-
bug data-types
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
ClickHouse/clickhouse-cpp#645 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ROCm/hrx-system#3628 ·
メンテナーはふだん 1 日以内に返信