Commit Graph

126 Commits

Author SHA1 Message Date
Lennard Kittner
926247706d Fix compilation on MacOS 2026-03-16 14:07:32 +01:00
Lennard Kittner
0fc038939a Add dialog prompts and make udev checks linux only 2026-03-16 14:07:18 +01:00
Lennard Kittner
107b4ba21b Move udev creation to lib
Remove root check
Also create udev rules in tray app
2026-03-16 14:07:11 +01:00
Lennard Kittner
d7806619ec Draft creating udev rules automatically 2026-03-16 14:07:05 +01:00
Lennard Kittner
a1c854020b Add product ID for HyperX Cloud II Core Wireless (0x0995) 2026-03-13 13:21:41 +01:00
Lennard Kittner
89ae29fa42 Change option string 2026-02-26 18:53:05 +01:00
Lennard Kittner
23edae7395 Press mute key when the headset gets muted / unmuted 2026-02-25 19:38:09 +01:00
Lennard Kittner
2cc1f1ef98 Remove waiting between packets 2026-02-25 17:53:02 +01:00
Lennard Kittner
7a2825bc9a Add delay between writes 2026-02-25 17:51:37 +01:00
Lennard Kittner
931a192d93 Fix noise gate read only 2026-02-25 17:51:37 +01:00
Lennard Kittner
9726f45eb3 Update cloud II core product ID 2026-02-25 17:51:37 +01:00
Lennard Kittner
639bf64c77 Fix typo 2026-02-25 17:51:36 +01:00
Lennard Kittner
2fd0373fbe Add noise gate option to CLI app 2026-02-25 17:51:36 +01:00
Lennard Kittner
7928f55a98 Add MIC_CONNECTED_RESPONSE_ID 2026-02-25 17:51:36 +01:00
Lennard Kittner
54e95a0c17 Add initial code for supporting cloud II core wireless 2026-02-25 17:51:20 +01:00
Lennard Kittner
d244e189a7 Connect cloud II by default since the get_wireless_connected_status_packet resets state and should therefore not be used 2026-02-20 16:10:23 +01:00
Lennard Kittner
7fbbb65cb5 Fix handling of Headset dongle disconnecting 2026-02-20 16:09:26 +01:00
Lennard Kittner
04af1516be Fix cli app missing state updates when writing to headset 2026-02-19 13:22:38 +01:00
Lennard Kittner
1853dd2bea Fix cloud 2 state reset 2026-02-19 13:22:11 +01:00
Lennard Kittner
0f71d95777 Fix cloud 2 response 2026-02-19 13:20:40 +01:00
Lennard Kittner
efe03f7ecf Fix rest of responses cloud alpha 2026-02-18 23:25:27 +01:00
Lennard Kittner
a23561b7e3 Fix cli response when setting options 2026-02-18 23:18:53 +01:00
Lennard Kittner
1897779ce0 Fix response handling 2026-02-18 23:17:16 +01:00
Lennard Kittner
81fa47514c Refactor device creation and check whether any HyperX devices are
connected if no supported device is found
2026-02-18 14:16:14 +01:00
Lennard Kittner
3065cfc198 Implement cloud alpha support 2026-02-18 12:57:44 +01:00
Lennard Kittner
3a2b0d2301 Add product ID for Cloud Flight S 2026-02-03 11:51:09 +01:00
Lennard Kittner
649cfc86f5 Add some more cloud 3s packets 2026-01-22 13:15:56 +01:00
Lennard Kittner
e5e419b8ee Add some more debug prints 2026-01-21 20:14:49 +01:00
Lennard Kittner
889c1cc7dd Add battery packet cloud 3 s 2026-01-21 10:45:58 +01:00
Mark Cockram
569fc47dc9 Merge branch 'main' into cloud-iii-s-support 2026-01-20 23:05:27 +01:00
NubeBuster
66dae28cf0 Add equalizer band control for Cloud III S Wireless
- Add can_set_equalizer capability flag to DeviceState
- Add set_equalizer_band_packet trait method with default None implementation
- Add can_set_equalizer() helper method to Device trait
- Implement equalizer protocol: 10 bands (32Hz-16kHz), ±12dB range
- Encode values as dB*100 in 16-bit big-endian signed format
- Add Cloud III S Wireless implementation of set_equalizer_band_packet()
- Validate band index (0-9) and clamp dB values to valid range

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-17 04:26:11 +01:00
Lennard Kittner
7da9675e3c Merge branch 'main' into main 2026-01-16 17:21:02 +01:00
Matt Smith
a62929ce98 Remove unnecessary clone 2026-01-13 22:22:38 -05:00
NubeBuster
0e46295ffd Add auto-shutdown support for Cloud III S Wireless
Implement auto-shutdown timer functionality for the Cloud III S Wireless headset
based on pcap analysis. The feature uses SET_REPORT (report ID 0x0c) with timeout
values encoded as 16-bit big-endian seconds. Supports disabling (0 minutes) and
various preset durations via the existing automatic_shutdown CLI option.
2026-01-12 23:04:31 +01:00
Marius Gehrmann
04d92ec44e Add additional product ID for Cloud III Wireless 2026-01-03 09:49:09 +01:00
NubeBuster
a3f0fa63dd Add Cloud III S Wireless support (partial)
Add initial support for HyperX Cloud III S Wireless (PID 0x06BE).

