feat(attackshark): implement 0x25a7 GearHub protocol for X8 SE - #30
Merged
Conversation
Reverse-engineered from the qmk.top GearHub web driver bundle. Adds HID feature report communication (report ID 0x00, 64 bytes) with GearHub checksum, DPI get/set, polling rate set, and firmware version. Key additions: - checksum25a7() and encodeReport25a7() helpers - POLLING_CODES_25A7 map (125/250/500/1k/2k/4k/8k Hz) - getFirmware25a7(), getDpi25a7(), write25a7PollingRate() - read25a7Status() for full device initialization - 4 new unit tests for checksum and polling code mapping Protocol: 9-byte padded commands with one's-complement checksum at byte 7, sent as 64-byte HID feature reports on report ID 0x00.
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.
Summary
Reverse-engineered the Attack Shark 0x25a7 protocol from the qmk.top GearHub web driver JS bundle and implemented it in the Attack Shark HID client.
Changes
Protocol Details
Testing
All 7 Attack Shark tests pass. Full test suite: 410/415 pass (5 pre-existing Logitech module resolution failures unrelated to this change).