365. A toggling code's record holds the code twice, as stated and with its toggle bit flipped, the firmware alternates the two, and a release sits behind the third pointer¶
Date: 10 October 2026. Status: confirmed. The two group layout is confirmed on every record of a toggling code matched in the lab's configurations, on four architectures, and the composer writes it word for word on 623 toggling records of fifteen catalogue devices. Which group a send plays is read in the firmware of two architectures. The release in the third pointer is confirmed on two families, one of which the composer reproduces. Nothing composed this way has been written to a remote.
todo-process-logitech.md 2.5, "release blocks and toggle bits as Logitech renders them: about 4360 commands
compose and differ from Logitech's rendering", and 2.2.3, 13909 commands refused for naming a release group.
Some infrared codes carry a toggle bit, one bit the sender flips on every new press, so that a device can tell
a second press of the same key from a key held down. Some codes also name a release group, a part sent once
when the key comes up.
Sources checked before the work started. This document, sections 127, 134, 228, 230, 233, 309, 337, 348, 350,
359 and 361. The archive's README, on its pronto field. MyHarmony's client, ../lab/work/myharmony/src/: its
device manager's Payload data contract carries a ToggleBit field beside the code's other fields, and nothing in
the client builds an infrared record, which is the service's compile. The firmware: the bench Harmony 650's own
0.2 application and the Harmony One's 3.4, read for which group a send plays; the Harmony 600's 0.2, the Harmony
700's 2.8, the Harmony 650's published 0.4 and the Harmony 350's 1.4, searched for the same update routine. Every
configuration and harvest compile in the lab: 253 files read, of which 153 parse as configurations and 100 are
firmware images, logs and memory reads.
The premise, measured¶
The rendering the item names is not Logitech's. The archive's pronto field is what its README calls "our
rendering": the archive maintainer's renderer, applied to Logitech's definitions. Per that README it plays the
start group, the repeat group once and the finish group, puts the repeat group in a second section, and renders
every toggle bit as 0, with the advice to flip it yourself for a second press. make prontocheck agrees with it
on all 2067623 commands it renders, section 233, by building our waveform the same way: toggle cleared, release
appended to the first transmission, no stored microsecond. So a command "differing from the rendering" is mostly
the rendering's conventions, and the question that matters is what Logitech's compiler writes, which the
compiles in the lab answer. Section 230 said the renderings were somebody else's code, and its heading and the
shorthand after it called them Logitech's; corrected in place there, and in every summary and comment that said so.
The figure 4360 has no recorded derivation. It came with the item from todo-later.md 6.15. Measured here,
before any change, over every command the composer wrote and every device count serving its codeset, against
the definition at the composer's count:
| kind | commands | families | what the composer wrote |
|---|---|---|---|
| a code naming a release group, composed by the rhythm table | 2153 | 8 | the press without its release |
| a code naming a release group, refused | 25200 | 53 | nothing |
| a code stating its toggle bit set | 645 | 12 | the stated value, where the rendering writes 0 |
| a whole record row with no held block | 75085 | 3 | a press block and no held block |
| a first block the definition builds with another frame count | 476 | 14 | the row's block |
| durations, section 350's | 4094 | 2 | the row's block |
The rows overlap: the 476 include 189 of the 2153. The release rows are Motorola LF 32 Bit 835, Dream
Multimedia 32 Bit 445, Quickline 16 Bit 416, Motorola HF 32 Bit 262, Magnavox 13 Bit 157, Toshiba 32 Bit
26, JerroldO1 16 Bit 7 and Logitech 24 Bit 5. The whole record rows are Philips Hurd 16 Bit LongToggle 52628,
Galaxis 16 Bit Quad Toggle 21367 and Samsung 38 Bit 1090, whose longToggle, quad and sections rows build
the press's first block only. And every one of the 70 families whose definition states a toggle bit was written
with one pointer group, the code as stated.
What Logitech's compiles hold for a toggling code¶
Over those 153 configurations, every record matched to a catalogue code of a toggling family holds two pointer groups, and the second is the first with the toggle bit flipped, in its first and held blocks; no toggling record in the lab has a tail. Records, counted per configuration and then distinct, since several dumps hold the same configuration:
| architecture | remotes | records | distinct | families |
|---|---|---|---|---|
| 12 | Harmony One | 665 | 572 | 10, Philips RC5 13 Bit Toggle, Thomson 12 Bit Toggle, Microsoft 30 Bit, Magnavox 13 Bit and six more |
| 14 | Harmony 650 and 700 | 326 | 253 | 5 |
| 16 | Harmony 350 | 178 | 130 | 3, Philips RC5Ex among them |
| 8 | Harmony 880 or 885, contributed | 148 | 36 | Microsoft 30 Bit |
On six records of the Harmony One two catalogue codes fit the first group, and on each one of the two fits both
groups in full. Records with two groups this match leaves over: 2 on the Harmony One and 5 on the Harmony 700's
power hold compiles, which the blind re-measure found to be the long press versions of toggling power codes,
Magnavox 13 Bit, Philips RECS80 11 Bit, Thomson 12 Bit Toggle and Philips 13 Bit built at 7 to 130
repetitions, stated then flipped like the rest; and the Harmony 525's 168 distinct (arch 9), whose class 5
records spell a code from a dictionary this match does not read. The blind re-measure rebuilt those into
durations and found the same layout, 107 Magnavox 13 Bit and 61 Microsoft 30 Bit records, where section 134
had read them as RC6; no test here asserts it. The Harmony 600's configurations hold no record of a toggling
family.
The first group is the code as the catalogue states it, not the code with its bit cleared. That is the
calibration case, since a code stating its bit clear fits both readings. On the devices pinned in
pressrepeats.test.ts, 14 records ambiguous between two codes left out, 23 records hold a code stating the bit
set, 21 Thomson 12 Bit Toggle and 2 Philips 13 Bit, and every first group holds it set and every second clear.
Over the whole lab 27 records unambiguously hold such a code first, and the 50 whose first group is the cleared
form of a code stating it set all fit another code stating it clear. The swap control below is what asserts it.
A record that sends nothing else in a sequence, the one block copy of section 349, keeps both groups too: 44 such copies on the Harmony 650 and 700, 30 on the Harmony 350, each group its record's first block less the opening silence.
Which group a send plays, read in the firmware¶
On the bench Harmony 650's 0.2 image (arch 14) and the Harmony One's 3.4 (arch 12) the record start reads the
group count and then skips groups of nine bytes, and one flag makes it skip one fewer when the count is 2. The
flag is one bit of a sixteen bit word holding a bit per infrared group: a send reaching the record start XORs
1 << (tag & 0x0F) into it, the tag being the queue entry's byte whose low nibble is the infrared group, and the
flag is whether that bit is set afterwards. On the Harmony 650 and the Harmony 600 a tag with bit 4 or 5 set
returns before the XOR, at 0x1284C, and what those bits mean is not read; the Harmony One's path has no such
test.
| Harmony 650 0.2 | Harmony One 3.4 | |
|---|---|---|
the mask, 1 << (W & 0x0F) |
0x1A24C |
0x20CE6 |
| the update: tag, mask, XOR into the word | 0x1285C, word 0x3DA |
0x277C8, word 0x6A9 |
| the flag, then the record start's copy | 0xD17, 0x71F |
0xD16, 0x2B0 |
| the group skip | 0x167FE |
0x299DA |
So a set bit plays the first group and a clear one the second. On the Harmony 650 the word is cleared at
0x11D08, in the infrared initialiser, which the blind re-measure found called from the start up sequence and
from one place not read; the first send after that clear sets its bit and plays the first group, the code as
stated, and the next send the second. The bit is the device's and not the command's: every send to that
infrared group flips it, a record with one group included. The blind re-measure also found the Harmony One's
clear, at 0x26F0E, and the Harmony 700's 2.8 group skip, at 0x1815C, which no test here asserts. The
calibration is the count of 1, which goes through the same loop with no extra skip and plays its one group.
The same update, a mask routine and the XOR of a two byte word, is found at the same shape on the Harmony 600's
0.2 (0x1A258, 0x1285C, word 0x3DA), the Harmony 700's 2.8 (0x1BB22, 0x13D04, word 0x088), the Harmony
650's published 0.4 (0x1B642, 0x12C50) and the Harmony 350's 1.4 (0x1AEBE, 0x12C28); on those the group
skip is not read. The Harmony 525's application image is in the lab and was not searched.
This settles what section 134 left unconfirmed, and corrects docs/config-format.md's "the count is 1 in every
record on arch 12, arch 14", which was true of the corpus it was measured on, a corpus with no toggling family on
those architectures.
A release behind the third pointer¶
The third pointer of a group is the tail, which section 127 read as played once, whether or not the key is held. Two families in the lab put the release group there, alone, as its own block:
Logitech 24 Bit's()(0x2D11EE)(StopSpacer), the Sony PlayStation 3's Stop, whose release is a six second silence: in the tail of one record per configuration on the Harmony One, 25 dumps, the Harmony 650 and 700, 32, and one contributed Harmony 880. On the Harmony 600, the everyday Harmony One and the Harmony 350 the PlayStation's group holds the code once and no tail, and whether Stop was compiled there is not read.Microsoft 36 Bit's codes on the four contributed arch 8 configurations, which spell()(0xV)(1x400000000), a release that is the same for every code: one distinct tail block, in 463 records of 116 distinct ones.
And a tail carries no stored microsecond. Every first and held block in the lab outside the Harmony 525, whose
class 5 blocks are another encoding, ends on the carved one microsecond word, 16286 and 8749 distinct blocks on the
Harmony One, 27538 and 14764 on arch 14, and so on for arch 8, 10 and 16. The lab holds two distinct tails, the
PlayStation 3's Stop and Microsoft 36 Bit's release, and neither carries the stored microsecond: the first is
the definition's silence uncarved, the second the definition's release word for word, ending on a mark, which a
microsecond added breaks. So blockOfDefinition builds the release without the stored microsecond and
compiledBlockWords spells it uncarved; the uncarved spelling is shown on the silence alone, since a release
ending on a mark is not carved either way.
Section 348 said no compile here showed a release stored; the PlayStation 3's records and the arch 8 configurations above do, so that sentence is corrected in place.
What the composer writes now¶
- A toggling code gets its second group,
catalogueToggledCode: the same command with its toggle bit flipped,withToggleFlipped, built by the route the command's own blocks took, andcomposeIrGrouplays out both. A one block copy of such a record copies both groups,oneBlockCopy. - A code naming a release group is built from the definition with its release as
StatedBlocks.release, the third pointer. It was refused until now. - A code of a whole record row,
Philips Hurd 16 Bit LongToggle,Galaxis 16 Bit Quad ToggleorSamsung 38 Bit, is built from the definition, which states the held block the row lacks. - Only where the definition sends the row's own first block,
definitionKeepsTheRow, for a code the rhythm table composed. Where the two disagree no compile says which a press sends, and no compile in the lab holds a code the gate keeps, so the row's block stays. That is 189 commands naming a release group: 156Magnavox 13 Bitcodes of the form(V_V)()(W_W), a start group and no repeat group, 26Toshiba 32 Bitcodes whose release is the segmentRepeat, and 7JerroldO1 16 Bit. And 691 commands of the whole record rows,Samsung 38 Bit587 of them, the durations section 350 left open,Galaxis 16 Bit Quad Toggle68 andPhilips Hurd 16 Bit LongToggle36, for which no reason is read. - A rerouted code keeps the count the row carried: a family stating a count is built at it whatever the
device states, as the row's block was, and on a device whose count is not known a family stating none at
TABLE_PRESS_REPEATS's. Without that, a command the table composed would be refused on such a device.
On 53 distinct Samsung 38 Bit codes the definition's first block sends the row's train in other words: the
4470 microsecond space between the two sections as 1477 and 2993. All 35 records of the Samsung BDC8000's compile
spell it so, which the row did not.
Against Logitech's compiles¶
Eighteen catalogue devices, composed whole onto the Harmony 650's configuration and compared record for record
with the seventeen device groups Logitech compiled for them for our own accounts, the two PlayStation 3 entries
sharing one, all pointers of all groups word for word, each of their records matched at most once: 774 of 797
records, togglegroups.test.ts.
- The fifteen devices with a toggling family give 639 records with two groups, of which 623 are Logitech's. Before this change none of their records was whole on the Yamaha DVD-S501 and the Microsoft VIP2250, nor on the Samsung BDC8000, which take the whole record rows, and on the others only the first group could have matched.
- The PlayStation 3's
StopSpacerrecord is Logitech's, in the Harmony 650's own configuration, its release spelt uncarved; spelt carved, or with the stored microsecond, it is not. - The 23 left: 16 Harmony One power step records, which are Logitech's but for the device's delay their compiler opens them with, section 337; three on each PlayStation 3, records ours holds more times than the compile does, where the codeset states four codes under five more names; and the Philips 70FA930's held power step, which did not match before this either.
- The seven two group one block copies composed on the Harmony 700's four devices are all Logitech's.
- Counted from Logitech's side, 774 of their 931 records: the other 134 are records a device's own composition never makes, about ten digit records per device with no held block, beside the ordinary digit records, which match, and a few more like them.
The controls, on the same composed records: with the second group dropped only the 151 records that never had one match; with the two groups swapped, which is the cleared code first for a code stating the bit set, 163 do, those 151 and 12 toggling records whose swapped form is another of the device's own records, a code the catalogue states in both of its toggle states under two names.
What it moves¶
make composecensus:
| section 361 | now | |
|---|---|---|
| commands written, of 2067863 | 2038315 | 2063341 |
| family spellings refusing a command, of 687 | 437 | 423 |
| family spellings writing nothing | 91 | 45 |
| codesets writing nothing, of 54118 | 761 | 73 |
| devices writing every command, of 257720 | 251880 | 255511 |
Of the 25200 commands refused for naming a release group 25026 now write, and the other 174 are refused for a conflicting count, which is where the census counts them now. 297861 written commands carry a second group, and 26990 a release. Of the 478 families section 348 found refused only for want of a whole block, 338 still refuse 1955 commands, 1740 for a conflicting count and 215 for a count of 0, and the 12 held back by the release group alone write every command.
Every command and every device count, compared with section 361's composer, lab/work/agent-2-5/diff.ts:
no command that wrote before is refused now. Of those written both times, 1961916 have the same first group,
1964 gain a release and keep their first group, and 74435 of the whole record rows send the same first block's
train and gain the definition's held block, all but 4 Galaxis 16 Bit Quad Toggle codes whose definition states
none.
What stays different, and why¶
- The 189 and 691 commands above, whose first block the definition and the row disagree about.
- Section 350's
MemorexO1 32 Bitdurations and the other commands of the 476 whose first block the definition builds with another frame count, which are the row's as before. - A code that both toggles and names a release group gets its release in both groups. No compile in the lab holds
that shape: the one rerouted
Magnavox 13 Bitcode and the 17LifesizeIconA/B 17 Bit Togglecommands are written so, stated and unverified. - A held power step of a code naming a release group, which the composer refuses: no compile here holds one. And a one block copy of a record with a tail, refused for the same reason.
- The Harmony One's power step lead, section 337, and the counts of 0 and the conflicting counts, todo 2.2.2 and 2.2.4.
Scope, decision 16¶
The two groups are confirmed on configurations of arch 12 (Harmony One), arch 14 (Harmony 650 and 700), arch 16 (Harmony 350) and arch 8 (contributed); the composer's are checked word for word on the Harmony One's and the Harmony 700's compiles and the Harmony 650's own configuration, composed onto a Harmony 650 configuration. Which group plays is read on the Harmony 650's 0.2 and the Harmony One's 3.4, and only found, not read, on four more arch 14 and arch 16 images. Not checked on the Harmony 525 (arch 9), whose two group records are not matched here and whose image was not searched, nor on the Harmony 890 (arch 10). The release in the tail is two families, one on arch 12, 14 and 8 and one on arch 8; every other family's release is the definition's, stated and unverified per decision 15. Nothing was sent to a remote.
The two reviews¶
Both ran on this section's question, and the second on the whole diff.
The blind re-measure, given the questions and the corpus and not this section, deduplicated 138 containers
and agreed on the layout everywhere it looked: every two group record a toggling code, stated then flipped in
once and held, no tail, and none of 45747 single group records a toggling code; the 23 calibration records; the
two distinct tails, each the definition's release word for word with no microsecond; the firmware's flip, flag,
skip and clear on the Harmony 650 and One, and the same on the Harmony 700's 2.8, 650's 0.4, 600's 0.2 and 350's
1.4; 774 records agreeing on the eighteen devices, where the composer on main gave 115; and the census and the
comparison with main command for command, 25026 newly written, 76399 changed and none refused that wrote. It
added what is now above: the seven leftover records are long press power codes, the Harmony 525's 168 are the
same layout once rebuilt, the PlayStation 3's tail on a Harmony 880, the bit being the device's, the initialiser
and its callers, the 134 records counted from Logitech's side, and the Samsung space split into two words, which
the BDC8000's compile settles. Its record totals differ from the ones above because it counted its own
population, 427 records on arch 14 with the Harmony 600's dumps and 276 on arch 16 with the Harmony 300's.
The sentence audit, given the whole diff, found nineteen things and all are corrected above, in the code and
in the summaries: the Harmony 350 does not hold the PlayStation's release, two of the three tail counts having
counted records with no tail; the Harmony 525's image is in the lab, where this said none existed; "253
configurations" counted files, of which 153 parse; the record counts counted dumps of one configuration several
times, now beside their distinct counts, and the Harmony 525's 275 was 168; the tail spelling rested on two
distinct blocks, now said, and "every first and held block" excluded the Harmony 525 silently; Microsoft 36
Bit's release is a constant and not the code's own value; fifteen toggling devices and seventeen compiled groups,
not sixteen and eighteen; a test title saying the composer writes both groups on 774 records where 158 have one;
the 189 kept codes' explanation fitted to one family and wrong for the rest; no compile holding a code the gate
keeps; "a held block on every record" of three devices where power steps and copies have none; the firmware's
"every send" where the Harmony 650 and 600 return before the XOR on a tag with bit 4 or 5 set; "all three
pointers" where no toggling record has a tail, and the release written into both groups of a code that toggles
and names one, which no compile shows; the calibration scoped wider than measured; two firmware tests whose
titles said more than their bodies, now reading branch targets and banks, the arithmetic one retitled; "refused
all 25200" where 2153 more were written without their release; a heading of docs/status.md the rendering sweep
missed; and a stale section number in the census.
Falsification¶
A compile holding a toggling code in one group, or with its second group anything but the first flipped; a code stating its bit set whose first group holds it clear; a firmware image whose group skip reads the flag the other way; a compile holding a release other than in the tail, or with the stored microsecond.
Where it lands¶
packages/codec/src/archive.ts:withToggleFlipped, and the release built without the stored microsecond.packages/codec/src/compose.ts:ToggledCode,StatedBlocks.release, two groups per record, and the uncarved release.packages/codec/src/composecatalogue.ts:catalogueToggledCode,namesReleaseGroup,definitionKeepsTheRowand the route.packages/codec/src/sequence.ts: a one block copy of two groups.packages/codec/bin/composecensus.ts: the second groups and the releases written.packages/codec/test/togglegroups.test.tsandtests/test_toggle_groups.py, the compiles and the firmware.docs/config-format.md, the record header's count, the group a send plays and the release.
Section 364 | the archive | section 366. Section 365 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.