[Feature request] Report battery voltage from an INA3221 channel
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 57/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- c
- Área
- embedded-iot
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- C
- Estrellas
- 3.9k
- Forks
- 1.5k
- Merge medio
- 2 d 19 h
- PR fusionados (30 d)
- 61
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de meshcore-dev/MeshCore
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
meshcore-dev/MeshCore#4015 ·
Los mantenedores suelen responder en 2 días
-
CMD_SET_DEFAULT_FLOOD_SCOPE leaves an older, longer name's tail after the new namePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
meshcore-dev/MeshCore#3891 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
meshcore-dev/MeshCore#3826 ·
Los mantenedores suelen responder en 2 días
-
App Preset Australia: NTAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
meshcore-dev/MeshCore#3825 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
meshcore-dev/MeshCore#3781 ·
Los mantenedores suelen responder en 2 días
Todos los issues de meshcore-dev/MeshCore
Issues similares
-
CF_CFDP_S_SendFileData computes the file checksum from the SB buffer after CFE_SB_TransmitBufferAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
389ds/389-ds-base#8251 ·
Los mantenedores suelen responder en 1 día
-
bug data-types
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
ClickHouse/clickhouse-cpp#645 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
ROCm/hrx-system#3628 ·
Los mantenedores suelen responder en 1 día