v148 · Devices · demo
Port Explorer
Request access to a serial port and inspect its metadata — vendor ID, product ID, and USB class — using navigator.serial.requestPort(). Works on desktop Chrome and Android Chrome 148+.
No port selected yet. Click the button above to open the browser port picker.
// Request a port (must be in a user gesture)
const port = await navigator.serial.requestPort();
// Read metadata without opening
const info = port.getInfo();
console.log(info.usbVendorId); // e.g. 0x2341 (Arduino)
console.log(info.usbProductId); // e.g. 0x0043
console.log(info.usbClass); // e.g. 2 (CDC — serial over USB)
// Get previously granted ports
const ports = await navigator.serial.getPorts();
console.log(ports.length, 'remembered port(s)');
see also
- Serial Terminal — open a port and exchange data
- Back to feature index
- ChromeStatus entry
implementation reference
Need the exact API surface, compatibility boundaries, errors, lifecycle, and source links? Read the matching gendn reference ↗