Нет ответа. Есть ли возможность просканировать разные адреса?
root@wirenboard-ABA2TBLP:~# systemctl stop wb-mqtt-serial
root@wirenboard-ABA2TBLP:~# socat -d -d -d -x PTY,raw,b9600,parenb=0,cstopb=1,cs8,link=/dev/ttyRS485-5 tcp:192.168.102.113:23
2024/10/02 15:05:28 socat[27442] I socat by Gerhard Rieger and contributors - see www.dest-unreach.org
2024/10/02 15:05:28 socat[27442] I This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/)
2024/10/02 15:05:28 socat[27442] I This product includes software written by Tim Hudson (tjh@cryptsoft.com)
2024/10/02 15:05:28 socat[27442] I setting option "raw"
2024/10/02 15:05:28 socat[27442] I setting option "b9600"
2024/10/02 15:05:28 socat[27442] I setting option "parenb" to 0
2024/10/02 15:05:28 socat[27442] I setting option "cstopb" to 1
2024/10/02 15:05:28 socat[27442] I setting option "cs8"
2024/10/02 15:05:28 socat[27442] I setting option "symbolic-link" to "/dev/ttyRS485-5"
2024/10/02 15:05:28 socat[27442] I openpty({5}, {6}, {"/dev/pts/5"},,) -> 0
2024/10/02 15:05:28 socat[27442] N PTY is /dev/pts/5
2024/10/02 15:05:28 socat[27442] N opening connection to AF=2 192.168.102.113:23
2024/10/02 15:05:28 socat[27442] I starting connect loop
2024/10/02 15:05:28 socat[27442] I socket(2, 1, 6) -> 7
2024/10/02 15:05:28 socat[27442] N successfully connected from local address AF=2 192.168.102.112:37978
2024/10/02 15:05:28 socat[27442] I resolved and opened all sock addresses
2024/10/02 15:05:28 socat[27442] N starting data transfer loop with FDs [5,5] and [7,7]
> 2024/10/02 15:13:18.751514 length=8 from=32 to=39
6f 03 00 01 00 01 dd 44
2024/10/02 15:13:18 socat[27442] I transferred 8 bytes from 5 to 7
< 2024/10/02 15:13:18.784313 length=7 from=19 to=25
6f 03 02 ff fe 91 fd
2024/10/02 15:13:18 socat[27442] I transferred 7 bytes from 7 to 5
> 2024/10/02 15:20:20.554389 length=8 from=40 to=47
01 03 00 01 00 01 d5 ca
2024/10/02 15:20:20 socat[27442] I transferred 8 bytes from 5 to 7
Первая попытка к существующему WB устройству, вторая к PZEM
root@wirenboard-ABA2TBLP:~# modbus_client --debug -mrtu -b9600 -pnone -s1 /dev/ttyRS485-5 -a111 -t0x03 -r1
Opening /dev/ttyRS485-5 at 9600 bauds (N, 8, 1)
[6F][03][00][01][00][01][DD][44]
Waiting for a confirmation...
<6F><03><02><FF><FE><91><FD>
SUCCESS: read 1 of elements:
Data: 0xfffe
root@wirenboard-ABA2TBLP:~# modbus_client --debug -mrtu -b9600 -pnone -s1 /dev/ttyRS485-5 -a1 -t0x03 -r1
Opening /dev/ttyRS485-5 at 9600 bauds (N, 8, 1)
[01][03][00][01][00][01][D5][CA]
Waiting for a confirmation...
ERROR Connection timed out: select
ERROR occured!
root@wirenboard-ABA2TBLP:~#