Repository navigation
ReversePuck: pairing commands to read, write and erase each slot over USB - #326
Open
MisterAnderson91 wants to merge 1 commit into
Open
MisterAnderson91 wants to merge 1 commit into
MisterAnderson91 wants to merge 1 commit into
Conversation
Pairing tools could only read slot 0 (0xA3), and every 0xEE write went to whichever slot find-or-alloc picked, so nothing could manage the dongle's 8 pairing slots individually. Add, over USB: - 0xED keyed read for esb/bond, esb/bond_2 and rp/bond/0..7 (len 0 when empty, like a real controller), plus "rp/info" -> R P <ver> <NBOND> so tools can tell a ReversePuck from a real Steam Controller - 0xEE/0xEF with rp/bond/N write exactly slot N; Steam's esb/bond keys keep find-or-alloc - 0xF0 keyed delete clears the named slot Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
ReversePuck pairing commands, for SC Hammer compatibility: pairing tools can read, write and erase each of the dongle's 8 pairing slots over USB, and tell a ReversePuck apart from a real Steam Controller.
SC Hammer (a GUI for moving, swapping and pairing Steam Controller pairings) has already been updated for this: v0.2.0 recognises a ReversePuck through
rp/infoand shows and manages all 8 slots. It works as soon as this is merged and the dongle is flashed. With current firmware SC Hammer just treats the dongle as an ordinary two-slot controller, as before.One of three independent ReversePuck PRs (firmware fixes, pairing commands, Deck app + AppImage). They touch separate files and can be merged in any order.
Summary
Details
ReversePuck: read, write and delete pairing slots by number (
ctrl_usb.cpp/.h)Pairing tools could only read pairing slot 0 (
0xA3), and every0xEEwrite went to whichever slot find-or-alloc picked. This adds, over USB only:0xEDkeyed read foresb/bond,esb/bond_2and newrp/bond/0..7. Empty slots return length 0, like a real controller.0xED "rp/info"→R P <version> <NBOND>, so tools can tell a ReversePuck from a real controller (a real one answers an unknown key with nothing).0xEE/0xEFwithrp/bond/Nwrite exactly slot N. Steam'sesb/bondwrites keep find-or-alloc, so Steam pairing is unchanged.0xF0deletes the named slot.Testing
Hardware: Steam Deck OLED with a ReversePuck (Pro Micro nRF52840) and an OpenPuck on 0.9.51.
esb/bond/esb/bond_2as before (its tests, with simulated controllers).make check(clang-format 18) passes, andmake reversepuckbuilds.🤖 Generated with Claude Code