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 remains open after Serial Monitor is closed #1420

Closed
3 tasks done
sayzergithub opened this issue Sep 11, 2022 · 6 comments
Closed
3 tasks done

Serial port remains open after Serial Monitor is closed #1420

sayzergithub opened this issue Sep 11, 2022 · 6 comments
Assignees
Labels
status: waiting for information More information must be provided before work can proceed topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@sayzergithub
Copy link

sayzergithub commented Sep 11, 2022

Describe the problem

Once the serial monitor is opened, and then closed later on, port stays open while IDE is running.

To reproduce

  1. Connect a board to your computer.
  2. Select the board and port from the Arduino IDE menus.
  3. Open Serial Monitor.
  4. Close Serial Monitor.
  5. Attempt to open the port in an external serial port monitor.

🐛 The external serial port monitor can not access the port.

Expected behavior

The port is closed when Serial Monitor is closed.

Arduino IDE version

2.0.0-rc9.4

Operating system

Windows

Operating system version

10

Additional context

I am using an ESP32 board with Silicon Labs CP2102 USB-Serial port chip.


I also experience the problem of the port being reset when the IDE is closed as reported at #1546, but it occurs even when I already closed Serial Monitor before closing the IDE.

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@sayzergithub sayzergithub added the type: imperfection Perceived defect in any part of project label Sep 11, 2022
@per1234 per1234 self-assigned this Sep 12, 2022
@per1234 per1234 changed the title RC9.4 Serial Port Resets Board Serial Port Resets Board Sep 13, 2022
@per1234

This comment was marked as duplicate.

@per1234 per1234 added the status: waiting for information More information must be provided before work can proceed label Sep 13, 2022
@sayzergithub

This comment was marked as duplicate.

@per1234 per1234 removed the status: waiting for information More information must be provided before work can proceed label Sep 13, 2022
@per1234
Copy link
Contributor

per1234 commented Sep 14, 2022

Thanks for the clarifications. In order to progress with the investigation, I'm going to ask you to try an experiment and then report your results here.

Please try this:

  1. Open the Windows "Task Manager":
    https://techcommunity.microsoft.com/t5/windows-11/how-to-run-task-manager-on-windows-11-6-ways/m-p/2701239
  2. If it is not already in that mode, click the "More details" button at the bottom of the Task Manager window.
  3. Select the "Details" tab in the Task Manager window.
  4. Start the Arduino IDE.
  5. Select the board and port for your ESP32.
  6. Open Serial Monitor.
  7. Switch to the Task Manager window.
  8. Verify that you can see a process with the name "serial-monitor.exe".
  9. Switch to the Arduino IDE window.
  10. Close Serial Monitor in the Arduino IDE window.
  11. Switch to the Task Manager window.

After following these instructions, do you still see a process with the name "serial-monitor.exe" in the Windows "Task Manager"?

@per1234 per1234 added topic: code Related to content of the project itself status: waiting for information More information must be provided before work can proceed labels Sep 14, 2022
@per1234
Copy link
Contributor

per1234 commented Oct 11, 2022

Hi @sayzergithub. Did you ever get around to trying the experiment I requested in my previous reply? If so, what was the result?

@sayzergithub
Copy link
Author

sayzergithub commented Oct 11, 2022 via email

@per1234 per1234 changed the title Serial Port Resets Board Serial port remains open after Serial Monitor is closed Sep 28, 2023
@per1234
Copy link
Contributor

per1234 commented Sep 28, 2023

Since we didn't receive any additional reports or the additional information needed to investigate, I'll close this issue. If anyone is experiencing this problem with the latest version of Arduino IDE, please comment here and we will continue with the investigation.


Note there is a confirmed bug that causes the equivalent problem with Serial Plotter. That is tracked in the dedicated issue #1423

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting for information More information must be provided before work can proceed topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants