From ee114d4e89baba458e24bfb4e0d8468a632b4391 Mon Sep 17 00:00:00 2001 From: oscgonfer Date: Mon, 28 Jul 2025 12:34:53 +0200 Subject: [PATCH] Add admin commands for SCDXX CO2 sensors --- meshtastic/admin.proto | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/meshtastic/admin.proto b/meshtastic/admin.proto index 0259c2a..ef2e25d 100644 --- a/meshtastic/admin.proto +++ b/meshtastic/admin.proto @@ -471,6 +471,11 @@ message AdminMessage { * Tell the node to reset the nodedb. */ int32 nodedb_reset = 100; + + /* + * SCDXX CO2 sensor configuration + */ + SCDXX_config scdxx_config = 102; } } @@ -575,3 +580,30 @@ message KeyVerificationAdmin { */ optional uint32 security_number = 4; } + +message SCDXX_config { + /* + * Set Automatic self-calibration enabled + */ + optional bool set_asc = 1; + + /* + * Recalibration target CO2 concentration in ppm (FRC or ASC) + */ + optional uint32 target_co2_conc = 2; + + /* + * Reference temperature in degC + */ + optional float temperature = 4; + + /* + * Altitude of sensor in meters above sea level. 0 - 3000m (overrides ambient pressure) + */ + optional uint32 altitude = 5; + + /* + * Sensor ambient pressure in Pa. 70000 - 120000 Pa (overrides altitude) + */ + optional uint32 ambient_pressure = 6; +}