[Feature Request]: Read GeigerNode native I2C radiation telemetry

Open
#12,368 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

Research direction

Wait until the linked protobufs PR merges and the generated bindings are regenerated; do not edit src/mesh/generated/ by hand. Use src/modules/Telemetry/Sensor/CGRadSensSensor.cpp as the pattern for a new GeigerNodeSensor, register it from EnvironmentTelemetry, and add the two fields to src/serialization/MeshPacketSerializer.cpp. Done means an 8-byte decode test passes, both fields are set only when VALID is set, and radiation is left untouched.

Written by the indexing model from the issue text.

Description

Platform

Cross-Platform

Description

Add a native GeigerNode I2C driver that publishes the new SI radiation fields from meshtastic/protobufs#1163 / protobufs PR #1174.

Implementation starts only after that protobuf PR merges and update_protobufs.yml regenerates the bindings. Do not hand-edit src/mesh/generated/.

Scope

  • Detect the native map at I2C 0x67: device id 0x474E at 0x00, protocol 2 at 0x02. This is not ClimateGuard RadSens (0x66, id 0x7D / 0x7A), which stays on EnvironmentMetrics.radiation in µR/h.
  • Add GeigerNodeSensor beside src/modules/Telemetry/Sensor/CGRadSensSensor.cpp, registered from EnvironmentTelemetry.
  • Read the big-endian values at 0x04..0x0B (nSv/h, CPM × 10, status).
  • When status VALID is set, publish radiation_dose_rate_nsvh and radiation_cpm_x10 as present values, including a real zero. When VALID is clear, leave both unset. Do not write radiation and do not convert µR/h.
  • The sensor’s own window (default 300 s) is the measurement. The Meshtastic telemetry interval does not change it. Histogram, peaks, calibration, raw count, and HV control stay off the mesh.
  • Coexist with a BME680 at 0x76 on the same bus.
  • Add the two fields to src/serialization/MeshPacketSerializer.cpp and cover the 8-byte decode plus the JSON keys with a native test.

Related

Dominant language
C++
Stars
8.4k
Forks
2.8k
Avg merge
3d 14h
Merged PRs (30d)
119

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

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 meshtastic/firmware

All issues in meshtastic/firmware

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.