Skip to content

Instantly share code, notes, and snippets.

@stianeikeland
Created September 9, 2012 01:08
Show Gist options
  • Save stianeikeland/3681791 to your computer and use it in GitHub Desktop.
Save stianeikeland/3681791 to your computer and use it in GitHub Desktop.
Pioneer SR-link control - Raspberry PI
@BazQuuxOrg
Copy link

SR is a common bus, and so every command is broadcast to every device daisy-chained together. A5 is the device type identifier for receivers. (A1 is tape decks, A2 is CD players, etc.) The format of a simple SR command is [frame header][device type ID][bitwise negation of device type ID][command code][bitwise negation of command code][stop bit].

So, yes, all commands intended for your receiver will start with A55A (5A being the happy-accident bitwise negation of A5). But all commands intended for your CD player will start with A25D (5D being the bitwise negation of A2).

And yes, many of the command codes were published by Pioneer. But they’re also just the exact same command codes sent by the device’s infrared remote, which have been extensively cataloged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment