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

Обновление для соответствия новой версии исходной страницы.
(Обновление для соответствия новой версии исходной страницы.)
Строка 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
Строка 221: Строка 222:
|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
|-
</div>
|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: Строка 325:




|100
||input
||R||||||Служебный регистр HOLD_REG_SPL_RAW_INT
|<nowiki>-</nowiki>
|<nowiki>-</nowiki>
|S
|S
|S
|
|-




Строка 278: Строка 349:
||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>
|
|
|-
|-
Строка 416: Строка 499:
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
Строка 442: Строка 526:
|-
|-
|}
|}
</div>


== Device signature ==
== Device signature ==
Строка 473: Строка 558:
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/ttyAPP1 \
<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.
wb_editors
14 355

правок