242. A device from Logitech's catalogue is on a Harmony One and the television answers it¶
Date: 3 September 2026. Status: performed once, on the spare Harmony One, observed by Danny at the television. The write is measured; the reading of the screen the remote showed in between is one observation and is marked as such.
Phase 9's goal is reached. Section 241's candidate, the spare's own configuration plus an LG
television with six commands, was written to the spare by packages/corpus/bin/write-config.ts, 25 of
the configuration's 26 blocks, each erase measured against both neighbours, each block read back, and
the whole configuration read back byte for byte identical to the file. On the remote the device list
has a third page with one row, LG, with a television icon and 3/ at the top left, as the render
predicted; pressing the row opens a page of six pads; pressing the first pad switched the television
on, and pressing it again switched it off. So a device chosen out of Logitech's catalogue, composed and
written by this project's own code, is on a remote and drives its device.
What did not work the first time¶
The first attempt timed out halfway through its first block. The block at 0x40000 was erased,
its first 32 KiB written, and the second transfer failed with an I/O timeout from the host's HID
layer; the remote then re-enumerated under a new path, so it rebooted. Its application ran normally
afterwards, software type 0, and it answered a version request. Why the transfer timed out is not
known: the same sequence went through on the second attempt, and the five writes of 1 September went
through first time. The writer's own advice was wrong and is fixed. The failure message says to
rerun with the same arguments, and the rerun would have refused, because the compare accepted a block
only when it matched the dump byte for byte, and the half written block matched neither the dump nor
the file. Flash only clears bits and a report lands whole, so an interrupted write leaves every byte
either what the file puts there or erased, and nothing else; the compare recognises that state now,
byte by byte rather than as a prefix since a byte the file wants at 0xff cannot say which, and
reports it. The second attempt then ran clean.
The remote said it was unprogrammed until its battery came out, and that is the observation to carry. On the cable after the write it showed a USB connected message with no image; unplugged, it showed the screen that sends the user to the website to program it; after a battery pull it booted on the new configuration and showed the third page. The reading offered here was that the message was the remote's memory of a bad boot rather than the state of its flash. It was refuted the same afternoon by the second write: it appeared again after a write that did not break off at all. So the screen follows a write while the remote is connected, whatever the write's outcome, and what is left to test is whether the remote's own bookkeeping in RAM outlives the flash it describes.
What is wrong on the page, and why¶
Every label on the device page starts at its pad's middle and runs off the right edge, so
PowerToggle reads PowerT. Two causes, one a defect and one a naming choice. The defect is section
241's stale address in one more place: the font table the label is measured through was read at the top
of composeDeviceScreen, four relocations before the measurement, so every label measured zero wide
and was centred as if it were, from the pad's middle. Read afresh now, and compose.test.ts asserts
that every label starts and ends inside its pad and is centred there, which fails with the stale table.
The naming choice is that the tool used the catalogue's command names as labels, and PowerToggle is
wider than the 81 pixel pad in any position. The composer refuses a label wider than its pad now, and
the tool takes --labels, one display label per command.
So the page on the spare is the one this section describes, labels and all. The next write replaces it with centred, short labels, and it is a write of the whole configuration again, since the labels change the page's length.
The clock was wrong, and the checklist said it would be¶
After the battery pull the remote showed Sun 3:42. The configuration written carries its input's
build stamp, Saturday 22 August 2026 at 15:10:25, because neither the composer nor the tool stamped
the save, and a Harmony One resets its clock to that stamp at every boot, section 111: 15:10 plus the
half hour since the battery pull is 15:42, shown in twelve hour form. So the rail that a save is
stamped with the moment of saving, base slot 3 and the clock's seven state values, fired exactly as
written, and compose-device.ts applies saveEdits now. The day name is a lead. The stamp's
weekday byte is 0, which section 21 reads as Saturday, days since 1 January 2000 modulo 7, and the
remote showed Sunday. The byte is what the corpus says it is; what the firmware names it is a table
this project has not read, and the second candidate, stamped Thursday 3 September with a byte of 5,
shows either Thu or Fri at its first boot and settles it.
Settled by section 322. The remote was right: the weekday counts from Sunday and the day from 0, so the stamp above is Sunday 23 August 2026, not Saturday the 22nd. The save of 3 September stored a day of 3 and a weekday of 5, which the firmware reads as Friday 4 September, a day ahead of the date it was saved on.
The existing activity still works as it did, so the other check is ticked.
The second candidate, and the stamp works¶
work/20260903-one-spare-plus-lg-2.bin, from the same 30 August input: the same device with labels
Power, Vol+, Vol-, Ch+, Ch- and Mute, every one centred on its pad in the render, stamped
2026-09-03T11:22:35, 1668291 bytes, 25 blocks again. It is on the remote and its clock is right,
observed by Danny after a battery pull (by section 322 that stamp is Friday 4 September to the remote,
so what was right was the time of day; whether the date was looked at is not recorded), which is the check the rail exists for: base slot 3 and the
clock's seven state values stamped at save time, and a remote that resets its clock to that stamp at
every boot then boots on the correct date and time.
The labels are readable on the remote, so both defects of the first write are closed.
The second write cost five attempts and taught four things¶
| attempt | what happened |
|---|---|
| 1 | a read during the compare lost a chunk, section 223. Nothing erased |
| 2 | two blocks erased and written, then a neighbour baseline read returned 1798 of 32768 bytes. The remote re-enumerated, so it rebooted under the reader |
| 3 | GET_VERSION answered with a flash data reply: the dead session's stream was still queued |
| 4 | run in the background, killed after eight minutes on a log that had stopped moving |
| 5 | refused: the remote and the dump differed at 0x70000, 0xff on the device |
A session inherits the previous session's stream, and the drain has to run before the first
question. Section 223 drains after a failed read, which cleans a pipe this session dirtied; it
cannot clean one a dead session left, and a handle dies with a remote that re-enumerates. So
HarmonyRemote.drainLeftovers exists and the writer calls it before it asks anything.
A quiet log is not a stopped write, and killing one is how a remote reaches a state no dump describes. Attempt 4 was killed on the reasoning that eight minutes on one compare read was a stall. The flash afterwards held 24 of the 25 blocks of the second candidate, byte for byte, which the logs of every attempt account for two of. The flash is the half that was measured, twice, by two independent reads, and section 243 measures the accounting and reconstructs how the record went missing. What follows for practice is the rule rather than the explanation: a read may be killed, a write is killed only once the remote has stopped answering, and the state afterwards is unknown until a region read says otherwise.
0x70000 was erased by nothing this project logged. Attempt 2's neighbour check verified that
block intact after erasing its neighbour, no attempt's log records an erase of it, and the block reads
as 65536 bytes of 0xff in two sessions. The standing hypothesis offered here was the remote itself,
on the ground that section 47's log area writer is disarmed by a good configuration on arch 12 and the
remote spent that period holding a configuration whose checksum did not match.
Section 243 refutes it from the firmware: the application has exactly one route to an external
erase and its address arrives in a USB report, so the remote cannot erase its own configuration region
at all, and programming, which it can do unasked, only clears bits. The erase was ours and the record
of it was lost. Section 243 also measures what the flash says, which is 23 blocks changed against two
in the logs, and it is why the writer keeps its own journal now.
The screen after a write is not a memory of a bad boot, which this section said after the first write. It appeared again after the second write completed cleanly, and cleared again with a battery pull. So it follows a write while the remote is connected, whatever the write's outcome, and the reading to test is that the remote's own bookkeeping in RAM outlives the flash it describes.
The registered dumps grew by two, the state after the first write and the mid write state, which is the wart section 237 named: a compare that makes a write recoverable is against a named lab image, so every write leaves the remote matching none.
What would falsify it¶
The television not answering a command whose number the configuration already sent, which would put the fault in the page rather than the code; it answered. The remote failing to boot on the new configuration; it boots. And the screen reappearing after a clean write, which would refute the reading above. Section 244 read what that screen actually says: not that the remote is unprogrammed, but go to the website to update settings, one of thirty status screens the firmware ships, and the two the table keeps for a configuration that is wrong are different screens.
Where it lands¶
packages/corpus/bin/write-config.ts: the compare accepts an interrupted write of the file being written and says so.packages/codec/src/compose.ts: the label is measured through a font table read after the relocations, and a label wider than its pad is refused.bin/compose-device.tstakes--labels.packages/codec/test/compose.test.ts: every device page label inside and centred on its pad.- The lab: both write logs beside the candidate's note,
reads/20260903T-one-spare-plus-lg-write-attempt1.logandattempt2.log.
Section 241 | the archive | section 243. Section 242 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.