Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Opening multiple of the same HID devices #678

Answered by Youw
Edmonds1997 asked this question in Q&A
Discussion options

Hello, I am trying to use the HID API to open some HID USB devices. Two of the devices are the same and have identical product ids, vendor ids, AND serial numbers. Is there anything I can do to get around this?

You must be logged in to vote

They are still going to be enumerated as different devices - different PATHs.

But it is all up to you. You should define yourself how are you going to distinguish the two, at first - logically.
If those are your devices (you have control over the FW) - preferably generate different SN for each.
If you don't have control of the FW but know the API/communication protocol/available reports/etc. - you could try to use those to identify which one is which.

There is not really a lot you can do here.

Replies: 1 comment

Comment options

They are still going to be enumerated as different devices - different PATHs.

But it is all up to you. You should define yourself how are you going to distinguish the two, at first - logically.
If those are your devices (you have control over the FW) - preferably generate different SN for each.
If you don't have control of the FW but know the API/communication protocol/available reports/etc. - you could try to use those to identify which one is which.

There is not really a lot you can do here.

You must be logged in to vote
0 replies
Answer selected by mcuee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /