Skip to content

Harmony 890 and 895: memory

What is known of a Harmony 890's or 895's memory is its configuration, as other people read it off their remotes: a container of the same family as every later Harmony's, whose table of sections is shuffled in a way no other architecture's is. This page says how that container is laid out, how its sections were placed without any firmware to read, what reads in it and what does not. The flash and the processor's own memory are not known at all.

How a configuration is laid out in general is the configuration format; this page states what differs here. Every fact is counted over the configurations of two Harmony 890s and one Harmony 895, and each footnote says where the argument is.

The container

value
cookie, end marker and the marker after the pointer table TPTP, DKDK and WLWL, as on the Harmony 880 and 8851
format word 0x1700, which is the pointer count: 23 slots12
base address flash 0x030000, which every container's pointers count from1
architecture record raw slot 0: 0a 0a, the skin, 0d3
framing and checksum the same as every architecture's: the end marker lands where the header says and the trailer checksum recomputes, on a read that is not damaged, usb.md14

The base address is found from the clock record, not from the end marker. Taking it from the end marker was right on every other container and 864 bytes wrong on one damaged read of a Harmony 890, and it could not notice, because the check it was tested against was the same arithmetic run backwards. The build timestamp's own pointer gives one candidate per pointer, and exactly one is aligned to 0x1000 on every container that is not damaged.5

The slot map

This architecture's pointer table is not the base layout with slots inserted, which is how the Harmony 880 and 885, the Harmony One, the Harmony 525 and the Harmony 600, 650 and 700 all relate to one another. Five base slots are absent, and eight raw slots correspond to no base slot.6

Where each base slot sits is the container's table of every architecture.6

Every row was placed by what its section holds, with no firmware to read: the architecture record in raw slot 0, the clock frame, a 125 byte event map of 30 entries as on the Harmony 880, the infrared groups, every mode record carrying a screen program that decodes, the eight font set addresses. The decisive one is base slot 10, the table of action lists, whose consecutive entries sit 1 + 3 * count apart: exactly one raw slot reproduces the Harmony 880's signature of four breaks, where every other array scores near zero.76

Base slots 13 and 14 were placed by order between their neighbours first, and both were wrong. Base slot 13's first seven records hold the build timestamp's own fields on every other architecture, and no run of pointers in either container has targets carrying those seven values, at any offset and either width, where a Harmony 880 container hits exactly once. So base slot 13, the state variable table, is absent, and so is base slot 14.6 A slot with only one possible home under an ordered mapping is not thereby a slot that is there.

Base slot 0, the name tree, is absent: no 0xFEED frame occurs anywhere in either payload. With base slot 13 absent too, the names of a Harmony 890's devices and activities, and how many activities it has, are unread; both routes to them need one of those two slots.36

Raw slot 3, the metadata archive

One of the eight raw slots that name no base slot holds a ZIP file: a u32 length, then a ZIP with one entry, MetaData.xml. It is 270 bytes and identical in both containers, a bare <MetaData> with one class, HarmonyAssistant, one record, AssistantMenu, and one boolean field, Show. It names no device and no command, unlike the Harmony 300 and 350's metadata archive of the same framing, which names every one.8

What reads, and what does not

The sections the slot map places read as on other architectures. Four structures read without it, because each is found from the header, the trailer or its own contents rather than from a pointer slot:

structure how it is found what it holds here
the key table from the marker after the pointer table 55 press codes on a Harmony 895, exactly the Harmony 885's populated positions9
the picture bank from the trailer's position, the walk that lands on it 128 by 160 pictures; 26 on a Harmony 890 and 38 on a Harmony 895, 57% and 72% of each file, five of them full screen on each; the two use exactly the ten distinct picture sizes a Harmony 880 and 885 use, where a Harmony 600 and a Harmony One share none of them10
the font sets every pointer must decode into a glyph that tiles exactly eight sets, 282 glyphs on a Harmony 890 and 277 on a Harmony 895, 70 slots each and a first code of 1, heights 8, 11, 13, 14 and 15 in exactly the Harmony 880's order of its eight sets; two bytes a pixel, since the Harmony 525's packed form finds no set and this form all eight; the glyph shapes are named by the Harmony 880 and 885's alphabet at 213 of 237 and 212 of 229, against 44 and 42 for the Harmony 600's and none for the Harmony One's, so the typeface is the Harmony 885's11
the infrared records a record states its own start address 300 codes on a Harmony 890, in four groups, with every one of 463 duration blocks decoding, at 38.0 kHz on 151 records, 36.4 kHz on 147 and 37.2 kHz on 2; none on a Harmony 895126

Three readers needed this architecture's own value and had none, which is the thing to know before reading one of these configurations with a reader written for another architecture:

  • Screen opcode 22's operand is three bytes here. With no entry, 49 mode page programs on a Harmony 890 and 34 on a Harmony 895 went unread, with a fifth of the drawn text.13
  • Base slot 15 declares fourteen groups, where nine was the most on any other architecture, and every group body reads as two entries, so their shape is refused rather than read; a reading written for the Harmony One's groups fired on it because its group existed.13
  • Base slot 7 keeps its glyph bodies inside its own section, so the section is read as a header, a u16 count and that many three byte pointers, on every architecture.6

The font sets do not give this architecture its text. A string's address comes out of a screen program, base slot 11, and these sets declare a first code of 1 rather than 32, so the codes are each configuration's own numbering and a run of printable bytes is not a string; usesAscii is false on both11.

What remains unread is 0.7% and 2.8% of the two clean configurations, with nothing claimed twice: runs with no family, the largest 7187 bytes on the Harmony 895, and the eight raw slots that are no base slot, three of them the same size on both containers and therefore fixed structures.13

Not checked

  • The flash: its size, its layout outside the configuration, and whether a log area exists, since base slot 2 is absent.14
  • Data memory, and where the firmware keeps the clock and the state variables.14
  • What the remaining raw slots hold.14

  1. Measured in configurations. Section 115 ↩↩↩↩

  2. Measured in configurations. Section 194 ↩

  3. Measured in configurations. Section 182 ↩↩

  4. Measured in configurations. Section 122 ↩

  5. Measured in configurations. Section 117 ↩

  6. Measured in configurations. Section 184 ↩↩↩↩↩↩↩

  7. Measured in configurations. Section 183 ↩

  8. Measured in configurations. Section 260 ↩

  9. Measured in configurations. Section 177 ↩

  10. Measured in configurations. Section 179 ↩

  11. Measured in configurations. Section 180 ↩↩

  12. Measured in configurations. Section 181 ↩

  13. Measured in configurations. Section 185 ↩↩↩

  14. Not checked. ↩↩↩