Closed iynehz closed 4 months ago
Your device do not respond, so not much we can do. You do not share your code, so I cannot tell you if any of your parameters look suspicious.
A question are you sure your device is slave 17 ? (asking because it is unusual).
Seems solved.
Sorry was busy on something else and did not notice your earlier response. No it's not solved. I have multiple modbus devices on the bus that's why its address is not 1. The device is a MCU running Rust https://github.com/alttch/rmodbus library. As I said it's good under version pymodbus 3.5, but the randon failure is obvious under 3.6. So it's probably not something about my setup.
I really cannot help you a lot...you do not share the code, so it's impossible to see if you changed the parameters. You are using the sync version, which she had very few changes.
Also 3.6.4 is a lot faster which might influence your device.
This comment "So it's probably not something about my setup." is also valid for the pymodbus library 😄 , the library just does what you ask it to do.
What you can do is to try and use the async version, which is a different code part, so it might give another result.
And just for the record this issue have very little in common with #2018, which is async, tcp and the problem is receiving multiple packets.
Closing due to lack of information.
Versions
Pymodbus Specific
Description
It's a random issue. It's similar as https://github.com/pymodbus-dev/pymodbus/issues/2018 except that I use RTU and my error message is like
or
Version 3.5.4 is good.
Code and Logs