Skip to content

Add HyperX Cloud Alpha 2 Wireless (03f0:08be) - #590

Merged
Sapd merged 4 commits into
Sapd:masterfrom
Dasio:add-hyperx-cloud-alpha-2-wireless
Oct 26, 2026
Merged

Sapd merged 4 commits into
Sapd:masterfrom
Dasio:add-hyperx-cloud-alpha-2-wireless

Conversation

@Dasio

@Dasio Dasio commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Changes made

Adds the HyperX Cloud Alpha 2 Wireless (03f0:08be) with:

  • battery: level, charging state, voltage, and DeviceOffline when the headset is powered off while the base station stays plugged in
  • sidetone and sidetone status (mic monitoring on/off and level)
  • chat-mix status (game/chat balance)
  • equalizer preset (the three presets stored on the base station)

This 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's 21 BB xx reports, on a different USB device.

Protocol. The base station enumerates as two USB devices: 0x0abe (audio) and 0x08be (control MCU). Commands go to the MCU's vendor interface (interface 2, usage page 0xff13, usage 0xff00) as 64-byte reports [command][sub-command][payload…], and replies use command + 1:

Request Reply
52 01 connection state 53 01 <connected>
50 02 battery 51 02 <level %> <charge state> <temp °C, i16 LE> <mV, u16 LE> …
60 02 audio settings 61 02 <2 bytes> <12-byte settings block>
60 01 <settings block> write the whole block

In the settings block, byte 4 is sidetone on/off, byte 5 the sidetone level (0–20), byte 8 the game/chat balance (0x7b all game … 0x80 balanced … 0x85 all 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 with FF 02 …, and pushes notifications (FB xx). For example, FB 0A 01/00 is 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

  • Unit tests (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.
  • Verified on Windows 11:
    • battery on battery power (BATTERY_AVAILABLE, 91 %, 4185 mV), charging (BATTERY_CHARGING, 92 %, 4331 mV) and powered off (BATTERY_UNAVAILABLE, offline)
    • sidetone off/on and level, read back from the device and audible in the headset
    • chat-mix read
    • each equalizer preset written and read back, with the rest of the block unchanged
  • NGENUITY was running during these tests, polling the same interface.
  • Not verified on Linux or macOS. Like the other drivers, it still declares all platforms.

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

  • I adjusted the README (if needed)
  • For new features in HeadsetControl: I discussed it beforehand in Issues or Discussions and adhered to the wiki. Not applicable: this adds a new device, not a new feature.

@Dasio
Dasio force-pushed the add-hyperx-cloud-alpha-2-wireless branch from 27eb4bb to 92013c7 Compare October 6, 2026 21:46
@Sapd

Sapd commented Oct 14, 2026

Copy link
Copy Markdown
Owner

Two things:

Which OS did you test on? getSupportedPlatforms() isn't overridden, so it advertises Linux, macOS and Windows.

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.

@github-actions github-actions Bot added awaiting-author We replied - waiting on the author needs-rebase Branch conflicts with master labels Oct 20, 2026
@Dasio
Dasio force-pushed the add-hyperx-cloud-alpha-2-wireless branch from 92013c7 to 0730f98 Compare October 23, 2026 07:54
Dasio added a commit to Dasio/HeadsetControl that referenced this pull request Oct 23, 2026
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>
@github-actions github-actions Bot added awaiting-maintainer The author replied or pushed - our move and removed awaiting-author We replied - waiting on the author needs-rebase Branch conflicts with master labels Oct 23, 2026
@Dasio

Dasio commented Oct 23, 2026

Copy link
Copy Markdown
Contributor Author

Thanks! Fixed in 0730f98, rebased on master.

  • Tested on Windows 11 only, so it now declares Windows only. macOS ignores the interface number in get_hid_path, so it would open the wrong interface; Linux probably works but I can't test it. Added a W label for the README table.
  • Added the NGENUITY note to the README, next to the Corsair one.

@Sapd Sapd left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@Sapd Sapd added awaiting-author We replied - waiting on the author and removed awaiting-maintainer The author replied or pushed - our move labels Oct 23, 2026
@github-actions github-actions Bot added the needs-rebase Branch conflicts with master label Oct 24, 2026
Dasio and others added 4 commits October 26, 2026 14:48
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>
@Dasio

Dasio commented Oct 26, 2026

Copy link
Copy Markdown
Contributor Author

Thanks, done: back to Linux + Windows (comment fixed), and sidetone moved to getReadableCapabilities().

@Dasio
Dasio force-pushed the add-hyperx-cloud-alpha-2-wireless branch from 0730f98 to 18b7414 Compare October 26, 2026 13:53
@github-actions github-actions Bot added awaiting-maintainer The author replied or pushed - our move and removed awaiting-author We replied - waiting on the author needs-rebase Branch conflicts with master labels Oct 26, 2026
@Dasio
Dasio requested a review from Sapd October 26, 2026 13:57
@Sapd

Sapd commented Oct 26, 2026

Copy link
Copy Markdown
Owner

Both done. Verified here: platform mask is PLATFORM_LINUX | PLATFORM_WINDOWS, CAP_SIDETONE_STATUS is gone from getCapabilities(), getReadableCapabilities() returns B(CAP_SIDETONE), and the README sidetone column is r and matches --readme-helper exactly. Build clean with no warnings, 9 tests / 41 assertions pass, clang-format 18 clean, CI green on all three platforms.

The registry-wide invariants in test_device_registry.cpp cover the new declaration too - readable has to be a subset of getCapabilities(), and anything readable needs a read handler - so the mask can't drift from getSidetone().

Merging. Thanks for the hardware work on this one; the NGENUITY note will save people a confusing afternoon.

@Sapd
Sapd merged commit fb5a669 into Sapd:master Oct 26, 2026
7 checks passed
@github-actions github-actions Bot removed the awaiting-maintainer The author replied or pushed - our move label Oct 26, 2026
@Sapd Sapd mentioned this pull request Oct 26, 2026
1 of 2 tasks
Sapd added a commit to gdevenyi/HeadsetControl that referenced this pull request Oct 26, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants