Skip to content
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 port keeps reconnecting when USB cable of board is disconnected #314

Closed
ednieuw opened this issue Apr 14, 2021 · 4 comments
Closed
Labels
topic: code Related to content of the project itself topic: serial monitor Related to the Serial Monitor type: imperfection Perceived defect in any part of project

Comments

@ednieuw
Copy link

ednieuw commented Apr 14, 2021

When the USB cable is removed from the PC and the Serial monitor is open the IDE starts reconnection every second.
It is not possible no turn off the COM port because the Port: entry disappeared from the Tools menu

Expected behaviour
Automatic closure of the COM: port when removing the USB cable
Not removing the Port: entry from the Tools menu when nothing is attached
Make it possible to disconnect a COM: port in the Tools -> Port: entry by deselecting the check mark

**Desktop

  • OS: Windows 10
  • Version: 2.0.0 beta 4
@ednieuw
Copy link
Author

ednieuw commented Apr 15, 2021

Automatic reconnection is not convenient when more than one IDE is open or a serial terminal program
The port is may already connected by another program.

@cmaglie cmaglie removed the type: bug label Sep 16, 2021
@rsora rsora added the type: imperfection Perceived defect in any part of project label Sep 22, 2021
@per1234 per1234 added the topic: serial monitor Related to the Serial Monitor label Oct 25, 2021
@per1234 per1234 added the topic: code Related to content of the project itself label Oct 25, 2021
@StephenJD
Copy link

When the USB cable is removed from the PC and the Serial monitor is open the IDE starts reconnection every second. It is not possible no turn off the COM port because the Port: entry disappeared from the Tools menu

Expected behaviour Automatic closure of the COM: port when removing the USB cable Not removing the Port: entry from the Tools menu when nothing is attached Make it possible to disconnect a COM: port in the Tools -> Port: entry by deselecting the check mark

**Desktop

  • OS: Windows 10
  • Version: 2.0.0 beta 4

It is very annoying if you have multiple IDE's connected to different ports: when you disconnect one USB, its IDE auto-connects to one of the other IDE's ports. When you reconnect the USB you have to re-select the correct port.

I suggest:

Port-searching and connection ONLY happens when you try to upload or open the Serial Monitor.
If a previous port connection is lost, it remembers that port, and on attempting a reconnect, it first tries the previously connected port.

@larsinka
Copy link

larsinka commented Nov 4, 2021

If I'm using multiple Serial Monitors, one to monitor the USB serial and programming, one for BluetoothSerial, if upload the code and the Bluetooth port gets disconnected it won't reconnect. Instead I have to close the IDE and only then it works again.

@per1234
Copy link
Contributor

per1234 commented Jun 8, 2022

Closing as fixed by #597

@per1234 per1234 closed this as completed Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself topic: serial monitor Related to the Serial Monitor type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

6 participants