Skip to content

Logitech Harmony firmware and config format: arch 12 ("Gin") and arch 14

Reverse engineering notes covering two remotes and three firmware images.

Source material:

  • Harmony One, concordance 1.5 dump. Firmware 3.4, hardware 0.5.0, skin 54, architecture 12, protocol 12, external flash Atmel AT49BV322A (4 MiB, 0x1F:0xC8), USB 046D:C121, config flash used 1634 of 3840 KiB.
  • Harmony 600, concordance 1.5 dump. Firmware 0.2, hardware 1.1.0, skin 71, architecture 14, protocol 14, external flash EON F16-100HIP (2 MiB, 0x15:0x1C), USB 046D:C122, config flash used 721 of 1856 KiB.
  • harmony_one_firmware_3_4.hfw and harmony_700_firmware_2_8.hfw, retrieved from harmonyremoterepair.com. The One image is exactly the version running on the dumped remote.
  • A second Harmony One of the same model, firmware and skin, unprogrammed. The pair is worth more than two unrelated dumps.
  • A Harmony 525, architecture 9, connected on 8 August 2026. Its config, its two external flash images and the first bytes of its internal program memory were read over USB by this project's own code. The third architecture with hardware here, and the first arch 9 firmware anywhere in this project. Section 76.
  • Five publicly shared configs from other architectures, used as controls rather than as targets: four architecture 8 configs (720/785/88x class) shared by guyman70718 in concordance issue 66, and one architecture 9 config (Harmony 525) published by trelowney. Both sets were published by their owners with the account fields already at zero. See section 14.
  • A Harmony 700 config, architecture 14, skin 66, posted publicly by @dmrzzz. The second arch 14 config and the only one from the same model as the 700 firmware image disassembled here, which is why it carries more than its share of section 15.

Everything below is derived from those files plus the concordance source tree. Every numeric claim was checked against at least two independent samples where possible.

