Replies: 2 comments 4 replies
-
|
It is hard to tell, why you get this error, because you have not included any log lines before the error. You have also not written which version of pymodbus you are using, I remember there was a bug fix related to transaction ids in the newest release. The error is because your app send a request but received an old response. |
Beta Was this translation helpful? Give feedback.
-
|
Just analyzed the data leading up to the problem
The send is repeated because there are no response, within the timeout you have defined.
Then you get a response, and the app continues sending requests with a higher tid.
Here the device returns with an old tid, probably due to the retry earlier. So pymodbus correctly detects a wrong tid. I think the current version, makes a log e try but continues. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am running the custom Huawei Solar integration on HA.
I have 2 cascaded inverters, that are addressed via Modbus over LAN. Each has it's own slave ID.
The Integration regularly loses the connection to the inverters. Or more specific, it seems that single messages are lost.
Now I discovered a log entry, that points towards pymodbus:
So the question here is, if this is worth a bug report here or elsewhere.
Best Regards
Markus
Beta Was this translation helpful? Give feedback.
All reactions