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

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 !!