Authorship and provenance. This document was produced by Claude (Anthropic's AI) from the source material listed above. No insider information, and one write to one remote, section 222: a spare Harmony One's own bytes put back unchanged on 30 August 2026, which is the only byte this project has ever sent to a remote that was not a read. It was pure offline analysis of files until section 19, which now also rests on hardware. The programmed Harmony 600 was enumerated read only, and then three read commands were sent to it from this project's own host code: GET_VERSION, READ_MISC and READ_FLASH. Section 76 does the same to a Harmony 525 and takes its firmware off it, so arch 9 is no longer an architecture reasoned about purely from one stranger's config. Exactly one write has been performed, section 222, and it reproduced bytes already on the device rather than changing anything. Every other claim in this document is offline analysis, which means it is independently checkable and should be checked. Verification method is shown alongside the conclusions rather than just asserted, most importantly the calibration table in section 5 and the numeric closure in section 13. The highest-risk item used to be that the SFR map assumed the standard PIC18 high-end register layout rather than the PIC18F67J50 map specifically. That risk was real: eight of 93 names were wrong, and the whole USB register block was at the wrong addresses. Section 18 has the correction. The remaining one is that the arch 12 part number is inferred, not read off a board. Errors are documented where they occurred rather than quietly fixed, so the rest can be calibrated against them.

Sixty five have been found and corrected so far. The newest is in section 335: sections 285 and 287 read the delay between devices as acting only inside an activity's start, and four other files restated that as a fact, while the variable it waits on is raised by All Off and by the Help screens as well, which the search for that variable's writers missed because it did not walk tagged lists. The one before it is in section 322: the clock record's day of the month counts from 0 and its weekday from Sunday, and section 21's reading of the same bytes, a day counted from 1 and a weekday from a Saturday epoch, fitted every stamp as well because it named each date a day early. So every build date here was a day early and every configuration our writer stamped set its remote's clock a day ahead. The one before that is in section 226, and it is a claim of ours restated in code for three days after docs/findings.md had corrected it: the rehearsal's dump allow list plus its byte compare were said to identify the unit on the cable, where they prove content, so another Harmony One whose selected block happened to match would have passed as the spare. The three before it are in section 225, and all three are about the compatibility gate: the third component of a remote's hardware version was listed as something concordance prints and we cannot place, and it is not in the version block at all; BOARD was said to be normalised on the file's side only, where a two component reading against a three component statement needs both sides normalised; and the rule that a list of versions is a disjunction was attributed to INTENDEDVERSION, which is a single entry in all ten wrappers, when it belongs to the USERMESSAGES chain beside it. The one before those is in section 224, and it is the same rails bypass for the third time: a report reaching a remote's flash with no rail behind it, closed twice before, both times by hiding the thing that built the report and never the thing that permitted it. The six newest are in section 139, and every one of them is a reader in shipped code that answered plausibly where it should have refused, found by reviewing the source against the question "what can this test fail on" rather than by a new sample. One of them is a rail: the barrel of packages/usb exported the four request builders that change a remote, so a caller could reach ERASE_FLASH without passing a single refusal.

The four before those are in section 124, and three of them are the same shape: a hand read glyph label that only one word in one container could have caught, and no word did. What caught them is the generator's own rule that a character sits on one code, used as a check rather than assumed: a character on two codes at once is a contradiction, and three were. The fourth is three activity labels on a Harmony 525, which were fragments of a wrapped menu label and two of them belonged to a different activity than the one they were reported for.

The one before those is in section 122, and it is a correction to a correction. Section 117 caught the container's base being derived circularly, on a Harmony 890 config whose header disagrees with its own end marker, and then explained that disagreement as a generator failing to restamp a field. A second read of that remote, contributed the next day, disagrees with the first: the reads duplicate whole 54 byte chunks, 16 and 2 of them, and the config the remote holds is consistent. The argument that had ruled transport damage out was that the file's payload is as long as its own header says, and that header is written by the same tool after the same transfer, so it counts the duplicated bytes. Two circular checks in one section, and the second one survived the commit that removed the first.

The two before that are in sections 120 and 121, and both are cases where a document said something in as many words and nobody checked it. Section 86 said value 0 of the activity variable means "no activity running"; the count it drew from that was right and the reason was wrong, and the field that does say it had been sitting in base slot 13 marked unconfirmed since section 60. And packages/codec/src/screen.ts said opcode 2 is the only screen instruction naming a place outside its own program, which is the sentence that would have prompted somebody to follow opcode 4's pointer; two thirds of the corpus's drawn text was on the other side of it.

The two before those are in section 119, and one of them is a prediction this document made and then measured wrong. It predicted that the stranded 525's EEPROM byte 0 would be 3, on a reading where safe mode reinstalls itself at every boot; the byte is 0, which is the arm that installs nothing, so the latch is passive and safe mode persists by being resident. Both readings predict a remote that never leaves safe mode, so no behaviour could separate them and only the byte could. The zero is also what sent that section back to the bootloader and turned up the step it had stopped short of, where a completed install leaves a 6 that the running image consumes, which is the message a recovered remote puts on its screen. The other is section 88's arch 9 address rule, which was read from the validator's default arm and reported as the whole rule: four windows are tested above it, so this project's own library refused three regions the device serves and recorded one of them as unreadable.

The four before those are all in section 118, and one of them was found by a segfault: the section said libconcord's progress callbacks are optional, having checked every cb use in remote.cpp, and the unguarded one is in the file above it. A lab script passing NULL died inside get_identity two calls before the write it was there to make. Same shape as the one before it, and both are the shape this project keeps producing: a rule confirmed on the population that was looked at.

That one was wrong for an hour, in the section that made it, and it is a scoping error of the same kind: "there is no room for a resident safe mode image" is true of the 525's internal program flash and false as a sentence, because arch 9 keeps both images resident in external flash and copies one of them in. Unscoped it reads as "safe mode is transferred from a host", which is the opposite of what happens, and it went into CLAUDE.md as a rail before anything looked at the 64 KiB below the staged application. What found it was looking in the lab rather than at the remote: the image had been dumped and correctly labelled three days earlier and nothing had opened it.

Of the remaining two, one was refuted by hardware within a day of being written: section 116 supported its reading of GET_VERSION field 6 partly on safe mode images carrying the same value as their applications, and a live Harmony 525 in safe mode reports zero. The platform reading survives on its other two legs and is now scoped to an application image. The other is the cheapest kind of error to make: a number quoted with no population attached. Section 101 explained 1992 opcode 22s against 1080 by naming a section that turns out to contain no opcode 22 at all, and the figure came from a one off script that walked the roots without deduplicating them. It went into a document because it agreed with what somebody expected. The check that would have caught it is the one this project already runs on every corpus total: recompute it from the code.

Before that, section 117, which is the oldest error in the project: the container's flash base was recovered from the end marker's position, and the check that was supposed to validate it re-derived its own premise, so no input could ever fail it. It was right on 23 of 24 containers and silently wrong on the 24th, where it displaced every pointer by 864 bytes without anything reporting a problem. Sections 113 to 116 all came from asking what a new sample contradicts; this one came from asking what a check can fail on, which is a question worth asking of the others.

The one before it is in section 116, and it corrected a section written four hours earlier, which is the shortest life any claim here has had. Section 114 read GET_VERSION field 6 as "the architecture on three architectures out of four" and offered a generation number that stopped advancing as the guess. Two more images took the population from four to eleven and the shape resolved: it names a platform, and arch 12 and arch 14 are one platform under it. The lesson is not that the first reading was careless, it is that four samples could not distinguish it from the right one, and the section said so at the time.

Before it, two in section 113, and they are the kind that matter most, because both were in shipped code that answered without failing. The skin rule read bcdDevice's low byte as BCD on every architecture, which is right on two of the four and turns a Harmony 885 into a Harmony 655 on a third; it had three copies, and the one remote that would have exposed it, an 885, arrived on 10 August 2026. And usbdesc.find_block returned the first descriptor chain that validates, which on the Harmony 525 is a Microchip stock descriptor left in the image by the USB stack, so the tool reported vendor 0x04D8 and skin 0 for a Logitech remote. Both are the same failure as the field split pitfalls in CLAUDE.md: a necessary test used as a sufficient one, producing a plausible answer.

Before them, section 112, the ordinary kind: docs/config-format.md and section 78 both said the one arch 9 config draws no inline strings at all, which was true of the decoder when it was written and never revisited after section 85 read the packing. That config draws 1435 codes. Sections 110 and 111 are worth reading beside them: neither is only a correction, each is a set of predictions with most of them measured wrong and the record of what the prediction got wrong kept in place. The newest are in section 111. A remote attached to USB does run its application, which section 48 denied and four summaries had copied, and a remote on USB does load its config on arch 12, which section 110 concluded of remotes in general from one measurement on one architecture. Both were caught by one hardware session a day later, and both are the same failure: a claim measured on one architecture and stated of all of them.

Before them, section 109, and its own framing needed correcting too. It reported GET_VERSION's flash id as a field name this project took from concordance and never questioned. It had been questioned and got right, in reference/concordance-notes.md and in section 3's table above, both of which say the One reports manufacturer then device and the 600 reports JEDEC capacity then manufacturer. So what section 109 found was drift in two other places, docs/usb-protocol.md and a test comment, which had flattened the two orderings into concordance's arch 12 one. The mechanism it read is unaffected: the firmware compares one of the two bytes against three literals to choose a flash size, and only a capacity code can do that.

Before it, section 108: packages/codec resolved the second dispatcher's four opcodes as exact values where the firmware compares against them as floors, so it answered "no reading at all" for 0x20 where the remote runs 0x1F's handler. It never showed up in a number because no config emits anything but the canonical four, which is the same shape as the correction below it: a claim no sample could contradict.

Before it, section 107, and it is a claim two documents made in the same words: that arch 12's 0x3F bands are the only structure in the format that is not one table across architectures. They are one of three, section 139 being the third. The opcode block 0x65 to 0x6E is arch 14 only, and the reason it went unnoticed is that no arch 8, 9 or 12 config emits an instruction from it, so nothing in the corpus contradicted the claim; only the other architectures' dispatchers do. A rule that says "port this by index" is worth checking against the firmware of the architecture you are porting to, not only against its configs.

Before it, two in section 106, both mine, made in section 103 and caught by reading one call deeper the same day: group 9 is four pairs of device levels and not four timeouts, because 0x249A0 sends both halves straight out over I2C and nothing counts them down, and the flag that indexes the twelve spare bytes is operand bits 1 to 3 normalised to a boolean rather than bit 0. The first is this document's own rule about naming a structure by its consumer, failed by stopping one call short of the consumer.

Before them, sections 103 and 104, which have the same cause read from two sides. Section 84 called base slot 15's twelve spare bytes "a shape rather than a reading" because they are the size of six u16 values with no count byte; they are not that shape at all, they are the group before them continuing past its declared length, and the reader arrives by arithmetic rather than by a pointer. Section 73 recorded 0x1F band 0xFC as a no-op because the dispatcher's arm for it does nothing; the instruction never reaches the dispatcher, because the fetch tests for it first. Both times the structure was found and the thing that reaches it was not, which is the same mistake as this project's own rule about following control flow rather than variables, one level higher up.

Before them, section 98's two, which were made and caught within the same session, which is the useful thing about them. One read the USB buffer descriptor's byte count as a software counter and drew an inference about the codebase from three architectures sharing it, when the address is fixed by the part. The other concluded from a scan that arch 14 had no learn report header, when the scan had reported it and the filter dropped it: the store is through INDF0, whose address is 0xEF, and this project's own pitfall list warns that indirect access is invisible to a search keyed on addresses.

Before them, section 96's: the restart hazard was written up as a threshold at a program address, and there is no threshold. The response sender has no bound, so an unterminated read walks over its own counter and what decides the outcome is the parity of a byte 2247 further on. The bisection that produced the threshold was real and its fourteen measurements are all predicted by the correct reading, but every offset it happened to try below the supposed boundary had an even byte in the deciding position.

Before it, section 81's: the version word beside the architecture was recorded as per model rather than per config, and one Harmony One carries two different words either side of the sync section 58 watched. It is a skin number, and nothing on the remote reads the section it sits in.

Before it, section 78's, which is the same shape as section 77's one section over: two fields of a font set header had been assigned meanings by the values they happened to hold, and the sample that varied them was again the arch 9 safe mode container. It moved the arch 12 safe mode container from 39.1% attributed to 99.6%.

Before it, section 77's, and it is the most productive kind: FRAME_PROLOGUE, a nine byte constant this project matched at the head of every 0xFEED frame, was never a prologue. It was the first node of a list, and two of its bytes were that node's own length. Recording it as a fixed string is what kept base slot 0 unread for months, and the sample that exposed it did so by being the one container whose first node is named something else.

Before it, section 76's, and it is one this project set up deliberately: docs/memory-map-525.md published nine predictions before a Harmony 525 was connected, and the one that failed was not in the list at all. Two documents said bit 23 of arch 9's flash address "reads as a flag rather than an address bit", from concordance's table disagreeing with the config's own arithmetic. It is the reverse: bit 23 belongs to the read command's address and not to the container's. The reasoning was sound and one sided, because only the config was available to reason from, and the remote settled it in one command.

Before it, section 75's, and it is the kindest kind: section 61 read an infrared header as a flat 21 bytes and every word of its argument holds, because 21 bytes is what the header is when the count at +0x0B is one, which is every record it looked at. The claim was not wrong so much as unaware of its own scope, and the byte that states the scope was sitting unnamed in the layout it published.

Before it, section 74's, and it is the same mistake twice in a row: section 71 settled whether 0x74 and 0x75 are one instruction or two by reading the architecture that issues neither of them. The rule that would have caught it was written down in section 73, one section earlier, after it had cost three misreadings there. Count who uses an opcode before choosing which firmware to open.

Before it, a reading that was right about the shape and wrong about the size: section 72 had the 0x3F 0xD0 band consuming the next three instructions off the queue, because the queue holds three byte instructions and the handler calls the queue reader three times. The reader pops one byte. Four instructions of disassembly settle it, and none of them were read before the claim was published. Section 73.

The sharpest is still this one: this document recorded that a READ_FLASH through sub-selector 0xFE "returns nothing at all", on the strength of one probe at one offset that produced no reply. It reads fine, and it is the one that maps from program address zero. A null result from a single probe is a fact about that probe, and writing it up as a property of the selector turned a missing measurement into a finding. Section 22.

Before it, one that shows where a number came from: three arch 8 configs were recorded here as "generated about ten minutes apart", a figure that came from outside rather than from the configs. They carry their own build timestamps, and those say 33 and 25 minutes. The conclusion drawn from it stands, section 21.

Before that, the oldest defect here: the container's section table starts at 0x0B rather than 0x0C, an item is a spare byte plus a three byte address, and the three bytes both parsers dismissed as padding are the final section's address. So every container had been read one slot short since the first day, in both implementations, with every consistency check passing. It decoded correctly regardless, because that slot is NULL in all thirteen samples. Section 20, which is mostly about the two warnings that were recorded and not chased: a derivation with an unexplained - 3 in it, and an ambiguity documented next to it.

Before that, two came from the first hardware run and share a shape worth more than either fact: an acknowledgement's length nibble is 0 while its command byte follows anyway, and a flash chunk's first payload byte is a sequence number rather than data. In both cases a test existed and passed, because the test encoded the same assumption as the code. Circular, not weak. Section 19.

Before those, the SFR map was the generic PIC18 layout rather than this family's, section 18, and READ_FLASH's response was published as located when only the request had been. That one's lesson: it came from following shared variables instead of control flow, so the code found proved what the variables held and nothing about which command was running. Section 19.

The most consequential is that key codes were read as 0x80 | (row << 3) | col, a matrix address with bit 7 as a flag, when the top two bits are the event type and the rest is the keypad scanner's own scan code; that one had generated a whole paragraph of wrong reasoning about the 600's table not being able to describe its own keypad, and section 17 replaces it. Two more are the same claim corrected twice in opposite directions, which is worth reading as a pair: arch 12 and 14 were first said to use a container unrelated to the Harmony 525's, then said to nest the 525's 0xFEED/0xBEEF frames one per section, and in fact there is exactly one such frame per container, at section slot 0. The first correction was right that the formats are compatible and wrong about how far. See sections 7 and 15. SUBFWB and SUBWFB were swapped in the disassembler, which inverted an arithmetic expression in the infrared scaling block. A hand count of LWJL codes was wrong, 107 rather than 108. And BTFSC and BTFSS were swapped, which inverted the stated polarity of every bit test: the infrared enable mask, the keypad columns and the reset key combination are all active low, not active high as first written. And a rule for deriving the container's section marker from the cookie was wrong while still producing the right answer on the only sample that exercised it, which is the most dangerous shape an error can have; see section 14. None of those changed a structural conclusion, but they produced readable listings rather than obvious failures, which is why the encodings are now asserted in tests/test_isa.py and every documented finding has a regression test.


The sections

This archive is frozen: nothing is added to it, and where a section's conclusion was later corrected, the reference holds the current answer. Each section is a page of its own here, since the whole file is too large for one.