Working features:
- Mic mute control via --mute true/false
- Button event detection (volume up/down, play/pause)

Not yet implemented (protocol not discovered):
- Battery level query
- Sidetone control
- Auto-shutdown timer

Cloud III S uses a different protocol than Cloud III:
- Header 0x05 for mic control (20-byte packets)
- Header 0x0f for button events (2-byte incoming)
- Does not respond to Cloud III protocol (0x66 header)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-30 02:59:10 +01:00
simyrik
ea0ced003b Add support for HyperX Cloud Flight S
- Add PRODUCT_ID 0x16EA to Cloud II Wireless device support
- Cloud Flight S uses the same protocol as Cloud II Wireless
- Update README.md with Cloud Flight S in supported devices list
- Add udev rules for Cloud Flight S (idProduct=16ea)
- Fix prepare_write() to handle devices that don't support get_input_report
- Fix is_none_or compatibility issue for older Rust versions
2025-12-12 12:02:52 +07:00
Lennard Kittner
87b9f9adff Fix capitalization in get_display_data 2025-11-17 11:49:43 +01:00
Lennard Kittner
39ddba7fdb Add conditional debug printing 2025-11-15 17:02:42 +01:00
Lennard Kittner
b6265e6f24 Conditionally enable passive Refresh 2025-11-08 13:46:33 +01:00
Lennard Kittner
eb304eda01 Use can set functions in cli app 2025-11-08 13:26:43 +01:00
Lennard Kittner
fc01eee908 Clippy fixes 2025-11-08 13:19:30 +01:00
Lennard Kittner
2f18725c11 Remove debugging code 2025-11-08 13:13:19 +01:00
Fabio Scaccabarozzi
f7c230a8ef Show read-only markers in CLI output (Option A)
Changed DeviceState Display trait to use to_string_with_readonly_info()
instead of to_string_with_padding().

This allows CLI users to see which features are hardware-limited before
attempting to use them, providing helpful context and reducing confusion
about why certain commands might not work.

The tray application continues to use to_string_with_padding() since
it's display-only and doesn't allow user interaction.

Implements Option A as discussed in PR #14
2025-10-27 23:10:20 +00:00
Fabio Scaccabarozzi
7a937efd91 Remove read-only markers from tray application
The tray application is display-only and doesn't allow users to change
any settings. Therefore, showing (read-only) markers doesn't provide
value since all fields are implicitly read-only in this context.

Changed to_string_with_readonly_info() back to to_string_with_padding()
for the tray display.

Addresses PR #14 review comment from @LennardKittner
2025-10-27 23:09:21 +00:00
Fabio Scaccabarozzi
84bbc4a122 Refactor: eliminate code duplication in DeviceState display methods
Create helper function get_display_data() that returns the device data
array with 4-tuple format (prefix, value, suffix, readonly_flag).

Both to_string_with_padding() and to_string_with_readonly_info() now
call this helper function:
- to_string_with_padding() ignores the readonly flag
- to_string_with_readonly_info() uses it to add (read-only) markers

This eliminates ~100 lines of duplicated code and makes the codebase
easier to maintain.

Addresses PR #14 review comment from @LennardKittner
2025-10-27 23:08:44 +00:00
Fabio Scaccabarozzi
5ba124b086 Add documentation about unknown command 4 2025-10-19 18:32:35 +01:00
Fabio Scaccabarozzi
80976df212 Some features are read-only: either they require Windows APO, or they really don't have a software command available. Add the plumbing to detect and report this. Also, add documentation for the featureset. 2025-10-19 18:21:31 +01:00
Fabio Scaccabarozzi
8c3d954e0e Align everything to Headset_protocol.md (Copilot) 2025-10-19 18:08:46 +01:00
Lennard Kittner
83c811b72d Only display known information 2025-10-19 15:25:19 +02:00