Serial server and client - No reply from server. #1121
-
ScenarioI'd like to use the server and console REPL to test serial communication locally on Linux (WSL2) with a socat provided link between two virtual serial ports. Scenario diagramServer <-> /dev/pts/7 <-> socat <-> /dev/pts/6 <-> Client IssueThe server does not reply to the command... shown below. Server init command
Client init command and REPL commands
Socat pipe in betweenThis command below creates a link between two virtual serial ports, and prints messages out in hex format. This is the output (requesting read coil address 1, count 1, slave 1.
You'll see there's no reply. Any support is appreciated to try to troubleshoot why i'm not seeing a message/correct message back from server. |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 6 replies
-
Socat works nicely, I use it daily. You can test serial without socat too, see test/test_examples.py @dhoomakethu is the expert on REPL, I am concentrating on the library itself and as you can see from our test setup the library as such works. |
Beta Was this translation helpful? Give feedback.
-
I will however next week start using REPL client to test some a new datastore feature that allows you to build device simulations, so maybe I will see and fix your problem. |
Beta Was this translation helpful? Give feedback.
-
@1038642892 what version of pymodbus are you using ? I just gave a try with latest on |
Beta Was this translation helpful? Give feedback.
-
Just for info, in respect of REPL dev is the same a release 3.0.0 for now. |
Beta Was this translation helpful? Give feedback.
-
This is a bug we solved quite a while ago, seems you are using an old version. |
Beta Was this translation helpful? Give feedback.
-
I was using the version available in pip. I've removed pymodbus-3.0.0 and tried from source (3.0.1.dev0). This seems to have fixed it. Thank you for your time @janiversen and @dhoomakethu. I'm impressed with the pymodbus tooling. See below for installation steps used:
|
Beta Was this translation helpful? Give feedback.
-
thanks for the report, this gives me a good reason to speedup 3.0.1 |
Beta Was this translation helpful? Give feedback.
I was using the version available in pip.
I've removed pymodbus-3.0.0 and tried from source (3.0.1.dev0).
This seems to have fixed it. Thank you for your time @janiversen and @dhoomakethu. I'm impressed with the pymodbus tooling.
See below for installation steps used: