407. The Harmony One's state tables, clock, log area and parameter block are built by the Harmony 600 family's builders with its differences as data, byte for byte on all 19 compiles¶
Todo todo-compile-one.md 6.4: the parameter block's groups, the clock records, the state variable storage
and the log area of a Harmony One configuration built rather than copied, as the Harmony 650's were.
Sources checked: statetables.ts and wiring.ts, whose builders this extends; sections 138, 274, 284 and
322 for the clock and the firmware's records; section 47 for the log area; docs/config-format.md's base slot
13 and base slot 15; the 19 distinct Harmony One compiles and the thirteen arch 14 compiles section 312 lists.
Neither the firmware nor Logitech's client was read: the question is what their compiler emits.
What differs, and where it is held¶
The state tables' differences are the touch family's StateTableFacts, TOUCH_STATE_TABLES in
families/touch/statetables.ts, which the builder takes as Family.stateTables beside the four slot family's
FOUR_SLOT_STATE_TABLES, so the builder tests no architecture; whether the minute calls a list is the family's
minuteCall and which list the description's. The log area's region is a per architecture table, LOG_AREAS
in the new firmwaresections.ts. The parameter values are a model's and not an architecture's, so the Harmony
One's one set is TOUCH_PARAMETERS in the touch family and the Harmony 600, 650 and 700's stay in wiring.ts.
docs/config-format.md carries the values:
- the firmware's records 7 to 17, where 13 and 14 start at 1 and 2 with maxima 1 and 4 on the One against 0 and 1 on the Harmony 600 family;
- a variable's width: one byte for every variable of a configuration's own on the 19, maxima up to 121, the
compiler's
0/65277at indexnarrowthe only two byte one. The builder refuses a larger maximum rather than guessing the One's rule for it, since no compile shows one; - the minute's second transition,
{-2 to -2, 0x7F list}after its increment of the hour, calling the clock's screen list, whose index the description carries asminuteList. On all 19 that list sits straight before the hour's, observed and not built on; - the log area, sixteen one byte records at
0x3FFFF0to0x400000with a three byte capacity; - the parameter block's eleven groups, group 9 with twelve bytes past its declared entries, and groups 2, 3, 8 and 10 holding the same values on all 19, which nothing here reads.
The hour's list [0x1F 0xF203, 0x1F 0xF204], the value map lead byte, the name tree's roots and order and the
first two byte variable are the Harmony 600 family's on all 19.
Corrected in place, when todo-compile-one.md 3.3.3.3 reached main. This section first held the state
tables' differences as a per architecture table in the shared module, STATE_TABLE_ARCHITECTURES
in statetables.ts, read by a lookup on the container's architecture, as the frame's were in 6.1. 3.3.3.3 had
meanwhile made the builder take a family's facts, plan 007, whose rule is that a builder's per remote facts live
in the family and only a reader of Logitech's formats may look a fact up by architecture. The two met, and the
family's form was kept: the Harmony One's records 7 to 17, its width line, its one byte case count and the
minute's call became the touch family's TOUCH_STATE_TABLES, the description lost the architecture it carried
for the lookup, and the builder refuses a minute's list that disagrees with its family. No value changed and
every count below was measured again after the move. LOG_AREAS stays a per architecture table for now: its
four slot row is read by wiring.ts, which is the four slot family's but still outside it, and moving the row
into the family would make that module reach into a family before it moves there itself, todo-compile-one.md
3.3.3.2.
The measurement¶
| part | rebuilt byte for byte |
|---|---|
| whole state tables | 19 of 19 |
| clock records | 133 of 133 |
| firmware records 7 to 17 | 209 of 209 |
| the compiles' own variables | 538 of 538 |
| value maps | 303 of 303 |
| log area, references included | 19 of 19 |
| parameter groups | 209 of 209 |
| whole container with log area and parameter block swapped in | 19 of 19 |
A description with every byte the builder does not read blanked rebuilds all 19 too, and the thirteen arch 14 compiles come back byte for byte from the same builders.
The controls fail where they should: the Harmony 600 family's firmware records match 0 of the 19, a clock without the minute's call 0, the 600 family's log area 0, a One description built with the 600 family's width rule is refused on all 19, and so is one without its minute's list, and a missing or misplaced group 9 tail, a group of another length and a value too large for two bytes are each refused.
Asserted¶
packages/codec/test/statetables.test.ts, four new tests, and packages/codec/test/firmwaresections.test.ts.
What would falsify it¶
A Harmony One compile whose state tables, log area or parameter block differ from what these builders make from its description; or one holding a variable of its own above 121, which the builder refuses.
Which architectures¶
Arch 12 (Harmony One) and arch 14 (Harmony 600, 650 and 700) are built and measured; every other architecture has no family to give the builder its state table facts and no row in the log area's table, and is refused.
Section 406 | the archive | section 408. Section 407 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.