root@wirenboard-ALSPTZPR:~# modbus_client --debug -mrtu -b115200 -pnone -s2 /dev/ttyRS485-1 -a232 -t0x04 -r0x0000 16
modbus_client --debug -mrtu -b115200 -pnone -s2 /dev/ttyRS485-1 -a232 -t0x04 -r0x0010 16
0x0010 Opening /dev/ttyRS485-1 at 115200 bauds (N, 8, 2)
[E8][04][00][00][00][01][27][33]
Waiting for a confirmation…
ERROR Resource temporarily unavailable: read
ERROR occured!
0x0010 Opening /dev/ttyRS485-1 at 115200 bauds (N, 8, 2)
[E8][04][00][10][00][01][26][F6]
Waiting for a confirmation…
<04><02><00><00>
SUCCESS: read 1 of elements:
Data: 0x0000
root@wirenboard-ALSPTZPR:~# for r in $(seq 0 16); do
printf “REG 0x%04X\n” “$r”
modbus_client --debug -mrtu -b115200 -pnone -s2 /dev/ttyRS485-1 -a232 -t0x04 -r"$r" 1
done
REG 0x0000
0x0001 Opening /dev/ttyRS485-1 at 115200 bauds (N, 8, 2)
[E8][04][00][00][00][01][27][33]
Waiting for a confirmation…
ERROR Resource temporarily unavailable: read
ERROR occured!
REG 0x0001
0x0001 Opening /dev/ttyRS485-1 at 115200 bauds (N, 8, 2)
[E8][04][00][01][00][01][76][F3]
Waiting for a confirmation…
<04><02><00><00>
SUCCESS: read 1 of elements:
Data: 0x0000
REG 0x0002
0x0001 Opening /dev/ttyRS485-1 at 115200 bauds (N, 8, 2)
[E8][04][00][02][00][01][86][F3]
Waiting for a confirmation…
ERROR Connection reset by peer: read
ERROR occured!
REG 0x0003
0x0001 Opening /dev/ttyRS485-1 at 115200 bauds (N, 8, 2)
[E8][04][00][03][00][01][D7][33]
Waiting for a confirmation…
<04><02><00><00>
SUCCESS: read 1 of elements:
Data: 0x0000
REG 0x0004
0x0001 Opening /dev/ttyRS485-1 at 115200 bauds (N, 8, 2)
[E8][04][00][04][00][01][66][F2]
Waiting for a confirmation…
ERROR Connection reset by peer: read
ERROR occured!
REG 0x0005
0x0001 Opening /dev/ttyRS485-1 at 115200 bauds (N, 8, 2)
[E8][04][00][05][00][01][37][32]
Waiting for a confirmation…
<04><02><24><97>
SUCCESS: read 1 of elements:
Data: 0xfffe
REG 0x0006
0x0001 Opening /dev/ttyRS485-1 at 115200 bauds (N, 8, 2)
[E8][04][00][06][00][01][C7][32]
Waiting for a confirmation…
ERROR Connection reset by peer: read
ERROR occured!
REG 0x0007
0x0001 Opening /dev/ttyRS485-1 at 115200 bauds (N, 8, 2)
[E8][04][00][07][00][01][96][F2]
Waiting for a confirmation…
<04><02><24><97>
SUCCESS: read 1 of elements:
Data: 0xfffe
REG 0x0008
0x0001 Opening /dev/ttyRS485-1 at 115200 bauds (N, 8, 2)
[E8][04][00][08][00][01][A6][F1]
Waiting for a confirmation…
<04><02><00><0A><64>
SUCCESS: read 1 of elements:
Data: 0x000a
REG 0x0009
0x0001 Opening /dev/ttyRS485-1 at 115200 bauds (N, 8, 2)
[E8][04][00][09][00][01][F7][31]
Waiting for a confirmation…
<04><02><00>
SUCCESS: read 1 of elements:
Data: 0x00f0
REG 0x000A
0x0001 Opening /dev/ttyRS485-1 at 115200 bauds (N, 8, 2)
[E8][04][00][0A][00][01][07][31]
Waiting for a confirmation…
<04><00><01><25>
ERROR CRC received 0x125 != CRC calculated 0xF334
ERROR occured!
REG 0x000B
0x0001 Opening /dev/ttyRS485-1 at 115200 bauds (N, 8, 2)
[E8][04][00][0B][00][01][56][F1]
Waiting for a confirmation…
<04><02><24><97>
SUCCESS: read 1 of elements:
Data: 0xfffe
REG 0x000C
0x0001 Opening /dev/ttyRS485-1 at 115200 bauds (N, 8, 2)
[E8][04][00][0C][00][01][E7][30]
Waiting for a confirmation…
ERROR Connection reset by peer: read
ERROR occured!
REG 0x000D
0x0001 Opening /dev/ttyRS485-1 at 115200 bauds (N, 8, 2)
[E8][04][00][0D][00][01][B6][F0]
Waiting for a confirmation…
<04><02><24><97>
SUCCESS: read 1 of elements:
Data: 0xfffe
REG 0x000E
0x0001 Opening /dev/ttyRS485-1 at 115200 bauds (N, 8, 2)
[E8][04][00][0E][00][01][46][F0]
Waiting for a confirmation…
ERROR Resource temporarily unavailable: read
<60>ERROR occured!
REG 0x000F
0x0001 Opening /dev/ttyRS485-1 at 115200 bauds (N, 8, 2)
[E8][04][00][0F][00][01][17][30]
Waiting for a confirmation…
ERROR Connection reset by peer: read
<04>ERROR occured!
REG 0x0010
0x0001 Opening /dev/ttyRS485-1 at 115200 bauds (N, 8, 2)
[E8][04][00][10][00][01][26][F6]
Waiting for a confirmation…
<04><02><00><00>
SUCCESS: read 1 of elements:
Data: 0x0000