Serial Port debugging prompts the given port name does not start with COM/COM exception solution. It is found that the printer is playing a strange role.

Source: Internet
Author: User

During serial port testing, the serial port is used to unplug the printer and replace it with the test. When the program is opened, an error is prompted: the given port name does not start with COM/COM or does not resolve to a valid serial port. (The given port name does not start with COM/COM or is not resolved as a valid serial port)

In the beginning, you can only find the COM port in the Device Manager of your computer. Then, disable the COM port and enable it. In this way, I found the solution online for half a day and online for half a day.

It turns out that the COM1 port is occupied by the printer driver. You can change the port pointed to by the printer driver to another port.

It turns out that the printer uses this serial port. Although the printer is unplugged, it still occupies the port, causing the program to fail to open the port again, directly change the printer port or delete it without any need ..

 

Serial Port debugging prompts the given port name does not start with COM/COM exception solution. It is found that the printer is playing a strange role.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.