Commit Graph

54 Commits

Author SHA1 Message Date
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
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
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
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
Lennard Kittner
b0265629a4 Add WIP cloud 3 support 2025-10-19 14:05:10 +02:00
Lennard Kittner
ba53b55d48 Remove 2 sec waiting time 2025-10-18 18:04:17 +02:00
Lennard Kittner
dc7c68b460 Fix get_event_from_device_response hyperX cloud 2 2025-10-18 18:03:10 +02:00
Lennard Kittner
b0569ec47a Fix get_event_from_device_response on HP cloud 2 2025-10-18 17:57:29 +02:00
Lennard Kittner
04895cab8c Add new packets 2025-09-29 08:52:48 +02:00
Lennard Kittner
deae62cd01 Detect surround sound 2025-09-25 19:58:09 +02:00
Lennard Kittner
3627f3d639 Set old cloud 2 as always connected 2025-09-25 19:08:39 +02:00
Lennard Kittner
fca6440892 Fix tray 2025-09-25 09:14:11 +02:00
Lennard Kittner
cfa5f06f56 Stop periodically requesting packets 2025-09-24 20:25:33 +02:00
Lennard Kittner
f2372c75b9 Add more debug printing and delays 2025-09-24 17:57:12 +02:00
Lennard Kittner
4f91ddd7cc Add new surround sound packet 2025-09-24 17:56:17 +02:00
Lennard Kittner
f4e9ffa926 Fix packet parsing 2025-09-24 17:55:54 +02:00
Lennard Kittner
97ef1d40ad Add some debug stuff 2025-09-17 12:23:10 +02:00
Lennard Kittner
b9028fe287 Fix buffer size 2025-08-29 09:18:27 +02:00
Lennard Kittner
6840cec0f2 Add support for old cloud 2 2025-08-24 12:15:40 +02:00
Lennard Kittner
fab983ff73 Improve device init and add prepare_write function 2025-08-18 20:12:36 +02:00
Lennard Kittner
ac43ef8000 Remove old cloud 2 from cloud 2 dts 2025-08-18 20:11:32 +02:00
Lennard Kittner
856a91fe67 Formatting 2025-05-16 13:20:34 +02:00
Lennard Kittner
ea4a76739f Add passive_refresh_state 2025-05-16 13:20:09 +02:00
Lennard Kittner
536ffcd5e2 Add second mic packet to get_event_from_device_response 2025-05-16 13:18:18 +02:00
Lennard Kittner
906ea1c221 Updated hyperx vendor ID 2025-05-16 13:17:36 +02:00
Lennard Kittner
ae40be64d4 Add second base packet which might work on the older HyperX Cloud 2 2025-03-27 22:01:56 +01:00
Lennard Kittner
b970760c74 Add vendor and product ID to DeviceState 2025-03-27 21:25:16 +01:00
Lennard Kittner
62b9bbb6f0 Better printing 2025-03-23 00:18:14 +01:00
Lennard Kittner
d5fcc8286c Improve to_string and add name 2025-03-22 12:22:32 +01:00
Lennard Kittner
3ed6b8510f Add connect_compatible_device 2025-03-22 12:21:59 +01:00
Lennard Kittner
58731d8221 Fix warning 2025-03-21 22:04:37 +01:00
Lennard Kittner
975f2937ad Add setter to CLI app 2025-03-21 22:01:14 +01:00
Lennard Kittner
95d55f4e9f Fix packet 2025-03-21 22:00:12 +01:00
Lennard Kittner
b86b1f88df Fix unsupported packets 2025-03-20 00:01:59 +01:00