Changed modbus registers in query python script

This commit is contained in:
mj 2022-03-27 12:54:06 +02:00
parent 3734ade16f
commit 399d6ba8c5

View File

@ -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,