-
Notifications
You must be signed in to change notification settings - Fork 137
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
Add serial port support #211
Comments
One thing looks clear: Serial port initialization and handling is really tricky. We don't want to duplicate pyserial's efforts, but maybe provide stream classes that work through pyserial. |
https://github.com/M-o-a-T/anyio_serial.git does that. Granted that delegating absolutely everything to a worker thread is not an optimal solution by a long shot, but at least it gets the job done. |
Just a quick observation: your README uses markdown syntax but the file suffix is .rst. |
Thanks, that file did need some attention. :-/ |
I have a number of other changes I'd like to make in that repo. Can we talk in the AnyIO Gitter room? |
Windows + asyncio is the only problematic point here. It might be possible to use the private API of the proactor event loop for doing overlapped I/O on the serial port. On other platforms, all we have to do is add a reader for it. I'll take a stab at this for v3.1 if I manage to getmyself a USB-serial converter. |
I found code that can do asynchronous serial I/O on |
We should look at pyserial to figure out what needs to be done to support I/O on serial ports. Hopefully C extensions or CFFI are not needed.
The text was updated successfully, but these errors were encountered: