Skip to content

313. Tag 5 is picking the activity that is already running, and what Logitech puts there

Todo todo-compile-650.md 3.9. Section 273 measured what an activity's tag 5 list writes and ACTIVITY_START_TAG's docstring what it sends, and both left open what fires it. The docstring guessed "the shape of a 'fix it' chain", which this refutes.

Sources checked: the firmware, on the Harmony 600's 0.2 image, the Harmony 700's 2.8 and the Harmony One's 3.4; this document, sections 72, 273, 289, 290 and 311. Logitech's client was not consulted, since the remote decides which tag runs.

What fires it

One routine switches activity, at 0x0E798 on the Harmony 600, 0x0EB7E on the Harmony 700 and 0x24E28 on the Harmony One, and it is the same instruction sequence on all three. It compares the running activity, 0x217 on the 600, with the one asked for, 0x2A8. When they differ it runs the running activity's list with tag 2, copies the new one into the running variable and runs it with tag 1. When they are the same it runs it with tag 5 and nothing else. So tag 5 is what happens when the activity menu, or an activity key, picks the activity that is already on: both select with 1F and 0xFF00 plus the entry, section 289 for the menu rows and section 314 for the keys, and that select is what writes the asked for activity, at 0x0EE5A on the 600. Action 0x07 with 0xFE reaches tag 5 too, by another route, sections 72 and 311. No action list in the lab carries it, none of 31177 action 0x07 instructions over the 95 containers holding action lists, but key entries do: 40 entries of 07 FFFE in 11 containers, every one on arch 8 (Harmony 880 and 885) or arch 10 (Harmony 890 and 895), the keys of a "System Options" page. None is on arch 9, 12 or 14 (Harmony 525, Harmony One, Harmony 600, 650 and 700).

What Logitech's compiler puts there

Measured against the same activity's tag 1 over fourteen Harmony 600, 650 and 700 containers: the thirteen Logitech compiles section 312 names, and h650_post144_region, which carries an activity of ours and whose composer also edited the other three activities' tag 1 lists, leaving their tag 5 lists as compiled. 44 activities, 43 of which follow one rule, and since some containers repeat a setup that is 21 of 22 distinct activities in the first nine containers this was measured on:

  • the start up screen, tag 1's first step, is left out;
  • the list opens by setting S to 1 and closes by setting it to 0, as tag 1 does, S being section 289's start variable, one per configuration and shared by its activities;
  • every other step is one of tag 1's: every input step stays, inline or a call; no power write remains, inline or in a list it calls; the write of CurrentActivityState, which is already right, goes; and section 290's flag F, one variable per configuration, is set to 1 as in tag 1;
  • the working screen step runs directly, where tag 1 reaches it through a list deferred behind 3F D000. Where the configuration has no Remote Assistant, as on h600_config, that step enters the working screen; where it has one, it is the assistant's branch.

The forty fourth is the activity our composer added to the Harmony 650, whose tag 5 points at its enter list, which is section 273's default and starts the whole activity again. So on the remote, picking our activity a second time should show its start up screen again where one of Logitech's does not. Whether it also resends power codes turns on whether writing a variable's current value fires its transition, which is unread. Both are predictions for the bench, not measured.

For a writer

Tag 5 for a composed activity: S := 1, the enter list's input steps, F := 1, the working screen step, S := 0. No start up screen, no power, no CurrentActivityState, no 3F D000.

composeActivity builds this on arch 14 when it is given a screen and no tag 5 list of its own. The input steps are the targets whose variable's property is Input, inline and in the targets' order, and the working screen step is 7E with the working mode, since a composed activity has no Remote Assistant branch. Checked on h650_config_region, h600_config, calibration_h600 and h700_config: each host's first Logitech activity is rebuilt from the power and input writes of its own tag 1, and the composed tag 5 passes the same predicate as the 43 and equals the Logitech one step for step, the same variables written with the same values in the same order, once a call to a list of input writes is read as the writes it holds and the working screen step is named rather than compared. That step is 7E in both on h600_config and the Remote Assistant's branch in Logitech's on the other three. Without a screen, and on every other architecture, the composer still points tag 5 at the enter list.

On the bench, todo-compile-650 3.9

Measured on the Harmony 650 with the Flirc receiver, one write of Logitech's compile of the starting setup with Plasma kijken composed onto it (reads/20261008T093857Z-ir-test-harmony-650-picking-the-running-activity-again-and-all-off-with-everything-off.json). The written file's two tag 5 lists, read back out of it: TV kijken's, Logitech's, writes LG_TV_Input 3 and Denon_Input 0 through a list; Plasma kijken's, ours, writes Plasma_Input 3 inline. Both open with S := 1, close with S := 0 and hold the working screen and nothing else.

  • Plasma kijken started from the menu: KPN PowerToggle, the Plasma's PowerOn (seven frames), and 6.5 s later its InputHdmi1. Picked again from the menu: no frame at all, and no problem marked at the step, whose instruction predicted no "Starting" screen.
  • Watch TV from Plasma kijken: the LG's PowerOn, the Denon's power code, the Plasma's PowerOff, the Denon's InputCbl/Sat and the LG's InputHdmi1, and nothing for the KPN box, which both activities keep on. Watch TV again: the LG's InputHdmi1 and the Denon's InputCbl/Sat again, no power.

So whether a second pick resends an input is decided by the device's input variable and not by the tag 5 list, and section 332's walker predicts both halves. The Plasma's InputType takes its values through transitions from -3, so the second pick's write of 3 over 3 fires nothing; the LG's Screen and the Denon's Input take theirs from -2, which fires on every write. The step section 332 composes after the Plasma's power on, InputType reset to 7 silently, is what makes its first start a change, and a second pick has no power on to run it. Our composed tag 5 and Logitech's behaved alike, each according to its devices; the one observation that would have told them apart, a start up screen on the second pick, was not reported for either.

Scope, decision 16

The switch routine is read on arch 12 and arch 14. The Harmony 525's image is not checked, and the arch 8 image was matched by pattern only. The compiler's rule is measured on arch 14 alone; the Harmony One's tag 5 lists are not compared here.

Falsification

A Logitech compiled arch 14 activity whose tag 5 holds a power list, the start up screen or the activity write; an image whose switch routine stores 5 on the differing arm; or, on the Harmony 650, re-picking a Logitech activity showing its start up screen.

Where it lands

  • tests/test_interpreter.py, TestReselectingTheRunningActivityFiresTagFive: the compare and the tags 2, 1 and 5 on three images.
  • packages/codec/test/inventory.test.ts, "picking the running activity again runs tag 5": 43 of 44, and the misfit named. A sentence audit of the first draft widened it from nine containers to fourteen, added the inline power and input checks, and corrected the start variable and F, which the draft called per activity. Its predicate lives in packages/codec/test/tagfive.ts since the composer started building the list, so the corpus test and the composer's test run one copy.
  • packages/codec/test/compose.test.ts, "picking a composed activity again on a Harmony 650, 600 and 700 runs the tag 5 list Logitech compiles": the composer's half, on four hosts.
  • ACTIVITY_START_TAG's docstring corrected in place.

Section 312 | the archive | section 314. Section 313 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.