Web Serial API
The Web Serial API is a web standard interface that allows web applications to communicate with serial ports on a user's device through the browser. Specified by the W3C as part of web hardware access capabilities, it is primarily used to connect microcontrollers, sensors, industrial devices, and other serial peripherals. The API provides asynchronous read and write data stream capabilities, requires explicit user authorization before access is granted for security, and is applicable to IoT debugging and hardware control scenarios.
Timeline (last 90 days)
This web application uses the Web Serial API to upload firmware directly to the Arduino in the Chrome or Edge browser, skipping the path of installing the Arduino IDE locally.
The Web Serial API is currently mainly limited to Chromium-based browsers (Chrome, Edge, Opera), and Firefox and Safari do not yet support it.
The Web Serial API requires the page to run in a secure HTTPS context, and the user must manually authorize serial port access each time.
All Facts (7)
现代浏览器通过Web Serial API可以直接访问串口设备,使得HTML版串口调试助手完全可行
90%UnverifiedWeb Serial API要求必须由用户主动触发才能请求端口访问权限,且仅在HTTPS或localhost环境下可用
90%UnverifiedWeb Serial API是由W3C的WICG(Web Incubator Community Group)提出的浏览器标准
85%UnverifiedWeb Serial API于2021年在Chrome 89中正式落地,允许网页通过JavaScript直接与串口设备通信
85%UnverifiedThis web application uses the Web Serial API to upload firmware directly to the Arduino in the Chrome or Edge browser, skipping the path of installing the Arduino IDE locally.
50%UnverifiedThe Web Serial API is currently mainly limited to Chromium-based browsers (Chrome, Edge, Opera), and Firefox and Safari do not yet support it.
50%UnverifiedThe Web Serial API requires the page to run in a secure HTTPS context, and the user must manually authorize serial port access each time.
50%