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
Exception when sending "purge" to a remote serial driver #1396
Comments
I referenced the |
Yeah, that does look weird. The fixes in our pyserial branch eliminate a lot of port reconfiguration, to investigate this further I'll need to reread RFC2711. |
You might be able to see some more by looking at the RFC2711 TCP connection with Wireshark. If you can reproduce and compare with the old working behaviour, even better. Are you using ser2net? Perhaps there is a regression on their side? |
Yes, I have that reproducing here. The "with purge failing" option looks to start the same as the "purge ignored" example up until 0x49 0x49 sends When I use the Telnet wirehsark parser, that matches the code in that it is trying to purge RX:
I am. And it was the Ubuntu 24.04 package (v4.6.0-1build2). The commit logs seem to support your theory:
I'm willing to bet if I update to the latest (4.6.1+) this issue will go away. I'm regretting my decision to jump to the early OS. |
When I try to attach to a ShellDriver on a remote serial port, I hit an exception "timeout while waiting for option 'purge'"
The exception comes from this line:
https://github.com/pyserial/pyserial/blame/master/serial/rfc2217.py#L493
I was able to recreate this issue with this code:
If I comment out the
self.reset_input_buffer()
andself.reset_output_buffer()
lines, everything works fine and running pytest with "test_shell.py" succeeds.My exporter is a Raspberry Pi running Ubuntu 24.04 with a USB / Serial adapter.
So my question is: Is there something that might have changed on the exporter side that might cause the purge to timeout? Clearly the
pyserial
code isn't new, so I suspect the issue is something I've done with my exporter.Is there any information that I could grab or provide that might shed some light on this?
Also, thank you for providing active support on this project! I look forward to using it much more.
The text was updated successfully, but these errors were encountered: