Если я все сделал верно то вот так:
root@wirenboard-AQFOEHJG:~# modbus_client_rpc --debug -mrtu -b115200 -pnone -s2 /dev/ttyRS485-2 -a233 -t0x04 -r82
2025-11-24 11:37:24,639 [DEBUG] [e9][04][00][52][00][01][87][33]
2025-11-24 11:37:24,642 [DEBUG] Connecting to broker unix:///var/run/mosquitto/mosquitto.sock
2025-11-24 11:37:24,644 [DEBUG] RPC Client → {‘path’: ‘/dev/ttyRS485-2’, ‘baud_rate’: 115200, ‘parity’: ‘N’, ‘data_bits’: 8, ‘stop_bits’: 2, ‘response_size’: 7, ‘format’: ‘HEX’, ‘msg’: ‘e904005200018733’, ‘total_timeout’: 1000} (1000 timeout ms)
2025-11-24 11:37:25,265 [DEBUG] Options: {‘debug’: True, ‘mode’: ‘rtu’, ‘slave_addr’: 233, ‘read_count’: 1, ‘start_addr’: 82, ‘func_type’: 4, ‘timeout’: 1000, ‘address_decrement’: False, ‘baudrate’: 115200, ‘data_bits’: 8, ‘stop_bits’: 2, ‘parity_port’: ‘N’, ‘mqtt_broker’: ‘unix:///var/run/mosquitto/mosquitto.sock’, ‘serialport_host’: ‘/dev/ttyRS485-2’, ‘write_data’: }
ERROR occurred
2025-11-24 11:37:26,268 [DEBUG] Error message: Server error
2025-11-24 11:37:26,269 [DEBUG] Error code: -32000
2025-11-24 11:37:26,270 [DEBUG] Error data: Port IO error: Serial protocol error: request timed out
root@wirenboard-AQFOEHJG:~# modbus_client_rpc --debug -mrtu -b115200 -pnone -s2 /dev/ttyRS485-2 -a233 -t0x04 -r83
2025-11-24 11:37:50,332 [DEBUG] [e9][04][00][53][00][01][d6][f3]
2025-11-24 11:37:50,335 [DEBUG] Connecting to broker unix:///var/run/mosquitto/mosquitto.sock
2025-11-24 11:37:50,338 [DEBUG] RPC Client → {‘path’: ‘/dev/ttyRS485-2’, ‘baud_rate’: 115200, ‘parity’: ‘N’, ‘data_bits’: 8, ‘stop_bits’: 2, ‘response_size’: 7, ‘format’: ‘HEX’, ‘msg’: ‘e90400530001d6f3’, ‘total_timeout’: 1000} (1000 timeout ms)
2025-11-24 11:37:50,903 [DEBUG] Options: {‘debug’: True, ‘mode’: ‘rtu’, ‘slave_addr’: 233, ‘read_count’: 1, ‘start_addr’: 83, ‘func_type’: 4, ‘timeout’: 1000, ‘address_decrement’: False, ‘baudrate’: 115200, ‘data_bits’: 8, ‘stop_bits’: 2, ‘parity_port’: ‘N’, ‘mqtt_broker’: ‘unix:///var/run/mosquitto/mosquitto.sock’, ‘serialport_host’: ‘/dev/ttyRS485-2’, ‘write_data’: }
ERROR occurred
2025-11-24 11:37:51,906 [DEBUG] Error message: Server error
2025-11-24 11:37:51,907 [DEBUG] Error code: -32000
2025-11-24 11:37:51,907 [DEBUG] Error data: Port IO error: Serial protocol error: request timed out