296. A Harmony Desktop sync on a running Harmony 700 writes no firmware and appends two records to its settings store¶
The bench Harmony 700 of section 295, running its 2.5 application after the repair, synced once more with Harmony Desktop to see whether it would offer a firmware update. It offered none. Four areas were read off the remote immediately before and immediately after, all read only.
| area | before and after |
|---|---|
external flash 0x000000 to 0x030000, where an install stages an image |
byte for byte identical, and identical to section 295's read of it |
internal page 0xFE, the bootloader, safe mode image and the application's start |
byte for byte identical |
internal page 0xFF, the rest of the application and the settings store |
three bytes differ, all in the store |
the configuration region from 0x030000 |
rewritten: a new compile of the account, the same length, every structural check passing, measured on the lab reads and not asserted by a test here |
The version block reads firmware 2.5 and software type 0 on both sides.
The settings store¶
Section 282 read the store's format: two 1 KiB blocks at 0x01EC00 and 0x01F000, a four byte header,
then two byte records, setting then value, appended, the latest record winning. On this unit the first
block held twelve records as it arrived, every one for setting 0x80: four pairs of 0xF8 then 0xFF,
and two pairs of 0xFE then 0xFF. The same twelve were there after the first Harmony Desktop sync,
which ran with the remote in safe mode, after the reinstall of section 295, and before this sync.
This sync appended two more, 0xFE and then 0xFF, at 0x01EC1C, three bytes changed because the
last value is 0xFF, which is erased flash. The second block stays erased, so nothing was copied.
What that fits, and what it does not settle:
- The
0xFEfits section 282's path and is not attributed to it. That section read, on the 0.2 builds, that the first erase after a cache drop, if it is at0x030000, clears bit 0 of setting0x80and writes it back, and a write that changes nothing writes nothing. Here the latest value was0xFF, so clearing bit 0 changes it. Whether this sync sent a drop is not known, since only its effects were observed, and the path is not read on the 2.5 build. - What writes the
0xFFback is unread. Section 282 named two candidates it did not trace, a settings write driven over USB and theWRITE_MISCselector0x0Athat concordance sends around its erases. - On the 600 and the 650 the latest value is
0xFE, section 282, and not by this project's hand: the 600 has had no flash written by us, and the 650 already held it when section 282 read it, every erase sent to it before then having gone with the flag clear. The pairs of0xFEand0xFFon this 700 are three of its seven; the other four are0xF8and0xFF, and0xF8clears bits 0 to 2, which the path above does not explain. All three units' histories start with0xF8. So what writes setting0x80is only partly accounted for, on any unit. - The safe mode sync appended nothing, and neither did the reinstall, although that sync rewrote the
configuration, so an erase at
0x030000happened in safe mode. That fits the safe mode image lacking the path, and it fits equally a sync that sent no drop, which is unobserved; the reads do not separate the two.
For a writer, which is the part to carry, as a prediction: if the 2.8 build this unit now runs keeps
section 282's path, a configuration write of ours that drops the cache and then erases 0x030000 would
append a record here too, and the store holds 510 before it copies. Neither that path nor the 2.8 drop,
which sets a flag the 0.2 builds do not, is read on 2.8, and section 299 reads both: the
2.8 drop is the 0.2 drop at other addresses plus that flag, and the erase path is the same code. What
setting 0x80 means is unread.
Scope, decision 16¶
Measured on one Harmony 700 running 2.5. The store's format is section 282's, read on the 0.2 builds of the 600 and the 650; that the 2.5 build keeps the same format rests on these reads parsing under it.
Sources checked before the work¶
Section 282 for the store, section 295 for the earlier reads of this unit. Logitech's clients were not read for this: the question was what one sync did, and the reads answer it.
Falsification¶
A read of the staging chip or of page 0xFE that differs across a sync that offered no update, or store
records that were not appended by a sync.
Where it lands¶
tests/test_harmony_700_settings_store.py: the store in every read of the unit, the two records and the three bytes, and the firmware page and staging chip unchanged.- Six of the lab's reads either side of the sync,
h700_prehd_*andh700_posthd_*, intests/lab.pyandpackages/lab; the two staging reads joinPARSEABLE_EXCLUDEDand the golden vectors, their container beingh700_gspm's. The two configuration reads stay unregistered, being measured and not asserted, as the table says.
Section 295 | the archive | section 297. Section 296 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.