Здравствуйте, имеется большое число модулей MIO с подключенными к ним боковыми модулями HVD-8 (как в моих предыдущих темах).
Один из модулей в веб интерфейсе отображается красным и с него не считываются значения модуля входа.
При попытке просмотреть значения регистров утилитой modbus_client, наткнулся на следующее при перенаправлении в socat:
Спойлер
root@wirenboard-ANOYBGGB:~# socat -d -d -d -x PTY,raw,b9600,parenb=0,cstopb=1,cs8,link=/dev/ttyRS485-5 tcp:172.16.131.122:23
2024/03/05 10:42:01 socat[18358] I socat by Gerhard Rieger and contributors - see www.dest-unreach.org
2024/03/05 10:42:01 socat[18358] I This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/)
2024/03/05 10:42:01 socat[18358] I This product includes software written by Tim Hudson (tjh@cryptsoft.com)
2024/03/05 10:42:01 socat[18358] I setting option “raw”
2024/03/05 10:42:01 socat[18358] I setting option “b9600”
2024/03/05 10:42:01 socat[18358] I setting option “parenb” to 0
2024/03/05 10:42:01 socat[18358] I setting option “cstopb” to 1
2024/03/05 10:42:01 socat[18358] I setting option “cs8”
2024/03/05 10:42:01 socat[18358] I setting option “symbolic-link” to “/dev/ttyRS485-5”
2024/03/05 10:42:01 socat[18358] I openpty({5}, {6}, {“/dev/pts/3”},) → 0
2024/03/05 10:42:01 socat[18358] N PTY is /dev/pts/3
2024/03/05 10:42:01 socat[18358] N opening connection to AF=2 172.16.131.122:23
2024/03/05 10:42:01 socat[18358] I starting connect loop
2024/03/05 10:42:01 socat[18358] I socket(2, 1, 6) → 7
2024/03/05 10:42:01 socat[18358] N successfully connected from local address AF=2 172.16.131.254:51524
2024/03/05 10:42:01 socat[18358] I resolved and opened all sock addresses
2024/03/05 10:42:01 socat[18358] N starting data transfer loop with FDs [5,5] and [7,7]
< 2024/03/05 10:42:01.934784 length=1 from=0 to=0
00
2024/03/05 10:42:01 socat[18358] I transferred 1 bytes from 7 to 5
2024/03/05 10:42:01.935167 length=2 from=0 to=1
5e 40
2024/03/05 10:42:01 socat[18358] I transferred 2 bytes from 5 to 7
< 2024/03/05 10:42:01.951942 length=1 from=1 to=1
00
2024/03/05 10:42:01 socat[18358] I transferred 1 bytes from 7 to 5
2024/03/05 10:42:01.952257 length=2 from=2 to=3
5e 40
2024/03/05 10:42:01 socat[18358] I transferred 2 bytes from 5 to 7
< 2024/03/05 10:42:01.968592 length=1 from=2 to=2
00
2024/03/05 10:42:01 socat[18358] I transferred 1 bytes from 7 to 5
2024/03/05 10:42:01.968880 length=2 from=4 to=5
5e 40
2024/03/05 10:42:01 socat[18358] I transferred 2 bytes from 5 to 7
< 2024/03/05 10:42:01.985748 length=1 from=3 to=3
00
2024/03/05 10:42:01 socat[18358] I transferred 1 bytes from 7 to 5
2024/03/05 10:42:01.986041 length=2 from=6 to=7
5e 40
2024/03/05 10:42:01 socat[18358] I transferred 2 bytes from 5 to 7
< 2024/03/05 10:42:02.002669 length=1 from=4 to=4
00
2024/03/05 10:42:02 socat[18358] I transferred 1 bytes from 7 to 5
2024/03/05 10:42:02.002990 length=2 from=8 to=9
5e 40
2024/03/05 10:42:02 socat[18358] I transferred 2 bytes from 5 to 7
< 2024/03/05 10:42:02.018605 length=1 from=5 to=5
00
2024/03/05 10:42:02 socat[18358] I transferred 1 bytes from 7 to 5
2024/03/05 10:42:02.018893 length=2 from=10 to=11
5e 40
2024/03/05 10:42:02 socat[18358] I transferred 2 bytes from 5 to 7
< 2024/03/05 10:42:02.032636 length=1 from=6 to=6
00
2024/03/05 10:42:02 socat[18358] I transferred 1 bytes from 7 to 5
2024/03/05 10:42:02.032915 length=2 from=12 to=13
5e 40
2024/03/05 10:42:02 socat[18358] I transferred 2 bytes from 5 to 7
< 2024/03/05 10:42:02.046744 length=1 from=7 to=7
00
2024/03/05 10:42:02 socat[18358] I transferred 1 bytes from 7 to 5
2024/03/05 10:42:02.047036 length=2 from=14 to=15
5e 40
2024/03/05 10:42:02 socat[18358] I transferred 2 bytes from 5 to 7
< 2024/03/05 10:42:02.063499 length=1 from=8 to=8
00
2024/03/05 10:42:02 socat[18358] I transferred 1 bytes from 7 to 5
2024/03/05 10:42:02.063798 length=2 from=16 to=17
5e 40
2024/03/05 10:42:02 socat[18358] I transferred 2 bytes from 5 to 7
< 2024/03/05 10:42:02.078780 length=1 from=9 to=9
00
2024/03/05 10:42:02 socat[18358] I transferred 1 bytes from 7 to 5
2024/03/05 10:42:02.079034 length=2 from=18 to=19
5e 40
2024/03/05 10:42:02 socat[18358] I transferred 2 bytes from 5 to 7
< 2024/03/05 10:42:02.095842 length=1 from=10 to=10
00
2024/03/05 10:42:02 socat[18358] I transferred 1 bytes from 7 to 5
2024/03/05 10:42:02.096117 length=2 from=20 to=21
5e 40
2024/03/05 10:42:02 socat[18358] I transferred 2 bytes from 5 to 7
< 2024/03/05 10:42:02.113745 length=1 from=11 to=11
00
2024/03/05 10:42:02 socat[18358] I transferred 1 bytes from 7 to 5
2024/03/05 10:42:02.114038 length=2 from=22 to=23
5e 40
2024/03/05 10:42:02 socat[18358] I transferred 2 bytes from 5 to 7
< 2024/03/05 10:42:02.128622 length=1 from=12 to=12
00
2024/03/05 10:42:02 socat[18358] I transferred 1 bytes from 7 to 5
2024/03/05 10:42:02.128900 length=2 from=24 to=25
5e 40
2024/03/05 10:42:02 socat[18358] I transferred 2 bytes from 5 to 7
< 2024/03/05 10:42:02.144638 length=1 from=13 to=13
00
2024/03/05 10:42:02 socat[18358] I transferred 1 bytes from 7 to 5
2024/03/05 10:42:02.144907 length=2 from=26 to=27
5e 40
2024/03/05 10:42:02 socat[18358] I transferred 2 bytes from 5 to 7
< 2024/03/05 10:42:02.159213 length=1 from=14 to=14
00
2024/03/05 10:42:02 socat[18358] I transferred 1 bytes from 7 to 5
2024/03/05 10:42:02.159482 length=2 from=28 to=29
5e 40
2024/03/05 10:42:02 socat[18358] I transferred 2 bytes from 5 to 7
^C2024/03/05 10:42:03 socat[18358] N socat_signal(): handling signal 2
2024/03/05 10:42:03 socat[18358] N exiting on signal 2
2024/03/05 10:42:03 socat[18358] N socat_signal(): finishing signal 2
2024/03/05 10:42:03 socat[18358] N exit(130)
2024/03/05 10:42:03 socat[18358] I close(5)
2024/03/05 10:42:03 socat[18358] I shutdown(7, 2)
wb-mqtt-serial остановлен, и при перенаправлении с других модулей такого не наблюдается. Может ли это быть связано с первой проблемой?