ruabmbua / hidapi-rs

Rust bindings for the hidapi C library
MIT License
167 stars 80 forks source link

VID/PID is incorrect? #66

Closed kirnyaaa closed 3 years ago

kirnyaaa commented 3 years ago

I'm trying to write a driver for the oculus quest (link).

Looking at the device list (api.devices()), All the VIDs seem incorrect (ie 1241 (belkin), yet I don't have any belkin devices connected).

I see several devices with PID 0137, and vid 9494, which is the quest's PID, but I can't confirm as the vid is incorrect.

ruabmbua commented 3 years ago

Which platform are you targeting?

Need a little bit more info.

kirnyaaa commented 3 years ago

I'm targeting x86_64-unknown-linux-gnu. I should have noted that rusb sees the correct info.

ruabmbua commented 3 years ago

Can you test the different backends?

Maybe try the linux-static-hidraw backend instead of the libusb one.

kirnyaaa commented 3 years ago

Tried it, same problem.

ruabmbua commented 3 years ago

That is certainly weird.

Can you clone the repository and run cargo run --example lshid --no-default-features --features linux-static-hidraw as a test?

kirnyaaa commented 3 years ago

Sorry, I was mixing up hex and decimal. My bad.