Добрый день. Прошу помочь. Пытаемся написать шаблон для устройства но по каким-то причинам даже из веб интерфейса создавая простейшее устройство modbus с одним двумя полями, опрос не проходит… хотя опрос из консоли проходит отлично.
Пример из консоли : modbus_client_rpc -mrtu -b9600 -pnone -s1 /dev/ttyRS485-1 -a77 -t0x03 -r0
SUCCESS: read 1 elements:
Data: 0x00f7
возвращает 247 делим на 10 получаем как положенно темпер 24.7
идем в веб интерфейс содаем устройство и в итоге опрос не идет…
в логах
10-04-2025 20:26:10.509 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: Sleep 0 us
10-04-2025 20:26:10.508 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: ReadFrame: 4d 86 02 02 76
10-04-2025 20:26:10.472 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: Sleep 8334 us
10-04-2025 20:26:10.464 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: Write: 4d 06 00 72 00 01 e6 1d
10-04-2025 20:26:10.464 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: Sleep 0 us
10-04-2025 20:26:10.464 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: Sleep 20000 us
10-04-2025 20:26:10.463 [wb-mqtt-serial] DEBUG: [serial client] </dev/ttyRS485-1 9600 8 N 1>910231: Wait until 910231
10-04-2025 20:26:09.916 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: Sleep 8334 us
10-04-2025 20:26:09.907 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: Write: 4d 03 00 2f 00 01 bb cf
10-04-2025 20:26:09.907 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: Sleep 0 us
10-04-2025 20:26:09.907 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: ReadFrame: 4d 86 02 02 76
10-04-2025 20:26:09.862 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: Sleep 8334 us
10-04-2025 20:26:09.853 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: Write: 4d 06 00 72 00 01 e6 1d
10-04-2025 20:26:09.853 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: Sleep 0 us
10-04-2025 20:26:09.853 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: Sleep 20000 us
10-04-2025 20:26:09.835 [wb-mqtt-serial] DEBUG: [serial client] </dev/ttyRS485-1 9600 8 N 1>909603: Wait until 909603
10-04-2025 20:26:09.835 [wb-mqtt-serial] DEBUG: [serial port] Setup /dev/ttyRS485-1 port: 9600 8 N 1
10-04-2025 20:26:09.835 [wb-mqtt-serial] WARNING: </dev/ttyRS485-1 9600 8 N 1>: closed due to repetitive errors
10-04-2025 20:26:09.285 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: Sleep 8334 us
10-04-2025 20:26:09.276 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: Write: 4d 02 00 00 00 01 b7 c6
10-04-2025 20:26:09.276 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: Sleep 0 us
10-04-2025 20:26:09.275 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: ReadFrame: 4d 86 02 02 76
10-04-2025 20:26:09.230 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: Sleep 8334 us
10-04-2025 20:26:09.221 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: Write: 4d 06 00 72 00 01 e6 1d
10-04-2025 20:26:09.221 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: Sleep 0 us
10-04-2025 20:26:09.221 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: Sleep 20000 us
10-04-2025 20:26:09.221 [wb-mqtt-serial] DEBUG: [serial client] </dev/ttyRS485-1 9600 8 N 1>908989: Wait until 908989
10-04-2025 20:26:08.673 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: Sleep 8334 us
10-04-2025 20:26:08.665 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: Write: 4d 04 00 00 00 01 3f c6
10-04-2025 20:26:08.665 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: Sleep 0 us
10-04-2025 20:26:08.664 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: ReadFrame: 4d 86 02 02 76
10-04-2025 20:26:08.627 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: Sleep 8334 us
10-04-2025 20:26:08.622 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: Write: 4d 06 00 72 00 01 e6 1d
10-04-2025 20:26:08.618 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: Sleep 0 us
10-04-2025 20:26:08.618 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: Sleep 20000 us
10-04-2025 20:26:08.618 [wb-mqtt-serial] DEBUG: [serial client] </dev/ttyRS485-1 9600 8 N 1>908387: Wait until 908387
10-04-2025 20:26:08.071 [wb-mqtt-serial] DEBUG: [port] /dev/ttyRS485-1: Sleep 8334 us