Skip to content

Header records: base slots 0, 1 and 3

Three small records at the front of every configuration say what it is rather than what it does: names for the things it controls (base slot 0), which remote it was built for (base slot 1) and when it was built (base slot 3). The first two are read by the host software and by nothing on the remote, so a wrong value in them changes nothing the remote does.1 The third is the moment the remote measures the configuration's age from.2

How base slots relate to the raw slots of each architecture's section table is in the container. The Harmony 890 and 895 are the exception throughout this page: they have no base slot 0 and keep their architecture record in raw slot 0, which their memory page describes.3

Base slot 0: the name tree

A tree of named nodes, and the only 0xFEED framed section in a container: exactly one frame, always at base slot 0, and validating every other 0xFEED byte pair in a container finds none that closes.4 Every container has one5, and in the Harmony One's factory safe mode container it is empty.7

+0x00  u16      0xFEED        stored little endian, so `ed fe` in the bytes
+0x02  u24      length        counted from the tag, stops short of the terminator
+0x05  ...      nodes         packed end to end, up to +length
+len   u16      0xBEEF

The length is three bytes on the word of Logitech's client. The byte at +0x04 is zero in every container because the largest name tree measured is 2326 bytes, so no configuration separates a two byte reading from a three byte one; both codecs take the wider one, the one that survives a bigger tree.6

The section is length + 2 bytes, the terminator sitting outside the field, and the base slot 1 pointer lands on exactly that byte in every container, which confirms the length rule from a second place in the file.4 An empty frame states a length of zero and is seven bytes, ed fe 00 00 00 ef be, with its terminator five bytes in: read length == 0 as "empty" rather than as an offset.7 Nothing on the remote reads this section, so no firmware rule decides the empty case.1

A node:

+0x00  u8       A7            the tag
+0x01  u16      n             4 + the name's length, so the field counts level, index and name
+0x03  u16      level         0 is the top of the tree
+0x05  u16      index         within its level
+0x07  char     name[n - 4]   ASCII, not terminated

The nine bytes A7 08 00 00 00 00 00 "Root" are one node, the node named Root at level 0 index 0, whose 08 is its own length field. Every user configuration holds it first and the Harmony 525's safe mode container holds it third, so a reader must not depend on the position.8

The nodes tile the frame exactly in every container with a non-empty frame: the walk lands on the byte length names, with nothing left over and nothing short. nameNodes returns nothing at all rather than a partial list when it fails.8

Two properties make this a tree rather than a list of strings:8

  • Level 0's indices are a permutation of 0..n-1, in every container, whatever order the nodes appear in. So the index is the node's place and the file order is free.
  • Every level 1 index is below base slot 13's state variable count, in every container, at 93 of 94 on a Harmony 700 and 19 of 21 on a Harmony 525. So level 1 names base slot 13's state variables, entry by entry.

Level 2 appears on the Harmony 880 and 885 and the Harmony 525 only, holding a small menu under HarmonyAssistant.8 The order Logitech's compiler stores the nodes in, a hash order of the variable index, is in the layout.9

A level 1 name is three parts, <label>_<qualifier>_<values>:

  • values is the variable's range, the max field of its base slot 13 record plus one, in all 250 named variables measured.10
  • the qualifier is a Logitech device identifier on the Harmony 600 and 700 configurations, six digits or more and never stored in the container as a number, and a small number on the older generators.10
  • the label is what the variable is: a device's name and a function of it, or one of the words the generator always emits. CurrentActivityState_0_<values> is in every container that has a name tree, and its max is the number of activities the configuration defines.10

No firmware routine reads this section, so the correspondence with base slot 13 rests on the index and the range agreeing, not on a consumer.1

Base slot 1: the architecture record

Seven bytes, and the only place a configuration states which remote it is for. A configuration read off a remote over USB arrives with no EZHex header, and the cookie is not enough because GSPM covers the Harmony One, the Harmony 600, 650 and 700 and the Harmony 300 and 350 alike, so this record is what makes a configuration describe itself.4

+0x00  u8       architecture   8, 9, 12, 14 or 16
+0x01  u8       architecture   the same value again
+0x02  u16      version word   low byte the skin, the model's number; high byte 0x0D
+0x04  u8[3]    00 00 00

