Skip to content

160. Logitech's own compiler will state a rhythm, and it contradicts their analyser twice

Section 159 left the infrared side with a ceiling: their catalogue states a protocol family and a number and never the rhythm, the corpus holds records of eight families out of the 33 the catalogue uses, and their analyser cannot rule on a family whose bit width it has no entry for. The route left was their own compiler, and the objection to it was that it needs an appliance on an account, which is their side and not ours.

That objection is now cleared, and the call was in their client all along. DeviceManager/UpdateMyData does not create a device, it only updates one: a record with a non persisted id answers Internal Error. The call is DeviceManager/UpdateMultiple, taking a single argument named operation which is an OperationBag whose Items hold one AddDeviceBySearchResultOperation per appliance, each carrying the catalogue search match verbatim plus the make and model as typed. Read out of Web.MartiniWeb.Tasks.Device.AddDevice.dll with ilspycmd, where the add button ends at UpdateMultipleAsync(m_OperationBag, ...). Two details no amount of guessing would have reached: the bag and the operation are in different data contract namespaces, Common and DeviceManager, and their serialiser wants the __type marker as the first member of the object. Sent that way it reaches their business logic and is refused or accepted on its merits. adddevice.py in the lab is the implementation and probe.py holds the ledger of what was tried.

Fifteen appliances went onto a test account's Harmony One record, chosen so that between them they cover families the corpus has never held, and the service compiled a configuration with the remote unplugged: 397932 bytes, fifteen infrared groups, 1143 records. The other half of the measurement is GetGlobalLanguageCommands for the same fifteen appliances, 999 catalogue codes, which states the family and the number.

Joining the two involves no decoder of anybody's at either end, and that is what makes it stronger than everything before it. The durations are the ones their generator emitted. The family is the one their catalogue states. Two things the join has to do per record rather than per group, and both were got wrong first:

  • The owning appliance is decided by overlap, not by a group's drawn label: whichever appliance's stated numbers the group's decoded numbers hit most. Pooling every appliance's numbers instead left 88 of them claimed by two appliances at once and therefore unusable.
  • The header convention is per record. One Denon receiver carries a 48 bit family that opens with a lead in and a 15 bit one that opens on its first bit. Deciding it per group read the headerless half with a header, which eats its first bit cell and yields a number no catalogue code carries.

Thirteen families, and three of them confirmed twice

family carrier lead in mark zero one records
Toshiba 32 Bit 38 kHz 8990/4490 568 552 1662 189
Sharp 15 Bit 2 37 kHz none 260, first 270 790 1850 162
Sharp 48 Bit 2 38 kHz 3364/1682 408 431 1272 118
JVC 16 Bit 38 kHz 8400/4200 500 500 1600 108
Sony 12 Bit 40 kHz 2400/600 600 600 1200 56
PioneerO1 32 Bit Dual 40 kHz 8510/4256 532 532 1596 40
MemorexV2 32 Bit 37.6 kHz 9000/4500 560 560 1680 38
Pioneer 32 Bit Dual 40 kHz 8470/4230 548 500 1570 37
Sony 20 Bit 40 kHz 2400/600 600 600 1200 14
Memorex 32 Bit 38 kHz 9000/4500 600 500 1600 8
Pioneer 32 Bit 40 kHz 8470/4230 548 500 1570 7
PioneerO1 32 Bit 40 kHz 8510/4256 532 532 1596 7
Sony 15 Bit 40 kHz 2400/600 600 600 1200 3

Every family reproduces its own durations on every one of its own records, with no exception anywhere, which is the closure that says the join is not attributing records to the wrong family.

Three of them are the same rhythm the corpus already gave, to the microsecond, by a route with nothing in common: Sony 12 Bit, Sony 15 Bit and Pioneer 32 Bit. The table records those as both and it is the strongest thing in it, because the corpus route runs through Logitech's analyser naming our decoding of somebody's real configuration, and this one runs through their catalogue naming a command their compiler then emitted.

Toshiba 32 Bit is our NEC entry exactly, 8990/4490 and 568/552/1662, which settles the largest family in their catalogue: 1026 of 2921 distinct codes, more than a third of it. Seven rhythms are new outright: Sharp 15 Bit 2, JVC 16 Bit, Sony 20 Bit, Memorex 32 Bit, MemorexV2 32 Bit, PioneerO1 32 Bit and its Dual.

A Dual family is the same rhythm as its sibling, to the microsecond in both pairs. So the word counts frames rather than describing durations, which is what section 159's notation reading already implied by finding two values stated for one command.

