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

Only first USB interface of an multiple interface device is listed #1585

Open
coelsner opened this issue Jun 29, 2018 · 1 comment
Open

Only first USB interface of an multiple interface device is listed #1585

coelsner opened this issue Jun 29, 2018 · 1 comment

Comments

@coelsner
Copy link

  • SerialPort Version: v6.2.0 + v.4.0.7
  • NodeJS Version: 8.11.3
  • Operating System: Windows 10

Summary of Problem

Only first USB interface of an multiple interface device is listed.

Steps and Code to Reproduce the Issue

I have a device (which is unfortunately not public yet) which has multiple USB interfaces.
On my Windows 10 machine it serialport lists only the first COM interface, but if I know the right COM port it is possible to interact with this port. On Linux this isn't a problem.

I think the problem is that only the main device in the windows registry is read (see serialport_win.cpp line 695+)

The path of the other interfaces are listed in my registry like this:

  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_1234&PID_1234
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_1234&PID_1234&MI_00
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_1234&PID_1234&MI_01
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_1234&PID_1234&MI_02
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_1234&PID_1234&MI_03

I found issue #1459 which also addresses this problem, but am I right that the solution don't "tests" those other interfaces? Unfortunately I'm not that into C++ (Windows) programming that I could investigate or fix this by myself. 😟

@reconbot
Copy link
Member

Nobody is a c++ programmer until they try ;-)

I'll keep this open as a bug. I don't have any comparable hardware to test on myself.

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

No branches or pull requests

2 participants