263. One device removed, and which infrared group belongs to which device¶
Danny took the Playstation 3 off the bench Harmony 350 and changed nothing else, so this container and
section 262's differ by exactly one device. That is what the previous pair could not offer: it moved
the device count and the favourite channels together, so two slots grew and neither could be
attributed to either. Seven questions were written down and committed before the read,
docs/predictions-arch16-programmed.md, and six are answered yes.
| question | answer | |
|---|---|---|
| Q1 | raw slot 6 goes from five pointers to four | yes, and its length is devices plus one |
| Q2 | raw slot 8 goes from eight to six | yes, and its length is devices times two on this model, which section 264 refutes as a general rule |
| Q3 | the archive names three devices and drops the Playstation | yes |
| Q4 | one infrared group empties, and which one says who owns what | yes, and the answer refutes an earlier candidate |
| Q5 | the number sender is untouched | yes, one record, since the favourites are on a device that stayed |
| Q6 | the file is smaller again | yes, 68985 bytes against 83840 and the factory 121251 |
| Q7 | the exact cover still holds | yes, 51 of 51 and 46 of 46 |
The mapping, and section 261's candidate is dead¶
The three groups holding records were 51, 46 and 45. After the removal they are 51, 46 and nothing, with no renumbering, so the Playstation owned group 2. The digit tables of section 262 already put the set top box on group 1. So, with the archive's own device order read off the shorter file, where the three surviving names are unambiguous by length:
| archive device | its commands | its group | that group's records |
|---|---|---|---|
| 0, the Playstation | 59 | 2 | 45 |
| 1, the set top box | 38 | 1 | 46 |
| 2, the Chromecast | 0 | none | |
| 3, the television | 63 | 0 | 51 |
So the k-th named device is not the k-th non-empty group, which section 261 recorded as a candidate on one container's worth of evidence and which this refutes. The order is the reverse: the devices that carry codes, in the order the archive names them, own groups 2, 1 and 0. That is three points on one remote, so it is a better candidate than the one it replaces and not a rule. And a second model disagrees with it on the counts, section 264, which is why it stays a candidate: a Harmony 300's two devices pair far more tightly with their groups under the forward order.
And the anomaly section 262 reported survives the mapping being settled. The set top box is named with 38 commands and its group holds 46 records. Every other device here is named with more commands than its group holds records, 59 against 45 and 63 against 51, which is what a codeset larger than what an activity binds looks like. One device having it the other way round is unexplained, and it is now unexplained about a specific device rather than about an unknown assignment.
What raw slots 6 and 8 count, and why neither is in the map¶
Raw 6 moves one for one with the devices and its length is devices plus one, four, five, four across the three containers. Raw 8 moves two for one and its length is devices times two, six, eight, six. The first version of this section said "one entry per device", which is short by one and is the kind of error that would make a writer allocate a table too small, so it is corrected here rather than quietly. The raw 8 arithmetic is this model's and not the architecture's, section 264: a Harmony 300 with two devices holds zero entries there where it predicts four, so it was an artefact of the one model it was measured on. Raw 6 survives that test.
Those are measurements about what a slot counts, and a slot map entry is a claim about which
base slot it is, which is a different question. The obvious cross architecture route was tried and
it fails: no count prefixed base slot in the corpus has a length of devices plus one or devices
times two on more than three of the thirteen containers that state both counts, and base slot 6, which
would have been the guess from its name, has a u24 count and lengths from 75 to 374 rather than a
u8 count and lengths of four or five. So both stay undefined in ARCH16_SLOT_MAP and the
measurement is recorded in its docstring instead. Naming them wants the firmware, which is the route
section 259 used and which has fourteen call sites still unattributed.
What that search did establish is about base slot 5. Its group count is exactly the device count
on 13 of 13 containers that state both, on arch 8, 9, 12 and 14. Arch 16 does not do that: all three
of its containers declare eight groups whatever the device count, and eight is the
MaxDevicesPerAccount Logitech's own product table states for that skin. So on this architecture the
infrared table is allocated at the maximum with the unused groups empty, where every other
architecture here sizes it to the configuration. That is why the archive naming three devices sits
beside a table of eight groups, which had looked like a discrepancy.
The Chromecast is worth one line here, because it is the control nobody arranged: it has no infrared commands at all and it still occupies an entry everywhere the devices are counted. So both slots count devices, and not devices that can send something.
And this remote can hold only one activity, which Danny said and which Logitech's own product
table confirms: skin 104 states MaxActivities: 1. Two other fields of that record are worth having
because both are confirmed by what he did rather than merely stated: MaxFavoriteChannels: 5, and he
added exactly five, and MaxDevicesPerAccount: 8, which is the group count above. So the extra entry
in raw 6 cannot be tested by adding a second activity on this model, and whether it is the activity
is a question for the firmware or for another architecture.
Section 262 | the archive | section 264. Section 263 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.