diff --git a/README.md b/README.md index d263b6e0..18bda9e0 100644 --- a/README.md +++ b/README.md @@ -136,6 +136,17 @@ polling, lift-off and debounce writes have not. See replies and the resident Compx bootloader protocol (entry, read-back, erase/program behavior). +ASUS ROG Harpe Ace Mini (`0b05:1b63` wired, `0b05:1b65` over the bundled Omni +receiver) adds button remapping, surface calibration, power settings and a +factory reset to the ASUS driver, and marks both product ids verified after a +hardware pass over both paths. Button mappings, the lighting-sync flag and the +calibration result have no readback on this model, so the application keeps +them locally and labels the record as local. Debounce is not exposed and the +entry does not claim it. The bottom DPI button is absent from the vendor's own +list; its action comes from the firmware action enum and is the only mapping +inferred rather than observed. See +[docs/asus-harpe-ace-mini.md](docs/asus-harpe-ace-mini.md) for the frames. + The original wired Glorious Model I (`22d4:1503`) has its own driver. Polling rate, debounce, lift-off distance, the DPI stage table, lighting and profile selection were written, read back and restored on hardware. See diff --git a/docs/asus-harpe-ace-mini.md b/docs/asus-harpe-ace-mini.md new file mode 100644 index 00000000..232633a9 --- /dev/null +++ b/docs/asus-harpe-ace-mini.md @@ -0,0 +1,283 @@ +# ASUS ROG Harpe Ace Mini protocol notes + +Device: ROG Harpe Ace Mini (P716). Wired USB `0x0B05:0x1B63`; the same mouse +behind a ROG Omni receiver `0x0B05:0x1ACE` is identified by pair-list product +id `0x0B05:0x1B65`. + +Tags used throughout: **[verified]** sent to the hardware and read back, +**[captured]** seen in a reply or in a vendor capture but not read back, +**[assumed]** taken from a public source and not confirmed on this unit. + +## Transports [verified] + +Three different report ids are involved and they belong to different objects. +Mixing them up sends valid-looking frames that the receiver ignores. + +| Path | Usage page | Report id | Data bytes | What it carries | +| --- | --- | --- | --- | --- | +| Wired mouse `0x1B63` | `0xFF01` | `0` | 64 | Every command below | +| Receiver itself `0x1ACE` | `0xFF02` | `1` | 63 | Pair list, firmware, booster, pairing | +| Paired mouse on the receiver | `0xFF02` | from the pair list | 63 | The same mouse commands, one byte shorter | + +The pair list assigns a report id per paired device: 2 for a keyboard, 3 for a +mouse on the unit tested. `AsusHidClient` reads that id and speaks the normal +mouse protocol over it; it is not a receiver command. Frames are otherwise +identical between the two paths, which is why a single codec serves both. + +Firmware readouts: + +| Entity | Request | Field | +| --- | --- | --- | +| Mouse | `12 00` | bytes 14-16, BCD patch/minor/major | +| Receiver | `a1 01` | bytes 4-6 | + +The tested pair reports mouse `1.00.15` and receiver `7.00.08`. Only models that +declare `firmwareVersion: true` decode the mouse field: the same three bytes mean +something else on other ASUS models, and guessing a version is worse than +showing none. + +## Verification status + +Everything marked [verified] was measured on hardware during bring-up, between +2026-11-30 and 2026-12-04, over both paths. The driver was **not** re-verified on +hardware after the branch merged upstream `main`; that merge does not touch the +wire. `payload()` and the input-report listener are unchanged from the version +these notes describe, and the `FF AA` retry under *Sleep and refusals* was added +during bring-up, before the merge. Automated coverage, not a second hardware +pass, is what guards the merged code. + +One setting is absent rather than unverified: debounce. The vendor tool has no +debounce control for this model, so the notes below carry no frame for it and +the driver does not declare the capability. + +## Read commands [verified] + +| Request | Contents | Notes | +| --- | --- | --- | +| `12 00` | active profile (byte 10), active DPI stage (byte 11), firmware (14-16) | | +| `12 03` | lighting: mode (byte 4), brightness (5), colour (6-8) | | +| `12 04 00` | polling (12), angle snapping (16), angle tuning (18-19); byte 14 is left alone by the vendor tool | offsets assume 4 DPI stages: `4 + stages * 2 + field` | +| `12 04 02` | DPI values, X at `4 + i * 4`, Y at `6 + i * 4` | | +| `12 06` | lift-off distance (byte 7) and sensor block | | +| `12 07` | battery (4), voltage (7-8), charging (9), power config (4-11) | | +| `12 12 02` | serial number, 12 ASCII characters | **[captured]**; not read by this driver, and no unit's serial is recorded here. `12 12 00` answers all zeroes | + +There is no read command for button mappings, lighting sync or surface +calibration. Those three are write-only and the application keeps its own +record, see *Write-only settings*. + +## Write commands + +Every write is followed by `50 03`, which commits the change to device memory. +Omitting it leaves the value live but not stored. Gear Link waits about half a +second before the commit; this driver sends it back to back, and every setting +that can be read back does survive a reconnect. The three write-only settings +cannot be checked that way, only by using them. + +### Lighting [verified] + +``` +51 28 00 then 50 03 +``` + +Modes: static `0x00`, breathing `0x01`, colour cycle `0x02`, reactive `0x04`, +battery `0x06`, off `0xF0`. `0x03` is unused by this firmware. Brightness is +0/25/50/75/100. Reading back `12 03` returns the same values, including mode +`0xF0` for off, so the card can show the real state instead of guessing. + +### Performance [verified] + +The field selector is fixed: polling `04`, angle snapping `06`. Angle tuning +uses `0x0b` and is the only signed value here. + +``` +51 31 00 DPI stage value +51 31 09 00 active stage +51 31 04 00 polling +51 31 06 00 <0|1> angle snapping +51 31 0b 00 angle tuning +``` + +All of these are read back through `12 04` and survive a reconnect. + +### Power [verified] + +``` +51 37 00 00 00 then 50 03 +``` + +Sleep is an index into `[1, 2, 3, 5, 10]` minutes, `0xFF` for never. The warning +level is 0/10/20/30/40/50 %. Battery type is 0 for dry cells and 1 for +rechargeable; the device may answer 0 even when it is rechargeable, so the page +reset writes 1 explicitly. + +### Surface calibration [captured] + +``` +51 35 01 00 ff enter calibration; reply offset 6 = 01 on success, 00 fa on failure +``` + +The mouse has no readback for the result, so the application stores the outcome +locally and labels it as a local record. A failed sample (`fa`) is retried once +before reporting failure, as the vendor tool does. + +A timeout is not retried. Every attempt sends the same five bytes and the reply +carries no request identifier, so a late answer to a timed-out attempt could not +be told apart from a retry's own sample, and a late success would be saved. The +driver also waits for 200 ms of silence on the channel before each run, so a +late reply to an earlier run is dropped. + +Gear Link sets the lift-off distance to Low before every manual run and saves +it, so the sample is taken from a known sensor state. This driver does the same, +then writes the user's previous lift-off back once the run ends, whether the +sample succeeded or not. + +### Buttons [captured] + +``` +51 21 00 00