ev3duder icon indicating copy to clipboard operation
ev3duder copied to clipboard

Serial Port doesn't work with serial ports greater COM9 on Windows

Open SHK24 opened this issue 4 years ago • 1 comments
trafficstars

From Microsoft support: CreateFile() is successful when you use "COM1" through "COM9" for the name of the file; however, the message "INVALID_HANDLE_VALUE" is returned if you use "COM10" or greater.

If the name of the port is \.\COM10, the correct way to specify the serial port in a call to CreateFile() is as follows: CreateFile("\\.\COM10"...) . URL: https://support.microsoft.com/en-us/topic/howto-specify-serial-ports-larger-than-com9-db9078a5-b7b6-bf00-240f-f749ebfd913e

SHK24 avatar Mar 24 '21 19:03 SHK24

Patches welcome.

a3f avatar Mar 24 '21 21:03 a3f