3690
правок
(не показана 1 промежуточная версия этого же участника) | |||
Строка 497: | Строка 497: | ||
Registers related to IR control are described in [[WB-MSx_Consumer_IR_Manual/en]]. | Registers related to IR control are described in [[WB-MSx_Consumer_IR_Manual/en]]. | ||
{| border="1" class="wikitable" style="text-align:center" | {| border="1" class="wikitable" style="text-align:center" | ||
!Starting address || Quantity || Purpose || In modifications | !Starting address || Quantity || Purpose || In modifications | ||
!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 | ||
| | | | ||
|- | |- | ||
|} | |} | ||
== Device signature == | == Device signature == | ||
Строка 556: | Строка 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/ttyRS485-1 \ | |||
<syntaxhighlight lang="bash">echo -e `modbus_client --debug -mrtu -pnone -s2 /dev/ | |||
-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. | As a result of the command we receive string '''WBMS'''. The WB-MS module in the example has Modbus address 1. |