-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Serial Monitor clears if port disappears in release 1.8.10 #9234
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
Comments
Hi @gpm-102 , Your use case is a bit borderline (I must admit I didn't think about it). Probably a freeze without graying out the window would work in your case, so you could still see the last messages. @cmaglie any thoughts on that? |
Looks like a good compromise :-) (if we ever get to grey-out keeping the messages visibile, even better) |
I can see your logic for making this change. |
I have work round which may help others. |
This is what Teensy's not-yet-pluggable serial monitor does. When the device disconnects, the window is disabled but remains visible. Even that wasn't great, because people wanted to be able to copy text to the clipboard. Recently I changed it so the TextArea part is kept enabled, but turned gray by setting its foreground & background colors. I've been intending to send a huge pull request with all this stuff, including the speedup that allows the serial monitor to handle 10 Mbyte/sec speed. Right now I'm working on a critical project, then traveling later this month. Maybe in December, if there's interest? |
If anyone wants that code before I get around to cleaning it up and making it more "pluggable", it's all published here: The part about disabling but leaving the window visible and keeping the textarea able to select & copy text is in the onEnableWindow() function, on lines 190-218. I also wrote this blog article about the performance improvement work. https://www.pjrc.com/improving-arduino-serial-monitor-performance/ Near the end is a section about thoughts on contributing this code, which has links to the specific source files. I also wrote some lengthy comments in FifoDocument.java. Sadly, I just haven't had time to clean this up and turn it into a more generic "pluggable" version, as was done for pluggable discovery. So many extremely urgent things always seem to drain away all the available dev time when you run a small business. I will eventually get around to it... but if anyone wants the code sooner, it's all published as open source for anyone to take & use & improve. |
I have just updated from 1.8.9 to 1.8.10, and am having a problem with the serial monitor.
I am working on a system using motor shields and motors. To assist with debugging I have serial.print statements to output to the monitor. When things go wrong I either need to remove the motor power, or disconnect the usb to stop the hardware getting damaged.
When I do this in 1.8.10 the displayed information disappears, meaning I can't track what has happened. This did not happen in 1.8.9.
Using Arduino Mega 2560
on Win 10 computer
The text was updated successfully, but these errors were encountered: