Replies: 4 comments 2 replies
-
In order to use the examples,you need to "git clone" the repository. |
Beta Was this translation helpful? Give feedback.
-
please read the README, if you want to run pymodbus.console you need to install repl. If you want to use serial you need to install serial, if you have not done so earlier. Your code looks ok, but it cannot connect, so some of your parameters are wrong, use debug to get a bit of more information. |
Beta Was this translation helpful? Give feedback.
-
I did read the README. It took me a long time to figure out that when you say I got a little further when I figured out on my own that I wasn't in the |
Beta Was this translation helpful? Give feedback.
-
I figured it out because pyserial makes it clear that the problem was "Permission denied". The error message I ended up using strace to watch the write() and read() calls, and it looks like my RS485 device is just echoing back my commands rather than responding appropriately. That's on me to figure out. But I thought you might find it useful to know my experience as a new user of your library. |
Beta Was this translation helpful? Give feedback.
-
It seems like you've tried to make pymodbus easy to get started with, but I've had nothing but trouble.
I used pip to install pymodbus 3.2.2 and tried:
$ pymodbus.console serial --port /dev/ttyUSB0 --baudrate 9600 --timeout 2
, but a bunch of the client.* options seem to be missing. For example, there's no client.connectNext, I tried
client_sync.py
from github as the readme suggests since I didn't seem to have the examples locally, but it fails withNo module named 'examples.helper'
. I tried pip installing pymodbus[documentation] but that just installed a bunch of sphinx dependencies I didn't want.Next I tried this:
But that just gives me:
Beta Was this translation helpful? Give feedback.
All reactions