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

Filter by Serial Number #14

Closed
ipv6freely opened this issue Apr 13, 2022 · 3 comments
Closed

Filter by Serial Number #14

ipv6freely opened this issue Apr 13, 2022 · 3 comments

Comments

@ipv6freely
Copy link

I have two USB devices connected that share identical VID, PID, usagePage, usage, and path. The only difference between them when I use --list-detail is the serial_number.

Would it be possible to filter by serial_number to send output to a device?

@ipv6freely
Copy link
Author

ipv6freely commented Apr 14, 2022

Doing some digging, it looks like the dev_open() function from hidapi.h supports *serial_number as a filter already. Line 292 of hidapitester just fills in the field with NULL. It should be fairly trivial to add --serialNumber as a flag, then. I just don't know C so can't do it myself. I tried!

@MPLew-is
Copy link

@todbot any thoughts on publishing a new release for this? Would love to have this functionality included in one of the official binaries!

@todbot
Copy link
Owner

todbot commented Mar 23, 2023

Hi, apologies for not publishing new binaries for this. I just did but haven't tested them extensively. I think things should be okay though. 😀

@todbot todbot closed this as completed Mar 23, 2023
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

3 participants