Bonjour,
Je suis en train d’essayer de basculer vers le plugin Modbus officiel, le plugin Modbus RTU Béta n’étant plus dispo plus supporté et obsolète (Python 2…)
Je parviens à lire des registres de ma chaudière De Dietrich, mais pas les afficher correctement, auriez vous un idée svp?
Il fait bien 21,5°c dans mon salon
et 16°C devrait être lu pour la basculé été hiver
J’ai tenté de passer le type en numérique et autre, le log est identique
ci dessous les screenshot et log
EBUG:__main__:=== LECTURE DES AUTOMATES ===
DEBUG:__main__:{'298': {'typeDevice': 'rtu', 'portserial': '/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_B001BMT1-if00-port0', 'baudrate': 9600, 'unitID': 10, 'parity': 'N', 'stopbits': 1, 'bytesize': 8, 'id': '298', 'eqlogicName': 'TEST De Dietrich', 'registerParams': [{'nameCmd': 'Bascule Eté Hiver', 'cmdId': '2865', 'format': 'bitsformat', 'functioncode': 'fc03', 'nbregister': '1', 'startregister': '8', 'wordorder': 'littleword', 'byteorder': 'littlebyte', 'offset': '0', 'decimal': 0, 'operation': 0, 'multiR': '0', 'byteSplit': '0', 'hexa': '1'}, {'nameCmd': 'Temp Ambiance A', 'cmdId': '2859', 'format': 'bitsformat', 'functioncode': 'fc03', 'nbregister': '1', 'startregister': '18', 'wordorder': 'littleword', 'byteorder': 'littlebyte', 'offset': '0', 'decimal': 0, 'operation': 0, 'multiR': '0', 'byteSplit': '0', 'hexa': '1'}]}}
DEBUG:__main__:{'typeDevice': 'rtu', 'portserial': '/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_B001BMT1-if00-port0', 'baudrate': 9600, 'unitID': 10, 'parity': 'N', 'stopbits': 1, 'bytesize': 8, 'id': '298', 'eqlogicName': 'TEST De Dietrich', 'registerParams': [{'nameCmd': 'Bascule Eté Hiver', 'cmdId': '2865', 'format': 'bitsformat', 'functioncode': 'fc03', 'nbregister': '1', 'startregister': '8', 'wordorder': 'littleword', 'byteorder': 'littlebyte', 'offset': '0', 'decimal': 0, 'operation': 0, 'multiR': '0', 'byteSplit': '0', 'hexa': '1'}, {'nameCmd': 'Temp Ambiance A', 'cmdId': '2859', 'format': 'bitsformat', 'functioncode': 'fc03', 'nbregister': '1', 'startregister': '18', 'wordorder': 'littleword', 'byteorder': 'littlebyte', 'offset': '0', 'decimal': 0, 'operation': 0, 'multiR': '0', 'byteSplit': '0', 'hexa': '1'}]}
DEBUG:__main__:{'nameCmd': 'Bascule Eté Hiver', 'cmdId': '2865', 'format': 'bitsformat', 'functioncode': 'fc03', 'nbregister': '1', 'startregister': '8', 'wordorder': 'littleword', 'byteorder': 'littlebyte', 'offset': '0', 'decimal': 0, 'operation': 0, 'multiR': '0', 'byteSplit': '0', 'hexa': '1'}
DEBUG:pymodbus.transaction:Current transaction state - IDLE
DEBUG:pymodbus.transaction:Running transaction 1
DEBUG:pymodbus.transaction:SEND: 0xa 0x3 0x0 0x8 0x0 0x1 0x4 0xb3
DEBUG:pymodbus.client.sync:New Transaction state 'SENDING'
DEBUG:pymodbus.transaction:Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
DEBUG:pymodbus.transaction:Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
DEBUG:pymodbus.transaction:RECV: 0xa 0x3 0x2 0x0 0xa0 0x1d 0xfd
DEBUG:pymodbus.framer.rtu_framer:Getting Frame - 0x3 0x2 0x0 0xa0
DEBUG:pymodbus.factory:Factory Response[ReadHoldingRegistersResponse: 3]
DEBUG:pymodbus.framer.rtu_framer:Frame advanced, resetting header!!
DEBUG:pymodbus.transaction:Adding transaction 10
DEBUG:pymodbus.transaction:Getting transaction 10
DEBUG:pymodbus.transaction:Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
DEBUG:__main__:READHOLDING
DEBUG:__main__:{'nameCmd': 'Temp Ambiance A', 'cmdId': '2859', 'format': 'bitsformat', 'functioncode': 'fc03', 'nbregister': '1', 'startregister': '18', 'wordorder': 'littleword', 'byteorder': 'littlebyte', 'offset': '0', 'decimal': 0, 'operation': 0, 'multiR': '0', 'byteSplit': '0', 'hexa': '1'}
DEBUG:pymodbus.transaction:Current transaction state - TRANSACTION_COMPLETE
DEBUG:pymodbus.transaction:Running transaction 2
DEBUG:pymodbus.transaction:SEND: 0xa 0x3 0x0 0x12 0x0 0x1 0x25 0x74
DEBUG:pymodbus.framer.rtu_framer:Changing state to IDLE - Last Frame End - 1726488510.925796, Current Time stamp - 1726488510.928766
DEBUG:pymodbus.framer.rtu_framer:Waiting for 3.5 char before next send - 4.01 ms
DEBUG:pymodbus.client.sync:New Transaction state 'SENDING'
WARNING:pymodbus.client.sync:Cleanup recv buffer before send: 0x0 0x0 0x0
DEBUG:pymodbus.transaction:Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
DEBUG:pymodbus.transaction:Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
DEBUG:pymodbus.transaction:RECV: 0xa 0x3 0x2 0x0 0xd7 0x5d 0xdb
DEBUG:pymodbus.framer.rtu_framer:Getting Frame - 0x3 0x2 0x0 0xd7
DEBUG:pymodbus.factory:Factory Response[ReadHoldingRegistersResponse: 3]
DEBUG:pymodbus.framer.rtu_framer:Frame advanced, resetting header!!
DEBUG:pymodbus.transaction:Adding transaction 10
DEBUG:pymodbus.transaction:Getting transaction 10
DEBUG:pymodbus.transaction:Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
DEBUG:__main__:READHOLDING
DEBUG:__main__:{'data': {'298': {'Bascule Eté Hiver': [{'StartRegister': 8, 'CmdId': '2865', 'byteSplit': '0', 'value': [160]}], 'Temp Ambiance A': [{'StartRegister': 18, 'CmdId': '2859', 'byteSplit': '0', 'value': [215]}]}}, 'FUNC': 'readF'}
[2024-09-16 14:08:31] DEBUG : Result:{"data":{"298":{"Bascule Et\u00e9 Hiver":[{"StartRegister":8,"CmdId":"2865","byteSplit":"0","value":[160]}],"Temp Ambiance A":[{"StartRegister":18,"CmdId":"2859","byteSplit":"0","value":[215]}]}},"FUNC":"readF"}
[2024-09-16 14:08:31] DEBUG : DATACORRESPOND : {"298":{"Bascule Et\u00e9 Hiver":[{"StartRegister":8,"CmdId":"2865","byteSplit":"0","value":[160]}],"Temp Ambiance A":[{"StartRegister":18,"CmdId":"2859","byteSplit":"0","value":[215]}]}}
[2024-09-16 14:08:31] DEBUG : DECODER : {"data":{"298":{"Bascule Et\u00e9 Hiver":[{"StartRegister":8,"CmdId":"2865","byteSplit":"0","value":[160]}],"Temp Ambiance A":[{"StartRegister":18,"CmdId":"2859","byteSplit":"0","value":[215]}]}},"FUNC":"readF"}