95. A remote stays in USB mode when the cable goes, and its own software never lets that happen¶
An observation on 9 August 2026, and it turns out to be a product requirement rather than a curiosity: pull the cable and the Harmony One keeps showing USB mode until the batteries come out.
The firmware can see the cable go¶
The USB stack tests the bits that would tell it. 0x200E0 tests UCON bit 5, SE0, which is the
bus reset and detach condition, and 0x2011A tests SUSPND. The service routine at 0x2D886
handles UIR bit 3 TRNIF and bit 4 IDLEIF and bit 2 ACTVIF, and the state machine enables
URSTIE and IDLEIE in UIE before it moves on. A detach looks exactly like idle, so the module
notices.
So the mechanism is not missing. What is missing is anything that takes the application out of USB mode on that event, and this section has not found one.
Logitech's own software never relies on it¶
Every operation in the Desktop client's own files ends with an explicit command rather than with a
disconnect, docs/host-client.md. The config write ends with a reset, 0xE0 0x02, marked to wait
for the remote to reboot. The learn session ends with a restart command carrying a stop entry point.
And the entry point table's first value is terminate.
So the remote is designed to be told when a session is over. Pulling the cable is not that, and it is not a case their software ever exercises.
How deep it goes, measured¶
Reconnecting does not help. With the remote showing USB mode after its cable had been pulled, it was plugged back in and did not enumerate at all: sixteen seconds of polling, two other Logitech devices visible on the same machine and no Harmony among them. Only taking the batteries out clears it.
So this is not a stale screen over a working stack. The remote stops presenting itself on the bus, and the host has no way back in, which means no command can rescue it either.
It also explains the freeze earlier the same day, and corrects a correction¶
At midday a remote was found hung and not enumerating, and this document briefly blamed a 65 byte read, then retracted that when the account of the session showed successful operations and a charger to USB transition in between. The retraction was right about the read and wrong to leave it unexplained. This is the explanation: every session this project runs ends by closing a handle and pulling a cable, which is exactly the case that leaves a remote in this state. It is reproducible on purpose, which the midday event never was.
So the cause is how a session ends rather than what the session did, and the odd count read is cleared of it a second time and for a better reason.
Observed again the same day, and the sequence is fully known this time¶
The spare One did it again after the section 96 falsification reads: cable pulled, remote stuck
showing USB mode, batteries out to clear it. This one is worth recording because nothing unusual
preceded it. The last command it received was an ordinary 32 byte READ_FLASH of the config base,
which answered correctly and matched its dump, and the deliberate hang before that had already
cleared itself and been verified healthy.
So the pattern is exactly what this section claims: it is the disconnect, not the traffic.
Two occurrences on the same unit on one day, and the second following a plain successful read, moves this from a single observation to something a bench session should simply expect.
Wrong, and the control that shows it was run on 10 August 2026. A session containing nothing but one plain 32 byte read, followed by pulling the cable, left the remote out of USB mode and back on its normal display. So a disconnect on its own does not strand a remote, and this subsection's "nothing unusual preceded it" was reading "the last command" as "the session". Both sticking occurrences followed sessions that contained a deliberate odd count hang; the one that did not, did not stick. Section 99 has the control and what it points at.
What it means for the application¶
A session has to be ended, not abandoned. Version 1 of FreeHarmony is read only and closing a
handle is all it does, so it leaves a remote in USB mode exactly as observed, and unreachable until
its owner takes the batteries out. Ending it properly means sending a command, which is a state
change and therefore sits behind WRITES_ENABLED in packages/usb/src/rails.ts along with
everything else that changes a remote.
That is an uncomfortable place for a read only product to be: the polite way to finish is behind the flag that exists to stop it touching anything. Worth deciding deliberately rather than discovering, and it is the strongest argument yet for a narrow exception with its own rail rather than for widening the write flag.
That is worth having written down before the product is built, because it is the kind of thing that reads as a bug report from the first user and is a design decision here. Until then the honest behaviour is what this project already does: leave the remote alone, and tell the user that the batteries clear it.
Which command is not established. 0xE0 0x02 is a reset and the client uses it after a write;
whether a read only session should reset a remote at all is a product question rather than a
protocol one, and the terminate entry point may be the gentler answer.
Section 94 | the archive | section 96. Section 95 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.