-
Notifications
You must be signed in to change notification settings - Fork 132
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
serial monitor won'r release port #1570
Comments
It is hard for me to understand what you are trying to say. If you can reproduce the problem. Can you document how with screenschots/video? |
Steps to reproduce this problem in eclipse (latest) running on Windows (latest) using the sloeber plugin (latest):
Instead of disconnecting the USB cable, the same problem occurs if the arduino program "crashes". As before, restarting Eclipse allows the serial monitor to use the the same port as before. |
At step 5 things are broken |
I don't understand what you are suggesting. What do you mean by "disconnect the serial connection on the PC". Is this physically disconnecting the USB cable then re-inserting it into the PC? If so that is what I am doing. Should I be doing something else? In Windows, the normal and expected behavior is for an app to release the port when the USB is disconnected from the PC, and to re-acquire a/the port when the USB is reconnected. It seems that sloeber is the only software I have used that won't let go of the USB port. --jon |
That may be the rule but for a very long time applications on windows were not alerted on windows when the serial connection breaks. |
OK. Understood, but this is a real PITA when doing testing and such as restart of eclipse takes a while and breaks the work flow. BTW: For another project I am interested in accessing USB ports from Java. What library are you using? Perhaps I can do some research for you on how to release the USB port. --jon |
FWIW: For my other project I am using library software by a company called Phidget to connect Java to their USB devices. Probably all proprietary but the USB ports act as they should on Windows. I can try asking them what they use if you are interested:-) |
There is no need to restart. |
As i described in my detailed steps to reproduce the problem, what you suggest definitely does not work. |
Have you tried disconnecting between step 3 and 4 |
Unfortunately the disconnect is by accident, and the same problem occurs if the arduino program crashes. Both of these use cases are unpredictable so disconnecting before ot happens is not an option. Is there no way for slowber to gorce a disconnect of all current and padt ports? Sort of a nuclear option but still better than restarting eclipse. |
If you close the serial monitor view and the plotter view all serial connections should be removed from memory. |
OK. Thanks. And thanks again for doing the plugin. At some point when you have the time and feel so inclined I'd like to talk to you about having multiple eclipse projects and linking dependent "library" projects together (#1506). |
I am having a devil of a time trying to use the serial monitor after anything happens to the arduino (e.g. program crashes) or USB connected to it (e.g. disconnect then reconnect the connector). Something in Sloeber is not releasing/resetting the port connection for serial monitor use. I can kill the serial monitor, then restart it, selecting the one available com port. The program will upload fine, as evidence from the console, but when the program in the arduino starts and tries to send a message to the serial monitor I get an error message from sloeber saying to select the correct port. There is only one port to select and it is already selected. There is no way I have found to release/reset the port for serial monitor use other than to restart eclipse. This is obviously an unacceptable solution.
As far as I know I am using the latest eclipse and sloeber plugins.
The text was updated successfully, but these errors were encountered: