diff --git a/meshtastic/admin.proto b/meshtastic/admin.proto index ac29cc8a..dd90d077 100644 --- a/meshtastic/admin.proto +++ b/meshtastic/admin.proto @@ -671,6 +671,11 @@ message SensorConfig { * SHTXX temperature and relative humidity sensor configuration */ SHTXX_config shtxx_config = 4; + + /* + * VL53L0X Distance Sensor configuration + */ + VL53L0X_config vl53l0x_config = 5; } message SCD4X_config { @@ -760,3 +765,10 @@ message SHTXX_config { */ optional uint32 set_accuracy = 1; } + +message VL53L0X_config { + /* + * Ranging mode (0 = default, 1 = long range, 2 = high speed,3 = high accuracy) + */ + optional uint32 ranging_mode = 1; +} diff --git a/meshtastic/telemetry.proto b/meshtastic/telemetry.proto index f541ca98..3c54801d 100644 --- a/meshtastic/telemetry.proto +++ b/meshtastic/telemetry.proto @@ -881,6 +881,11 @@ enum TelemetrySensorType { * DS248X Bridge for one-wire temperature sensors */ DS248X = 51; + + /* + * VL53L0X distance, sensor + */ + VL53L0X = 52; } /* @@ -932,3 +937,17 @@ message SEN5XState { */ optional fixed64 voc_state_array = 6; } + +message VL53L0XState { + enum RangingMode { + Default = 0; + LongRange = 1; + HighSpeed = 2; + HighAccuracy = 3; + } + + /* + * Current Ranging Mode + */ + RangingMode mode = 1; +}