198. The file based family speaks one file protocol, Logitech specifies it whole, and a Harmony Touch can be read without writing anything¶
Section 193 refused to open a Harmony Touch on the ground that "the file based family keeps its config in a named file rather than at a flash address, so nothing here reaches it: no address, no firmware, no RAM". The first half is right and the second half is now wrong, and the cost was no measurement at all: the protocol is specified, in the same mirrored client section 197 opened, and the identity read is three commands none of which writes anything.
Client sourced throughout, decision 2, so nothing below is adopted as a fact about a remote. It is a specification of what Logitech's own host sends, which is a different thing from what a remote does with it, and section 197's arch 18 disagreement is this file's standing reminder of the gap.
The split is exact and the two families do not overlap¶
Counted over all 23 skin directories rather than sampled. A file names a service id and a command id,
or it names protocol="hid", and no file names both:
| family | skins | which |
|---|---|---|
| the HID command protocol | 4 | 50, 54, 66, 68 |
| the file protocol | 19 | 78, 82, 86, 96, 97, 99, 100, 102, 103, 104, 105, 106, 108, 111, 112, 113, 115, 116, 400 |
Three of the four are this project's own architectures, 12 (Harmony One), 14 (Harmony 600 and 700)
and 9 (Harmony 510, which is the Harmony 525's architecture), and skin 50 declares no architecture
anywhere in its files. So the client's supportedLegacyArchitectures list of 9, 12 and 14, section
197, is not a grouping that happens to include our scope: it is the whole of the other family, and
the templates say so by construction rather than by a rule in the JavaScript.
One service, nine commands, and every packet has the same first four bytes¶
Every packet in all 19 directories carries service id 0xFF, 1629 of 1629. The command id is the
second byte, then a sequence number, then a count of the parameters that follow. Nine values appear:
| command | what it does | parameters |
|---|---|---|
0x00 |
ping | none, or one byte 0x00, which the template's own comment says simulates a USB reset |
0x01 |
open | a path string, a mode string R or W, and for a write a u32 size |
0x03 |
write | the handle and a packet count, then the data packets, then a done packet |
0x04 |
read | the handle and a packet count |
0x05 |
flush, meaning commit | the handle and a flag the comment calls "do not validate the region" |
0x06 |
device control on an open file | the handle and a subcommand |
0x07 |
close | the handle |
0x08 |
a request and response with no file at all, which the comments call an HBus command | a packet count |
0xFF |
device control with no file | 0x66 resets the file system, 0x00 reboots |
An open's reply is where the shape is unmistakable. The handle is one byte at position 5 and the
file's size is a big endian u32 at position 7, which is the same endianness the HID family's
addresses use and the opposite of everything inside a config container. Byte 2 echoes the request's
sequence number and must not be 0xFF, so that value is the error marker; every command in every
file checks it.
The identity file reads the same seven fields our version block carries¶
/sys/sysinfo, opened R, read, closed. Three commands, no state change, and the client's own
handler is told which fields to expect: architecture, skin, firmware version, hardware version,
firmware type, a GUID and a serial number.
That is the calibration this section rests on. packages/usb's readVersion identifies six fields of
the HID family's version block, and five of them appear in that list under the vendor's own names,
with the serial number the sixth thing concordance -i reports. So the two families answer the same
question with the same fields by two entirely different mechanisms, which is why an identity read is
the right first contact rather than a guess.
It is a read in this project's sense of the word. Nothing in the sequence changes a byte on the
remote: no 0x03, no 0x05, no 0xFF. That matters because openHarmony currently refuses the five
file based product ids outright, and the reason recorded in section 193 was that there is no protocol
here to speak. There is.
Reading a config back is specified and switched off¶
SKIN99/userconfiguration.xml states the whole write of a user configuration, and then carries the
read of the same file commented out, under a header that calls it "for testing only". So
Logitech's own client can put a configuration on a Harmony Touch and cannot take one off, by choice
rather than by capability, and the three commands it would take are in the file: open R, read with a
packet count, close.
The read's data packets are described by the same handler parameters as the identity read: a sequence
number at offset 0, a size at offset 1, the payload from offset 2, and a terminator packet whose first
byte is 0xFE. A read is issued for 175 packets at a time on the Touch and 6 for the identity file,
so the count is per operation rather than per model.
The write is gated on a checksum the remote computes itself¶
Worth recording because it is the first write protocol in this project that carries its own verification, and because of what it says about section 41.
0xFFwith0x66resets the file system.0x01opens the pathWwith the file's size stated up front.0x03writes, in chunks of 175 packets, each chunk being a command packet, then data packets of two zero bytes plus a report's worth of payload, then a done packet whose single byte is0x7E.0x06with subcommand0x01hands the remote five checksum parameters and asks it to check the file it has just received.0x05commits, and itsconditionattribute is##checksum.result##==m, so the commit runs only if the remote answered with a single charactermat position 7.0x07closes, and0xFFwith0x00reboots.
The five parameters are the same five a firmware package's manifest states, section 196: a type, a
seed, an offset, a length and an expected value, under those exact names in both. The Harmony 350's
manifest gives TYPE="XOR" SEED="0x4321" OFFSET="0x0004" LENGTH="0x11EF8" EXPECTEDVALUE="0x8F7B", and
section 196 recomputed that as section 41's XOR of little endian 16 bit words. So the manifest and the
template are two halves of one specification: the manifest names the algorithm and the template hands
it to the remote.
Two more attributes close it. The manifest's PATH="/fw/normalmode" is exactly the %%file.path%%
the template's open command sends, and its OPERATIONTYPE="firmwareupgrade" names the template file
itself, firmwareupgrade.xml. Nothing in either half had to be guessed to make them fit.
The algorithm is described, not fixed, and that is the part not to overclaim. TYPE is XOR with
seed 0x4321 on the Harmony 300 and 350 package, and MD5 with seed 0 on the Harmony Touch and
Harmony Ultimate Hub packages. So section 41's checksum reaches the file protocol's own generation of
package and no further, and what is one shape across every generation here is the descriptor rather
than the sum.
A free confirmation came with it. Section 196 measured that the packages come one per family by
comparing our own digests; the manifests state their own EXPECTEDVALUE, and the Harmony Touch's and
the skin 112 package's are the same MD5 over the same length. Two routes with nothing in common.
Skin 96 contradicts the split and is not resolved here¶
SKIN96 declares model id 66 and architecture 14, which is the Harmony 700, and its learnir.xml
is a file protocol file: /ir/ir_cap, open, read, device control, close, byte for byte the
operation SKIN99 gives the Harmony Touch. Its sibling SKIN66 declares the same model id and
architecture and speaks the HID protocol, and its description calls it "Molson Remote (HID)" where
skin 96's says only "Molson".
Two things make it worth recording rather than dismissing. Skin 96 is not in Logitech's own live product table, which lists 97 skins including 54, 66, 68 and 99 and has no 96 at all. And the client's own rule picks the protocol from the architecture, so a template declaring architecture 14 would never be driven by the file protocol's encoder under it. So either the rule and the template disagree, or skin 96 is a variant that was never shipped, and nothing here decides which. No conclusion about the Harmony 600 or 700 may be drawn from it: the two bench remotes of that architecture both speak the HID protocol, measured, thousands of times.
First contact with the family, and it answered¶
Measured on 28 August 2026 on the Harmony Touch on the bench, 0x046D:0xC12B. This is the first time
anything in this project has sent a packet to a remote of this family, and everything sent was a read:
the transport openFileBasedRemote returns carries an allow list of open for reading, read, close and
a bare ping, and refuses the rest, so no write path exists to be enabled.
An open of /sys/sysinfo is answered and refused, and the reply is the same six bytes every time:
ff 01 ff 01 01 0b
Which reads as the service echoed, the command echoed, the error marker in the sequence byte, one
parameter, and then 01 0b. So the specification is close enough that the remote parses the packet
and replies in the reply shape section 198 predicts, and the refusal is a refusal rather than a
failure to be understood. Four things do not change it: the path, since /sys/guid gives the identical
reply; the sequence number, 0 and 1 alike; the stated parameter count, 2 and 3 alike; and the case of
the mode letter. What 01 0b means is unread.
A packet the remote does not like leaves it silent for the rest of the session. A path with no leading slash drew no reply at all rather than an error, and every command after it in the same session also drew nothing. So each attempt needs a fresh handle, and a run of attempts through one handle measures the first one and then nothing, which is a trap worth naming because the second and third attempts look like clean negative results.
A bare ping is not the missing step. Their own client's identify operation opens with a ping, so the ping was the obvious candidate for what an open is missing, and it was added to the allow list for that reason, in its parameterless form only, with the one parameter form refused because their own comment says it restarts the USB link. Measured: a bare ping draws no reply, and the open after it draws none either, which is the silence above rather than a second result. So the ping is either not this shape or not what is missing.
The remote is unharmed and enumerates normally afterwards, checked after every round. Nothing was written, and the state is a session that stops answering rather than anything persistent.
What is left is a small, bounded question: which byte of an open is wrong, or which command has to come before it. The candidates not yet tried are a length prefixed string, a report id ahead of the service byte, and a real value in the sequence field rather than zero. The cheap instrument for it is the Harmony 350, because its firmware is the one image this project holds for the family, so its own open handler can be read rather than guessed at.
The refusal names the framing, and the templates' magic offsets fall out of it¶
A parameter is length prefixed, one byte of length then that many bytes, and a string carries no terminator because the length already says where it ends. The first reading here was NUL termination, taken because the firmware compares an incoming name against a pool of NUL terminated strings, and it is wrong.
The refusal is what says so. ff 01 ff 01 01 0b is service, command, the error marker, one
parameter, and then 01 0b, which under this rule is a length of one and a value of 0x0b. Nothing
else explains a stated parameter count of 1 followed by two bytes.
And the closure is stronger than the refusal, because it uses numbers written years before any of this. Logitech's templates read an open's reply at two offsets and never say why: the handle at position 5 and the size at position 7, the size four bytes wide. Under length prefixed parameters those are arithmetic. Count at 3, a length byte at 4, a one byte handle at 5, a length byte at 6, four size bytes at 7. Both offsets and the width come out, and no other framing this project tried produces them: NUL termination puts the handle at 4 and the size wherever the path's length leaves it, which is per path and therefore cannot be a constant in a template at all.
That last point is the one to keep. A protocol whose reply is read at fixed offsets cannot have variable length fields ahead of them, so the templates' own constants were evidence about the framing the whole time, and the way to have seen it sooner was to ask why an offset was a constant.
Tried on hardware after a replug, and it is refuted for the request: length prefixing the request drew no reply at all, where the NUL terminated form draws a reply that refuses. Silence is weaker evidence than a refusal and it points one way only, so a request's strings are NUL terminated and the encoder was put back. The offset closure still stands for the reply, which is what it was always about.
So the two directions are framed differently, and the mistake worth recording is the
generalisation rather than the reading: a closure derived from a reply was applied to a request
because a protocol framing both ways alike is the tidier answer. packages/usb/src/filepipe.ts
carries both halves with their own evidence beside each.
The refusal happens before the path is looked up¶
Four opens in one session on the replugged Harmony Touch, all reads: a file that exists, a second
file that exists, a directory, and /definitely/not/here. All four answer
ff 01 ff 01 01 0b, byte for byte.
So 0x0b is not "no such file" and the path is not consulted at all. That is a real narrowing and
it moves the problem out of the parameters: the remote rejects the request on something it reads
before the path, which leaves the header and the session. The candidates, in the order worth trying:
- A session has to be started. Their own identify operation sends a ping, then a filesystem
reset, then a second ping, and only then the open. The reset is
0xFFwith0x66and it is a write by this project's own rule, so it sits behind the write flag and has not been sent. If a session is what is missing, this is the wall, and it is a decision rather than a measurement. - The sequence number, which is 0 in every template and was tried as 0 and 1.
parameter.number, which is read here as a count of parameters and could be a count of bytes or a descriptor.
What is ruled out: the path, the mode letter's case, and the two sequence numbers tried. What is measured and worth knowing separately is that four well formed opens in one session all answer, so the silence described above is caused by a malformed packet and not by the number of attempts.
The correction to section 197¶
That section said the lab's own notes carried "the Harmony One's whole infrared learn session as four
commands, which is section 91's open question answered", and then that none of it ever crossed into
this repository. The first half is right and the second is wrong. The learn session
crossed on 9 August 2026 and it is thorough: docs/host-client.md carries all four commands with
their byte values, the entry point table whole, the restart command identified as WRITE_MISC
selector 0x0A, the firmware's confirmation of the list's order from section 97, the observation that
the whole selector is a no operation on arch 12 (Harmony One) so the client's own first command is
ignored by the remote it is sent to, and the rail that an implementation belongs behind
WRITES_ENABLED. Sections 91 and 98 cross reference it.
What genuinely had not crossed was the architecture and codename table, the observation that Molson is architecture 14, and the file protocol, and section 197 landed the first two. The lesson survives the correction and it is worth more than the claim was: the check that would have caught this is reading the repository before saying what is not in it, and the reason it was not run is that the sentence felt like the point of the section. A process failure is not evidence for itself.
Section 197 | the archive | section 199. Section 198 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.