Hello community,
I would like to ask about this repository (i can’t open an issue on Github):
We are trying to implement a new device to publish data to dbus. We want to use native dbus-modbus-client. However, we have encountered something weird.
Problem: Modbus client will not parse the response or receive (see the log), however another script that uses PyModbus that we made for testing purposes works without problem.
Modbus client log (demostrating an issue):
Processing:
DEBUG Getting transaction 9
DEBUG Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
DEBUG ModbusTcpClient(192.168.0.20:502): Modbus Error: [Input/Output] No Response received from the remote unit/Unable to decode response
DEBUG Current transaction state - TRANSACTION_COMPLETE
DEBUG Running transaction 10
DEBUG Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
DEBUG RECV:
DEBUG Processing:
DEBUG Getting transaction 9
DEBUG SEND: 0x0 0xa 0x0 0x0 0x0 0x6 0x9a 0x4 0x0 0xc 0x0 0x1
DEBUG Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
DEBUG Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
DEBUG ModbusTcpClient(192.168.0.22:502): Modbus Error: [Input/Output] No Response received from the remote unit/Unable to decode response
DEBUG Current transaction state - TRANSACTION_COMPLETE
Our test script (works ok):
root@einstein:# python ~/test/test_modbus.py
Connected to 192.168.0.20:502
DEBUG:pymodbus.transaction:Current transaction state - IDLE
DEBUG:pymodbus.transaction:Running transaction 1
DEBUG:pymodbus.transaction:SEND: 0x0 0x1 0x0 0x0 0x0 0x6 0x9a 0x4 0x0 0xc 0x0 0x1
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: 0x0 0x1 0x0 0x0 0x0 0x5 0x9a 0x4 0x2 0x41 0x41
DEBUG:pymodbus.framer.socket_framer:Processing: 0x0 0x1 0x0 0x0 0x0 0x5 0x9a 0x4 0x2 0x41 0x41
DEBUG:pymodbus.factory:Factory Response[ReadInputRegistersResponse: 4]
DEBUG:pymodbus.transaction:Adding transaction 1
DEBUG:pymodbus.transaction:Getting transaction 1
DEBUG:pymodbus.transaction:Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
Registers 12 to 12:
[12]: 16705
root@einstein:#
@iburger @Lpopescu Mans Rullgard is actively commiting into this repository, if there is a way to reach him, it would be nice. Thank you!