client.read_holding_registers begins with "response" frame? #2180
-
Hi,
-> as we see, the "Request" is entirely missing! homeassistant looks like:
and, as it seems logically intuitive, the actual communication after SYN/ACK is a Query. The implementation is the following:
The error log shows:
(FYI the logging code is not shown in the example code) I'm using pymodbus-3.6.8 Initially I tried pymodbustcp, but there the wireshark look looks even more strange. Interestingly, pymodbustcp worked just Ok when communicating with the heatpump. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Your device does not accept the connection, so of course nothing else happens. If e,g, the HA-modbus is still open, then that is the problem, huawei sun2000 (if that is what you refer to) only accept 1 connection. |
Beta Was this translation helpful? Give feedback.
-
pymodbustcp is another project and I have no idea how that works! I happen to have sun2000 on my production system, and it works without problem. I used to have a sync client as you, but switched to async for performance reasons. |
Beta Was this translation helpful? Give feedback.
pymodbustcp is another project and I have no idea how that works!
I happen to have sun2000 on my production system, and it works without problem. I used to have a sync client as you, but switched to async for performance reasons.