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 doesn't work with serial ports greater COM9 on Windows #36

Open
SHK24 opened this issue Mar 24, 2021 · 1 comment
Open

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

SHK24 opened this issue Mar 24, 2021 · 1 comment

Comments

@SHK24
Copy link

SHK24 commented Mar 24, 2021

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 SHK24 changed the title Serial Port doesn't work with serial ports larger COM9 Serial Port doesn't work with serial ports larger COM9 on Windows Mar 24, 2021
@SHK24 SHK24 changed the title Serial Port doesn't work with serial ports larger COM9 on Windows Serial Port doesn't work with serial ports greater COM9 on Windows Mar 24, 2021
@a3f
Copy link
Member

a3f commented Mar 24, 2021

Patches welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants