-
Notifications
You must be signed in to change notification settings - Fork 951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pymodbus.server does not listen on modbus port #1596
Comments
How about you read the documentation or at least start it with --help, then you will there is a --port argument (as well as many others like e.g. --framer) |
Apart from that what does -u mean ? I am a bit surprised because I thought that was unsupported. |
I used exactly that command line before when working with pymodbus 3.2.2 and it worked fine:
In both version, the usage output indicates, that modbus tcp and port 5020 are the default and so I thought I can omit them:
I double-check whether it works by supplying these arguments, but unfortunately it does not help. I tried |
This command line was suggested by @dhoomakethu in a previous issue report: #1454 (comment) . As far as I understand, "-u" specifies the unit IDs the pymodbus server is reacting to. The only way I got pymodbus.server to work was to supply "-u 1". In my last comment of issue #1454 I suggested to make this the default. |
A lot of thing have changed. @dhoomakethu it's your code, between 3.2 and 3.3 I do not think there was changes to asyncio.py |
Did you try to specify -p 5020 ? |
I will take a look, I am not up to date with the latest changes. |
Apart from that I just tested and it surely does not listen. |
@dhoomakethu the real problem is that we do not have test cases that cover at least the basic of repl server and repl client, so we do not see if something is broken. I added tests for all examples, that basically just ensures the example can start and communicate, but it really helped in avoiding problems. |
Understood, I will start on the tests as well. |
I debugged the problem:
|
Thank you; I was able to reproduce (with |
I can confirm, the latest patch fixes the problem in both cases (repl and no-repl). @alexrudd2, thanks! |
Versions
Pymodbus Specific
Description
The text was updated successfully, but these errors were encountered: