230. Two million of Logitech's own renderings, against our encoder, and five defects it found¶
Correction, section 365: the renderings are the archive maintainer's, produced from Logitech's definitions, which the next paragraph says and which the archive's README calls "our rendering". The heading and the shorthand below and in later sections called them Logitech's, and so did the code's comments, which now name the archive's renderer. What they judge is our reading of Logitech's definitions against another reading of the same definitions, independent of ours and not of Logitech's.
31 August 2026. The infrared archive carries a rendered waveform for every command in Logitech's catalogue: 13,293,293 of them across the devices, 2,067,863 across the distinct command sets those devices share. Each one was produced by somebody else's code from Logitech's own protocol definition, which makes it an answer key nobody here had a hand in, and nothing else that judges our infrared encoder is remotely that size. The corpus holds 3017 codes. The rhythms measured off Logitech's own compiler cover 35 families. A calibration account generated a few hundred commands. This is two million, over 368 families.
The result: 1,893,157 of 1,893,247 first transmissions agree exactly, and 1,111,882 of 1,111,886
held repetitions. 99.995% and 99.9996%, with agreement meaning every interval identical, not close.
make prontocheck is the run, about forty seconds, and packages/codec/test/pronto.test.ts walks a
bounded slice of it, 10,532 commands over 46 families with nothing outstanding.
What it does not test, said first. Both sides read the same definition, so a wrong duration in Logitech's own data is a wrong duration in both waveforms and this comparison cannot see it. What it tests is us: which slot a frame comes from, mark and space order, how wide a value is, where a lead in belongs, which segment a repeat sends, how a pad is solved. Every one of those has been wrong here at least once, and five of them were wrong when this run started.
Pronto Hex, and why the comparison happens in its units¶
An infrared command is a lamp blinking in a precise rhythm. Pronto Hex is the interchange spelling of
that rhythm: four digit hexadecimal words, the first four a header and the rest alternating a mark and
a space. packages/codec/src/pronto.ts reads and writes it, and it is a library module rather than a
comparison tool because a product that imports or exports one command will want it.
A duration is a count of carrier cycles and not a number of microseconds, which is the one thing a
reader has to get right. The second header word is round(1e6 / (hz * 0.241246)) and every later word
is a multiple of that clock. So the comparison is made in Pronto units: converting their words to
microseconds first would add a rounding of ours on top of theirs and turn exact agreement into near
agreement. One consequence to keep: agreement here is agreement to within half a unit, which is about
13 microseconds at 38 kHz, so a difference smaller than that is invisible to this check.
No Pronto word is ever zero, and that is a floor rather than rounding. A word states a count of
cycles and a count of zero states no interval, which would silently merge the two neighbours around it.
Nokia 11 Bit carries a 20 microsecond mark at a 15.3 kHz carrier, where one unit is 65 microseconds,
and Logitech's renderer writes 1 for it on all 149 of its commands. Ours wrote 0 until this was found.
The same floor is why a section ending on a mark is padded to whole pairs with one unit and not
with zero.
Four conditions the comparison honours¶
Two are the archive's own, stated in its README, and two are the format's or ours.
The toggle bit is rendered at zero. A handful of families, RC5 and its relatives, put one bit in the
command that has nothing to do with which button was pressed: it flips on every press so an appliance
can tell a second press from a held one. It is state, not identity, so a rendering has to pick a value
and the archive picks zero on all of them. withToggleCleared in packages/codec/src/archive.ts does
that, and the position is counted from the top of the field, which their own IRP string is the check
on: Thomson 12 Bit Toggle states toggleBit 4 over 12 bits and writes Code0A:4, T:1, Code0B:7, so
the toggle is the fifth bit sent and the fields either side are 4 and 7 wide. Honouring it took 429
disagreements off the list. A writer must not use it: a real transmission alternates the bit.
The first non-empty group may be framing rather than payload, for 4.81% of commands. That needed no
work here, because section 159 had already read a code's two slots as a grammar and section 228 reads a
block's cycles out of the definition's own KeyCode.
And the stored form is not the signal. Logitech's compiler adds one microsecond to a block's last
duration when it writes a configuration; their renderer does not when it produces a waveform. That is
what storedForm: false turns off, and separating the two is what this exercise contributed back to
section 228: before it, every padded family disagreed on its last word and nothing else, 96.10% against
99.38%, and it read as our arithmetic being wrong.
And a Pronto section never opens on a space, which is the format's own rule rather than anybody's choice: the first burst word is a mark by construction, and silence before a transmission carries nothing a receiver could time from. It is defect six below, since our own reader was keeping one.
The seven defects¶
One. A frame's width comes from the definition and not from the family's name. statedCode takes a
frame's width from the name, which is where Logitech put it and which is right for 179 of the 202
families whose codes state several values: Akai 32 Bit sends two frames of 32 bits each. On the other
23 the name states the total. Daewoo 16 Bit sends two frames of eight, and reading both as
16 sends twice the bits, on every one of its 9492 commands. frameWidths reads the width per field out
of keycodeFields, ordered by their own token, and withStatedWidths imposes it. 99.15% to 99.94%.
And the fields apply even when a code states more values than there are fields, which cost three
further commands: the lookup clamps to the last field rather than demanding the two counts match.
Philips 13 Bit has one field of 13 bits and codes that state the same value three times, and requiring
equal counts left two of its commands and one of Streamzap 14 Bit's with their toggle bit uncleared.
The same clamp is what gives Game Elements 15 Bit its width: a name saying 15, a field saying 13, and
a code stating a 15 bit number, which loses its leading bits, Logitech's own stated rule.
Two. A second segment states its own header, and it need not be the frame's. Three cases occur and
one rule covers them: the second frame of Samsung 16 and 20 Bit has no header at all and opens
straight on a bit cell, BelCanto 16 Bit's has 525 and 4200 where the frame's is 8400 and 4200, and
Sharp 15 Bit's cycle names the same segment twice so there is nothing to differ. Emitting the
segment's own header as literal words and marking the copy bare is the fix.
Three. A command's keycode states its own cycles, and they may not be the family's default. This is
the correction with the sharpest edge, because the definition's KeyCode had only just been read and
looked authoritative. It is the family's default. RCAV1 24 Bit 2 defaults to repeating its second
segment, whose lead in is 4000 microseconds; every one of its 815 commands writes
(0xE301CF)(0xE301CF)(), both groups naming segment 0, whose lead in is 19800, and Logitech's own
renderer sends the 19800 in the repeat. So a held block derived from the definition alone is the wrong
block for every code of that family. keyCodeOfStatedCode builds the cycles from the command, through
segmentRefs, which is the join between the short ids a keycode names and the full names a definition
uses. StatedCode.groups exists for it: items deliberately loses the slot boundary because an encoder
building one transmission wants the flat order, and a repeat needs the boundary.
Four. How many frames a code sends is the greater of what the definition names and what the cycles
ask for. Taking it from keycodeFields alone is the failure that is hardest to see from the outside,
because the waveform it produces is well formed, decodes cleanly, and carries the wrong number. Revox
11 Bit declares one field and every one of its codes states two values, so a copy index clamped
at zero sent the first value twice and the second never. 79 commands over six families: Revox 11 Bit,
Magnavox 13 Bit, Pioneer 32 Bit, Mitsubishi 16 Bit 2, Toshiba 32 Bit and Sony 15 Bit.
Five. A cell may state its carried half first, and our table needed the spelling. This one was two refusals for part of a day and the sequence is worth keeping, because the refusals were the right answer at the time and were not the end of the matter.
Logitech states a cell as (space, mark) on 37 families where our table stores (mark, space), and for 30
of them the wire is identical either way: the family's own header is a lone mark of exactly the constant
length, so it is the first constant half, and after it the train is one alternating chain whichever
end you name it from. JVC 16 Bit is that case, and its measured row, taken off a real remote's
configuration, is in the (mark, space) spelling because our corpus decoder reads a stored train from its
first mark as (mark, space) pairs. So the shift is not a trick that happens to work, it is an
equivalence, and 30 families prove it.
Two things break the equivalence and this comparison found both.
- the constant half is not constant,
oneMarkbeing set. Then the shift attaches each cell's mark to the previous bit, so a set bit's longer mark goes out one position early.Antique 12 Bit,GPX 8 BitandGoelst 12 Bit, and all 153 of their commands were wrong, on that bit and nowhere else. - the segment states no header at all, so there is no lone mark to be the first constant half and
the lead in's own last mark plays that role at its own length.
Bell 16 Bitleads in with 400 where its constant half is 375, so the shift sends 775 of carrier where 400 belongs.Panasonic 31 Bit,AMC 5 BitandBell 16 Bit 2are the same shape, and Bell and Panasonic account for 905 commands.
The refusals came first and that was correct. A code that would be wrong is not emitted, so
rhythmOfDefinition refused the first class and blockOfDefinition the second, three stated rows left
the table, and 1058 wrong waveforms became honest absences. The capability replaced them the same day:
FrameTimings.carriedFirst says the pair goes out as (carried, constant), pulsesOfFrame honours it,
and the reader sets it on exactly the seven families where the other spelling would change the wire.
The header is then the segment's own atoms with nothing absorbed, which is why pulsesOfFrame now emits
each header half only where it has a length: a header of a mark and no space is a real shape.
No measured row sets it, and that is deliberate rather than an omission. Re-spelling the measured carried-first families would mean re-deriving them from the corpus, with its own calibration, and there is nothing to gain: the shift is exact for all of them. The generator writes the field, which matters more than it sounds: a table row that lost it would emit a wrong waveform in silence, which is the whole defect the field exists to fix.
Six. A Pronto section never opens on a space. The format's first burst word is a mark by
construction, and silence before a transmission carries nothing a receiver could time from. It matters
for a carried-first family, whose repeat group opens on the first bit's own space: Logitech's renderer
drops it, which their README states as the rule, and until prontoUnits did the same, Bell's and
Panasonic's 905 held repetitions disagreed while their first transmissions had come right. One
consequence worth recording rather than hiding: their repeat section for such a family cannot be
played back correctly, the first bit having gone with the space. Our block keeps it.
Seven. A block pads each copy to its own period where the copies can differ in length, and two tests
decide that rather than one. A cycle of several payloads needs a pad each, those frames being
different values. So does a block whose start block and cycle pad different frames, which is the
case that was missed: Roku 32 Bit 1 states one payload per cycle and pads twice, its start block's
value and its repetition's, and the two carry a different number of set bits, so one shared pad splits
the difference and both are wrong. 52 of its 918 commands, the other 866 agreeing only because their two
values happen to run the same length.
Replacing the first test rather than joining it costs 9488 commands, measured over the whole archive: a cycle of two payloads that clamp to one frame index has one padded frame and several pads, so it needs the per copy rule, and the frame test alone sends it to the block total where the division does not come out whole and the emitter refuses. That measurement is the reason both tests are in the code with the number beside them.
And a copy's period runs from the start of its own segment, which includes a lead in of its own.
Daewoo 40 Bit repeats a segment whose lead in is 9000 and 2260 where the frame's is 9000 and 4500, and
those words are emitted in front of a bare copy, where the copy period then reset the count and
discarded them. Its last gap was out by exactly those 11260 microseconds on all 27 of its commands.
BlockTailItem carries ofCopy for it, so the block can say which literals belong to the copy that
follows and which are a separate segment that no copy's period counts.
What is left, and it is three commands¶
Quad 5 Bit, three of its five commands. This said "its values are written in base four, and its
numbers come out rotated by one bit against Logitech's rendering", and both halves are wrong,
corrected the same day by section 231. The family states two symbols and five bits and its values are
ordinary hexadecimal; nothing is rotated. What put it in this paragraph is that its name contains
the word Quad, which section 227 read as the base of a family's digits. The wrong attribution was made
here without looking at the definition, on the strength of the name, which is the same mistake the name
rule itself was.
173,554 commands are not compared and the reasons are counted, not lumped: 71,152 where no block is
derivable, 68,271 where our keycode reader declines the code, 33,767 where no rhythm is derivable, 240
that the archive renders no waveform for, and 124 whose Pronto string our own reader refuses. The
largest are the shapes section 227 already names as unread, and the declined codes were censused here
rather than left as a bucket: 51,913 of the 68,271 are refused on a width or a base, which is the
base four and base sixteen families again, and the rest name a segment word outside the closed set of
three our keycode reader accepts, chiefly Finish on 10,442 codes and Divider on 5121. Bell 16 Bit
2 is in that bucket, every one of its codes writing RepeatStart, which is why six of the seven
carried-first families are compared and not all seven. A fourth word is a refusal rather than a guess,
so each is a reading to do.
What moved in the table¶
Nothing, by the end. Three stated rows were withdrawn and restored the same day, so it holds 461 entries
with 424 stated, and seven of those now carry carriedFirst. Nothing measured changed at any point: the
34 of 35 rhythm calibration and the 29 of 29 block calibration both pass unaltered, which is the control
that says these seven fixes did not buy their agreement by moving what our own measurements say.
Section 229 | the archive | section 231. Section 230 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.