Examples: 0c 0c 3b 0d on a Harmony One, 0e 0e 49 0d and 0e 0e 42 0d on a Harmony 600 and 700, 09 09 16 0d on a Harmony 525 and 09 09 43 0d on a Harmony 515,13 08 08 0f 0d and 08 08 11 0d on a Harmony 880 and 885.3 The Harmony 350 states architecture 16 and skin 104 the same way, 10 10 68 0d, and the Harmony 300 states its own skin, 10 10 4f 0d, 79 on the European model.1112 The skins are the model numbers in the remotes index. On the Harmony 890 and 895 the record is raw slot 0, 0a 0a 13 0d and 0a 0a 17 0d.3

Confirmed on seventeen containers spanning architectures 8, 9, 12 and 14, each with its architecture known independently of this record, from the EZHex header's PROTOCOL field or from the firmware package the container was taken from, so each is a calibration case rather than a check of the record against itself.4

The record is up to seven bytes, not exactly seven. The Harmony 525's safe mode container carries three, with base slot 2 starting immediately after, so the record's extent is the gap to the next pointer like every other section's, and a reader that takes a fixed seven reads base slot 2's first byte as part of the version word.14 And a container can carry the record without stating anything in it: the Harmony 880 and 885's safe mode container, inside their firmware images, has two bytes and both are zero, so it declares architecture 0.15 That makes three behaviours over three safe mode containers: the Harmony One's names its own model exactly, the Harmony 525's names skin 18 where the remote it came from is skin 22, both being what Logitech's table calls the Mocha Decaf family, and the Harmony 880's names nothing. The one inside a Harmony 515's application image names skin 67, the skin of the unit it was read off, in a full seven byte record; since 18 and 67 are each the lower skin of their regional pair, what decides the skin a safe mode container names is not established.13 So a reader must not take a model or an architecture out of a safe mode container; the record is load bearing for user configurations only.15

The version word

What the word means as a whole is not established. Measured:416

container architecture word
Harmony One safe mode container, from firmware 3.4 12 3126
Harmony 880 and 885 user configurations 8 3343, and 3345 on one 885
Harmony 525 user configuration 9 3350
Harmony 515 user configuration 9 339513
Harmony 515 safe mode container, inside its application image 9 313913
Harmony One user configurations 12 3387 and 3382
Harmony 700 user configuration, and the container inside 700 firmware 2.8 14 3394
Harmony 600 user configuration 14 3401

It is not the architecture, since arch 14 shows two values; not the contents, since arch 8 configurations that differ in 73 to 84 percent of their bytes share it; and not fixed per remote: one Harmony One carries 3387 before a sync with Logitech's service and 3382 after it.16

The low byte is a skin number in Logitech's own numbering, in plain binary on every architecture.1617 Seven of the nine containers whose remote's skin is known independently carry it exactly, 54, 66, 71, 72, 22, 15 and 17. The two that do not carry 59 and 73, the European variants of those same two models, the Harmony One EMEA and the Harmony 600 EMEA, per Logitech's product catalogue.18 A Harmony 515's configuration, read off a unit whose descriptor states skin 67, carries 67 as well, outside that count.13 So it names a model the way a skin does. Which member of a regional pair a configuration carries is not established: the locale passed to the compiler and the product the account holds are both candidates.18 The high byte is 0x0D in every container built from 2009 on and 0x0C in the Harmony One's 2007 factory container,16 and in the safe mode container a Harmony 515's application image carries, built in 2008.13

Nothing on the remote reads this section, or base slot 0. The firmware's section seeker is called with raw slots 2 to 19 on the Harmony One and 3 to 17 on the Harmony 700, and with 0 and 1 on neither, so both are host side records. That is why a wrong value here has no effect on the remote, and why an editor copies the word rather than computing it.1

Base slot 3: when the configuration was built

An eleven byte framed record:19

