Добрый день. Пытаюсь обновить прошивку шлюза WB-MIO-E v.2.
Не совсем понятно из вики (Утилита socat — Wiren Board) как обновить сам шлюз. Там есть пример с устройством за шлюзом. Думал сам шлюз является устройством на собственной шине и пробовал по slaveId обновлять.
Но что-то так не работает.
Включаю сокат, утилита обновления предлагает его приостановить.
Консоль socat
root@wirenboard-AC6A3GB6:~# service wb-mqtt-serial stop
root@wirenboard-AC6A3GB6:~# socat -d -d -d -x PTY,raw,b9600,parenb=0,cstopb=2,cs8,link=/dev/ttyRS485-5 tcp:192.168.88.50:23
2023/11/23 10:31:33 socat[30478] I socat by Gerhard Rieger and contributors - see www.dest-unreach.org
2023/11/23 10:31:33 socat[30478] I This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/)
2023/11/23 10:31:33 socat[30478] I This product includes software written by Tim Hudson (tjh@cryptsoft.com)
2023/11/23 10:31:33 socat[30478] I setting option "raw"
2023/11/23 10:31:33 socat[30478] I setting option "b9600"
2023/11/23 10:31:33 socat[30478] I setting option "parenb" to 0
2023/11/23 10:31:33 socat[30478] I setting option "cstopb" to 1
2023/11/23 10:31:33 socat[30478] I setting option "cs8"
2023/11/23 10:31:33 socat[30478] I setting option "symbolic-link" to "/dev/ttyRS485-5"
2023/11/23 10:31:33 socat[30478] I openpty({5}, {6}, {"/dev/pts/2"},,) -> 0
2023/11/23 10:31:33 socat[30478] N PTY is /dev/pts/2
2023/11/23 10:31:33 socat[30478] N opening connection to AF=2 192.168.88.50:23
2023/11/23 10:31:33 socat[30478] I starting connect loop
2023/11/23 10:31:33 socat[30478] I socket(2, 1, 6) -> 7
2023/11/23 10:31:33 socat[30478] N successfully connected from local address AF=2 192.168.88.150:45366
2023/11/23 10:31:33 socat[30478] I resolved and opened all sock addresses
2023/11/23 10:31:33 socat[30478] N starting data transfer loop with FDs [5,5] and [7,7]
Если приостановить, то не находит этот порт, если отказаться - предлагает остановить вручную
Консоль
root@wirenboard-AC6A3GB6:/mnt/data/etc# wb-mcu-fw-updater update-fw /dev/ttyRS485-5 -a 165
2023-11-23 10:35:01,389
2023-11-23 10:35:01,391 /dev/ttyRS485-5 used by socat -d -d -d -x PTY,raw,b9600,parenb=0,cstopb=2,cs8,link=/dev/ttyRS485-5 tcp:192.168.88.50:23; Will be paused and resumed after finish [Y/N]
y
2023-11-23 10:35:17,346 Will find serial port settings for (/dev/ttyRS485-5 : 165; response_timeout: 0.20)...
2023-11-23 10:36:06,043 Can't connect to (/dev/ttyRS485-5 165; response_timeout: 0.20s), check physical connection or address/port
2023-11-23 10:36:06,044
Как сейчас можно обновить прошивку WB-MIO-E ?