Прошу прощения за долгий ответ.
- Плохой ответ регистра температуры
А у вас есть возможность посмотреть сообщения прям по байтикам, чтобы не гадать?
Опросила датчик с прошивкой 4.34 сто раз в цикле по всякому: один регистр, 12 регистров - всё нормально отвечает.
Вы говорите по одному регистру опрашиваете или всё таки группой?
По идее если бы пропускал ответ - видно было бы ошибку. Значит, надо смотреть, что там у вас конкретно по байтикам происходит - мы можем только за наше устройство отвечать - если там что-то в вашем софте - это мы не можем.
Можете ли привести запрос-ответ по байтикам, как у вас сейчас опрашивается?
Вывод опроса 100 раз 12 регистров
root@wirenboard-AXBHU2GJ:~# for i in {0..100}; do echo $i; modbus_client --debug -mrtu -b9600 -pnone -s2 /dev/ttyRS485-2 -a10 -c12 -t0x04 -r0; done
0
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6D><0A><01><76><7F><80>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096d 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
1
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6D><0A><01><76><7F><80>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096d 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
2
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6D><0A><01><76><7F><80>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096d 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
3
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6D><0A><01><76><7F><80>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096d 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
4
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6D><0A><01><76><7F><80>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096d 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
5
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6D><0A><01><76><7F><80>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096d 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
6
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6D><0A><01><76><7F><80>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096d 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
7
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6D><0A><01><76><7F><80>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096d 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
8
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6D><0A><01><76><7F><80>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096d 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
9
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6D><0A><01><76><7F><80>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096d 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
10
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6D><0A><01><76><7F><80>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096d 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
11
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6D><0A><01><76><7F><80>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096d 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
12
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6D><0A><01><76><7F><80>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096d 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
13
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6D><0A><01><76><7F><80>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096d 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
14
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6D><0A><01><76><7F><80>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096d 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
15
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6D><0A><01><76><7F><80>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096d 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
16
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6D><0A><01><76><7F><80>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096d 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
17
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><06>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
18
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><06>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
19
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><06>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
20
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><06>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
21
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><06>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
22
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><06>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
23
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><06>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
24
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><06>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
25
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><06>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
26
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><06>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
27
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><06>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
28
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><06>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
29
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><06>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
30
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><06>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
31
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><06>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
32
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><06>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0adc 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
……………….
66
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6C><0A><01><76><7F><1D>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096c 0x0ae5 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
67
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6C><0A><01><76><7F><1D>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096c 0x0ae5 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
68
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6C><0A><01><76><7F><1D>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096c 0x0ae5 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
69
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><56>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0ae0 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
70
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><56>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0ae0 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
71
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><56>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0ae0 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
72
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><56>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0ae0 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
73
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><56>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0ae0 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
74
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><56>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0ae0 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
75
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><56>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0ae0 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
76
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><56>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0ae0 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
77
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><56>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0ae0 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
78
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><56>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0ae0 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
79
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><56>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0ae0 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
80
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><56>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0ae0 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
81
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><56>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0ae0 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
82
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><56>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0ae0 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
83
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><56>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0ae0 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
84
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><56>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0ae0 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
85
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><56>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0ae0 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
86
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><6B><0A><01><76><7F><56>
SUCCESS: read 12 of elements:
Data: 0x00f1 0x0116 0x0022 0xfffe 0x096b 0x0ae0 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
87
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><69><0A><01><76><7F><1B>
SUCCESS: read 12 of elements:
Data: 0x00f0 0x0116 0x0022 0xfffe 0x0969 0x0ae1 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
88
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><69><0A><01><76><7F><1B>
SUCCESS: read 12 of elements:
Data: 0x00f0 0x0116 0x0022 0xfffe 0x0969 0x0ae1 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
89
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><69><0A><01><76><7F><1B>
SUCCESS: read 12 of elements:
Data: 0x00f0 0x0116 0x0022 0xfffe 0x0969 0x0ae1 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
90
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><69><0A><01><76><7F><1B>
SUCCESS: read 12 of elements:
Data: 0x00f0 0x0116 0x0022 0xfffe 0x0969 0x0ae1 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
91
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><69><0A><01><76><7F><1B>
SUCCESS: read 12 of elements:
Data: 0x00f0 0x0116 0x0022 0xfffe 0x0969 0x0ae1 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
92
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><69><0A><01><76><7F><1B>
SUCCESS: read 12 of elements:
Data: 0x00f0 0x0116 0x0022 0xfffe 0x0969 0x0ae1 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
93
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><69><0A><01><76><7F><1B>
SUCCESS: read 12 of elements:
Data: 0x00f0 0x0116 0x0022 0xfffe 0x0969 0x0ae1 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
94
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><69><0A><01><76><7F><1B>
SUCCESS: read 12 of elements:
Data: 0x00f0 0x0116 0x0022 0xfffe 0x0969 0x0ae1 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
95
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><69><0A><01><76><7F><1B>
SUCCESS: read 12 of elements:
Data: 0x00f0 0x0116 0x0022 0xfffe 0x0969 0x0ae1 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
96
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><69><0A><01><76><7F><1B>
SUCCESS: read 12 of elements:
Data: 0x00f0 0x0116 0x0022 0xfffe 0x0969 0x0ae1 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
97
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><69><0A><01><76><7F><1B>
SUCCESS: read 12 of elements:
Data: 0x00f0 0x0116 0x0022 0xfffe 0x0969 0x0ae1 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
98
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><69><0A><01><76><7F><1B>
SUCCESS: read 12 of elements:
Data: 0x00f0 0x0116 0x0022 0xfffe 0x0969 0x0ae1 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
99
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><69><0A><01><76><7F><1B>
SUCCESS: read 12 of elements:
Data: 0x00f0 0x0116 0x0022 0xfffe 0x0969 0x0ae1 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
100
Opening /dev/ttyRS485-2 at 9600 bauds (N, 8, 2)
[0A][04][00][00][00][0C][F1][74]
Waiting for a confirmation…
<0A><04><18><00><01><16><00><22><09><69><0A><01><76><7F><1B>
SUCCESS: read 12 of elements:
Data: 0x00f0 0x0116 0x0022 0xfffe 0x0969 0x0ae1 0x0176 0x7fff 0xfffe 0xfffe 0xfffe 0xffff
root@wirenboard-AXBHU2GJ:~#
- Как опросить modbus_client-ом
Опрос по modbus_client мы пытаемся сделать как раз, чтобы увидеть байтики.
У вас в выводе я вижу, что отправляется запрос по протоколу modbus-tcp при этом приходит ответ!!! но ответ какбудто соответствует стандарту modbus-rtu, а не tcp.
Я, к своему стыду, не понимаю, как и почему это происходит.
modbus_client ваш опрос
modbus_client_1.3.0.exe --debug -mtcp -a35 -c1 -r11 -t0x04 -o300 -p23 192.168.12.65
Connecting to 192.168.12.65:23
[00][01][00][00][00][06][23][04][00][0B][00][01]
Waiting for a confirmation…
<23><04><06><00><00><00><00>
Invalid transaction ID received 0x2304 (not 0x1)
ERROR occured!
Мы попытались воспроизвести из любопытства, с windows и с linux, но у нас при настройке шлюза на Modbus-TCP - нормально работает, а при настройке Modbus over TCP - ошибка таймаута.
Соответственно, можете, пожалуйста, зайти в веб-интерфейс шлюза, показать, как настраивали.
И для диагностики, если можно, настроить его на Modbus-tcp. И попробовать ещё раз опросить что-нибудь по modbus, как пробовали ранее. При успехе сможем воспроизвести опрос в цикле сто раз и увидеть, отвечает ли датчик, как надо - хотя бы это поймём.
Правильно понимаю, что у вас шлюз WB-MIO-E v.2? (Вы говорили, что у вас WB-MIO v.2 - но такого не бывает, а WB-MIO не имеет Ethernet)