To find the process that is using a serial port on Windows, follow these steps:

  1. Open the Device Manager by right-clicking on the Start button and selecting Device Manager.

  2. Expand the Ports (COM & LPT) section.

  3. Right-click on the serial port and select Properties.

  4. Select the Port Settings tab.

  5. Click on the Advanced button.

  6. In the Advanced Settings window, select the COM Port Number dropdown and note the COM port number.

  7. Open the Command Prompt by pressing the Windows key and typing cmd.

  8. Type the command 'netstat -ano' and press Enter.

  9. Look for the PID (Process ID) column and find the process that is using the COM port number noted earlier.

  10. Note the PID number and open the Task Manager by pressing Ctrl+Shift+Esc.

  11. Click on the Details tab.

  12. Look for the process with the same PID number noted earlier.

  13. Right-click on the process and select End Task to terminate the process.

Note: Make sure to only terminate processes that you are certain are not needed as terminating important processes can cause system instability.


原文地址: https://www.cveoy.top/t/topic/nHCO 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录