-
Notifications
You must be signed in to change notification settings - Fork 4
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
support for the older version of HyperX Cloud II #1
Comments
Ok, strange, I never had this error before. |
Ok, you have the older version of the headset. |
I used the precompiled version, I will check the self compiled in the morning |
Ok, if you do, could you replace the following lines in `src/lib.rs"? This will make the app crash immediately and may tell me more about where and why the error happens. 88: 125: 127: I'm sorry for your inconvenience :(. |
I have compiled it for you with the changes I mentioned above. |
Thank you! I will try it in a moment! |
The first error indicates that the rules are not set correctly, so the app does not have the necessary permissions to access the headset (but we can fix this later). The second error indicates that the packet I used to request the battery level failed. The reason for this could be that your headset (the older version) expects different packets than mine. |
Okay, thank you! |
Could you please run these two executables with sudo and let me know what happens? cli_app.zip |
Could you please try this again cli_app.zip. |
One more alternative would be that you try to compile the app yourself. |
Its not working anyhow sadly.. I am trying to compile it myself, but I am very noob in the Linux field, so I tried avoiding it tbh |
While trying to compile it myself, I get this errors: totto@zsolti-pc HyperXCloudIIWireless-main]$ cargo build --release Caused by: --- stderr --- stderr One possible solution is to check whether packages thread 'main' panicked at 'explicit panic', /home/totto/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libdbus-sys-0.2.5/build.rs:25:9 Caused by: --- stderr --- stderr One possible solution is to check whether packages thread 'main' panicked at 'explicit panic', /home/totto/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libdbus-sys-0.2.5/build.rs:25:9 |
It complains about dbus not being installed, but dbus is only used for the tray application. |
Tried compiling after installing the missing dependencies: Caused by: --- stderr --- stderr |
You have to install hidapi |
I have already installed it |
ah my bad it says |
Damn.. I saw that too but cant find the install command for that.. cheking if its working.. |
I also found this but don't know what the difference is |
I have run it, but still, broken pipe error |
also, finally compiled with no error |
Try |
There is no git repository it says |
are you in the root of the repo? |
Yeah, I was, now I see there is a separate repo.. I download that, and check in a moment |
Hi, However, we were not able to locate a similar packet on his computer.
|
ok, im gonna try to replicate the tutorial in the README with wireshark and post here the result. |
OK, If you have any questions please ask. |
Thank you. In general, I'm not sure what package I'm looking for, but I suspect it should be
If you find any other packages that meet these requirements, please let me know. |
Interestingly the third package (the one you sent me) did not work but the first did. |
yes, it is at 89% |
Strange the two apps use the same code to interact with the device. |
Sorry for the late response. |
Interesting @tottoszsolt reports similar behavior. It seems like the packet sent to the headset only works once per power cycle. |
sorry for the delay, life happened, i tried to dump all the packets from the headset, if you need any other info on it feel free to ask. |
Thank you, I will look into it :) |
Hi, sorry for the late response. I checked the log, and the packet I sent matches the packet sent in the log. However, it seems like the host also sends some interrupts to the device; maybe these are the key? I don't see an option to send interrupts with the HID library I used in the project. I will try to find another HID library or to decompile the Windows app and look into what actually happens. Decompiling the Windows app is a bit annoying because, as far as I can tell, it is only available through the Windows Store. |
No problem, if you need anything that i can provide to help just ping me and i will try. |
Hey, thank you for the offer. If you want you could look into how to disassemble the hyperx windows app or haw to get the hyperx windows app without using the windows store (if that is even possible). |
after a while i started to search for information on this and found this python app that works with my headset (https://github.com/Agustin-Jerusalinsky/hyperx-cloud-II-battery) the battery.py returns the right % |
Yes, I would expect that. The first packet that was tested here, #1 (comment) is actually from that repository. However, I just noticed it does one thing different before the request for the battery level, it also sends a report request. I could also try that. |
yes, it is working every time, and the panel is working too |
Cool. I think the only difference is that it sends the report. I will try to do the same in my code. |
As far as I can tell, the library I use to interface with the headset has no |
Thank you. I would have guessed that line 13 alone does not send anything to the device because of the "write" in line 26. |
Hello, is it possible to add a battery icon for the HyperX Cloud 3 Wireless as well? |
Hi, as you can see, supporting the old wireless 2 is already quite challenging / not possible. Therefore, I can't promise anything. However, if you provide me with the packets that have to be sent to the headset and its product id I can try to add support for it. Also, could you please create a new issue regarding the wireless 3? |
I have installed the dependencies, but when I try to launch it, I get broken pipes error, both the cli and the hyperx app, please help. Thank you!
The text was updated successfully, but these errors were encountered: