Impossible de connecter plus de deux équipements sur le bus

Bonjour,

J’ai un bus modbus avec 2 sondes respectivement ID1 et ID3, le bus est terminé aux extrémités par une résistance 120Ohms, j’utilise une clef usb/série RS 485 DSD TECH SH-U10 Convertisseur USB vers RS485 pour Modbus

Modbus




Tout fonctionne lorsque un seul capteur est branché que ce soit le 1 ou le 3.

[2025-08-28 18:04:16][DEBUG] : Sonde Id 3: ‹ add_change › No modification to send
[2025-08-28 18:04:18][DEBUG] : Sonde Id 3: ‹ one_cycle_read › treatment cmd_id = 122
[2025-08-28 18:04:18][DEBUG] : Sonde Id 3: ‹ one_cycle_read ›/Niveau_RT: requesting read
[2025-08-28 18:04:18][DEBUG] : send: 0x3 0x3 0x1 0x1 0x0 0x1 0xd5 0xd4
[2025-08-28 18:04:18][DEBUG] : recv: 0x3 old_data: addr=None
[2025-08-28 18:04:18][DEBUG] : Processing: 0x3
[2025-08-28 18:04:18][DEBUG] : Short frame: 0x3 wait for more data
[2025-08-28 18:04:18][DEBUG] : recv, unused data waiting for next packet: 0x3
[2025-08-28 18:04:18][DEBUG] : recv: 0x3 old_data: 0x3 addr=None
[2025-08-28 18:04:18][DEBUG] : Processing: 0x3 0x3
[2025-08-28 18:04:18][DEBUG] : Short frame: 0x3 0x3 wait for more data
[2025-08-28 18:04:18][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3
[2025-08-28 18:04:18][DEBUG] : recv: 0x2 old_data: 0x3 0x3 addr=None
[2025-08-28 18:04:18][DEBUG] : Processing: 0x3 0x3 0x2
[2025-08-28 18:04:18][DEBUG] : Short frame: 0x3 0x3 0x2 wait for more data
[2025-08-28 18:04:18][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3 0x2
[2025-08-28 18:04:18][DEBUG] : recv: 0x0 old_data: 0x3 0x3 0x2 addr=None
[2025-08-28 18:04:18][DEBUG] : Processing: 0x3 0x3 0x2 0x0
[2025-08-28 18:04:18][DEBUG] : Frame - not ready
[2025-08-28 18:04:18][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3 0x2 0x0
[2025-08-28 18:04:18][DEBUG] : recv: 0xfa old_data: 0x3 0x3 0x2 0x0 addr=None
[2025-08-28 18:04:18][DEBUG] : Processing: 0x3 0x3 0x2 0x0 0xfa
[2025-08-28 18:04:18][DEBUG] : Frame - not ready
[2025-08-28 18:04:18][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3 0x2 0x0 0xfa
[2025-08-28 18:04:18][DEBUG] : recv: 0x41 old_data: 0x3 0x3 0x2 0x0 0xfa addr=None
[2025-08-28 18:04:18][DEBUG] : Processing: 0x3 0x3 0x2 0x0 0xfa 0x41
[2025-08-28 18:04:18][DEBUG] : Frame - not ready
[2025-08-28 18:04:18][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3 0x2 0x0 0xfa 0x41
[2025-08-28 18:04:18][DEBUG] : recv: 0xc7 old_data: 0x3 0x3 0x2 0x0 0xfa 0x41 addr=None
[2025-08-28 18:04:18][DEBUG] : Processing: 0x3 0x3 0x2 0x0 0xfa 0x41 0xc7
[2025-08-28 18:04:18][DEBUG] : decoded PDU function_code(3 sub -1) → ReadHoldingRegistersResponse(dev_id=0, transaction_id=0, address=0, count=0, bits=, registers=[250], status=1)
[2025-08-28 18:04:18][DEBUG] : Frame advanced, resetting header!!
[2025-08-28 18:04:18][DEBUG] : Sonde Id 3: ‹ process_read_response › launched for command id = 122
[2025-08-28 18:04:18][DEBUG] : Sonde Id 3: ‹ cmd_decode › launched for command id = 122
[2025-08-28 18:04:18][DEBUG] : Sonde Id 3: ‹ add_change › launched with payload = {‹ values::122 ›: 250}
[2025-08-28 18:04:18][DEBUG] : Sonde Id 3: ‹ add_change › No modification to send
[2025-08-28 18:04:20][DEBUG] : Sonde Id 3: ‹ one_cycle_read › exit with error_or_exception = False

Dès que je connecte une seconde sonde, 1 dans ce cas ci, j’ai un message d’erreur pour celle ci :

[2025-08-28 18:05:11][WARNING] : Failed to connect [Errno 11] Could not exclusively lock port /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0: [Errno 11] Resource temporarily unavailable


[2025-08-28 18:05:11][INFO] : MyModbusd: Starting the task for the equipement Sonde Id 1
[2025-08-28 18:05:11][DEBUG] : Sonde Id 1: 'read_downstream' launched
[2025-08-28 18:05:11][DEBUG] : MyModbusd: 'read_upstream' run for Sonde Id 1 (id = 11)
[2025-08-28 18:05:11][DEBUG] : Connecting to /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0:0.
[2025-08-28 18:05:11][DEBUG] : Connecting Sonde Id 1
[2025-08-28 18:05:11][WARNING] : Failed to connect [Errno 11] Could not exclusively lock port /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0: [Errno 11] Resource temporarily unavailable
[2025-08-28 18:05:11][DEBUG] : Sonde Id 1: connection opened
[2025-08-28 18:05:11][INFO] : Sonde Id 1: 'async_connect' first call
[2025-08-28 18:05:11][DEBUG] : Sonde Id 1: 'run_loop' launched in mode 'polling'
[2025-08-28 18:05:11][DEBUG] : Sonde Id 1: 'one_cycle_read' launched
[2025-08-28 18:05:11][DEBUG] : Sonde Id 1: 'one_cycle_read' treatment cmd_id = 106
[2025-08-28 18:05:11][DEBUG] : Connecting to /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0:0.
[2025-08-28 18:05:11][DEBUG] : Connecting Sonde Id 1
[2025-08-28 18:05:11][DEBUG] : Sonde Id 1: 'add_change' launched with payload = {'values::polling': {'value': 10.0, 'eqId': '11'}}
[2025-08-28 18:05:11][DEBUG] : MyModbusd: Message received from MyModbusClient Sonde Id 1: {'add_change': {'values::polling': {'value': 10.0, 'eqId': '11'}}}
[2025-08-28 18:05:11][WARNING] : Failed to connect [Errno 11] Could not exclusively lock port /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0: [Errno 11] Resource temporarily unavailable
[2025-08-28 18:05:11][DEBUG] : Sonde Id 1: connection opened
[2025-08-28 18:05:11][DEBUG] : Sonde Id 1: 'one_cycle_read'/Niveau: requesting read
[2025-08-28 18:05:11][ERROR] : Sonde Id 1/Niveau: exception during read request on device id 1, address 256 -> Modbus Error: [Connection] Not connected[AsyncModbusSerialClient /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0:0]
[2025-08-28 18:05:11][DEBUG] : Sonde Id 1: 'add_change' launched with payload = {'values::cycle_ok': {'value': 0, 'eqId': '11'}}
[2025-08-28 18:05:11][DEBUG] : MyModbusd: Message received from MyModbusClient Sonde Id 1: {'add_change': {'values::cycle_ok': {'value': 0, 'eqId': '11'}}}
[2025-08-28 18:05:11][DEBUG] : Try sending to jeedom: {'values': {'polling': {'value': 10.0, 'eqId': '11'}, 'cycle_ok': {'value': 0, 'eqId': '11'}}}
[2025-08-28 18:05:13][DEBUG] : Sonde Id 3: 'run_loop' cancelled
[2025-08-28 18:05:13][DEBUG] : Sonde Id 3: 'run_loop' exit
[2025-08-28 18:05:13][INFO] : Sonde Id 3: Modbus communication closed
[2025-08-28 18:05:13][DEBUG] : Sonde Id 3: 'read_eqConfig' client params for Sonde Id 3: {'name': 'Sonde Id 3', 'timeout': 5.0, 'retries': 3.0, 'trace_connect': <bound method MyModbusBase.trace_connect_callback of <mymodbusclient.MyModbusClient object at 0x7fbebe37e850>>, 'port': '/dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0', 'baudrate': 9600, 'stopbits': 1, 'bytesize': 8, 'parity': 'N', 'framer': <FramerType.RTU: 'rtu'>}
[2025-08-28 18:05:13][DEBUG] : Sonde Id 3: 'read_eqConfig' Modbus request for cmd id 120: ReadHoldingRegistersRequest(dev_id=3, transaction_id=0, address=256, count=1, bits=[], registers=[], status=1)
[2025-08-28 18:05:13][DEBUG] : Sonde Id 3: 'read_eqConfig' Modbus request for cmd id 122: ReadHoldingRegistersRequest(dev_id=3, transaction_id=0, address=257, count=1, bits=[], registers=[], status=1)
[2025-08-28 18:05:13][DEBUG] : Sonde Id 3: 'connect' ModbusClient of Sonde Id 3 = AsyncModbusSerialClient /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0:0
[2025-08-28 18:05:13][DEBUG] : Connecting to /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0:0.
[2025-08-28 18:05:13][DEBUG] : Connecting Sonde Id 3
[2025-08-28 18:05:13][DEBUG] : Connected to Sonde Id 3
[2025-08-28 18:05:13][DEBUG] : Sonde Id 3: 'trace_connect_callback' called with connected = True
[2025-08-28 18:05:13][DEBUG] : Sonde Id 3: connection opened
[2025-08-28 18:05:13][INFO] : Sonde Id 3: 'async_connect' first call
[2025-08-28 18:05:13][DEBUG] : Sonde Id 3: 'run_loop' launched in mode 'polling'
[2025-08-28 18:05:13][DEBUG] : Sonde Id 3: 'one_cycle_read' launched
[2025-08-28 18:05:13][DEBUG] : Sonde Id 3: 'one_cycle_read' treatment cmd_id = 120
[2025-08-28 18:05:13][DEBUG] : Sonde Id 3: 'one_cycle_read'/Niveau: requesting read
[2025-08-28 18:05:13][DEBUG] : send: 0x3 0x3 0x1 0x0 0x0 0x1 0x84 0x14
[2025-08-28 18:05:13][DEBUG] : Sonde Id 3: 'add_change' launched with payload = {'values::polling': {'value': 10.0, 'eqId': '13'}}
[2025-08-28 18:05:13][DEBUG] : Sonde Id 3: 'add_change' No modification to send
[2025-08-28 18:05:13][DEBUG] : Sonde Id 1: 'one_cycle_read' treatment cmd_id = 108
[2025-08-28 18:05:13][DEBUG] : Connecting to /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0:0.
[2025-08-28 18:05:13][DEBUG] : Connecting Sonde Id 1
[2025-08-28 18:05:13][WARNING] : Failed to connect [Errno 11] Could not exclusively lock port /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0: [Errno 11] Resource temporarily unavailable
[2025-08-28 18:05:13][DEBUG] : Sonde Id 1: connection opened
[2025-08-28 18:05:13][DEBUG] : Sonde Id 1: 'one_cycle_read'/Niveau_RT: requesting read
[2025-08-28 18:05:13][ERROR] : Sonde Id 1/Niveau_RT: exception during read request on device id 1, address 257 -> Modbus Error: [Connection] Not connected[AsyncModbusSerialClient /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0:0]
[2025-08-28 18:05:13][DEBUG] : Sonde Id 1: 'add_change' launched with payload = {'values::cycle_ok': {'value': 0, 'eqId': '11'}}
[2025-08-28 18:05:13][DEBUG] : Sonde Id 1: 'add_change' No modification to send
[2025-08-28 18:05:13][DEBUG] : recv: 0x3 old_data:  addr=None
[2025-08-28 18:05:13][DEBUG] : Processing: 0x3
[2025-08-28 18:05:13][DEBUG] : Short frame: 0x3 wait for more data
[2025-08-28 18:05:13][DEBUG] : recv, unused data waiting for next packet: 0x3
[2025-08-28 18:05:13][DEBUG] : recv: 0x3 old_data: 0x3 addr=None
[2025-08-28 18:05:13][DEBUG] : Processing: 0x3 0x3
[2025-08-28 18:05:13][DEBUG] : Short frame: 0x3 0x3 wait for more data
[2025-08-28 18:05:13][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3
[2025-08-28 18:05:13][DEBUG] : recv: 0x2 old_data: 0x3 0x3 addr=None
[2025-08-28 18:05:13][DEBUG] : Processing: 0x3 0x3 0x2
[2025-08-28 18:05:13][DEBUG] : Short frame: 0x3 0x3 0x2 wait for more data
[2025-08-28 18:05:13][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3 0x2
[2025-08-28 18:05:13][DEBUG] : recv: 0x0 old_data: 0x3 0x3 0x2 addr=None
[2025-08-28 18:05:13][DEBUG] : Processing: 0x3 0x3 0x2 0x0
[2025-08-28 18:05:13][DEBUG] : Frame - not ready
[2025-08-28 18:05:13][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3 0x2 0x0
[2025-08-28 18:05:13][DEBUG] : recv: 0xfa old_data: 0x3 0x3 0x2 0x0 addr=None
[2025-08-28 18:05:13][DEBUG] : Processing: 0x3 0x3 0x2 0x0 0xfa
[2025-08-28 18:05:13][DEBUG] : Frame - not ready
[2025-08-28 18:05:13][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3 0x2 0x0 0xfa
[2025-08-28 18:05:13][DEBUG] : recv: 0x41 old_data: 0x3 0x3 0x2 0x0 0xfa addr=None
[2025-08-28 18:05:13][DEBUG] : Processing: 0x3 0x3 0x2 0x0 0xfa 0x41
[2025-08-28 18:05:13][DEBUG] : Frame - not ready
[2025-08-28 18:05:13][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3 0x2 0x0 0xfa 0x41
[2025-08-28 18:05:13][DEBUG] : recv: 0xc7 old_data: 0x3 0x3 0x2 0x0 0xfa 0x41 addr=None
[2025-08-28 18:05:13][DEBUG] : Processing: 0x3 0x3 0x2 0x0 0xfa 0x41 0xc7
[2025-08-28 18:05:13][DEBUG] : decoded PDU function_code(3 sub -1) -> ReadHoldingRegistersResponse(dev_id=0, transaction_id=0, address=0, count=0, bits=[], registers=[250], status=1) 
[2025-08-28 18:05:13][DEBUG] : Frame advanced, resetting header!!
[2025-08-28 18:05:13][DEBUG] : Sonde Id 3: 'process_read_response' launched for command id = 120
[2025-08-28 18:05:13][DEBUG] : Sonde Id 3: 'cmd_decode' launched for command id = 120
[2025-08-28 18:05:13][DEBUG] : Sonde Id 3: 'add_change' launched with payload = {'values::120': 250}
[2025-08-28 18:05:13][DEBUG] : Sonde Id 3: 'add_change' No modification to send
[2025-08-28 18:05:15][DEBUG] : Sonde Id 1: 'one_cycle_read' exit with error_or_exception = True
[2025-08-28 18:05:15][DEBUG] : Sonde Id 3: 'one_cycle_read' treatment cmd_id = 122
[2025-08-28 18:05:15][DEBUG] : Sonde Id 3: 'one_cycle_read'/Niveau_RT: requesting read
[2025-08-28 18:05:15][DEBUG] : send: 0x3 0x3 0x1 0x1 0x0 0x1 0xd5 0xd4
[2025-08-28 18:05:16][DEBUG] : recv: 0x3 old_data:  addr=None
[2025-08-28 18:05:16][DEBUG] : Processing: 0x3
[2025-08-28 18:05:16][DEBUG] : Short frame: 0x3 wait for more data
[2025-08-28 18:05:16][DEBUG] : recv, unused data waiting for next packet: 0x3
[2025-08-28 18:05:16][DEBUG] : recv: 0x3 old_data: 0x3 addr=None
[2025-08-28 18:05:16][DEBUG] : Processing: 0x3 0x3
[2025-08-28 18:05:16][DEBUG] : Short frame: 0x3 0x3 wait for more data
[2025-08-28 18:05:16][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3
[2025-08-28 18:05:16][DEBUG] : recv: 0x2 old_data: 0x3 0x3 addr=None
[2025-08-28 18:05:16][DEBUG] : Processing: 0x3 0x3 0x2
[2025-08-28 18:05:16][DEBUG] : Short frame: 0x3 0x3 0x2 wait for more data
[2025-08-28 18:05:16][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3 0x2
[2025-08-28 18:05:16][DEBUG] : recv: 0x0 old_data: 0x3 0x3 0x2 addr=None
[2025-08-28 18:05:16][DEBUG] : Processing: 0x3 0x3 0x2 0x0
[2025-08-28 18:05:16][DEBUG] : Frame - not ready
[2025-08-28 18:05:16][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3 0x2 0x0
[2025-08-28 18:05:16][DEBUG] : recv: 0xfa old_data: 0x3 0x3 0x2 0x0 addr=None
[2025-08-28 18:05:16][DEBUG] : Processing: 0x3 0x3 0x2 0x0 0xfa
[2025-08-28 18:05:16][DEBUG] : Frame - not ready
[2025-08-28 18:05:16][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3 0x2 0x0 0xfa
[2025-08-28 18:05:16][DEBUG] : recv: 0x41 old_data: 0x3 0x3 0x2 0x0 0xfa addr=None
[2025-08-28 18:05:16][DEBUG] : Processing: 0x3 0x3 0x2 0x0 0xfa 0x41
[2025-08-28 18:05:16][DEBUG] : Frame - not ready
[2025-08-28 18:05:16][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3 0x2 0x0 0xfa 0x41
[2025-08-28 18:05:16][DEBUG] : recv: 0xc7 old_data: 0x3 0x3 0x2 0x0 0xfa 0x41 addr=None
[2025-08-28 18:05:16][DEBUG] : Processing: 0x3 0x3 0x2 0x0 0xfa 0x41 0xc7
[2025-08-28 18:05:16][DEBUG] : decoded PDU function_code(3 sub -1) -> ReadHoldingRegistersResponse(dev_id=0, transaction_id=0, address=0, count=0, bits=[], registers=[250], status=1) 
[2025-08-28 18:05:16][DEBUG] : Frame advanced, resetting header!!
[2025-08-28 18:05:16][DEBUG] : Sonde Id 3: 'process_read_response' launched for command id = 122
[2025-08-28 18:05:16][DEBUG] : Sonde Id 3: 'cmd_decode' launched for command id = 122
[2025-08-28 18:05:16][DEBUG] : Sonde Id 3: 'add_change' launched with payload = {'values::122': 250}
[2025-08-28 18:05:16][DEBUG] : Sonde Id 3: 'add_change' No modification to send
[2025-08-28 18:05:18][DEBUG] : Sonde Id 3: 'one_cycle_read' exit with error_or_exception = False
[2025-08-28 18:05:21][DEBUG] : Sonde Id 1: 'one_cycle_read' launched
[2025-08-28 18:05:21][DEBUG] : Sonde Id 1: 'one_cycle_read' treatment cmd_id = 106
[2025-08-28 18:05:21][DEBUG] : Connecting to /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0:0.
[2025-08-28 18:05:21][DEBUG] : Connecting Sonde Id 1
[2025-08-28 18:05:21][WARNING] : Failed to connect [Errno 11] Could not exclusively lock port /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0: [Errno 11] Resource temporarily unavailable
[2025-08-28 18:05:21][DEBUG] : Sonde Id 1: connection opened
[2025-08-28 18:05:21][DEBUG] : Sonde Id 1: 'one_cycle_read'/Niveau: requesting read
[2025-08-28 18:05:21][ERROR] : Sonde Id 1/Niveau: exception during read request on device id 1, address 256 -> Modbus Error: [Connection] Not connected[AsyncModbusSerialClient /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0:0]
[2025-08-28 18:05:21][DEBUG] : Sonde Id 1: 'add_change' launched with payload = {'values::cycle_ok': {'value': 0, 'eqId': '11'}}
[2025-08-28 18:05:21][DEBUG] : Sonde Id 1: 'add_change' No modification to send
[2025-08-28 18:05:23][DEBUG] : Sonde Id 3: 'one_cycle_read' launched
[2025-08-28 18:05:23][DEBUG] : Sonde Id 3: 'one_cycle_read' treatment cmd_id = 120
[2025-08-28 18:05:23][DEBUG] : Sonde Id 3: 'one_cycle_read'/Niveau: requesting read
[2025-08-28 18:05:23][DEBUG] : send: 0x3 0x3 0x1 0x0 0x0 0x1 0x84 0x14
[2025-08-28 18:05:23][DEBUG] : Sonde Id 3: 'add_change' launched with payload = {'values::cycle_ok': {'value': 1, 'eqId': '13'}}
[2025-08-28 18:05:23][DEBUG] : Sonde Id 3: 'add_change' No modification to send
[2025-08-28 18:05:23][DEBUG] : Sonde Id 1: 'one_cycle_read' treatment cmd_id = 108
[2025-08-28 18:05:23][DEBUG] : Connecting to /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0:0.
[2025-08-28 18:05:23][DEBUG] : Connecting Sonde Id 1
[2025-08-28 18:05:23][WARNING] : Failed to connect [Errno 11] Could not exclusively lock port /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0: [Errno 11] Resource temporarily unavailable
[2025-08-28 18:05:23][DEBUG] : Sonde Id 1: connection opened
[2025-08-28 18:05:23][DEBUG] : Sonde Id 1: 'one_cycle_read'/Niveau_RT: requesting read
[2025-08-28 18:05:23][ERROR] : Sonde Id 1/Niveau_RT: exception during read request on device id 1, address 257 -> Modbus Error: [Connection] Not connected[AsyncModbusSerialClient /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0:0]
[2025-08-28 18:05:23][DEBUG] : Sonde Id 1: 'add_change' launched with payload = {'values::cycle_ok': {'value': 0, 'eqId': '11'}}
[2025-08-28 18:05:23][DEBUG] : Sonde Id 1: 'add_change' No modification to send
[2025-08-28 18:05:23][DEBUG] : recv: 0x3 old_data:  addr=None
[2025-08-28 18:05:23][DEBUG] : Processing: 0x3
[2025-08-28 18:05:23][DEBUG] : Short frame: 0x3 wait for more data
[2025-08-28 18:05:23][DEBUG] : recv, unused data waiting for next packet: 0x3
[2025-08-28 18:05:23][DEBUG] : recv: 0x3 old_data: 0x3 addr=None
[2025-08-28 18:05:23][DEBUG] : Processing: 0x3 0x3
[2025-08-28 18:05:23][DEBUG] : Short frame: 0x3 0x3 wait for more data
[2025-08-28 18:05:23][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3
[2025-08-28 18:05:23][DEBUG] : recv: 0x2 old_data: 0x3 0x3 addr=None
[2025-08-28 18:05:23][DEBUG] : Processing: 0x3 0x3 0x2
[2025-08-28 18:05:23][DEBUG] : Short frame: 0x3 0x3 0x2 wait for more data
[2025-08-28 18:05:23][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3 0x2
[2025-08-28 18:05:23][DEBUG] : recv: 0x0 old_data: 0x3 0x3 0x2 addr=None
[2025-08-28 18:05:23][DEBUG] : Processing: 0x3 0x3 0x2 0x0
[2025-08-28 18:05:23][DEBUG] : Frame - not ready
[2025-08-28 18:05:23][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3 0x2 0x0
[2025-08-28 18:05:23][DEBUG] : recv: 0xfa old_data: 0x3 0x3 0x2 0x0 addr=None
[2025-08-28 18:05:23][DEBUG] : Processing: 0x3 0x3 0x2 0x0 0xfa
[2025-08-28 18:05:23][DEBUG] : Frame - not ready
[2025-08-28 18:05:23][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3 0x2 0x0 0xfa
[2025-08-28 18:05:23][DEBUG] : recv: 0x41 old_data: 0x3 0x3 0x2 0x0 0xfa addr=None
[2025-08-28 18:05:23][DEBUG] : Processing: 0x3 0x3 0x2 0x0 0xfa 0x41
[2025-08-28 18:05:23][DEBUG] : Frame - not ready
[2025-08-28 18:05:23][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3 0x2 0x0 0xfa 0x41
[2025-08-28 18:05:23][DEBUG] : recv: 0xc7 old_data: 0x3 0x3 0x2 0x0 0xfa 0x41 addr=None
[2025-08-28 18:05:23][DEBUG] : Processing: 0x3 0x3 0x2 0x0 0xfa 0x41 0xc7
[2025-08-28 18:05:23][DEBUG] : decoded PDU function_code(3 sub -1) -> ReadHoldingRegistersResponse(dev_id=0, transaction_id=0, address=0, count=0, bits=[], registers=[250], status=1) 
[2025-08-28 18:05:23][DEBUG] : Frame advanced, resetting header!!
[2025-08-28 18:05:23][DEBUG] : Sonde Id 3: 'process_read_response' launched for command id = 120
[2025-08-28 18:05:23][DEBUG] : Sonde Id 3: 'cmd_decode' launched for command id = 120
[2025-08-28 18:05:23][DEBUG] : Sonde Id 3: 'add_change' launched with payload = {'values::120': 250}
[2025-08-28 18:05:23][DEBUG] : Sonde Id 3: 'add_change' No modification to send
[2025-08-28 18:05:25][DEBUG] : Sonde Id 1: 'one_cycle_read' exit with error_or_exception = True
[2025-08-28 18:05:25][DEBUG] : Sonde Id 3: 'one_cycle_read' treatment cmd_id = 122
[2025-08-28 18:05:25][DEBUG] : Sonde Id 3: 'one_cycle_read'/Niveau_RT: requesting read
[2025-08-28 18:05:25][DEBUG] : send: 0x3 0x3 0x1 0x1 0x0 0x1 0xd5 0xd4
[2025-08-28 18:05:26][DEBUG] : recv: 0x3 old_data:  addr=None
[2025-08-28 18:05:26][DEBUG] : Processing: 0x3
[2025-08-28 18:05:26][DEBUG] : Short frame: 0x3 wait for more data
[2025-08-28 18:05:26][DEBUG] : recv, unused data waiting for next packet: 0x3
[2025-08-28 18:05:26][DEBUG] : recv: 0x3 old_data: 0x3 addr=None
[2025-08-28 18:05:26][DEBUG] : Processing: 0x3 0x3
[2025-08-28 18:05:26][DEBUG] : Short frame: 0x3 0x3 wait for more data
[2025-08-28 18:05:26][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3
[2025-08-28 18:05:26][DEBUG] : recv: 0x2 old_data: 0x3 0x3 addr=None
[2025-08-28 18:05:26][DEBUG] : Processing: 0x3 0x3 0x2
[2025-08-28 18:05:26][DEBUG] : Short frame: 0x3 0x3 0x2 wait for more data
[2025-08-28 18:05:26][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3 0x2
[2025-08-28 18:05:26][DEBUG] : recv: 0x0 old_data: 0x3 0x3 0x2 addr=None
[2025-08-28 18:05:26][DEBUG] : Processing: 0x3 0x3 0x2 0x0
[2025-08-28 18:05:26][DEBUG] : Frame - not ready
[2025-08-28 18:05:26][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3 0x2 0x0
[2025-08-28 18:05:26][DEBUG] : recv: 0xfa old_data: 0x3 0x3 0x2 0x0 addr=None
[2025-08-28 18:05:26][DEBUG] : Processing: 0x3 0x3 0x2 0x0 0xfa
[2025-08-28 18:05:26][DEBUG] : Frame - not ready
[2025-08-28 18:05:26][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3 0x2 0x0 0xfa
[2025-08-28 18:05:26][DEBUG] : recv: 0x41 old_data: 0x3 0x3 0x2 0x0 0xfa addr=None
[2025-08-28 18:05:26][DEBUG] : Processing: 0x3 0x3 0x2 0x0 0xfa 0x41
[2025-08-28 18:05:26][DEBUG] : Frame - not ready
[2025-08-28 18:05:26][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3 0x2 0x0 0xfa 0x41
[2025-08-28 18:05:26][DEBUG] : recv: 0xc7 old_data: 0x3 0x3 0x2 0x0 0xfa 0x41 addr=None
[2025-08-28 18:05:26][DEBUG] : Processing: 0x3 0x3 0x2 0x0 0xfa 0x41 0xc7
[2025-08-28 18:05:26][DEBUG] : decoded PDU function_code(3 sub -1) -> ReadHoldingRegistersResponse(dev_id=0, transaction_id=0, address=0, count=0, bits=[], registers=[250], status=1) 
[2025-08-28 18:05:26][DEBUG] : Frame advanced, resetting header!!
[2025-08-28 18:05:26][DEBUG] : Sonde Id 3: 'process_read_response' launched for command id = 122
[2025-08-28 18:05:26][DEBUG] : Sonde Id 3: 'cmd_decode' launched for command id = 122
[2025-08-28 18:05:26][DEBUG] : Sonde Id 3: 'add_change' launched with payload = {'values::122': 250}
[2025-08-28 18:05:26][DEBUG] : Sonde Id 3: 'add_change' No modification to send
[2025-08-28 18:05:28][DEBUG] : Sonde Id 3: 'one_cycle_read' exit with error_or_exception = False
[2025-08-28 18:05:31][DEBUG] : Sonde Id 1: 'one_cycle_read' launched
[2025-08-28 18:05:31][DEBUG] : Sonde Id 1: 'one_cycle_read' treatment cmd_id = 106
[2025-08-28 18:05:31][DEBUG] : Connecting to /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0:0.
[2025-08-28 18:05:31][DEBUG] : Connecting Sonde Id 1
[2025-08-28 18:05:31][WARNING] : Failed to connect [Errno 11] Could not exclusively lock port /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0: [Errno 11] Resource temporarily unavailable
[2025-08-28 18:05:31][DEBUG] : Sonde Id 1: connection opened
[2025-08-28 18:05:31][DEBUG] : Sonde Id 1: 'one_cycle_read'/Niveau: requesting read
[2025-08-28 18:05:31][ERROR] : Sonde Id 1/Niveau: exception during read request on device id 1, address 256 -> Modbus Error: [Connection] Not connected[AsyncModbusSerialClient /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0:0]
[2025-08-28 18:05:31][DEBUG] : Sonde Id 1: 'add_change' launched with payload = {'values::cycle_ok': {'value': 0, 'eqId': '11'}}
[2025-08-28 18:05:31][DEBUG] : Sonde Id 1: 'add_change' No modification to send
[2025-08-28 18:05:33][DEBUG] : Sonde Id 3: 'one_cycle_read' launched
[2025-08-28 18:05:33][DEBUG] : Sonde Id 3: 'one_cycle_read' treatment cmd_id = 120
[2025-08-28 18:05:33][DEBUG] : Sonde Id 3: 'one_cycle_read'/Niveau: requesting read
[2025-08-28 18:05:33][DEBUG] : send: 0x3 0x3 0x1 0x0 0x0 0x1 0x84 0x14
[2025-08-28 18:05:33][DEBUG] : Sonde Id 3: 'add_change' launched with payload = {'values::cycle_ok': {'value': 1, 'eqId': '13'}}
[2025-08-28 18:05:33][DEBUG] : Sonde Id 3: 'add_change' No modification to send
[2025-08-28 18:05:33][DEBUG] : Sonde Id 1: 'one_cycle_read' treatment cmd_id = 108
[2025-08-28 18:05:33][DEBUG] : Connecting to /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0:0.
[2025-08-28 18:05:33][DEBUG] : Connecting Sonde Id 1
[2025-08-28 18:05:33][WARNING] : Failed to connect [Errno 11] Could not exclusively lock port /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0: [Errno 11] Resource temporarily unavailable
[2025-08-28 18:05:33][DEBUG] : Sonde Id 1: connection opened
[2025-08-28 18:05:33][DEBUG] : Sonde Id 1: 'one_cycle_read'/Niveau_RT: requesting read
[2025-08-28 18:05:33][ERROR] : Sonde Id 1/Niveau_RT: exception during read request on device id 1, address 257 -> Modbus Error: [Connection] Not connected[AsyncModbusSerialClient /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0:0]
[2025-08-28 18:05:33][DEBUG] : Sonde Id 1: 'add_change' launched with payload = {'values::cycle_ok': {'value': 0, 'eqId': '11'}}
[2025-08-28 18:05:33][DEBUG] : Sonde Id 1: 'add_change' No modification to send
[2025-08-28 18:05:33][DEBUG] : recv: 0x3 old_data:  addr=None
[2025-08-28 18:05:33][DEBUG] : Processing: 0x3
[2025-08-28 18:05:33][DEBUG] : Short frame: 0x3 wait for more data
[2025-08-28 18:05:33][DEBUG] : recv, unused data waiting for next packet: 0x3
[2025-08-28 18:05:33][DEBUG] : recv: 0x3 old_data: 0x3 addr=None
[2025-08-28 18:05:33][DEBUG] : Processing: 0x3 0x3
[2025-08-28 18:05:33][DEBUG] : Short frame: 0x3 0x3 wait for more data
[2025-08-28 18:05:33][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3
[2025-08-28 18:05:33][DEBUG] : recv: 0x2 old_data: 0x3 0x3 addr=None
[2025-08-28 18:05:33][DEBUG] : Processing: 0x3 0x3 0x2
[2025-08-28 18:05:33][DEBUG] : Short frame: 0x3 0x3 0x2 wait for more data
[2025-08-28 18:05:33][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3 0x2
[2025-08-28 18:05:33][DEBUG] : recv: 0x0 old_data: 0x3 0x3 0x2 addr=None
[2025-08-28 18:05:33][DEBUG] : Processing: 0x3 0x3 0x2 0x0
[2025-08-28 18:05:33][DEBUG] : Frame - not ready
[2025-08-28 18:05:33][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3 0x2 0x0
[2025-08-28 18:05:33][DEBUG] : recv: 0xfa old_data: 0x3 0x3 0x2 0x0 addr=None
[2025-08-28 18:05:33][DEBUG] : Processing: 0x3 0x3 0x2 0x0 0xfa
[2025-08-28 18:05:33][DEBUG] : Frame - not ready
[2025-08-28 18:05:33][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3 0x2 0x0 0xfa
[2025-08-28 18:05:33][DEBUG] : recv: 0x41 old_data: 0x3 0x3 0x2 0x0 0xfa addr=None
[2025-08-28 18:05:33][DEBUG] : Processing: 0x3 0x3 0x2 0x0 0xfa 0x41
[2025-08-28 18:05:33][DEBUG] : Frame - not ready
[2025-08-28 18:05:33][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3 0x2 0x0 0xfa 0x41
[2025-08-28 18:05:33][DEBUG] : recv: 0xc7 old_data: 0x3 0x3 0x2 0x0 0xfa 0x41 addr=None
[2025-08-28 18:05:33][DEBUG] : Processing: 0x3 0x3 0x2 0x0 0xfa 0x41 0xc7
[2025-08-28 18:05:33][DEBUG] : decoded PDU function_code(3 sub -1) -> ReadHoldingRegistersResponse(dev_id=0, transaction_id=0, address=0, count=0, bits=[], registers=[250], status=1) 
[2025-08-28 18:05:33][DEBUG] : Frame advanced, resetting header!!
[2025-08-28 18:05:33][DEBUG] : Sonde Id 3: 'process_read_response' launched for command id = 120
[2025-08-28 18:05:33][DEBUG] : Sonde Id 3: 'cmd_decode' launched for command id = 120
[2025-08-28 18:05:33][DEBUG] : Sonde Id 3: 'add_change' launched with payload = {'values::120': 250}
[2025-08-28 18:05:33][DEBUG] : Sonde Id 3: 'add_change' No modification to send
[2025-08-28 18:05:35][DEBUG] : Sonde Id 1: 'one_cycle_read' exit with error_or_exception = True
[2025-08-28 18:05:35][DEBUG] : Sonde Id 3: 'one_cycle_read' treatment cmd_id = 122
[2025-08-28 18:05:35][DEBUG] : Sonde Id 3: 'one_cycle_read'/Niveau_RT: requesting read
[2025-08-28 18:05:35][DEBUG] : send: 0x3 0x3 0x1 0x1 0x0 0x1 0xd5 0xd4
[2025-08-28 18:05:35][DEBUG] : recv: 0x3 old_data:  addr=None
[2025-08-28 18:05:35][DEBUG] : Processing: 0x3
[2025-08-28 18:05:35][DEBUG] : Short frame: 0x3 wait for more data
[2025-08-28 18:05:35][DEBUG] : recv, unused data waiting for next packet: 0x3
[2025-08-28 18:05:35][DEBUG] : recv: 0x3 old_data: 0x3 addr=None
[2025-08-28 18:05:35][DEBUG] : Processing: 0x3 0x3
[2025-08-28 18:05:35][DEBUG] : Short frame: 0x3 0x3 wait for more data
[2025-08-28 18:05:35][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3
[2025-08-28 18:05:35][DEBUG] : recv: 0x2 old_data: 0x3 0x3 addr=None
[2025-08-28 18:05:35][DEBUG] : Processing: 0x3 0x3 0x2
[2025-08-28 18:05:35][DEBUG] : Short frame: 0x3 0x3 0x2 wait for more data
[2025-08-28 18:05:35][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3 0x2
[2025-08-28 18:05:35][DEBUG] : recv: 0x0 old_data: 0x3 0x3 0x2 addr=None
[2025-08-28 18:05:35][DEBUG] : Processing: 0x3 0x3 0x2 0x0
[2025-08-28 18:05:35][DEBUG] : Frame - not ready
[2025-08-28 18:05:35][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3 0x2 0x0
[2025-08-28 18:05:35][DEBUG] : recv: 0xfa old_data: 0x3 0x3 0x2 0x0 addr=None
[2025-08-28 18:05:35][DEBUG] : Processing: 0x3 0x3 0x2 0x0 0xfa
[2025-08-28 18:05:35][DEBUG] : Frame - not ready
[2025-08-28 18:05:35][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3 0x2 0x0 0xfa
[2025-08-28 18:05:35][DEBUG] : recv: 0x41 old_data: 0x3 0x3 0x2 0x0 0xfa addr=None
[2025-08-28 18:05:35][DEBUG] : Processing: 0x3 0x3 0x2 0x0 0xfa 0x41
[2025-08-28 18:05:35][DEBUG] : Frame - not ready
[2025-08-28 18:05:35][DEBUG] : recv, unused data waiting for next packet: 0x3 0x3 0x2 0x0 0xfa 0x41
[2025-08-28 18:05:35][DEBUG] : recv: 0xc7 old_data: 0x3 0x3 0x2 0x0 0xfa 0x41 addr=None
[2025-08-28 18:05:35][DEBUG] : Processing: 0x3 0x3 0x2 0x0 0xfa 0x41 0xc7
[2025-08-28 18:05:35][DEBUG] : decoded PDU function_code(3 sub -1) -> ReadHoldingRegistersResponse(dev_id=0, transaction_id=0, address=0, count=0, bits=[], registers=[250], status=1) 
[2025-08-28 18:05:35][DEBUG] : Frame advanced, resetting header!!
[2025-08-28 18:05:35][DEBUG] : Sonde Id 3: 'process_read_response' launched for command id = 122
[2025-08-28 18:05:35][DEBUG] : Sonde Id 3: 'cmd_decode' launched for command id = 122
[2025-08-28 18:05:35][DEBUG] : Sonde Id 3: 'add_change' launched with payload = {'values::122': 250}
[2025-08-28 18:05:35][DEBUG] : Sonde Id 3: 'add_change' No modification to send

Lorsque j’utilise Modbus doctor avec exactement la même configuration 2 sonde tout fonctionne

Merci pour vos suggestions !!

Bonjour,

Les deux équipements utilisent la même connexion, or le convertisseur ne peut être utilisé que par un process.
Pas d’inquiétude, c’est prévu et il y a une solution très simple : un des 2 équipements doit utiliser la connexion de l’autre. Pour ça un des 2 équipements doit être paramétré avec le protocole de connexion Interface d'un autre équipement puis dans le second paramètre, il faut choisir l’équipement qui contient les paramètres de connexion. Sauvegarder et tout se met à fonctionner.
Sur le bus série, si un équipement MyModbus est défini par appareil, il ne peut y avoir qu’un seul équipement où la connexion utilise le port série, les autres équipements doivent utiliser sa connexion.

C’est expliqué dans la documentation.

edit : j’ai rajouté un chapitre qui parle de ce cas.

A+
Michel

Propositions d’optimisation :

  1. Passer le Temps d'attente entre 2 requêtes de lecture à 0 et le monter de 0.1 s en cas d’erreur jusqu’à ce que la communication ne fasse plus d’erreur.
    NB : ceci ne sert plus à rien si le point 2 est mis en place.

  2. Utiliser une plage de registres :
    2.1. Créer une nouvelle commande info de type plage de registres avec 256 [2] comme adresse de registre (2 registres à partir du 256, donc 256 et 257).
    2.2. Modifier les 2 commandes existantes de sorte d’utiliser cette plage de registres

→ Résultat : les 2 registres seront lus en une seule requête, le temps de cycle sera diminué. Le polling peut être diminué.

1 « J'aime »

Merci Michel les deux solution fonctionnent parfaitement !

Par contre je sèche sur le config des commandes pour ta proposition d’optimisation (2eme solution) Je crée une nouvelle cmd info S1-Niveaux → Fonction plage de registre, ou faut il définir le l’addresse esclave ?

Merci !

Cette commande doit avoir la fonction [0x03] Read holding registers avec le format plage de registres. Il faut sauvegarder comme ça pour que la commande soit « visible » et sélectionnable.

Ensuite il faut modifier les 2 commandes existantes avec la fonction Depuis une plage de registres et bien vérifier que la plage de registre sélectionnée est la bonne (comme il n’y en a qu’une, ça devrait la sélectionner tout seul), le reste reste inchangé.

edit: le principe de la plage de registres est expliqué dans la documentation, il ne faut pas hésiter à aller consulter la doc. Vraiment. J’ai passé du temps sur cette doc et je pense qu’elle est pas mal complète.

Merci Michel ! C’est ok maintenant.

Bravo pour ta doc hyper complète (rien à voir avec la doc du plugin officiel :roll_eyes:) et surtout ta réactivité.
Je te souhaite un excellent week end

1 « J'aime »

Tu as remarqué une amélioration du temps de rafraichissement ? Ce serait bien de détailler ce point pour les lecteurs ou utilisateurs curieux. Ca dépend du matériel utilisé, mais ça peut convaincre des utilisateurs de passer le cap et de tester les plages de registres. Bon chez toi, il n’y a que 2 commandes info à optimiser, ça ne doit pas se voir beaucoup.

Je crois que mes sondes ne sont pas compatible avec une lecture multiregistres

[2025-08-30 09:49:25][DEBUG] : Sondes Opti: 'add_change' launched with payload = {'values::161': 0, 'values::cycle_ok': {'value': 0, 'eqId': '17'}}
[2025-08-30 09:49:25][DEBUG] : Sondes Opti: 'add_change' No modification to send
[2025-08-30 09:49:27][DEBUG] : Sondes Opti: 'one_cycle_read' exit with error_or_exception = True
[2025-08-30 09:49:27][DEBUG] : Sondes Opti: 'one_cycle_read' launched
[2025-08-30 09:49:27][DEBUG] : Sondes Opti: 'one_cycle_read' treatment cmd_id = 161
[2025-08-30 09:49:27][DEBUG] : Sondes Opti: 'one_cycle_read'/S1-Niveaux: requesting read
[2025-08-30 09:49:27][DEBUG] : send: 0x1 0x3 0x1 0x0 0x0 0x2 0xc5 0xf7
[2025-08-30 09:49:28][DEBUG] : recv: 0x1 old_data:  addr=None
[2025-08-30 09:49:28][DEBUG] : Processing: 0x1
[2025-08-30 09:49:28][DEBUG] : Short frame: 0x1 wait for more data
[2025-08-30 09:49:28][DEBUG] : recv, unused data waiting for next packet: 0x1
[2025-08-30 09:49:28][DEBUG] : recv: 0x3 old_data: 0x1 addr=None
[2025-08-30 09:49:28][DEBUG] : Processing: 0x1 0x3
[2025-08-30 09:49:28][DEBUG] : Short frame: 0x1 0x3 wait for more data
[2025-08-30 09:49:28][DEBUG] : recv, unused data waiting for next packet: 0x1 0x3
[2025-08-30 09:49:28][DEBUG] : recv: 0x4 old_data: 0x1 0x3 addr=None
[2025-08-30 09:49:28][DEBUG] : Processing: 0x1 0x3 0x4
[2025-08-30 09:49:28][DEBUG] : Short frame: 0x1 0x3 0x4 wait for more data
[2025-08-30 09:49:28][DEBUG] : recv, unused data waiting for next packet: 0x1 0x3 0x4
[2025-08-30 09:49:28][DEBUG] : recv: 0x6 old_data: 0x1 0x3 0x4 addr=None
[2025-08-30 09:49:28][DEBUG] : Processing: 0x1 0x3 0x4 0x6
[2025-08-30 09:49:28][DEBUG] : Frame - not ready
[2025-08-30 09:49:28][DEBUG] : recv, unused data waiting for next packet: 0x1 0x3 0x4 0x6
[2025-08-30 09:49:28][DEBUG] : recv: 0x11 old_data: 0x1 0x3 0x4 0x6 addr=None
[2025-08-30 09:49:28][DEBUG] : Processing: 0x1 0x3 0x4 0x6 0x11
[2025-08-30 09:49:28][DEBUG] : Frame - not ready
[2025-08-30 09:49:28][DEBUG] : recv, unused data waiting for next packet: 0x1 0x3 0x4 0x6 0x11
[2025-08-30 09:49:28][DEBUG] : recv: 0x9b old_data: 0x1 0x3 0x4 0x6 0x11 addr=None
[2025-08-30 09:49:28][DEBUG] : Processing: 0x1 0x3 0x4 0x6 0x11 0x9b
[2025-08-30 09:49:28][DEBUG] : Frame - not ready
[2025-08-30 09:49:28][DEBUG] : recv, unused data waiting for next packet: 0x1 0x3 0x4 0x6 0x11 0x9b
[2025-08-30 09:49:28][DEBUG] : recv: 0xe9 old_data: 0x1 0x3 0x4 0x6 0x11 0x9b addr=None
[2025-08-30 09:49:28][DEBUG] : Processing: 0x1 0x3 0x4 0x6 0x11 0x9b 0xe9
[2025-08-30 09:49:28][DEBUG] : Frame - not ready
[2025-08-30 09:49:28][DEBUG] : recv, unused data waiting for next packet: 0x1 0x3 0x4 0x6 0x11 0x9b 0xe9
[2025-08-30 09:49:30][DEBUG] : send: 0x1 0x3 0x1 0x0 0x0 0x2 0xc5 0xf7
[2025-08-30 09:49:31][DEBUG] : recv: 0x1 old_data:  addr=None
[2025-08-30 09:49:31][DEBUG] : Processing: 0x1
[2025-08-30 09:49:31][DEBUG] : Short frame: 0x1 wait for more data
[2025-08-30 09:49:31][DEBUG] : recv, unused data waiting for next packet: 0x1
[2025-08-30 09:49:31][DEBUG] : recv: 0x3 old_data: 0x1 addr=None
[2025-08-30 09:49:31][DEBUG] : Processing: 0x1 0x3
[2025-08-30 09:49:31][DEBUG] : Short frame: 0x1 0x3 wait for more data
[2025-08-30 09:49:31][DEBUG] : recv, unused data waiting for next packet: 0x1 0x3
[2025-08-30 09:49:31][DEBUG] : recv: 0x4 old_data: 0x1 0x3 addr=None
[2025-08-30 09:49:31][DEBUG] : Processing: 0x1 0x3 0x4
[2025-08-30 09:49:31][DEBUG] : Short frame: 0x1 0x3 0x4 wait for more data
[2025-08-30 09:49:31][DEBUG] : recv, unused data waiting for next packet: 0x1 0x3 0x4
[2025-08-30 09:49:31][DEBUG] : recv: 0x6 old_data: 0x1 0x3 0x4 addr=None
[2025-08-30 09:49:31][DEBUG] : Processing: 0x1 0x3 0x4 0x6
[2025-08-30 09:49:31][DEBUG] : Frame - not ready
[2025-08-30 09:49:31][DEBUG] : recv, unused data waiting for next packet: 0x1 0x3 0x4 0x6
[2025-08-30 09:49:31][DEBUG] : recv: 0x11 old_data: 0x1 0x3 0x4 0x6 addr=None
[2025-08-30 09:49:31][DEBUG] : Processing: 0x1 0x3 0x4 0x6 0x11
[2025-08-30 09:49:31][DEBUG] : Frame - not ready
[2025-08-30 09:49:31][DEBUG] : recv, unused data waiting for next packet: 0x1 0x3 0x4 0x6 0x11
[2025-08-30 09:49:31][DEBUG] : recv: 0x9b old_data: 0x1 0x3 0x4 0x6 0x11 addr=None
[2025-08-30 09:49:31][DEBUG] : Processing: 0x1 0x3 0x4 0x6 0x11 0x9b
[2025-08-30 09:49:31][DEBUG] : Frame - not ready
[2025-08-30 09:49:31][DEBUG] : recv, unused data waiting for next packet: 0x1 0x3 0x4 0x6 0x11 0x9b
[2025-08-30 09:49:31][DEBUG] : recv: 0xe9 old_data: 0x1 0x3 0x4 0x6 0x11 0x9b addr=None
[2025-08-30 09:49:31][DEBUG] : Processing: 0x1 0x3 0x4 0x6 0x11 0x9b 0xe9
[2025-08-30 09:49:31][DEBUG] : Frame - not ready
[2025-08-30 09:49:31][DEBUG] : recv, unused data waiting for next packet: 0x1 0x3 0x4 0x6 0x11 0x9b 0xe9
[2025-08-30 09:49:33][DEBUG] : send: 0x1 0x3 0x1 0x0 0x0 0x2 0xc5 0xf7
[2025-08-30 09:49:34][DEBUG] : recv: 0x1 old_data:  addr=None
[2025-08-30 09:49:34][DEBUG] : Processing: 0x1
[2025-08-30 09:49:34][DEBUG] : Short frame: 0x1 wait for more data
[2025-08-30 09:49:34][DEBUG] : recv, unused data waiting for next packet: 0x1
[2025-08-30 09:49:34][DEBUG] : recv: 0x3 old_data: 0x1 addr=None
[2025-08-30 09:49:34][DEBUG] : Processing: 0x1 0x3
[2025-08-30 09:49:34][DEBUG] : Short frame: 0x1 0x3 wait for more data
[2025-08-30 09:49:34][DEBUG] : recv, unused data waiting for next packet: 0x1 0x3
[2025-08-30 09:49:34][DEBUG] : recv: 0x4 old_data: 0x1 0x3 addr=None
[2025-08-30 09:49:34][DEBUG] : Processing: 0x1 0x3 0x4
[2025-08-30 09:49:34][DEBUG] : Short frame: 0x1 0x3 0x4 wait for more data
[2025-08-30 09:49:34][DEBUG] : recv, unused data waiting for next packet: 0x1 0x3 0x4
[2025-08-30 09:49:34][DEBUG] : recv: 0x6 old_data: 0x1 0x3 0x4 addr=None
[2025-08-30 09:49:34][DEBUG] : Processing: 0x1 0x3 0x4 0x6
[2025-08-30 09:49:34][DEBUG] : Frame - not ready
[2025-08-30 09:49:34][DEBUG] : recv, unused data waiting for next packet: 0x1 0x3 0x4 0x6
[2025-08-30 09:49:34][DEBUG] : recv: 0x11 old_data: 0x1 0x3 0x4 0x6 addr=None
[2025-08-30 09:49:34][DEBUG] : Processing: 0x1 0x3 0x4 0x6 0x11
[2025-08-30 09:49:34][DEBUG] : Frame - not ready
[2025-08-30 09:49:34][DEBUG] : recv, unused data waiting for next packet: 0x1 0x3 0x4 0x6 0x11
[2025-08-30 09:49:34][DEBUG] : recv: 0x9b old_data: 0x1 0x3 0x4 0x6 0x11 addr=None
[2025-08-30 09:49:34][DEBUG] : Processing: 0x1 0x3 0x4 0x6 0x11 0x9b
[2025-08-30 09:49:34][DEBUG] : Frame - not ready
[2025-08-30 09:49:34][DEBUG] : recv, unused data waiting for next packet: 0x1 0x3 0x4 0x6 0x11 0x9b
[2025-08-30 09:49:34][DEBUG] : recv: 0xe9 old_data: 0x1 0x3 0x4 0x6 0x11 0x9b addr=None
[2025-08-30 09:49:34][DEBUG] : Processing: 0x1 0x3 0x4 0x6 0x11 0x9b 0xe9
[2025-08-30 09:49:34][DEBUG] : Frame - not ready
[2025-08-30 09:49:34][DEBUG] : recv, unused data waiting for next packet: 0x1 0x3 0x4 0x6 0x11 0x9b 0xe9
[2025-08-30 09:49:36][ERROR] : No response received after 2.0 retries, continue with next request
[2025-08-30 09:49:36][ERROR] : Sondes Opti/S1-Niveaux: exception during read request on device id 1, address 256 -> Modbus Error: [Input/Output] No response received after 2.0 retries, continue with next request

Mais vu que mon intervalle de relevé sera de 1h, cela ne pose pas de problème, avec la config ci dessous rafraichissement 0,9sec.

Merci pour tes précieuses recommendations !

En effet, il semblerait bien que la réponse ne soit pas correctement formée.

Encore 2 choses :

  • vous pouvez marquer la réponse qui vous convient comme étant la solution pour clore ce sujet
  • vous pouvez éditer votre dernier message et déplacer la ligne qui contient les ``` juste en dessous de la dernière ligne de log pour que le message soit lisible avec la dernière capture. Je n’ai pas les droits pour éditer votre message, sinon je l’aurais fait pour vous.

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.