Set up a sign over a USB cable, with a notice when it is plugged in #14

Open
opened 2026-11-24 17:27:18 -05:00 by cmoriarty · 0 comments
Owner

Deferred from milestone 5 (#8, the OpenSpec change add-setup-without-code) by the owner on 2026-11-24: setup from a phone ships first, and the cable path gets a change of its own later.

The idea (the owner, 2026-11-24, on #8): when a sign is plugged into a computer (Mac, Windows, Linux), the user gets a notice, "Configure My Stop?", that opens the same web app the QR code leads to.

What was found on 2026-11-24 (from Chrome's source and the browsers' own documentation; nothing has been tried on a machine yet)

  • Chrome shows a notice for a USB device that carries a web address (WebUSB's landing page): "product name detected", "Go to host to connect." It is in Chrome on Mac, Windows, Linux and ChromeOS, on by default, and only while Chrome is already running when the device is plugged in. The address must be https. The words are Chrome's own and can't be changed.
  • On Windows, Chrome can read the address only through an interface bound to WinUSB, so the sign must carry MS OS 2.0 descriptors. On Linux, Chrome must be able to open the device (a udev rule), and it skips any device that has a mass-storage interface.
  • Edge and the other Chromium browsers: not confirmed. Firefox and Safari show no notice. No operating system shows such a notice by itself for a device with nothing installed.
  • The page then talks to the sign over the cable. Web Serial is in Chrome, Edge and Opera on a computer, in Firefox 151 (May 2026) behind a prompt, and in Chrome 148 on Android; Safari has declined it.
  • A page opened from a file on disk can use Web Serial in Chrome, so a sign could also carry its own page on a small drive. Such a page must be one self-contained file.
  • Improv over serial (packet version 1) gives what this needs: what the sign is, the networks it sees, a join that is tested, and a link to carry on at. ESP Web Tools 10.5.3 (Apache-2.0) uses it and needs https. An S3 with a TinyUF2 bootloader may need BOOT held by hand to be flashed from a page.
  • The S3's core has USB.webUSB() and USB.webUSBURL(). The M4 would need the TinyUSB stack (USE_TINYUSB), which looks after USB from the program's own loop; the core PlatformIO ships (1.7.16) has a build fault with it that is fixed in 1.7.18; and the M4 has had starts stop over USB before.

What this ticket holds, taken out of add-setup-without-code

  • Wi-Fi over USB by the Improv standard on both boards (its spec usb-setup, tasks 11.1 and 11.2).
  • The installer page: ESP Web Tools for the S3, the .uf2 steps for the M4, built by the release job (tasks 11.3 and 11.4, and 1.6, the web install tried on a real S3).
  • New: the notice when the sign is plugged in, on the S3 first.

To decide when it starts

  • A public https address that the project owns, for the notice and the page. It is built into every sign.
  • Whether the M4 gets the notice at all, given what its USB would have to change.
  • Whether the notice shows always, or only on a sign that has not been set up.

Related: #8.

Deferred from milestone 5 (#8, the OpenSpec change `add-setup-without-code`) by the owner on 2026-11-24: setup from a phone ships first, and the cable path gets a change of its own later. **The idea** (the owner, 2026-11-24, on #8): when a sign is plugged into a computer (Mac, Windows, Linux), the user gets a notice, "Configure My Stop?", that opens the same web app the QR code leads to. **What was found on 2026-11-24** (from Chrome's source and the browsers' own documentation; nothing has been tried on a machine yet) - Chrome shows a notice for a USB device that carries a web address (WebUSB's landing page): "*product name* detected", "Go to *host* to connect." It is in Chrome on Mac, Windows, Linux and ChromeOS, on by default, and only while Chrome is already running when the device is plugged in. The address must be https. The words are Chrome's own and can't be changed. - On Windows, Chrome can read the address only through an interface bound to WinUSB, so the sign must carry MS OS 2.0 descriptors. On Linux, Chrome must be able to open the device (a udev rule), and it skips any device that has a mass-storage interface. - Edge and the other Chromium browsers: not confirmed. Firefox and Safari show no notice. No operating system shows such a notice by itself for a device with nothing installed. - The page then talks to the sign over the cable. Web Serial is in Chrome, Edge and Opera on a computer, in Firefox 151 (May 2026) behind a prompt, and in Chrome 148 on Android; Safari has declined it. - A page opened from a file on disk can use Web Serial in Chrome, so a sign could also carry its own page on a small drive. Such a page must be one self-contained file. - Improv over serial (packet version 1) gives what this needs: what the sign is, the networks it sees, a join that is tested, and a link to carry on at. ESP Web Tools 10.5.3 (Apache-2.0) uses it and needs https. An S3 with a TinyUF2 bootloader may need BOOT held by hand to be flashed from a page. - The S3's core has `USB.webUSB()` and `USB.webUSBURL()`. The M4 would need the TinyUSB stack (`USE_TINYUSB`), which looks after USB from the program's own loop; the core PlatformIO ships (1.7.16) has a build fault with it that is fixed in 1.7.18; and the M4 has had starts stop over USB before. **What this ticket holds, taken out of `add-setup-without-code`** - Wi-Fi over USB by the Improv standard on both boards (its spec `usb-setup`, tasks 11.1 and 11.2). - The installer page: ESP Web Tools for the S3, the `.uf2` steps for the M4, built by the release job (tasks 11.3 and 11.4, and 1.6, the web install tried on a real S3). - New: the notice when the sign is plugged in, on the S3 first. **To decide when it starts** - A public https address that the project owns, for the notice and the page. It is built into every sign. - Whether the M4 gets the notice at all, given what its USB would have to change. - Whether the notice shows always, or only on a sign that has not been set up. Related: #8.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
moriarty-engineering/my-stop#14
No description provided.