Все переводы
Введите имя сообщения для показа всех доступных переводов.
Найдено 2 перевода.
Сообщение | Текущий текст |
---|---|
ист. английский (en) | #Prepare the firmware file and install the socat utility if it is not installed: #:<syntaxhighlight lang="bash"> apt install socat </syntaxhighlight> #Connect twice to the controller via SSH, you should have two windows open: the first one for creating a socat tunnel, the second one for sending commands to the device. #Stop wb-mqtt-serial: #:<syntaxhighlight lang="bash"> systemctl stop wb-mqtt-serial </syntaxhighlight> #In the first window, start redirecting with socat using the current connection settings: #:<syntaxhighlight lang="bash"> socat -d -d -d -x PTY,raw,b115200,parenb=0,cstopb=2,cs8,link=/dev/ttyRS485-5 tcp:192.168.0.7:23 </syntaxhighlight> #In the second window, start the device firmware update with the wb-mcu-fw-flasher utility, using the -J parameter. Specify the firmware file prepared earlier: #:<syntaxhighlight lang="bash"> wb-mcu-fw-flasher -J -d /dev/ttyRS485-5 -a14 -f ./firmware.wbfw </syntaxhighlight> #Start wb-mqtt-serial #:<syntaxhighlight lang="bash"> systemctl start wb-mqtt-serial </syntaxhighlight> |
ист. русский (ru) | #[[Firmware_Repository_For_Wiren_Board_Modbus_Devices |Приготовьте файл прошивки]] и установите утилиту socat, если ее нет: #:<syntaxhighlight lang="bash"> apt install socat </syntaxhighlight> #Дважды подключитесь к контроллеру по [[SSH |SSH]], у вас должно быть открыто два окна: первое для создания тоннеля socat, второе для отправки команд устройству. #Остановите [[Wb-mqtt-serial_driver |wb-mqtt-serial]]: #:<syntaxhighlight lang="bash"> systemctl stop wb-mqtt-serial </syntaxhighlight> #В первом окне запустите перенаправление утилитой socat с текущими настройками соединения: #:<syntaxhighlight lang="bash"> socat -d -d -d -x PTY,raw,b115200,parenb=0,cstopb=2,cs8,link=/dev/ttyRS485-5 tcp:192.168.0.7:23 </syntaxhighlight> #Во втором окне запустите обновление прошивки устройства утилитой [[Wb-mcu-fw-flasher |wb-mcu-fw-flasher]], используя параметр <code>-J</code>. Укажите файл прошивки, который приготовили в начале: #:<syntaxhighlight lang="bash"> wb-mcu-fw-flasher -J -d /dev/ttyRS485-5 -a14 -f ./firmware.wbfw </syntaxhighlight> #Запустите wb-mqtt-serial #:<syntaxhighlight lang="bash"> systemctl start wb-mqtt-serial </syntaxhighlight> |