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

Материал из Wiren Board
(Новая страница: «# Install the utility using the command: <code> #:<syntaxhighlight lang="bash"> apt update && apt install wb-modbus-ext-scanner </syntaxhighlight> </code> # Stop the wb-mqtt-serial driver using the command: <code> #:<syntaxhighlight lang="bash"> systemctl stop wb-mqtt-serial </syntaxhighlight> </code> # Execute the command: <code> #:<syntaxhighlight lang="bash"> wb-modbus-scanner -d /dev/ttyRS485-1 -b 115200 -s 4267937719 -i 3 </syntaxhighlight> </code> # Wh...»)
 
Строка 1: Строка 1:
# 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,
# Where, /dev/ttyRS485-1 is the port to which the device is connected,
# 115200 is the exchange rate,
# 115200 is the exchange rate,
Строка 22: Строка 16:
# 3 is the new slave ID.
# 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
Строка 28: Строка 21:
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>

Версия 16:09, 29 декабря 2023

Определение сообщения (Fast Modbus)
#Установите утилиту командой:
#:<syntaxhighlight lang="bash">
apt update && apt install wb-modbus-ext-scanner
</syntaxhighlight>
#Остановите драйвер wb-mqtt-serial:
#:<syntaxhighlight lang="bash">
systemctl stop wb-mqtt-serial
</syntaxhighlight>
#Выполните команду
#:<syntaxhighlight lang="bash">
wb-modbus-scanner -d /dev/ttyRS485-1 -b 115200 -s 4267937719 -i 3
</syntaxhighlight>
#:где,      /dev/ttyRS485-1 — порт к которому подключено устройство,
#:115200 — скорость обмена, 
#:4267937719 — серийный номер устройства,
#:3 — новый slave ID.
#В результате должен появиться такой вывод:
#:<syntaxhighlight lang="bash">
Serial port: /dev/ttyRS485-1
Use baud 115200
Change ID for device with serial  4267937719 [FE638FB7] New ID: 3
</syntaxhighlight>
#Запустите обратно драйвер wb-mqtt-serial:
#:<syntaxhighlight lang="bash">
systemctl start wb-mqtt-serial
</syntaxhighlight>
  1. Install the utility using the command:
    apt update && apt install wb-modbus-ext-scanner
    
  2. Stop the wb-mqtt-serial driver using the command:
    systemctl stop wb-mqtt-serial
    
  3. Execute the command:
    wb-modbus-scanner -d /dev/ttyRS485-1 -b 115200 -s 4267937719 -i 3
    
  4. Where, /dev/ttyRS485-1 is the port to which the device is connected,
  5. 115200 is the exchange rate,
  6. 4267937719 is the device's serial number,
  7. 3 is the new slave ID.
  8. As a result, the following output should appear:
    Serial port: /dev/ttyRS485-1
    Use baud 115200
    Change ID for device with serial   4267937719 [FE638FB7] New ID: 3
    
  9. Start the wb-mqtt-serial driver again using the command:
    systemctl start wb-mqtt-serial