Open tribbloid opened 6 months ago
I also have the same issue using the XReal Air 2 Pro. The same code works on Mac OS but not Windows.
I have to admit, I never tried the code on windows.
This seems like an issue with the hidapi
crate, and should probably be debugged there. It might be worthwhile to try the new-ish windows-native
feature flag on it: https://www.reddit.com/r/rust/comments/192aa3h/comment/kh6h8lu/
Tried with hidapi
2.6.1 (where the reddit comment issue was already fixed) with windows-native
feature enabled but still get the same error.
@SimDoes thanks, just changed the title.
hidapi-rs only has 1 unit test, which runs successfully but doesn't show much. That's my only attempt to fix it so far :-< Will try to compile & test the C library later
there are 2 rust runtime in Windows: one built on MSVC (which I used for test) and the other on GCC
@SimDoes are you also using the MSVC one?
there are 2 rust runtime in Windows: one built on MSVC (which I used for test) and the other on GCC
@SimDoes are you also using the MSVC one?
To be honest I have no clue, all I know is that I tried with windows-native feature flag enabled/not for hidapi-rs. Source code here might help.
This fixed Rokid Max on windows for me. Can someone confirm Xreal:
https://github.com/3rl-io/headset-utils/commit/1afb8794a1d55d28a8b4d43ba8c445eacd0c40ce
@kkota1 It's really weird that "not detaching" the kernel driver helps. I don't really know what that even means on windows, because I never dove that deep into libusb.
Which driver are you using?
@badicsalex the error message was something like “that method does not exist” so libusb for windows doesn’t have it . I forked peng’s fusion code and made some changes in the repo linked above
I'll test XReal Air 1 on Windows in the weekend, thanks a lot @kkota1 !
nope, got the same error:
can't find RokidAir: Glasses not found
can't find NrealAir: Packet timeout
can't find NrealLight: Hidapi error
can't find GrawoowG530: Glasses not found
can't find MadGazeGlow: Glasses not found
Glasses not found
The problem is always IMU, not the glasses itself.
Just started testing it on Windows (x86 processor, running read_sensors example), both the glasses HID & IMU HID devices can be found. But on initialisation, read_timeout will return 0 bit of data (debugging screenshot attached)
this will lead to the following error:
I wonder if you have seen similar things on Windows? Is there a configuration I have to set before using it?