-
Notifications
You must be signed in to change notification settings - Fork 63
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
COMPort::open should prepend port name with \\?\ #18
Comments
@niconii Interesting. I didn't know this about Windows. I'll have to find a way to get 10 COM ports installed on Windows so that I can reproduce this. |
I personally ran into this when using com0com, which is a driver that can create pairs of virtual COM ports. The newest version (3.0.0.0) isn't signed, thus it doesn't work easily on newer versions of Windows, but there is an older version (2.2.2.0) which is signed. By default, it creates pairs of ports with names like |
@niconii Thank you. I was able to reproduce it using com0com. I'm pushing up a fix that will go into the next release. I found this documentation on MSDN useful (https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx):
|
Alright. AFAIK it shouldn't matter whether |
At the moment,
COMPort::open
only works forCOM1
-COM9
unless\\?\
is prepended to the string, because the filenamesCOM1
-COM9
are handled specially by the Win32 subsystem, whereas others aren't, causingCOMPort::open
to attempt to open a file instead.In contrast, a path like
\\?\COM10
specifies a verbatim path, which will work with any COM port.The text was updated successfully, but these errors were encountered: