RTU Server works by mbpoll but not with pymodbus #1651
-
Hi all, I'm pretty new to Modbus and pymodbus. Problem: A self-created RTU server providing a switch status (ESP32 with modbus-serial lib) can be accessed via mbpoll but not via pymodbus (Raspberry Pi2 with a RS485 HAT). Running mbpoll on RPi:
The pymodbus RTU client implementation looks like this:
The response looks like this:
Any idea about what I'm doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
The upper implementation didn't include logging, so I've updated the python script to:
The log out looks like this:
|
Beta Was this translation helpful? Give feedback.
-
please add the debug log as pr documentation, call pymodbus_apply..... |
Beta Was this translation helpful? Give feedback.
-
Please also write which version you are using, hardware etc. |
Beta Was this translation helpful? Give feedback.
Which is why examples are part of the documentation. The examples contains e.g. a template call showing how to to look for error conditions. All modbus calls are shown in one example, so I am not sure what you want more.