123. The Harmony 525 implements infrared learning, and that is the route to its button map¶
Section 98 read where a learn session's samples leave a remote on the Harmony One and the 600: not sent by any routine, but stored into a buffer the endpoint 1 IN descriptor is pointed straight at, so the reports are unsolicited and a host has to keep reading. What was open is whether the 525 does it at all, since nothing here had looked and its firmware is a different generation.
It does. trelowney went looking after his capture hardware fell through and gave the addresses; what
follows is our own reading of them in h525_code, which is the whole internal flash of the bench
remote.
Command 0x70 starts a capture, at 0x02F56:
02F58: MOVLW 0x05 ; MOVWF 0x278 state 5
02F5E: CLRF 0x500 ; CLRF 0x501 clear the first buffer's header
02F64: CLRF 0x542 ; CLRF 0x543 and the second's
02F6A: MOVLW 0x01 ; MOVWF 0x584 set the toggle
Command 0x80 stops it, at 0x030F8, by putting 6 in the same state variable. And the producer
at 0x060BE gates on state 5 and then reads the toggle at 0x0584 to choose which of 0x0500 and
0x0542 it is filling, loading the pair into 0x700 and 0x702 one way round or the other.
That is section 98's arrangement, feature for feature, on a third architecture: two buffers, a
toggle, a state the command sets, and a producer that runs on its own rather than answering a
request. The buffer addresses differ, 0x0500 and 0x0542 where arch 12 has 0x0600 and 0x0642,
and the 66 byte spacing is the same.
The protocol is libconcord's and has been since 2007: COMMAND_START_IRCAP 0x70,
COMMAND_STOP_IRCAP 0x80, RESPONSE_IRCAP_DATA 0x90, the sequence stepping by 0x10, and the
timings recovered in their LearnIRInnerLoop. Nothing about the command numbers is new here and this
document should not imply otherwise. What is new is that a 525 implements them, and where.
Not verified here: the 0x90 header byte and the 0x10 sequence step inside the arch 9
producer. Both are in trelowney's reading and neither was located in this pass, which stopped once
the state gating and the double buffer were confirmed. A host that assumes them and finds otherwise
should believe the remote.
Why it matters more than a feature does. Section 48 established that the physical button map cannot be measured over USB: a remote on the bus does not run its keypad handler, and finishing it would need a RAM write, which the rails forbid. Learning is a way round that needs no write at all. Point the original equipment's own remote at a 525, capture, and match the captured frame against the expanded class 5 records section 82 read; the record's index names the command, and the config already binds a scan code to it. The map falls out of two things the remote will tell you.
Nothing here sends 0x70. It is not a flash write and it cannot brick anything, but it is a
command that changes a remote's state rather than reading it, so it sits behind the same flag every
other write does. This section is static reading.
Section 122 | the archive | section 124. Section 123 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.