Harmony 300 and 350: memory¶
Where things live on both models, stated once. These remotes keep a small filesystem: the program, a few records about the remote itself, and one file holding the configuration, which is the devices and the infrared codes a person set up. The layout below comes from the firmware's own file table, and the configuration from the files a remote serves; nothing here was read as raw memory off a remote.
The file table¶
The 1.4 firmware carries its filesystem as data: a pool of names at 0x00910A and a table of 23 records of
11 bytes at 0x0092A6, each giving a name a medium, an offset and a size12.
| path | medium and place | what it is |
|---|---|---|
/fw/bootloader |
internal 0x000000, 4 KiB |
the bootloader |
/fw/safemode |
internal 0x001000, 32 KiB |
the safe mode image |
/fw/normalmode |
internal 0x009000, 89088 bytes, and the external medium at 0x000000, the same size |
the application, resident and stored, the arrangement the Harmony 525 has too |
/fw/embeddedcfg |
no row: a name in the pool that no row of the table and no instruction points at | nothing this firmware serves, so there is no configuration to fall back on |
/cfg/usercfg |
external 0x020000, 256 KiB |
the user configuration |
/cfg/log |
external, the top 128 KiB of the part, placed at start from the flash part's identity: 0x060000 on a 512 KiB part |
the log |
/sys/guid, /sys/pid, /sys/sku, /sys/battery, /sys/flags0 to /sys/flags3 |
seven 64 byte records from internal 0x01F400 |
the unit's records; /sys/guid identifies a unit |
/fw/config_bits |
internal 0x01FFF8, 8 bytes |
the processor's configuration words |
/sys/sysinfo |
dynamic, nothing stored | identity text built on request |
/ir/ir_cap |
a stream | infrared capture |
Media: I internal program flash, 12 files; E the external medium, 3; D dynamic, 7; S a stream,
11. The external medium's part and size are not checked4; concordance reported 512 KiB for
a 3505. The 1.4 firmware knows four flash identities, two of 512 KiB, one of 1 MiB and one of 2 MiB, and places the log
from them3.
This table listed /fw/embeddedcfg as a file with no place until the write path was read: its name is
in the pool, and none of the 23 rows points at it, so it is not one of them3.
The /cfg/log row is the firmware's own: the table states no place or size for it, and the code supplies
both at start3.
An open of /cfg/usercfg for writing erases 0x020000 to 0x07FFFF, the configuration's 256 KiB and
the 128 KiB after it, which on a 512 KiB part is the log, usb.md3.
The configuration container¶
The container's general form is the configuration format's; this is what holds on this architecture.
| value | evidence | |
|---|---|---|
| cookies | GSPM, then LWJL after the pointer table, then PTYY |
6 |
| pointer slots | 15; the header byte 0x0F is the count, which is how "format 1.4" turned out to be a slot count all along |
6 |
| the marker's offset | 0x47, which is 0x0B + 4 * 15, hardcoded in the firmware's validator |
7 |
| base address | 0x020000, the file's place on the external medium |
6 |
| slot map | raw slot to base slot in ARCH16_SLOT_MAP, packages/config/src/container/gspm.ts: the name tree, the architecture record, the log area, the clock record, the infrared database, the action list table, the parameter block and the number sender are named; raw 13 is a metadata archive that names devices and commands, the metadata archive and the container's slots for this family. Raw 5, 6, 8, 9, 12 and 14 are read in the firmware, below, and of those the map carries raw 9 alone, the state variable table, which a device's power on delay is read through |
8, 9, 10, 19, 21 |
| the infrared table | allocated at the model's maximum device count on every configuration Logitech's current service compiled, four groups on a 300 and eight on a 350, unused groups empty, unlike every other architecture; one compiled for a 350 in 2017 holds seven, so the allocation follows the compiler, as raw slot 8 does. This said eight on every 350 until that configuration's groups were counted | 11, 12, 45 |
| which group a device takes | the position of the device key it is on, on both models: the first key 0 to the fourth key 3, a short press on the 350, and a long press 4 plus the place; not the metadata archive's name list, which is in the account's order, ascending DeviceId32. This said the list was alphabetical, which holds on the two Harmony 300 files and on none of the five Harmony 350 files; below |
13, 25, 35, 38 |
| what is stored | exactly the codes some action list sends | 14 |
| raw slot 8 | the timer table, two records per device a key selects on a configuration Logitech's current service compiled, which is twice the devices unless a device is on two keys, and empty on one compiled in 2011, so it follows the compiler and not the model, below. This said twice the device count until a configuration with a device on two keys held twelve for five, a device key and its long press | 12, 13, 20, 35 |
| the order of the sections | raw slot order, with the infrared groups directly after the clock record and the metadata archive last, up to the trailer; layOutContainer rebuilds all seven Logitech configurations read byte for byte, layout |
22 |
A file states its size four bytes short: /cfg/usercfg reports end_addr - flash_base, and the read
pads past it rather than serving the PTYY marker, so a configuration read as a file needs that marker
appended to be byte identical to concordance's copy, measured on both models1516. The firmware
states it that way: the open for reading computes the size as end_addr - 0x020000, and as zero when that
field is erased3. A write has to put the marker back, since the validator a
remote runs at start demands it, firmware.md3.
A configuration from a different generation of the compiler is not a sample of the same population. Raw slot 8's emptiness on the 2011 configuration was first read as a property of the model, and a second configuration of the same model, compiled by the current service, holds eight for four devices13. Each configuration states its own build date, so the check is available in every one.
The six slots the firmware was read for¶
Three of the six are base slots already described on the other architectures, one is this family's own, one is a feature no configuration uses, and one is never read. The 1.4 firmware seeks each through its section seeker, and what the code does with the bytes is what names them19:
| raw slot | what it is | what a person meets |
|---|---|---|
| 5 | the start up event table, this family's own: a u8 count, then one action list instruction per event, 11 in every configuration. The firmware queues entry 1 once, when a configuration passes the validator at start, and no other entry is raised by any direct reference in the image1920 |
entry 1 installs the key maps and selects the map of the device on the lowest infrared group that holds one, so on that reading the remote starts in that device's mode, which is the TV key's device wherever that key has one, below19201340 |
| 6 | base slot 9, the key map table: a u8 count and pointers to tagged lists, looked up through the same stack, with the same leave and enter tags 2 and 1, as on the Harmony 600, 650 and 70019 |
each device key selects its device's map20 |
| 8 | base slot 12, the timer table, its seven byte records and its four concurrent timers19 | on the Harmony 350 each device key's press starts two per device on the key, of 400 and 600 ticks, about 0.40 and 0.60 s, which switch that key's one of four output pins, below; what the pins drive is not checked20354 |
| 9 | base slot 13, the state variable table, its header of four words and its seeder, 0xFE fill to 0xC0 included, as on the Harmony 60019 |
each device's Power variable, whose switch on carries the device's power on delay, below21 |
| 12 | a digit entry table, no base slot: an instruction arms an entry, digits sent by opcode 0x74 are collected, and the entry turns them into a number or matches them. Two zero bytes in every configuration, so no entry, and none issues a digit1920 |
nothing |
| 14 | NULL in every configuration, and no direct reference in the image reads it; a computed jump was not excluded1920 |
Raw slot 6's extra entry is not the activity. It is entry 0, and it is the key table after LWJL, the
one map always looked up last: it holds the device keys and the activity's key. Entries 1 to N are the
devices' maps, one per device, each selected by a device key's binding, and by two where one device is on
two keys; a map may also send another device's codes. This said each map is selected by one binding,
until a configuration was read with a device on two keys35. Where one device has no infrared commands, exactly one map is empty. The activity has
no map of its own on this family: it is one binding in entry 0 that sends codes or sets the devices' state variables and then
selects one device's map, which matches the Harmony 300's PartiallySetupActivities and the description
of it as a shortcut2013. Its tag is a press of code 6, which is Watch TV, the only key the
face gives an activity, the Harmony 350's keys37.
So device mode lives in base slot 9 here, where on the models with a screen it is the device's own mode record, modes and keys: this family has no mode table for it to live in19.
Every send is paired with a 0x7C naming the same device, 602 of 602 lists over the five
configurations of this architecture, some of them as a third shape, {0x07, 0x7D, 0x7C}, beside the plain
pair17. The rule is every architecture's, the action language.
Which infrared group a device takes¶
A device takes the infrared group of the device key it sits on, by the key's place among the four:
on a Harmony 300 the keys printed TV, Cable/Sat, DVD and VCR/Aux give groups 0, 1, 2 and 313, and
on a Harmony 350 the short press of the same four scan codes gives the same four groups, which by the
shared moulding are the keys printed TV/Media, Cable/PC, AVR/Game and
DVD/Music25. A group whose key holds no
device stays empty, so a configuration can hold group 3 with group 2 empty: the groups are not filled in
order25. On a Harmony 350 the bottom left key selected the device on group 2 and the
top left key the device on group 0, heard with an infrared receiver24; the top right
and bottom right keys follow from the 300's order, since the two are one moulding running near identical applications,
and were not pressed with a device on them4. This said no device key had been pressed on a
350 until that run.
Nothing in the key path picks a group. A key press reaches the configuration as an event looked up in
the key table, and a device key's binding there selects the key map its operand names; the group is
whatever that map sends from, so the rule is the compiler's, stated in each
configuration2319. The 1.4 image, read as Logitech serves it for the 350 and named
by Logitech for the 300 too, queues a held key's scan code with one of three event types: press
0x80 | scan, release 0x40 | scan and, once the key has been held for the hold time, the held event
0xC0 | scan, which fires once and is followed by no release,
key codes23. Its
other key events are fixed codes, not a held key's23.
The four device keys bind scan codes 5, 1, 7 and 4, in the order above, on both models; on the Harmony 300 that order is tied to the printed keys by which device was put on which key1325. Logitech's compiles for a Harmony 300 select the device on the key's press, and its compiles for a Harmony 350 on the key's release. This said the remotes differ in that until a configuration compiled for a 350 ran on a Harmony 300 and the long presses chose their second devices through the held event: the firmware raises the same events on both, and which one selects is the configuration's binding, the README48. In a 350's compile the press selects nothing: it switches one of the four output pins and starts two timers that switch it again, the timers of the six slots25.
A long press device takes group 4 plus the key's place, on both configurations read that have
one. Every 350 configuration Logitech's current service compiled allocates eight groups, and the one from 2017 seven1145. The first read gives two keys a
second device: the top right key's long press selects a device that sends from group 5, and the bottom
left key's long press selects the device already on the top right key's short press, which keeps its
group 1, so a device on two keys has one group35. Of the rules the
short presses left open, 4 + place predicts 5 for the top right key and fits; the lowest group no
short press uses predicts 4 and an interleaved numbering 3, and neither fits. The second has a long
press device on every key, groups 4, 5, 6 and 7 on the top left, top right, bottom left and bottom right
keys, which is 4 + place four times, and on a Harmony 350 each key held long chose the device whose group
the next key was heard sending from38. This said one configuration was below two
samples and the rule not checked beyond it until then. Logitech's client holds a
device key as one record, UserModeMappingInfo, with a short press device and a long press device,
its data model26. How the long press
is stored and timed is below.
A device key and its long press¶
A device key selects its short press device when it is let go and its long press device when it is held, in a configuration compiled for a Harmony 350; in one compiled for a Harmony 300 it selects as it goes down. Which of the two a remote does is the configuration's, on both models48. The firmware ends every press in one of two events, a release or, once the key has been held for the hold time, a held event and no release, firmware.md34. On every configuration compiled for a 350 that was read, the binding in raw slot 6's entry 0 that selects a key's device is its release, and where the key has a second device a binding of its held event selects that one; the press only cancels the timers, switches one of the four output pins and starts timers. On both configurations compiled for a 300 that were read, the press switches the pin and selects35. A select ends the hold, so a device key bound that way never raises a release or a held event34.
| compiled for a Harmony 350 | compiled for a Harmony 300 | evidence | |
|---|---|---|---|
| the short press device | the release, 0x40 and the scan code: 07 FFFB, which cancels all four timers, then 1F FFnn |
the press, 0x80 and the scan code: 1F E9p2 then 1F FFnn |
35 |
| the long press device | the held event, 0xC0 and the scan code: 07 FFFB then 1F FFnn, only on a key that has one |
none | 35 |
| the press | per device on the key, 07 FFFB, 1F E9p2 and two 1F EB starts, whose timers run 400 ticks to 1F E9p0 and 600 to 1F E9p2: one pulse of the pin. A key with two devices carries the group twice, and the second 07 FFFB cancels the first group's timers |
the binding above | 35, 34 |
| scan codes of those bindings | 1, 4 and 5 on a configuration with three devices, and 7 with four or more | 1 and 5 with two devices, 1, 4, 5 and 7 with four | 35 |
the pin p each switches |
2 for scan 1, 3 for 4, 0 for 5 and 1 for 7 | the same | 35 |
| the key's place | scan 5 top left, 1 top right, 7 bottom left and 4 bottom right, the order of the Harmony 300's keys, and all four heard so on a Harmony 350 and on a Harmony 300; what is printed on the four keys differs between units, so a key is named by its place | the same | 35, 38, 47 |
| the hold time at start | 3F F00A, parameter 0 at 10, about one second |
the same | 35, 36 |
One configuration read has long press devices, two of them, on scan codes 1 and 7, the top right and bottom left keys, and it sets the hold to 10 like every other, so on it a long press selects after about a second, where Logitech's guide says two3536. Its timer table holds two records per device a key selects, twelve for five devices on six key assignments, since one device is on two keys, the short press of one and the long press of another35. That the remote meets the long press at a second is read in the firmware and that configuration, not watched on a unit4.
A long press was watched selecting the second device on a Harmony 350 holding a configuration with two devices on every device key: each key held long chose its second device's map, which the next key was heard sending from, and each short press its first38. How long each key was held was not recorded; about two seconds was asked. This said a long press was read and not watched until then.
A key with one device selects nothing on a long press. No configuration read binds the held event of a key without a second device, so held past the hold time it ends in a held event nothing binds, the release that would select its device is never raised, and the remote stays in the mode it was in3435. Not watched on a unit either4.
What a device's map borrows from another¶
A device's map is not only its own commands. Logitech's service gives some keys of a device's map another device's command, and its compiler binds them to the very list that device's own map binds, so pressing the key in one device's mode sends another device's code32:
- Input sends the input command of the device on the TV key's short press,
InputNext,InputorSource, on every device's map, that device's own included; where that device has none of the three, no map binds Input. All seven Logitech configurations of the family read agree32. - Volume and mute are the device's own on a television or a receiver; on any other device they are the first receiver's of the account, else its first television's. All eight devices of one compile agree, and the service's own maps for that account state it; on the other configurations 9 of 12 devices that are neither agree, two keeping their own on configurations compiled for earlier owners and one being a map that is the activity's32.
What a Harmony 350 compile stores and no key sends, each with a send list nothing calls: a device's Teletext, which the service puts on a key the Harmony 350 does not have, 11 of 11 devices with the command32; and for some device types, televisions, set top boxes and media players among them, the ten digits' one block copies, which a favourite channel sends where there is one, 25 of 25 devices agreeing by type32. A television's fifth favourite key holds its Home or its Internet, on 4 of the 5 televisions with either32.
Two more kinds are stored the same way, read over every send list nothing calls in twelve current compiles of the family33:
- The command a device finishes a channel number with, the catalogue's channel tuning finish, as a one block copy beside the digits' copies: on both devices that state one, in all 7 compiles holding either, and no other uncalled list sends a copy of anything but a digit33. That a favourite channel on such a device would send it after the digits is not checked4.
- A television's Back, whole, where no key of its map binds it, its Exit and previous channel keys holding other commands: in 7 of the 8 compiles with such a television, the eighth being the one whose setup holds that television alone, which stores no Back at all; a video recorder in the same position stores none. Each of those two conditions rests on one compile, and every such television was also the device on the TV key, so which of the two the rule is about is not told apart33.
On a Harmony 300 a television's Home or Internet, which the 350 puts on its fifth favourite key, is stored the same way, on 2 of 2 televisions with either, since that keypad lacks the key33. One uncalled list of the twelve compiles fits none of these: a second copy of a television's OK, on a compile made for an earlier owner, whose catalogue entry states no channel tuning33.
Every device's power variable has two lists nothing calls, on both models: each sets the variable without
running its transitions, the silent flag 07 FFFF and then the write, one to 0 and one to 1. All 27 devices of
the seven configurations read have the pair, none of the 54 lists is called, and no other list opens with the
flag32. What would run them is not read; on the other platforms a list of this shape resets a
variable without sending anything4.
The start up selects the TV key's short press device. Entry 1 of the start up events calls a list that ends by selecting that device's map, the same list entries 2 to 4 call without it, on all seven configurations32. Where the TV key holds no device the start up selects another: of 13 configurations, the one whose top left key is empty holds one device, on the bottom left key, and selects its map, so the rule that fits all 13 is the device on the lowest infrared group that holds one. Which of several devices would be chosen with the TV key empty is not checked, since that configuration has only one404. This said the TV key's device without the case of an empty TV key until that configuration was read.
The sections every configuration holds alike¶
232 bytes of every configuration are the same whatever its devices, on both models: the log area, the parameter block, the digit entry table, the start up events and their lists, and the lists of the four send events. In 13 configurations, three of a Harmony 300 and ten of a Harmony 350, from 2011 to Logitech's current service, they differ only in where they sit, in the numbers of the lists they call and in the map the start up selects; nothing differs by model40.
| what | the bytes | evidence |
|---|---|---|
| the log area, raw slot 2 | a u16 capacity of 8192 records, then the region 0x070000 to 0x080000 as two u24: 8192 eight byte records are exactly that 64 KiB. The firmware never seeks it, the container |
40 |
| the parameter block, raw slot 10 | five groups, [60], [80], [600, 602, 766, 769], [1800] and [0], after a table of five pointers. No reading of them by the firmware is known, and the hold time is set by the start up instead |
40, 4 |
| the digit entry table, raw slot 12 | a count of zero, above | 40 |
| the start up events, raw slot 5 | eleven calls: entries 0 and 5 to 10 an empty list, entries 1 to 4 a list each, numbered 0 to 3 in every configuration read | 40 |
| the start up's lists | each of the four calls one list, 3F F00A (the hold time at 10), 1F FE00 and 1F FEFE, and then the empty list; the first then selects a map, above. Six lists |
40 |
| the send events' lists | what firmware.md reads as one list per event is three in the file: the list the tag binds calls a second and then an empty list and ends 07 FFFA; the second loads the byte register with 0 and calls a third; the third is the test of variable 17, 71 8111, and the pin switched both ways. The four share one empty list, never the start up's. Thirteen lists |
40 |
Five of the sections are a count and then three byte addresses, and the count's width is fixed: one byte for the infrared table, the key map table, the timer table and the number sender, two bytes for the action list table. All seven configurations of the family it was checked on are written again byte for byte from those widths and the pieces each entry names. The infrared table's count is the model's allocation, eight on a Harmony 350 and four on a European Harmony 300, whatever the devices, on every configuration the current service compiled, the container; an unused group is three zero bytes4345.
No configuration read holds no device. Of the 13, the fewest devices is one, in two configurations compiled for a Harmony 350, and the next fewest two; so what Logitech's compiler writes for a remote with none is not read45. In the three smallest, every part that names no device and not the activity is one of the parts above: the key table holds the send events' four entries and otherwise only the devices' keys and the activity's, every action list that names neither a device nor the activity is one of the start up's or the send events', the state records past the firmware's eighteen are the devices' and the activity's but for the compiler's two byte variable, and the metadata archive's text is the same frame with its device elements taken out45. A Harmony 350 takes a configuration that holds no device, one built of those parts alone and a start up that selects no key map: it starts, answers its keys without hanging, and sends nothing from the four device keys, Watch TV, Power, the volume keys, the arrows, the digits or a long press44. What a Harmony 300 does with one is not checked4.
A device's power on delay¶
After switching a device on, the remote waits before it sends that device anything else, and the wait is stated per device in the configuration. A person would meet it with the power key in a device's mode: the power code goes out, and a command pressed for the same device straight after it waits. The firmware queues the wait behind the power code and counts it down only while nothing ahead of it names the same device27. A unit is a tenth of a second: on a Harmony 350, a wait of 30 held the next command to the same device 3.17 seconds after its power code ended and a wait of 100 held it 10.21 seconds, the same 0.16 seconds besides in both28. On a Harmony 350, a power code to another device was not held behind it, in one activity switching three devices on: the second device's power code reached the receiver 0.19 seconds after the first's, inside the first's wait of ten seconds, and the third's 0.50 seconds after that, inside the second's wait of two, while the second device's own next code arrived 2.54 seconds after its power code38. The other images are read to send that way; a key pressed for another device inside a wait was not tried, and on a Harmony 300 it rests on the shared image4. This said a command to another device was not checked on this image until then.
Where it is: the device's Power state variable, going from 0 to 1, runs a list that calls the list
sending the power code and then carries one 0x7C naming the device's group, with the wait as its low
byte. That is how the Harmony 880 and 885, the Harmony 525 and the Harmony One keep it,
state.md. 13 of
the 14 devices that send a code over this family's five configurations carry one 0x7C there, with values
of 15, 50 and 80; the fourteenth carries two, 100 and then 7021. A Harmony 350 set
up with a Harmony 600's devices states the same three values the Harmony 600 keeps in tenths of a second,
80, 15 and 1521.
The activity keeps its own copy of the wait for each device its start switches on directly, eight over the five configurations: seven equal to the device's own, and one of 170 for the device whose own list carries 100 and 70. So a device's wait is in two places on a configuration with an activity21.
Which copy a key reaches depends on how the device is switched. A device with one power code for both
ways is switched on by Watch TV through the activity's copy, the call of its code's list and the 0x7C
after it, and not through its Power variable; a device with separate on and off codes is switched by
Watch TV flipping its Power variable, so the list that variable runs is its only copy. On a compile with
seven devices of a single wait each, three of them in the activity, the one device with one code in the
activity has two copies, and the two with separate codes in it and the four outside it, two of those with
one code, have one21. No copy sits anywhere else in the five configurations: searched
over every list, each copy found is in the list Watch TV's press calls, and every other 0x7C Watch TV can
reach is a send's own wait of one or three tenths, a device's own switch on, or the one wait of 170 whose
device's own list carries two21.
For a device with one power code the activity's copy is the one a person meets. Its power key in its
own mode sends the code's list itself rather than writing its Power variable, so its switch on list, the
copy the device's record holds, is run by no key at all: true of all four such devices on a Harmony 300's
configuration and all three on a Harmony 350's, while each device with separate codes there has its switch
on list reached21. Whether a timer or the start up events reach it is not
checked4.
Changing one is a one byte edit of each copy's operand plus the trailer checksum, setPowerOnDelay in
packages/config/src/edit/edit.ts, which changes the device's own 0x7C and every copy in the lists Watch TV
reaches, read as a call of the list the device's own switch on list calls followed by a 0x7C naming the
device; the family names them, packages/config/src/families/harmony-300-350/delay.ts. On a Harmony 300's
configuration, a television's wait set from 50 to 100 tenths that way gives, byte for byte, the
configuration whose two copies both say 10021. This said the edit left the activity's
copy alone until the family named it.
The activity¶
Watch TV flips every device it uses, and asks none of them what state it is in. Pressing it the first time switches each device's power, then notes that the activity is running and puts the devices on their inputs; pressing it again switches each device's power back, and the configuration writes no input then. It keeps no record of whether a device is really on: a device switched on beforehand in its own mode is switched off by Watch TV, and a device with one power code for both ways is sent that code either way39. Both ways end in the same device mode, the map of the device that changes channels39. That is how Logitech's compiles hold it; what a person meets with a device already on was not tried on a unit4.
In the configuration the activity is one list bound to Watch TV's press in entry 0, as above, and it runs, in order39:
- Each device's power, in the order the metadata archive lists the devices, which is the account's.
A device whose power is one code both ways is sent that code's list and then one
0x7Cof its power on delay, the activity's own copy, above. Any other device has itsPowervariable flipped by two lists of the activity's own: the byte register loaded with 0, then a two armed compare of the register with the variable whose arms write 1 and 0, so a variable at 0 becomes 1 and one at 1 becomes 0, and its transitions send the codes. A device's power key in its own mode runs a list of the same bytes, and the activity does not share it. - The activity's flag,
ActivityPowerState_2, a variable of two values and no transitions, flipped the same way. - The inputs, on the way on only: the register loaded with 1 and a one armed compare with the flag, whose arm runs where the flag has just become 1. The arm is the one input write, or a list of the writes in the same device order where there are several, or the null instruction where there are none.
- The channel device's map selected, the map that device's key selects.
A device has an input variable only where the activity puts it on an input: in one compile for a Harmony 350, four devices whose catalogue entries list inputs carry none, and the two the activity uses do39. Every value goes from any value to its own through a list of its own sending a record of its own, the input command's one block copy, its first block without the silence in front of it and with no held block, as a favourite channel's digits are, the number sender, waiting a tenth after it. All 50 values of the five configurations with inputs have that shape and that wait, from three devices; on the one whose catalogue entry is known, a receiver, all 19 records are its input commands' copies word for word, and the values are numbered in the catalogue's order of the inputs39. Every activity read writes value 0, so a write of another value is in no configuration39. A television whose every input sets internal states of the catalogue's rather than sending a code of its own gets a variable of one value and no transitions, which the activity writes 0, so nothing is sent for its input: measured on one LG television39. How a stepping input, or one mixing codes and states, compiles here is not read4.
Seven configurations of the current generation hold this shape, six for a Harmony 350 and one for a Harmony 300, and composed again from their own devices each gives Logitech's power steps and flag, and six whose channel device is known give its map39. A Harmony 300 configuration of an older generation of Logitech's compiler holds an older one, two power codes with waits and the map, with no flag and no register39.
The state variables¶
The remote keeps a clock that runs to the minute and no further. It counts a variable it keeps as the second and steps the minute by itself, but on all 13 configurations of this family read here the hour, the date and the year stay what a cold start set them to, which is the moment the configuration was built42. Nothing a person meets is known to depend on it: neither model has a screen, and none of the five scanned for it reads the clock2930.
The variables sit in data memory from 0x108, the Harmony One's address: a one byte variable at
0x108 plus its index, a two byte one, little endian, at 0x108 + narrow + 2 * (index - narrow). The area
ends at 0x1C7, 192 bytes, where the seeder keeps narrow, wide and its memory check
next29.
The firmware owns variables 0 to 17, as on the Harmony 880 and 885, the Harmony One and the Harmony 600, 650 and 700, state.md: the seeder's other arm paints from 18, and the memory check that decides whether the seeder runs covers 18 upward only31. In all 13 configurations of the family read here records 7 to 17 state the Harmony 600, 650 and 700's values, none with a transition3042. What the firmware stores into, directly29:
| variable | what the firmware does with it |
|---|---|
| 0, the second | adds the time elapsed, and takes 60 off each time it reaches 60, raising a minute flag |
| 1, the minute | steps it by one, below, never directly |
| 3 and 5, the day and the month | the month end routine18 moves a day past its month's last index to 0 and the month on by one |
| 4, the weekday | worked out from the date by an instruction no configuration here issues |
| 11 and 13 | 10 and 0 at every start, straight after the seeder; no direct reference reads either |
| 16 | 0 or 1 from an input pin, stored when it changes; what the pin senses is not checked4 |
| 17 | the send queue's priority, 0 to 3, set by the send path; the Harmony One's priority byte and the Harmony 600, 650 and 700's sending flag |
The minute is the firmware's last step. When the second passes 60 and the action queue is empty, the
firmware queues the instruction that adds one to variable 1, which wraps past its max of 59 to 0 and then
fires the minute's transitions29. On every other architecture those transitions do
the carry, in all 21 of their containers measured: the minute adds one to the hour when it wraps, the hour
calls a list adding one to the day and the weekday, the day adds one to the month and the month to the
year30. On this family's configurations the seven clock records carry no
transition at all, in all 13 read42, and in the five read for it no instruction in their
lists, key maps, start up events, timers or transitions writes, steps or adds to any of variables 0 to 17; the
name tree was not scanned30.
Five configurations of two generations of Logitech's compiler is the width of this: one that carried the
chain would run its clock, and none is known4.
The clock records seed it. Their first values are base slot 3's build stamp field for field in all
five configurations, and the seeder writes them only when its memory check fails, so at a cold start; a
warm start keeps the running values3029. The time since the
build is a counter of its own, filled from base slot 3 at start as on the Harmony One, 600 and
70029.
Variable 17 is the one of the eighteen a configuration names: all five read it in four lists, each
switching one of four output pins one way or the other on its value, the pins band 0xE9 switches, which
is the instruction the timer table's records hold too3019. That fits the Harmony 350's device keys lighting while it sends,
the 350's display.md; that the pins are those lights is not
checked4.
A configuration's own variables are of three kinds, followed by the compiler's one two byte variable, and nothing else, in all 13 configurations read, ten for a Harmony 350 and three for a Harmony 300, one of them from 2011, one from 2017 and the rest from the current service42:
- a power variable for every device with commands,
<device>_Power_2, holding 0, whose switch to 1 runs one list and whose switch to 0 another, a device's power on delay; every such device here has a power command, and the one device with no command at all has no variable; - input variables,
<device>_Input_<values>, holding 0, with one transition per value from any value running that value's send, or none and a single value; which devices have one is the activity's, the activity39; - the activity's flag,
ActivityPowerState_2, holding 0, no transitions, in 8 of the 13: every one that binds Watch TV but the 2011 configuration, whose activity has none, and none that does not bind it.
The two byte variable holds 0 under a maximum of 65277, as on every other architecture laid out, and it is the last; every one byte maximum is at most 18, an input of 19 values. There is no value map table, base slot 14, on this family42.
Logitech numbers these in an order no rule is known for, numbering: in one configuration of eight devices a receiver's input sits fifth, between two power variables, and the flag ninth, before the last power variable, which is neither the setup's order of devices nor its keys'. Nothing on the remote reads an index but the instructions that name it, so a configuration of ours numbers them by its own rule, every power variable in the setup's order, then the inputs, then the flag, and is compared with Logitech's variable by variable, not by number. The order of the transitions inside a record is not reproduced either, since the firmware runs every one that matches a write and no two of a record's go to the same value42.
What a configuration writer does: stamp the seven clock records with the moment of writing, the year's
max with them, as on every architecture; reuse none of 0 to 17; and write no clock transitions, since
none of the 13 configurations read here has any and what the remote would do with them is not
checked424.
No read over USB reaches the clock as the library stands. The file protocol has no read of data
memory, the file protocol, and no file on the inert list serves it.
The firmware does answer one request with the time and the date, one whose service byte is 0xC0 rather
than the file commands' 0xFF; how it is framed is not read, and Logitech's templates for these skins
never send it294.
The shapes of the lists¶
Every action list of a configuration Logitech's current service compiled takes one of these shapes, in all six of its compiles of the family read for this, both models; nothing else is in the action list table46:
| shape | the instructions |
|---|---|
| a send | 07 FFFB, 7D gg rr, 7C gg qq, one group named twice |
| a device's power on list | each on step's send called, then 7C waits on its group, a device's power on delay |
| a gate | 1F FBvv and a call: the byte register loaded, then a flip or the activity's condition called |
| a flip | 71 80vv, then writes of 1 and of 0 to variable vv |
| a power variable's silent write | 07 FFFF and a write of 0, or of 1; two per power variable, called by nothing |
| a power action of several steps | each step's send called in order |
| a device key's press on a Harmony 350 | per device on the key 07 FFFB, 1F E9p2 and two 1F EBnn, a device key and its long press |
| a device key's press on a Harmony 300 | 1F E9p2 and 1F FFmm, the pin and the map at once |
| a device key's release or held event | 07 FFFB and 1F FFmm |
| the activity's list | each device's power step, the flag's gate, the condition's gate, 1F FFmm, the activity |
| the activity's condition, and its writes | 71 ff and one arm: nothing, a write, or a call of a list of two or more writes |
| a favourite channel | 7A nnnn and 1F F300, or, with a leading zero, each digit's send called |
| the start up's and the send events' lists | the sections every configuration holds alike |
The numbers in them are the compiler's own, numbering: a press may start its two timers as 14 and 7 in one compile and as 3 and 2 in another, so the numbers follow no order of the key's46.
The Harmony 300 configuration compiled in 2011 has three shapes the current service does not write: the send is
the plain pair, 7D and 7C with no 07 FFFB, which section 278 read on the
Harmony 300 and 350 configurations before the current compiles; its activity's list switches the devices and selects
a map and sets no flag; and its power on lists call those plain sends46.
Numbering¶
No rule was found for the order Logitech's compiler numbers a configuration's lists, key maps, timers and state variables in, so a build takes that numbering as description: an input, not something a generator derives. The number a part gets is free as far as the remote goes, since nothing reads an index but the instructions that name it, the state variables, so a configuration of ours may use any numbering that is consistent. What the numbering is for is a byte for byte match with a Logitech compile, which this order makes unreachable, and for that the order itself has to be handed over.
What the 13 compiles of the family do show41:
- A power variable and the list that switches it on are numbered in one walk: in all 13 the on lists ascend with the variables' indices. The input variables are not in it, since their lists come after every power list while the variables sit between power ones, and the flag has no list. One order of the devices therefore decides both.
- The send lists of one infrared group ascend with the group's record number in the 12 compiles that store any, and interleave across groups in runs of varying length.
- A compile is deterministic: two compiles of one setup agree on the order of the variables, the maps and the timers, and differ in the lists the favourite channels add.
What no candidate reproduces, each tried as an exact match of the whole order41:
| order | candidates | best fit |
|---|---|---|
| the devices in the variable walk | 278: the order the compile lists them in, device number, name and group ascending and descending, and Java hash map orders over the number, its text, the name and the group under three spreading hashes, nine table sizes and both tie rules | 5 of 11 compiles with two or more devices, and 1 of the 5 with four or more |
| the devices' key maps | the same 278 | 5 of 11, and 1 of the 5 with four or more; ascending group fits the five smallest and 69 of 110 pairs |
| the send lists across groups | a hash order of a key made from the group or device number, the record and the name, 16,362 settings | 2 of 12, the two smallest |
| the timers | paired, sorted by duration or by pin, and the order of the keys' places in either device walk | none paired or sorted; the places follow the variable walk in 0 of 6 compiles with four keys and the map order in 1 of 6 |
The compiles are not independent: the test setup's two agree record for record and four of the 13 share devices, so what can refute a rule is the five with four or more devices, which are four distinct setups. A fit with two or three devices is one in two or six by luck. Not tried: the order the devices were added to an account, which the device number stands for and fits no better than chance, and any rule that needs a quantity the file does not state. The variables' own transitions are in the same position, the state variables.
What a builder takes as input to reproduce a numbering rather than choose its own: the order of the devices in the variable walk, the order of the device key maps, the order of the timers, and the interleaving of the send lists.
Not checked¶
- The external medium's part and size, and the RAM size4.
- What a Harmony 300 does with a configuration that holds no device, and with a start up that selects no map, which only a Harmony 350 has been given, above4.
- What raises the start up event table's entries 2 to 4, what the four output pins drive, and the digit entry record beyond its first three bytes, which no configuration fills4. This listed the unit of a timer's duration too, until a kind 0 timer was read losing one a tick of the clock the power on delay counts in, firmware.md34.
- Whether a person meets a Harmony 350's long press after one second, as the configurations and the firmware say, or after the two the guide states, above4.
- The routine that picks the next send past a held one is not read, so that a power on delay holds back no command to another device rests on one activity's power codes measured on a Harmony 350, above4. This listed the measurement itself as not checked until then, and the unit too, until a Harmony 350 was measured at two values; on a Harmony 300 both rest on its application being the same code but for one routine, which differs in the send kind only, firmware.md4; Watch TV's power on waits were then heard on a Harmony 300 within about 0.01 seconds of a Harmony 350's, the README48.
- Why the long press of two device keys did not take in the first run of a Harmony 300 given a Harmony 350's configuration and took when repeated4.
- What a person meets pressing Watch TV with one of its devices already on, which the configurations say switches it off, and how an input that steps through its values, or mixes codes and states, compiles here, the activity4.
- Whether the clock's unit is a second: the firmware counts from a timer and from watchdog wakes whose rates are not read, and only a read of the running remote would say4.
- Whether a restart after a configuration is written seeds the new configuration's values or keeps the old ones: the same memory check decides, and what survives in data memory across this family's restart is not read4.
- What variables 11, 13 and 16 mean, and what variables 7 to 10, 12, 14 and 15 are for, since nothing in the image stores into them directly4. This listed which variables the firmware owns and whether the clock runs as not checked too, until the state variables were read, above.
-
Read in the firmware. Section 199 ↩↩
-
Measured on a unit. Section 194 ↩
-
Measured in configurations. Section 194 ↩↩↩
-
Read in the firmware. Section 259 ↩
-
Measured in configurations. Section 259 ↩
-
Measured in configurations. Section 260 ↩
-
Measured in configurations. Section 262 ↩
-
Measured in configurations. Section 263 ↩↩
-
Measured in configurations. Section 264 ↩↩
-
Measured in configurations. Section 261 ↩
-
Measured on a unit. Section 262 ↩
-
Measured on a unit. Section 264 ↩
-
Measured in configurations. Section 278 ↩
-
Read in the firmware. Section 322 ↩