+0x00  u16      0xADDF         tag
+0x02  u8       second         0 to 59
+0x03  u8       minute
+0x04  u8       hour           24 hour
+0x05  u8       day of month   0 to 30, so the date is this plus one
+0x06  u8       day of week    0 = Sunday, 1 = Monday, ... 6 = Saturday
+0x07  u8       month          0 = January
+0x08  u8       year           offset from 2000
+0x09  u16      0xEFBF         terminator

The field assignment is a search result rather than a reading: of the 24 orders of the four date bytes, times two month bases, times seven weekday offsets, exactly one is consistent with every container.19

The day of week is not an independent field. It is the weekday of the date, counted from Sunday as 0, and the date is the stored day plus one: the firmware's month end routine compares the stored day against one less than each month's length on every image read, arch 8, 9, 12, 14 and 16, and twenty three stamps with a date known from outside decode to it.20 A record whose weekday disagrees with its date, or whose day is past its month's last index, is refused rather than reported, by both readers.5

The tag pair, 0xADDF and 0xEFBF, occurs exactly once in every container, unlike base slot 0's 0xFEED, which occurs about once per 64 KiB by chance, so this record can be found without a pointer.5 That is what the container's base address is anchored on.

The section is fourteen bytes and the record eleven. The three bytes after the terminator are zero in every container; the record closes at 0xEFBF, so those three are the section's own tail rather than framing, and a writer emits them as zeros.21

What the remote does with it

On the Harmony One the remote's clock agrees with this record at every cold start, and does not come from it. A Harmony One power cycled and read 90 seconds later held this record's date exactly and its time plus 90 seconds, in this record's own encoding field for field.22 The clock is base slot 13's first seven state variables, which the firmware seeds from their records; Logitech's compiler stamps those records and this one from the same moment, which is why they agree.2 What the firmware does with this record is subtract it from the clock, accumulating the difference in seconds and in days, so the remote knows how long ago the configuration was built; the subtraction skips the weekday on both sides, since the firmware derives it.2

The boot read of three bytes at index 10 fills the counter of time since the build, not the clock, on the Harmony One, 600 and 700 images: the same variable the subtraction writes.23 The Harmony 300 and 350's image does the same, into the counter its clock's tick adds to.29 What it loads is EF 00 00 in every container measured, which is unexplained, and in the five of the Harmony 300 and 350 too.2430

On the Harmony 300 and 350 the clock this record seeds stops at the minute: the seven clock records of the five configurations read carry none of the transitions that carry it into the hour on every other architecture, so the hour and the date stay at the stamp's until the next cold start, their memory page.30

A writer stamps this record with the moment it writes, together with base slot 13's clock records, which are where a stale moment shows: a clock wrong after every power cycle by exactly the staleness. A Harmony One shows it on its screen.22 A Harmony 600, 650 or 700 shows no clock at all, and on the Harmony 650 a restart sets the clock in memory back to the stamp.25 Reproducing an input configuration's timestamp is right for a round trip and wrong for a save, and that distinction is in the code: FIELD_RULES in packages/config/src/edit/edit.ts lists every field whose treatment on a write is not "carry it unchanged", applyEdits is the faithful path and saveEdits stamps, and emit.ts is deliberately the round trip side, since its whole measurement is byte equality with its input. The record is encoded in exactly one place, clockRecordFields in packages/config/src/container/clock.ts, the inverse of clockRecord; the day of week is computed there and never taken from a caller.26

What the Harmony 880 and 885 do with it

On the Harmony 880 and 885 this record is not the clock and never reaches it: the clock is base slot 13's first seven variables, reseeded at every start, and this record feeds only a counter of seconds since the configuration was built, 24 bits, at data 0x1CB.32 Its boot read cannot load anything on this build: the read at index 10 is gated on a configuration having passed its start check, and the start clears that gate before the read and, as far as every direct write of the gate goes, sets it only in the check, which runs after it. So the counter is 0 after every start, and the EF 00 00 at index 10 is never loaded there. The Harmony 720's application clears the gate the same way before its own boot read; that nothing else sets it there is not asserted.32 The counter is recomputed as the clock minus this record, the time of day in seconds plus 86400 for each day from this record's date to the clock's, the weekday skipped, when an action list runs 0x07 with a low byte of 0xF9, when it runs 0x0F with a low byte 0xCC to 0xCF, when a host sends write misc selector 8, or when state variable 0 is written with its transitions skipped; after that the tick adds the elapsed seconds to it.32 The recalculate reads the fields from index 2 on and does not test the tag.32

