avrdude ser_open() can't set com-state When trying to upload the blink sketch to my (unofficial) Arduino Uno, I get the following error:

avrdude ser_open() can't set com-state for "\\.\COM3"


I have programmed this Arduino before using this same laptop, but not for quite some time.  I have not changed anything in the Arduino IDE in this time.

I have tried the following:


Reading answers for the following related questions:


avrdude: ser_open(): can&#39;t set com-state for &quot;\\.\COM2&quot;
avrdude: ser_open(): can&#39;t open device &quot;\\.\COM3&quot;?
Can&#39;t upload to my Arduino UNO
avrdude: ser_open(): can&#39;t open device &quot;\\.\COM4&quot;: Access denied

Confirmed that COM3 was the correct port by going to device manager. I have only one port listed here, COM3, and it disappears when I unplug my Uno and reappears when I plug it back in again.  One strange thing to point out is that it is called RAMPS for some reason?
Tried 3 different USB cables
Tried 3 different USB ports
Restarting the computer
Uninstalled and reinstalled the Arduino IDE
Uninstalled the device from Device Manager
Tried a (previously untested) (also unofficial) Arduino Nano.  When I looked up this in Device Manager, it was also reported as RAMPS on COM3 (strange?)


None of the above fixed the issue and all gave the same error as shown above (except when trying different USB ports which showed the error just for different COM ports).

EDIT: Just tried both the Uno and Nano on another computer and both worked fine. This confirms that both the arduinos and cables I'm using are working properly.
Maybe a Windows driver problem.
Do your uno and nano use a ch340? (It is the component translating USB to uart (serial pins of atmega328).
Windows has no software way to differenciate boards using this component. It is a common use on cheap clones to lower price.
Official arduinos use a second atmega (atmega16u2 natively supporting usb) instead of the ch340. Allowing windows to identify the arduino model.

You should try to update your ch340 driver as you have the same problem with the 2 boards. here is the download page of the manufacturer (ch341ser.exe is the package you want)

You can also try to connect your board to an usb2 port as some problems (and solutions to try) are posted here (arduino forum)
And even try to use an usb2 hub...