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

Нет описания правки
(Обновление для соответствия новой версии исходной страницы.)
 
(не показаны 2 промежуточные версии этого же участника)
Строка 14: Строка 14:
===Holding Registers===
===Holding Registers===


<div class="mw-translate-fuzzy">
{| border="1" class="wikitable" style="text-align:center"
{| border="1" class="wikitable" style="text-align:center"
!rowspan="2"|Register/ address
!rowspan="2"|Register/ address
Строка 169: Строка 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
| -
| -
| -
| -
Строка 182: Строка 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)
| -
| -
| -
| -
Строка 229: Строка 228:
|3.5.0
|3.5.0
|-
|-
</div>


|91||holding||RW||20 (200 ms)||× 10 ms
|91||holding||RW||20 (200 ms)||× 10 ms
Строка 499: Строка 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 ==
Строка 558: Строка 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.