Skip to content

Filter serial port picker to TRMNL ESP32-C3 devices only#7

Closed
hossain-khan wants to merge 1 commit intousetrmnl:masterfrom
hossain-khan:filter-serial-port-devices
Closed

Filter serial port picker to TRMNL ESP32-C3 devices only#7
hossain-khan wants to merge 1 commit intousetrmnl:masterfrom
hossain-khan:filter-serial-port-devices

Conversation

@hossain-khan
Copy link
Contributor

@hossain-khan hossain-khan commented Feb 28, 2026

Summary

Improves user-experience when selecting device from USB-C by filtering out only TRMNL devices.

The @zjwhitehead/esp-web-tools fork calls navigator.serial.requestPort() without passing filters, so the browser shows all serial ports (Bluetooth, debug consoles, etc). This patch injects USB VID/PID filters (Espressif 0x303A / ESP32-C3 0x1001) to restrict the picker to TRMNL devices only.

Also adds the serial-port-filters attribute on the esp-web-install-button element for forward-compatibility if the library adds native support.

Fixes #6

Demo

Before After
2026-02-28 08 51 58 2026-02-28 08 52 32

The @zjwhitehead/esp-web-tools fork calls navigator.serial.requestPort()
without passing filters, so the browser shows all serial ports (Bluetooth,
debug consoles, etc). This patch injects USB VID/PID filters (Espressif
0x303A / ESP32-C3 0x1001) to restrict the picker to TRMNL devices only.

Also adds the serial-port-filters attribute on the esp-web-install-button
element for forward-compatibility if the library adds native support.

Fixes #6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error: Improv initialization failed. Error: Improv Wi-Fi Serial not detected

1 participant