From 399d6ba8c5c5ccc9460a3fa22a455af316a225a7 Mon Sep 17 00:00:00 2001 From: mj Date: Sun, 27 Mar 2022 12:54:06 +0200 Subject: [PATCH] Changed modbus registers in query python script --- tests/sensor.py | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/tests/sensor.py b/tests/sensor.py index 92a2a1a..48316e9 100644 --- a/tests/sensor.py +++ b/tests/sensor.py @@ -12,25 +12,27 @@ class Sensor: # Sensor specific config baudrates = [4800, 9600, 14400, 19200, 28800, 38400, 57600, 76800, 115200] input_registers = { - 'CO2': 30010, - 'T_SHT4x': 30011, - 'RH_SHT4x': 30012, - 'T_SCD4x': 30013, - 'RH_SCD4x': 30014, - 'T_SHT4x_signed': 30015, - 'T_SCD4x_signed': 30016, - 'PM_mass_concentration_1.0': 30017, - 'PM_mass_concentration_2.5': 30018, - 'PM_mass_concentration_4.0': 30019, - 'PM_mass_concentration_10.0': 30020, - 'PM_number_concentration_0.5': 30021, - 'PM_number_concentration_1.0': 30022, - 'PM_number_concentration_2.5': 30023, - 'PM_number_concentration_4.0': 30024, - 'PM_number_concentration_10.0': 30025, - 'PM_typical_particle_size': 30026, - 'VOC_ticks': 30027, - 'VOC_index': 30028} + 'T': 30010, # from SHT4x + 'T_F': 30011, + 'RH': 30012, # from SHT4x + 'CO2': 30013, # from SCD4x + 'VOC_index': 30014, + 'VOC_ticks': 30015, + 'NOx_index': 30016, + 'NOx_ticks': 30017, + 'PM_mass_concentration_1.0': 30018, + 'PM_mass_concentration_2.5': 30019, + 'PM_mass_concentration_4.0': 30020, + 'PM_mass_concentration_10.0': 30021, + 'PM_number_concentration_0.5': 30022, + 'PM_number_concentration_1.0': 30023, + 'PM_number_concentration_2.5': 30024, + 'PM_number_concentration_4.0': 30025, + 'PM_number_concentration_10.0': 30026, + 'PM_typical_particle_size': 30027, + 'T_SCD4x': 30028, + 'T_SCF4x_F': 30029, + 'RH_SCD4x': 30030} holding_registers = { 'LED_on': 40001, 'LED_brightness': 40002,