feat(fater): read-only driver for the MCR-9000B (Holtek 04d9:a09f) - #157
Merged
Merged
Conversation
Requested in OpenMouse-Project/openmouse#394. The mouse is a Holtek "E-Signal" OEM design whose vendor interface declares the 8-byte feature report plus 32-byte output report that hv-ms735-config drives on the HAVIT MS735 (04d9:a100) and that the HP G360 tool uses: command byte, GET bit 7, 0xFF-minus-sum checksum. No capture of this mouse exists, so the driver only reads the polling divider and active profile, falls back to identity when the mouse does not echo, and leaves DPI (a 128-byte config page WebHID cannot read on Windows) for a capture. Writes are the same frame without the GET bit and follow once the read round-trips on hardware. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
🎉 This PR is included in version 0.23.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For OpenMouse-Project/openmouse#394. App wiring: OpenMouse-Project/openmouse#498 (draft). Catalog: OpenMouse-Project/openmouse-landing-page#26.
What the mouse is
A Holtek "E-Signal" OEM design. Its vendor interface (usage page 0xFF00, usage 0xFF00) declares one 8-byte unnumbered feature report and one 32-byte output report, no input report. That is the shape of the Holtek OEM frame that hv-ms735-config drives on the HAVIT MS735 (04d9:a100; the issue's claim that it shares the PID is wrong) and that the HP G360 vendor tool uses: command byte, bit 7 = GET, byte 7 = 0xFF minus the sum of bytes 0..6, reply echoes the command with the value at offset 2.
What this adds
src/fater/index.ts: constants,faterEncodeCommand/faterEncodeGet,faterDecodeReply/faterDecodeValue, divider to Hz conversion, with tests against the byte frames hv-ms735-config puts on the wire.src/drivers/fater/hid.ts: read-onlyFaterHidClient. Reads the polling divider (0x83) and active profile (0x84); falls back to identity withvaluesVerified: falsewhen the mouse does not echo.settingsReady: false,getDpiOptions()returns[].SUPPORTED_HID_FILTERSentry per PID,"Fater"in the brand union,./fatersubpath export,docs/fater-mcr-9000b.mdwith the sources and open questions.What is deliberately missing
(byte + 1) * 100encoding anyway. Needs a USBPcap capture of the vendor app (461 MB zip, not inspected).Verification
npm run buildclean,npm test: 1977 pass, 0 fail (registry probe matrix included). Not tested on hardware; the reporter offered to test.