3690
правок
(Новая страница: «=== Register reading example === Let's check whether it is true that we are connected to the module of the desired type. (Module wb-mqtt-serial needs to be stoppe…») |
|||
(не показано 5 промежуточных версий 3 участников) | |||
Строка 168: | Строка 168: | ||
|0 | |0 | ||
|ppm (400-1500) | |ppm (400-1500) | ||
|Manual calibration of CO2 sensor. For calibration, write down here the current CO2 concentration measured by another instrument | |Service register, doesn't present in most devices. Manual calibration of CO2 sensor. For calibration, write down here the current CO2 concentration measured by another instrument | ||
| - | | - | ||
| - | | - | ||
Строка 181: | Строка 181: | ||
|0xFF | |0xFF | ||
|days' | |days' | ||
|Cycle time for co sensor self-calibration algorithm (ABC) | |Service register, doesn't present in most devices. Cycle time for co sensor self-calibration algorithm (ABC) | ||
| - | | - | ||
| - | | - | ||
Строка 221: | Строка 221: | ||
|96||holding||R||2000 / 5000||ppm | |96||holding||R||2000 / 5000||ppm | ||
||(available from firmware version 3.5.0) CO2 concentration measurement Range. Valid values: 2000, 5000, 10000. | ||(available from firmware version 3.5.0) CO2 concentration measurement Range. Valid values: 2000, 5000, 10000. | ||
| - | |||
| - | |||
| - | |||
|C | |||
|C | |||
|3.5.0 | |||
|- | |||
|91||holding||RW||20 (200 ms)||× 10 ms | |||
||Время усреднения шума | |||
|S | |||
| - | |||
| + | |||
|S | |||
|S | |||
|- | |||
|92 | |||
||holding | |||
||RW||0||x0.0625||Служебный регистр HOLD_REG_SPL_RAW_OFFSET - сдвиг значения АЦП | |||
|<nowiki>-</nowiki> | |||
|<nowiki>-</nowiki> | |||
|S | |||
|S | |||
|S | |||
|4.9.0 | |||
|- | |||
|93 | |||
||holding | |||
||RW||0||x0.1dB||Служебный регистр HOLD_REG_SPL_OFFSET - поправка к значению уровня шума | |||
|<nowiki>-</nowiki> | |||
|<nowiki>-</nowiki> | |||
|S | |||
|S | |||
|S | |||
|4.9.0 | |||
|- | |||
|- | |||
|95 | |||
|holding | |||
|RW | |||
|1 | |||
|1 or 0 | |||
|Режим автокалибровки датчика CO2 (ABC) на атмосферный уровень CO2 | |||
| - | |||
| - | |||
| - | |||
|С | |||
|C | |||
| | |||
|- | |||
|96||holding||R||2000 / 5000||ppm | |||
||(доступно с версии прошивки 3.5.0) Диапазон измерения концентрации CO2. Допустимые значения: 2000, 5000, 10000. | |||
| - | | - | ||
| - | | - | ||
Строка 265: | Строка 323: | ||
|100 | |||
||input | |||
||R||||||Служебный регистр HOLD_REG_SPL_RAW_INT | |||
|<nowiki>-</nowiki> | |||
|<nowiki>-</nowiki> | |||
|S | |||
|S | |||
|S | |||
| | |||
|- | |||
Строка 278: | Строка 347: | ||
||R||||||Service register HOLD_REG_TH_ERRORS | ||R||||||Service register HOLD_REG_TH_ERRORS | ||
|colspan="5"|all | |colspan="5"|all | ||
| | |||
|- | |||
|103 | |||
||holding | |||
||RW||||||Служебный регистр HOLD_REG_ILLUMINANCE_MODE | |||
|<nowiki>+</nowiki> | |||
|<nowiki>+</nowiki> | |||
|<nowiki>+</nowiki> | |||
|<nowiki>-</nowiki> | |||
|<nowiki>-</nowiki> | |||
| | | | ||
|- | |- | ||
Строка 320: | Строка 401: | ||
| 110 || holding || RW|| 96 || baud rate / 100 || RS-485 port speed, '''divided by 100'''. Permissible speeds: 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200 <br>([[UART_Communication_Settings| | | 110 || holding || RW|| 96 || baud rate / 100 || RS-485 port speed, '''divided by 100'''. Permissible speeds: 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200 <br>([[UART_Communication_Settings/en|Configure RS-485 communication parameters for Wiren Board Modbus devices]]) | ||
|colspan="5"|all | |colspan="5"|all | ||
| rowspan="3" |>3.1.0 | | rowspan="3" |>3.1.0 | ||
Строка 342: | Строка 423: | ||
| | | | ||
|- | |- | ||
| 129 (0x81) || holding || RW|| 0 || 0 or 1 || Go to [[WB-MCU-Flasher|bootloader mode]] | | 129 (0x81) || holding || RW|| 0 || 0 or 1 || Go to [[WB-MCU-Flasher/en|bootloader mode]] | ||
|colspan="5"|all || 4.5.0 | |colspan="5"|all || 4.5.0 | ||
|- | |- | ||
Строка 420: | Строка 501: | ||
!From firmware version | !From firmware version | ||
|- | |- | ||
| 0 || 1 || style="text-align:left" |Enable buzzer (buzzer) || WB- | | 0 || 1 || style="text-align:left" |Enable buzzer (buzzer) || WB-MSW v.3, WB-MSW2 | ||
| | | | ||
|- | |- | ||
| 1 || 1 || style="text-align:left" | Forced calibration of the built-in CO2 sensor. Turn on after 20 minutes of operation at a CO2 level of 400 ppm || WB-MSW2 | | 1 || 1 || style="text-align:left" | Forced calibration of the built-in CO2 sensor. Turn on after 20 minutes of operation at a CO2 level of 400 ppm || WB-MSW v.3, WB-MSW2 | ||
| | | | ||
|- | |- | ||
| 2 || 1 || style="text-align:left" | Turn on the heating (heater) in the temperature and humidity sensor chip HDC1080 || WB-MS | | 2 || 1 || style="text-align:left" | Turn on the heating (heater) in the temperature and humidity sensor chip HDC1080 || WB-MS, WB-MSW v.3, WB-MSW2 | ||
|3.2.0 | |3.2.0 | ||
|- | |- | ||
|3 | |3 | ||
|1 | |1 | ||
| | |Power on/off of the CO2 sensor | ||
|WB-MSW V. 3 | |WB-MSW V. 3 | ||
|4.1.0 | |4.1.0 | ||
|- | |- | ||
| 10 || 1 || style="text-align:left" | Green led on || WB-MSW | | 10 || 1 || style="text-align:left" | Green led on || WB-MSW v.3 | ||
| | | | ||
|- | |- | ||
| 11 || 1 || style="text-align:left" | Enable red led || WB-v | | 11 || 1 || style="text-align:left" | Enable red led || WB-MSW v.3 | ||
| | | | ||
|- | |- | ||
Строка 473: | Строка 554: | ||
Let's check whether it is true that we are connected to the module of the desired type. (Module wb-mqtt-serial needs to be stopped). At address 200, a unique signature of 6 registers is stored. Let's read 6 registers, starting with the address 200, and convert the received hexadecimal answer into a character string: | Let's check whether it is true that we are connected to the module of the desired type. (Module wb-mqtt-serial needs to be stopped). At address 200, a unique signature of 6 registers is stored. Let's read 6 registers, starting with the address 200, and convert the received hexadecimal answer into a character string: | ||
<syntaxhighlight lang="bash">echo -e `modbus_client --debug -mrtu -pnone -s2 /dev/ | <syntaxhighlight lang="bash">echo -e `modbus_client --debug -mrtu -pnone -s2 /dev/ttyRS485-1 \ | ||
-a1 -t0x03 -r200 -c 6 | \ | -a1 -t0x03 -r200 -c 6 | \ | ||
grep Data | sed -e 's/0x00/\\\x/g' -e 's/Data://' -e 's/\s//g'` </syntaxhighlight> | grep Data | sed -e 's/0x00/\\\x/g' -e 's/Data://' -e 's/\s//g'` </syntaxhighlight> | ||
As a result of the command we receive string '''WBMS'''. The WB-MS module in the example has Modbus address 1. |