Skip to content

113. What bcdDevice says, and the two ways its low byte is read

A skin is Logitech's own index into its model list, so the number names the remote. That has been used here since section 19 and the reading of it was wrong for two of the four architectures, in three separate copies of the rule, in shipped code. The 885 is what found it.

What a skin is, said three times by three different files

statement where authority
<SKIN>17</SKIN> the EZHex header of every config the host software that built it
bcdDevice low byte the firmware's USB device descriptor the remote itself
base slot 1 byte 2 inside the container copied by an editor, section 81

The third is the weakest and section 81 says why: nothing on the remote reads base slot 0 or base slot 1, so a stale value there is never caught. Two containers in the corpus carry a skin their remote does not report. The first two are independent of each other, produced by different halves of Logitech's toolchain, and they agree in every pair available:

model skin bcdDevice protocol
Harmony 880 15 0x080F 8
Harmony 885 17 0x0811 8
Harmony 525 22 0x0916 9
Harmony One 54 0x1054 12
Harmony 700 66 0x1066 14
Harmony 600 71 0x1071 14
Harmony 650 72 0x1072 14

Resolved against the model table in concordance's remote_info.h, all seven name the right remote, and so does the 890's 19, from its config alone since no arch 10 firmware is available. That table is used here as a name for a number and never as evidence for the encoding, which is what the rest of this section is about.

The encoding is per firmware generation, and one formula silently names the wrong remote

The high byte says which:

  • 0x08 and 0x09: the low byte is the skin in plain binary, and the high byte is the protocol number. 0x080F is protocol 8 skin 15.
  • 0x10: the low byte is the skin in BCD, on arch 12 and arch 14 alike, so there the high byte is a constant and not the protocol. 0x1054 is protocol 12 skin 54.

skin_id applied the BCD reading to everything. The 880 alone would never have caught that, because 0x0F is 15 under either rule; malformed BCD, and the formula happens to be right about it. The 885's 0x11 is 17 in binary and 11 in BCD, and Logitech's model list has a Harmony 655 at 11. The mistake in the other direction is the same shape: a 700's 0x1066 read as binary is 102, which is a Harmony Ultimate One. Two wrong readings, two remotes that exist, no error either way.

That is why the two rules are kept apart rather than unified, and why an unrecognised high byte returns nothing at all. 0x0A for the 890 is the obvious next entry and it is deliberately not implemented: no arch 10 firmware exists here to check it against, and a prediction in the code is indistinguishable from a measurement once it is committed.

An argument that was wrong while its conclusion was right

tests/test_usbdesc.py justified BCD with "0x66 read as hex is 102, and there is no skin 102". There is. The conclusion held for arch 14 on other grounds, the agreement with two configs' stated skins, but the reasoning was an invented negative control, and it is replaced by a checked one. Two fixtures in packages/usb/test/remote.test.ts were invented the same way, 0x1015 for an 880 and 0x1022 for a 525, and both are values no remote reports.

Why the two generations differ, which the container answers

Base slot 1 carries the skin as a plain byte on every architecture, section 81, including arch 12 and arch 14: 0x0D36 for a Harmony One is 54, 0x0D42 for a 700 is 66. So the skin itself is not a BCD quantity anywhere. What is BCD is the USB field, and that follows the specification: bcdDevice is by convention a binary coded decimal device release number, so whoever built the arch 12 and arch 14 descriptors honoured the convention and whoever built the arch 8 and arch 9 ones did not.

The 885 extends section 81's table by a seventh model, 0x0D11 for skin 17, and it is the only entry in it that separates the two readings. The corpus's four arch 8 configs are all one model, an 880, which is why this could not have been found before the 10 August 2026 contribution.

A second descriptor block that validates just as well as the real one

usbdesc.find_block returned the first candidate whose chain walks, and the 525's image holds two:

address vendor:product bcdDevice
0x00E92 04D8:000B 0x0000
0x07DFE 046D:C111 0x0916

04D8 is Microchip, and 000B with a zero release is its stock demonstration descriptor, left in the image by the USB stack the firmware is built on. It walks perfectly: eighteen byte device descriptor, configuration, interface. So the tool reported vendor 0x04D8 and skin 0 for a Logitech remote, and nothing failed. The block whose idVendor is Logitech's now wins, with the first validating chain as a fallback for an image where none names it. The chain walk is a necessary test and it was being used as a sufficient one, which is the same error as reading a field's form from its contents rather than from the byte that states it.

Nothing downstream had noticed because the descriptor tests walk two images, the One's and the 700's, and the 525's was never in that list. It is now.

Where it lands

src/harmony/usbdesc.py holds the one Python copy. The rule had three copies and now has two, one per language: tools/usbprobe.py kept a local duplicate on the stated grounds that the tool stands alone, and every other tool in that directory imports harmony through _bootstrap, so the reason was unfounded. packages/usb/src/transport.ts is the TypeScript one, and it cannot be shared, so packages/usb/test/remote.test.ts asserts the same seven pairs the Python test derives from the files. Both return an absent value rather than a number when the generation is unknown, and both tools print skin UNREADABLE rather than a guess.

tests/test_usbdesc.py carries the closure, each firmware image against a config of the same model, and the two negative controls above as assertions rather than as prose.


Section 112 | the archive | section 114. Section 113 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.