Sensors Modbus Management/en: различия между версиями

Нет описания правки
 
(не показана 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]].


<div class="mw-translate-fuzzy">
{| 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-MSW2, WB-v MSW.3
| 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 (in the 2017 series), WB-MSW2, WB-MSW V. 3
| 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
|The inclusion of a CO2 sensor
|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 V. 3  
| 10 || 1 || style="text-align:left" | Green led on || WB-MSW v.3  
|
|
|-
|-
| 11 || 1 || style="text-align:left" | Enable red led || WB-v MSW.3  
| 11 || 1 || style="text-align:left" | Enable red led || WB-MSW v.3  
|
|
|-
|-
|}
|}
</div>


== 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:


<div class="mw-translate-fuzzy">
<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/ttyAPP1 \
-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>
</div>


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.