Skip to content

314. Which activity a key starts is one entry in a key map that is always installed

Todo todo-compile-650.md 3.11: putting an activity on Watch TV, Watch a Movie or Listen to Music.

Sources checked: this document, sections 34, 39, 145, 271, 272, 273, 289, 290 and 311; the Harmony 600's 0.2 firmware for the select instruction, through section 313's switch routine; Logitech's client for where the choice comes from. The configuration answers the format question and the account answers which key.

Where it is

Base slot 9's entry 1 is one of section 272's prefix entries, which the configuration never selects: none of the action lists in the thirteen Harmony 600, 650 and 700 compiles below carries 1F FF01 either, nor any tagged list. That the firmware installs it is an inference from the activity keys answering from every screen; where it does is unread. Its press entries for the activity keys are the whole story:

key scan press entry in 13 Logitech compiles
Watch TV 5 1F with operand 0xFF00 plus n, select activity entry n, 13 of 13
Watch a Movie 1 the same, 13 of 13
Listen to Music 7 the same in 7; in the other 6, a call to [07 FFFD, 7E p], push the mode and enter the "add an Activity" placeholder p, which is mode 0 on the 600 and 650 and mode 4 on the 700
More Activities, unmeasured 4 a call to [v := 0, 72 r], 13 of 13: v is section 289's device mode marker and 72 the state value map lookup of sections 34 and 39, through a one case record keyed by CurrentLocation, the operand the device list's centre key runs too. Where it leads is unread here

The thirteen are h600_config, calibration_h600, h650_config_region, h650_panasonic_config, the two Harmony 650 and four Harmony 700 power hold compiles of sections 306 to 308, h700_config, h700_config_2 and h700_28_config_region. Every n names an entry handlerSetRoles calls an activity. That select is the instruction the activity menu's rows use too, so a key and a row run section 313's switch routine identically: a second press of the running activity's key gives tag 5. Scan 5 is Watch TV and scan 1 Watch a Movie by the activity each selects in calibration_h600, whose entries are named "Watch TV" and "Watch a Movie", against the account's root button map, section 145, which binds those two buttons to those activities. Scan 7 is Listen to Music by elimination, and scan 4 being More Activities is not measured.

Where the choice comes from

The configuration does not say why an activity is on a key, and nothing in an activity's own bytes says it is a "watch TV" kind. Logitech's account keeps a root button map naming hard buttons and the activity on each; the only capture, the calibration account's, names two, WatchTVActivity and MovieActivity, and its compile agrees on both, section 145. That MyHarmony edits it on its activity button page is client sourced and not checked. An activity on no key is reachable from the menu only.

For a writer

Putting an activity on a key, or moving it, is one four byte entry in base slot 9 entry 1, a same length edit: tag 0x80 plus the scan, operand 0xFF00 plus n, opcode 0x1F. Taking a key away needs the placeholder list, which a configuration holds only while some key is empty.

Scope, decision 16

Measured on arch 14 only. The Harmony One's activity keys are not compared here.

Falsification

A Logitech compiled arch 14 configuration whose activity key enters an activity by any other instruction, or whose entry 1 is selected by something; on the remote, pressing a key after this edit and getting anything but the activity named.

Where it lands

  • packages/codec/test/inventory.test.ts, "an activity key is one select in base slot 9 entry 1": the table above, counted.

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