enumerate misses HF2 devices on macOS #211
Labels
No labels
3rdparty
Android
API
Author does not respond
bsd
bug
build system/CI
ci-virtual-device
CMake
Contributions Welcome
Core
dependencies
device-specific
documentation
don't_merge
duplicate
enhancement
Example
Haiku
hidraw
hotplug
info required
invalid
libusb
macOS
Misc
Not an issue
question
Release
Test
Test GUI
Windows
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-libusb/hidapi#211
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
enumeratereturns a list of devices that I can't find using any other tools.running
returns
I'm trying to connect to the nRF52840. It seems that
enumerate's list just doesn't make sense.Here's the VIDs and PIDs for everything that comes out of enumerate:
It doesn't seem to match the system profiler list:
Any thoughts on how to fix this?
What specifically are you not seeing from hidapi?
DFU is not HID. Many HID devices have multiple usages, which show up as separate "devices" in hidapi.
Oh I see you are looking for HF2 devices, not DFU. From https://github.com/jacobrosenthal/hf2-rs/issues/34 it appears that HF2 isn't correctly identifying as a HID device.
Ah, it seems that HF2 doesn't define interface identification rules and HID isn't picking it up?
https://github.com/microsoft/uf2/issues/25
Is this something that HID should be concerned about, perhaps by adding ad-hoc support, or is the lack of spec around HF2 mean that HID won't support HF2 devices?
I'm a newbie to this - how would I enumerate non-HID devices?
HID devices not necessary USB devices.
There is nothing to fix here. VID/PID does not uniquely identifies a device.
VID + PID + SERIAL_NUMBER + USAGE + USAGE_PAGE does (in most cases).
Not all USB devices are HID devices, and some HID devices are not USB devices.
hidapi enumerates exactly what Operating System threats as a HID device (at least on macOS). Nothing more, nothing less.