No Response From SerialServer #1328
-
I am trying to get the Asynchronous Server example working for a Serial Server. I have successfully used TCP-based servers in the past to simulate devices, but this time I need to simulate serial devices. The following client code talks to my physical devices:
I tried to simulate this device by running the I then tried creating a very simple server to see if that would help:
I observed the client is able to successfully communicate with the devices when the server code is not running. The client is not able to communicate with the devices when the server code is running, which suggests to me that the server code is connecting to the port. Unfortunately it does not appear that the server is responding to the client. Is it possible I have something configured incorrectly? Should I not use an actual hardware port? Is there a way I could see what is going wrong? I understand these scripts are tested as part of the CI testing, but I'm not exactly sure how they are run. I would gladly replicate those tests on my setup to confirm this isn't a localized problem. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
you need 2 ports if you want to test with hardware, one for the server and one for the client. test_examples.py shows how we test with virtual ports. |
Beta Was this translation helpful? Give feedback.
-
Good luck, let us know if you find problems with the library. |
Beta Was this translation helpful? Give feedback.
you need 2 ports if you want to test with hardware, one for the server and one for the client.
test_examples.py shows how we test with virtual ports.