Nothing in a configuration read reads the counter. On the remote, as far as a census of the counter's direct accesses goes, only the opcodes 0x0F to 0x1E with a low byte from 0xC0 to 0xCF reach it, which this interpreter takes as one opcode: the low two bits pick a byte and the next two read it into the byte register, write it from there, do nothing or recalculate. No instruction of those opcodes in the sixteen arch 8 containers read, copies of six configurations, has a low byte from 0xC0 to 0xCF, while every container carries 120 0x07 0xFFF9, so a wrong stamp changes nothing a person sees with any of them.3233 Logitech's classic client dates a log record of this architecture as signed seconds after this record's date, finding the record by its tag and terminator, which is what the counter would be if a configuration logged it; none read does.34

So a writer for these remotes stamps this record and base slot 13's records 0 to 6 from the same moment, which all sixteen do and which is what makes the counter's 0 at start right;33 keeps the tag and the terminator, which Logitech's client finds the record by,34 and the three zero bytes every configuration carries;33 and never emits an opcode from 0x0F to 0x1E with a low byte 0xC3 or 0xC7, whose index 3 reaches 0x1CE, a byte the scheduler's set up clears with its own state, rather than the counter.32 Whether the boot read can run on the Harmony One, 600 and 700, which would bear on the EF 00 00 above, is not read.31

Dating a configuration, and where that fails

Every configuration can be dated from this record, which is provenance nobody has to write down, and a configuration read over USB gets a "built on" date where there is no EZHex header to take one from. The Harmony One's factory container, read off a remote and extracted from firmware 3.4, reads 2007-10-25 02:22:08 in both, and the factory container inside Harmony 700 firmware 2.8 reads 2009-04-16, both matching when those models shipped.1920

A timestamp does not order two configurations of the same remote. Two configurations of one Harmony 700, published by their owner with one documented change between them, are the only controlled pair measured, and their build timestamps order them the opposite way round from the owner's stated direction of the change. That is unresolved.2719 A pair whose direction was observed rather than reported, one Harmony One before and after a sync with Logitech's service, is ordered correctly by it.28


  1. Read in the firmware. Section 81 ↩↩↩↩

  2. Read in the firmware. Section 138 ↩↩↩

  3. Measured in configurations. Section 182 ↩↩↩

  4. Measured in configurations. Section 15 ↩↩↩↩↩

  5. Measured in configurations. The test ↩↩↩

  6. Stated by Logitech, in their client. The test ↩

  7. Measured in configurations. Section 83 ↩↩

  8. Measured in configurations. Section 77 ↩↩↩↩

  9. Measured in configurations. Section 324 ↩

  10. Measured in configurations. Section 86 ↩↩↩

  11. Measured in configurations. Section 259 ↩

  12. Measured in configurations. The test ↩

  13. Measured in configurations. The test ↩↩↩↩↩↩

  14. Measured in configurations. Section 79 ↩

  15. Measured in configurations. Section 114 ↩↩

  16. Measured in configurations. Section 81 ↩↩↩↩

  17. Measured on a unit. Section 113 ↩

  18. Stated by Logitech, by their service. Section 131 ↩↩

  19. Measured in configurations. Section 21 ↩↩↩↩

  20. Read in the firmware. Section 322 ↩↩

  21. Measured in configurations. Section 84 ↩

  22. Measured on a unit. Section 111 ↩↩

  23. Read in the firmware. Section 310 ↩

  24. Measured in configurations. Section 310 ↩

  25. Measured on a unit. Section 283 ↩

  26. Measured in configurations. The test ↩

  27. Measured in configurations. Section 16 ↩

  28. Measured in configurations. Section 58 ↩

  29. Read in the firmware. The test ↩

  30. Measured in configurations. The test ↩↩

  31. Not checked. ↩

  32. Read in the firmware. The test ↩↩↩↩↩↩

  33. Measured in configurations. The test ↩↩↩

  34. Stated by Logitech, in their client. The test ↩↩