-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Allow selection of com port from a list of available ports when starting. #8
Comments
Note that the auto-connect functionality will have to work in conjunction with this feature. The |
It would also be nice if this list would auto-update when new devices are connected. I'm not sure what options are available with regards to "listening" for new com ports. A polling-type operation is certainly possible, but far from ideal. |
I came across your repo because someone I watch recently took an interest in it, and since serial communication is something I have some experience with, I thought I'd drop by to provide some info that you might find useful...
You may find this old project of mine interesting/useful: In particular, this class provides a means of watching for being notified of serial devices being connected and disconnected: And its usage is demonstrated in the main file: This is done using the Another alternative would be to use Win32 calls, but it depends how you feel about using unsafe code and marshalling/interop, and enumerating serial ports using Win32 is a bit more complicated anyway. |
That is excellent information, thank you for sharing! I will likely be looking into this in the very near future, and will see what I can manage. This application is literally the first .NET app I wrote after working through a "C# for beginners" book, and I've done depressingly little C#/.NET since then. The examples in your demo code - particularly with regards to utilizing events/handlers - are greatly appreciated. |
I almost always have multiple CircuitPython devices connected, which means I almost always have to run
ss.exe
with the-c
command-line option to specify which device to connect to. If there is more than one com port available, SimplySerial should - by default - display a list of com ports and allow the user to choose which one to connect to.The text was updated successfully, but these errors were encountered: