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

Нет описания правки
(Новая страница: «{| border="1" class="wikitable" ! Device || Firmware version where scanning was introduced |- | WB-MRx, WB-MWAC | 1.19.0 |- | WB-MDM3 | 2.6.0 |- | WB-LED, WB-MRGBW-D | 3.2.0 |- | WB-MSx, WB-MSWx, WB-MIR, WB-M1W2 | 4.23.0 |- | WB-MAI11 | not supported |- | WB-MAI6 | 2.0.0 |- | WB-MAO4 | 2.2.0 |- | WB-MAPx | 2.4.0 |- | WB-MIO | 1.6.0 |- | WB-REF-U | 1.4.0 |- | WB-REF-DF | 1.1.0 |- |}»)
Метки: правка с мобильного устройства правка из мобильной версии
 
(не показаны 2 промежуточные версии этого же участника)
Строка 111: Строка 111:


# Install the utility using the command:
# Install the utility using the command:
<code>
#:<syntaxhighlight lang="bash">
#:<syntaxhighlight lang="bash">
apt update && apt install wb-modbus-ext-scanner
apt update && apt install wb-modbus-ext-scanner
</syntaxhighlight>
</syntaxhighlight>
</code>
# Stop the wb-mqtt-serial driver using the command:
# Stop the wb-mqtt-serial driver using the command:
<code>
#:<syntaxhighlight lang="bash">
#:<syntaxhighlight lang="bash">
systemctl stop wb-mqtt-serial
systemctl stop wb-mqtt-serial
</syntaxhighlight>
</syntaxhighlight>
</code>
# Execute the command:
# Execute the command:
<code>
#:<syntaxhighlight lang="bash">
#:<syntaxhighlight lang="bash">
wb-modbus-scanner -d /dev/ttyRS485-1 -b 115200 -s 4267937719 -i 3
wb-modbus-scanner -d /dev/ttyRS485-1 -b 115200 -s 4267937719 -i 3
</syntaxhighlight>
</syntaxhighlight>
</code>
# Where, /dev/ttyRS485-1 is the port to which the device is connected, 115200 is the exchange rate, 4267937719 is the device's serial number, 3 is the new slave ID.
# Where, /dev/ttyRS485-1 is the port to which the device is connected,
# 115200 is the exchange rate,
# 4267937719 is the device's serial number,
# 3 is the new slave ID.
# As a result, the following output should appear:
# As a result, the following output should appear:
<code>
#:<syntaxhighlight lang="bash">
#:<syntaxhighlight lang="bash">
Serial port: /dev/ttyRS485-1
Serial port: /dev/ttyRS485-1
Строка 139: Строка 129:
Change ID for device with serial  4267937719 [FE638FB7] New ID: 3
Change ID for device with serial  4267937719 [FE638FB7] New ID: 3
</syntaxhighlight>
</syntaxhighlight>
</code>
# Start the wb-mqtt-serial driver again using the command:
# Start the wb-mqtt-serial driver again using the command:
<code>
#:<syntaxhighlight lang="bash">
#:<syntaxhighlight lang="bash">
systemctl start wb-mqtt-serial
systemctl start wb-mqtt-serial
</syntaxhighlight>
</syntaxhighlight>
</code>


=== Support for scanning in firmware ===
=== Support for scanning in firmware ===
Строка 200: Строка 187:
|}
|}


<div lang="ru" dir="ltr" class="mw-content-ltr">
==Useful links==
==Полезные ссылки==
* [https://habr.com/p/772308/ Upgrading Modbus: arbitration, bus scanning, events] - an article with details on implementing the extension
* [https://habr.com/p/772308/ Прокачиваем Modbus: арбитраж, сканирование шины, события] - статья с подробностями реализации расширения
* [https://github.com/wirenboard/wb-modbus-ext-scanner/blob/main/protocol.md Extension description on GitHub]
* [https://github.com/wirenboard/wb-modbus-ext-scanner/blob/main/protocol.md Описание расширения на GitHub]
* [[Modbus | Modbus protocol description]]
* [[Modbus | Описание протокола Modbus]]
* [https://github.com/wirenboard/wb-modbus-ext-scanner Scanning utility repository]
* [https://github.com/wirenboard/wb-modbus-ext-scanner Репозиторий утилиты сканирования]
</div>