The two contradictions, which are one lesson

Their analyser accepted a rhythm their compiler does not emit, twice in one day.

JVC 16 Bit, section 158, was recorded as confirmed because their analyser answered JVCO1 16 Bit to a code built with NEC's durations. Their compiler emits JVC as 8400/4200 with 500/500/1600. A code built the other way is 590 microseconds long in its lead in and wrong in every bit cell, and their analyser named it correctly anyway.

Sharp 15 Bit, section 159, was seeded from published protocol documentation at 320/680/1680 on the strength of their analyser reading 17 catalogue codes built with it back to the exact number, on 17 of 17. Their compiler emits the two Denon receivers' 15 bit family with a mark of 260 and spaces of 790 and 1850, at 37 kHz. So every duration in the seed is out by a fifth to a quarter, and the only thing it got right was the shape, headerless and space carrying.

So readBack is retired as evidence and the documented category is empty rather than corrected. A rhythm judged only by their analyser is a rhythm that will be named correctly and will not be what any appliance was sold expecting. The field stays in the type, because saying that a category is deliberately empty is worth more than deleting the ability to express it.

The instructive part is that the analyser's tolerance was visible before either case. Section 159 measured it refusing a rhythm at one bit width and accepting the same rhythm at another, and read that as a limit on what it can rule on. It is also a statement about what it accepts, and nothing followed the second reading through.

What did not join, and it is three questions rather than one

171 records matched no catalogue code of their own appliance, and 11 readings would not yield timings. Those two counts overlap rather than adding up, because a record whose durations refuse to split then fails to land at all and is counted in both, which is how the Sharp family was 162 of each until it joined. Section 161 took this apart and the count is 75 now: the attribution was a vote that returned nothing on four groups of the fifteen, so 242 records were being dropped whole and a further 210 turn out to read as nothing at all rather than to match nothing. Seven families are in this configuration and not in the table: Microsoft 30 Bit, Panasonic 16 Bit, Magnavox 13 Bit, Sharp 48 Bit, Logitech 24 Bit, Kreatel IP 22 Bit, JerroldO1 16 Bit, plus MemorexV2 32 Bit Dual. The biphase one is expected, since irFrame cannot read it at all and section 153 says why.

Sharp joined, and one duration was the whole of what stopped it

Sharp was written up here as two separate problems and it was one, which is worth having in the record because the second half was a claim about somebody else's data made without a comparison behind it.

The half that was real. The first mark of every Sharp record is 270 microseconds where all fourteen later marks are 260, so the flat half of the pairs is not one length throughout and a reader demanding that it be refused every record. The fix is a field rather than a tolerance: firstMark on FrameTimings, allowed only where the differing flat is the opening one, which keeps a genuinely inconsistent run a refusal. It is a longer opening burst and not a lead in, and that is measured rather than assumed: reading it as part of the first bit cell is what makes 162 of 162 frames land on numbers the catalogue states, and reading it as a header eats the first cell and lands on none. With it, Sharp 15 Bit 2 reproduces 162 of 162 of its own records exactly, at 37 kHz with no lead in at all.

The half that was wrong. This section stated that Sharp's numbers "do not join under any transform tried", giving our reading of a Denon record as 0x230C against the catalogue's 0x1854 and 0x1BAB. A brute force over the set instead of over a pair settles it: taking the 246 fifteen bit numbers the appliances state as one set and the 162 frames our decoder reads out of their groups as another, the identity maps 162 of 162 of ours into theirs. There was no bit order problem. A bit reversal reaches 25, the complement and the reversed complement reach none.

What that instrument cannot say is worth stating with it, since it is the price of using a set. A Sharp command is two frames differing in the low ten bits and the catalogue states both, all 246 of 246, so the stated set is closed under that inversion and the inversion therefore scores exactly what the identity scores. So this settles that no reordering is needed and leaves open which frame of the pair a given record's first block is.

Why the wrong claim was reachable is the transferable part. The comparison was made between our reading of one record and a stated code picked out of the same appliance's list without establishing that the two were the same command. Two numbers of one appliance are not a pair. It is the same shape as section 32's closure whose two ends came out of the same bytes and as section 148's check whose falsifier sat outside its own population: a comparison means something when the two sides are established to be about the same thing, and a set against a set needs no such establishing, which is why it was the right instrument here and cost less than the pair did.

The inversion itself was confirmed on the record and stays confirmed: the two frames a record sends differ by exactly 0x3FF, the low ten bits, which is what section 159 read out of the notation and what the published protocol does.


Section 159 | the archive | section 161. Section 160 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.