Repository navigation
Add HyperX Cloud Alpha 2 Wireless (03f0:08be) - #590
Conversation
27eb4bb to
92013c7
Compare
|
Two things: Which OS did you test on? The NGENUITY note is only in the header comment. Put it in the README too - "my settings revert" is the issue people will open, and they won't read the source. |
92013c7 to
0730f98
Compare
Review follow-up for Sapd#590. Only Windows was verified on hardware, so the device now declares PLATFORM_WINDOWS. On macOS get_hid_path ignores the interface number, which would pick the wrong interface of the control MCU; Linux is untested. The README helper gets a "W" (Windows only) platform label for it. README: note that NGENUITY writes all audio settings back from its own saved values whenever one changes in its UI, which can undo changes made with HeadsetControl. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks! Fixed in 0730f98, rebased on master.
|
Sapd
left a comment
There was a problem hiding this comment.
Both fixed, and the driver itself holds up — the reply loop is bounded by a steady_clock deadline and readTimeout errors on a zero-byte read, so NGENUITY's polling can't spin it; the setters only touch their own bytes. README matches --readme-helper, format clean, suite passes.
Two things:
Keep Linux. Plantronics BT600 and MCHOSE X9 narrow for the same macOS reason and still declare PLATFORM_LINUX | PLATFORM_WINDOWS. Nothing is known to break on Linux here, so Windows-only shuts out Linux users for no reason beyond not owning the machine. Untested is normal; we narrow where there's a mechanism for breakage.
On macOS the mechanism isn't quite what you wrote: get_hid_path tries the usage_page/usage match first and that ignores the interface entirely, so it picks the right collection whenever hidapi fills those fields. The forced iid = 0 only bites in the fallback, on older hidapi. Still worth excluding, same as those two — just not because the interface number is ignored.
Rebase for #605. It landed after you rebased this morning. New devices don't list CAP_SIDETONE_STATUS any more; it's derived from CAP_SIDETONE in getReadableCapabilities(), and you already have getSidetone():
constexpr int getReadableCapabilities() const override
{
return B(CAP_SIDETONE);
}Drop the bit from getCapabilities() and regenerate the README — the sidetone column becomes r. Tried it here, tests pass. Works as-is either way, so this is convention, not a bug.
Battery status for the Cloud Alpha 2 Wireless: level, charging state and voltage, and DeviceOffline when the headset is powered off while the base station stays plugged in. The base station enumerates as two USB devices; commands go to the control MCU (0x08be) on its vendor interface (interface 2, usage page 0xff13, usage 0xff00) as 64-byte [command][sub-command] reports. The connection state is queried with 52 01 (reply 53 01 <connected>) and the battery with 50 02 (reply 51 02 <level> <charge state> <temp> <mV> ...). NGENUITY polls the same interface continuously, so the driver skips ACKs, notifications and replies to other requests until its own reply arrives. Tests use replies captured from the hardware and cover connected, charging, powered off, a rejected request and a missing reply. Verified on Windows on battery, charging and with the headset off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sidetone, the game/chat balance and the active equalizer preset live in one audio settings block on the base station: 60 02 reads it (reply 61 02), 60 01 writes the whole block back. Setters read the block first and change only their own bytes, so the other settings are kept. - sidetone: on/off at block byte 4, level 0-20 at byte 5 (0 turns it off and keeps the stored level); also reported as sidetone status - chat-mix: byte 8, 0x7b all game .. 0x80 balanced .. 0x85 all chat - equalizer preset: byte 11, presets 1-3 stored on the base station Verified on Windows: sidetone off/on and level read back from the device, chat-mix read, and each preset written and read back with the other bytes unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-up for Sapd#590. Hardware was verified on Windows only. Like the BT600 and X9, macOS is left out: when hidapi doesn't report usage page/usage, get_hid_path falls back to interface 0, which is the wrong interface of the control MCU. Linux is untested but has no known reason to break. README: note that NGENUITY writes all audio settings back from its own saved values whenever one changes in its UI, which can undo changes made with HeadsetControl. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Follows Sapd#605: CAP_SIDETONE_STATUS is derived from CAP_SIDETONE in getReadableCapabilities() instead of being listed. README regenerated; the sidetone column is now "r". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks, done: back to Linux + Windows (comment fixed), and sidetone moved to |
0730f98 to
18b7414
Compare
|
Both done. Verified here: platform mask is The registry-wide invariants in Merging. Thanks for the hardware work on this one; the NGENUITY note will save people a confusing afternoon. |
Resolve the test-list conflicts with Sapd#590 and Sapd#610 by keeping all three new test files, and regenerate the README table for the capability column and the device rows those added. Keeps this branch's wording for the ALSA sidetone note ("Virtuoso other than the XT") and its footnote about sidetone being verified on the XT only; master's "XT/SE" was the pre-fixup text that rode along in Sapd#580's README regeneration.
Changes made
Adds the HyperX Cloud Alpha 2 Wireless (
03f0:08be) with:DeviceOfflinewhen the headset is powered off while the base station stays plugged inThis is a new driver rather than a new product ID for
HyperXCloudAlphaWireless(0x098d). The Alpha 2's base station uses a different command layout from the original's21 BB xxreports, on a different USB device.Protocol. The base station enumerates as two USB devices:
0x0abe(audio) and0x08be(control MCU). Commands go to the MCU's vendor interface (interface 2, usage page0xff13, usage0xff00) as 64-byte reports[command][sub-command][payload…], and replies use command + 1:52 01connection state53 01 <connected>50 02battery51 02 <level %> <charge state> <temp °C, i16 LE> <mV, u16 LE> …60 02audio settings61 02 <2 bytes> <12-byte settings block>60 01 <settings block>In the settings block, byte 4 is sidetone on/off, byte 5 the sidetone level (0–20), byte 8 the game/chat balance (
0x7ball game …0x80balanced …0x85all chat) and byte 11 the active equalizer preset (1–3). The base station only takes the whole block, so the setters read it first and change only their own bytes.The MCU also ACKs every command (
FF 01 …, with the command echoed at offset 14), rejects withFF 02 …, and pushes notifications (FB xx). For example,FB 0A 01/00is sent when the headset links or unlinks. NGENUITY polls the same interface continuously, so the driver skips ACKs, notifications and replies to other software's requests until its own reply arrives.Note for users. Whenever one of these settings changes in NGENUITY's UI, NGENUITY writes the whole settings block from its own cached state. So while it runs, it can undo changes made with HeadsetControl.
Not included. Lighting is streamed by NGENUITY as continuous frames rather than set with a command. Mic effects and spatial audio are processed on the PC. Custom equalizer bands are a separate command whose band layout I could not fully verify, so I left it out rather than risk overwriting the stored presets.
Testing
tests/test_hyperx_cloud_alpha_2_wireless.cpp) use replies and writes captured from the hardware. They cover battery (connected, charging, powered off), sidetone get/set (including that only the sidetone bytes change), chat-mix, equalizer presets, rejected requests and a missing reply. The full suite passes.BATTERY_AVAILABLE, 91 %, 4185 mV), charging (BATTERY_CHARGING, 92 %, 4331 mV) and powered off (BATTERY_UNAVAILABLE, offline)AI disclosure
This PR was written entirely by an AI assistant, Claude Opus 5.5 (Claude Code): the driver, the tests and this description. My role was to own the hardware, run the tests on it and review the result.
Every behaviour the driver claims was checked on a real Cloud Alpha 2 Wireless, as listed under Testing above.
Checklist