158. A code built from a name and a number reads back correctly, on 30 of 30, and a stated code has two frames¶
What was manufactured. Section 157 measured the durations of six protocol entries off the corpus. This
takes codes out of Logitech's catalogue, which states a family and a number and no rhythm at all,
builds the rhythm from that table, and sends it to Logitech's own analyser. 30 of 30 came back carrying
the number they were built from. So a code no remote here has ever recorded was made from nothing but a
name and a number, and their own decoder agrees it is that code. packages/codec/bin/emitcheck.ts, read
only in both directions.
The naming problem this settles, which would otherwise have been fatal. The table's keys come from
their analyser and the codes come from their catalogue, and the two vocabularies are not the same.
Their catalogue's Toshiba 32 Bit, Memorex 32 Bit, Pioneer 32 Bit 2, JVC 16 Bit, Panasonic 16 Bit,
Sharp 48 Bit and Sharp 48 Bit 2 all emit correctly using the durations their analyser files under
MemorexO1 32 Bit, which is NEC. Their analyser then names the result MemorexO1 32 Bit, JVCO1 16 Bit
or Delonghi 48 Bit depending on the width. So one rhythm serves seven of their fourteen catalogue
family names, and three more, Sony 12 Bit, Sony 15 Bit and Pioneer 32 Bit, match by name and by
number both. A table keyed on one vocabulary and looked up with the other would have found nothing, and
the mapping is now measured rather than guessed.
A census of what their database actually uses, read only, 36 appliances over 25 makes and 2402
commands: 14 protocol families, and three of them carry 1949 of the 2402 commands. Toshiba 32 Bit 801,
Sharp 15 Bit 618, JVC 16 Bit 530, Samsung 16 and 20 Bit 137, Pioneer 32 Bit 120,
Pioneer 32 Bit Dual 66, Memorex 32 Bit 53, Samsung 38 Bit 34, Sharp 48 Bit 2 20, Sony 12 Bit 7,
Pioneer 32 Bit 2 6, Sony 15 Bit 6, Panasonic 16 Bit 2, Sharp 48 Bit 2. So the distribution is
concentrated, which is why six measured entries reach as far as they do.
And a stated code holds one or two frames, which a first reading of the notation missed. Four of the
fourteen families never reached the emit check at all, and the reason was a pattern rather than a service:
their frames field is 0x1BAC_0x1853 for Sharp 15 Bit and 0x0400_1xED02F for
Samsung 16 and 20 Bit, two values joined by an underscore. A pattern reading hexadecimal up to the
separator takes the first, parses cleanly and emits half a command, which is the shape of mistake this
project keeps a rule about. statedCode in src/stated.ts reads both now and refuses three.
That closes a loop with section 152, which measured 226 records of the corpus holding a second,
different code in the tail, found it systematic rather than authored, a complement or a near variant or a
constant lead in, and said a writer has to know which shape its group is in. For these families it does
not have to work anything out: the catalogue states the second frame outright. The 1x prefix on a second
value is theirs and unread, and it is kept as written rather than normalised, because a notation nobody
has decoded is not a notation to tidy. Their own family names carry the same fact, since Dual, 2 and
and all appear in them.
Two limits to state plainly, because the 30 of 30 invites overreading. Their analyser reading the
number back proves the bit encoding is right and says nothing about whether the appliance accepts
those durations: their decoder is generic and a television's is not. Settling that needs the compile
route, where their own service builds a config for a catalogue device and the rhythms can be compared byte
for byte, which has not been run. And four families are still unmeasured, Sharp 15 Bit among them at 618
commands, plus the biphase ones section 157 leaves out.
A bug in the check itself, recorded because it inverted a result. Their answer's parameter slot is not
always empty: a JVC reply is G:JVCO1 16 Bit:(Start)(0xC55A)():3, and a pattern demanding () read
twelve correct answers as refusals and reported 32 of 60 where the truth was 30 of 30 over the
deduplicated set. The first run therefore looked like a partial success and was a complete one.
158 corrected the same evening: the number is not the test, the name is¶
The claim above is true and the framing around it was wrong, and the correction is worth more than the original because it is the difference between a code that works and a code that does not.
Their analyser identifies a rhythm. So emitting a Sharp 15 Bit number using Sony's durations comes
back as G:Sony 15 Bit:()(0x1BAC)():3: the number is exactly the one it was built from, and the rhythm is
somebody else's. A Sharp television would hear pulses in Sony's timing and recognise nothing. So agreement
on the number says the encoder laid the bits out correctly and says nothing whatever about whether the
code would do anything, and the first run's 30 of 30 was measuring the former while reading as the latter.
The test is whether their analyser returns the family the catalogue named, with their O1 suffix
stripped, since that is their analyser's spelling and not their catalogue's: JVC 16 Bit coming back as
JVCO1 16 Bit is agreement. Rerun that way over 44 catalogue codes and 144 answers:
| catalogue family | rhythm confirmed by | right bits, wrong rhythm |
|---|---|---|
| Sony 12 Bit | Sony 12 Bit | |
| Sony 15 Bit | Sony 15 Bit | |
| Pioneer 32 Bit | Pioneer 32 Bit | |
| Memorex 32 Bit | MemorexO1 32 Bit | |
| JVC 16 Bit | MemorexO1 32 Bit | |
| Pioneer 32 Bit 2 | MemorexO1 32 Bit, Pioneer 32 Bit | |
| Pioneer 32 Bit Dual | MemorexO1 32 Bit, Pioneer 32 Bit | |
| Panasonic 16 Bit | MemorexO1 32 Bit, Pioneer 32 Bit | |
| Sharp 15 Bit | Sony 12 Bit, Sony 15 Bit | |
| Sharp 48 Bit | MemorexO1 32 Bit, Pioneer 32 Bit, SharpO1 48 Bit | |
| Sharp 48 Bit 2 | MemorexO1 32 Bit, Pioneer 32 Bit, SharpO1 48 Bit | |
| Samsung 16 and 20 Bit | SharpO1 48 Bit, Sony 12 Bit, Sony 15 Bit | |
| Samsung 38 Bit | nothing at all |
Five families of thirteen are confirmed, and the four whose name matches outright are the ones to
trust: Sony 12, Sony 15, Pioneer 32 and Memorex 32, each emitted with the entry of its own name. JVC 16
Bit is confirmed through NEC's durations, which is either an alias or their decoder being tolerant, and
that is not distinguishable from here.
It was their decoder being tolerant, and the answer came from their compiler, section 160: JVC 16
Bit is 8400/4200 with 500/500/1600 against NEC's 8990/4490 with 568/552/1662, measured over 108 records
of a configuration Logitech compiled on request. So a JVC code emitted from the NEC entry is 590
microseconds long in its lead in and wrong in every bit cell, and their analyser named it correctly
regardless. The sentence above was right to say the two cases were not distinguishable from here;
what it did not say is that the distinction matters enough to go and get, and one compile settled it.
Memorex 32 Bit went the same way: their catalogue's Memorex is 9000/4500 with 600/500/1600, not the
MemorexO1 32 Bit their analyser named.
So the honest state of writing infrared from Logitech's catalogue is that the bit layout is solved, the notation is read including its second frame, and the rhythm is measured for five families of the fourteen their database uses. What the other nine need is durations, and the corpus cannot supply them because our own equipment does not use those protocols. That is what the compile route is for: their service will build a config for any catalogue appliance with the remote unplugged, and the durations can then be read straight out of it. It has not been run, and it is the next thing to do rather than an alternative to any of this.
A second reading of Samsung 38 Bit is refused by everything, including every entry in the table, so
it is not a case of the wrong rhythm but of a shape nothing here produces. Its notation is
0x00801_1x1DA05F, a five digit first frame and a 1x second, and neither the widths nor the prefix is
understood.
Section 157 | the archive | section 159. Section 158 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.