Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/WICG/serial
Serial ports API for the platform.
https://github.com/WICG/serial
shipping-chromium
Last synced: 3 months ago
JSON representation
Serial ports API for the platform.
- Host: GitHub
- URL: https://github.com/WICG/serial
- Owner: WICG
- License: other
- Created: 2013-10-29T15:44:42.000Z (about 11 years ago)
- Default Branch: main
- Last Pushed: 2024-02-08T00:11:24.000Z (9 months ago)
- Last Synced: 2024-04-14T05:53:13.570Z (7 months ago)
- Topics: shipping-chromium
- Language: HTML
- Homepage: https://wicg.github.io/serial/
- Size: 250 KB
- Stars: 253
- Watchers: 47
- Forks: 45
- Open Issues: 46
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Security: security-privacy-questionnaire-bluetooth-rfcomm.md
Awesome Lists containing this project
README
# Serial API
[Serial ports API](http://wicg.github.io/serial/) for the platform.
### Explainer
Details about the API including example usage code snippets and its motivation, privacy, and security considerations are described in [EXPLAINER.md](./EXPLAINER.md). Extensions to this API to support connections to Bluetooth RFCOMM services are described in [EXPLAINER_BLUETOOTH.md](./EXPLAINER_BLUETOOTH.md).
### Code of conduct
We are committed to providing a friendly, safe and welcoming environment for all. Please read and respect the [W3C Code of Ethics and Professional Conduct](https://www.w3.org/Consortium/cepc/).
### Implementation status
This API has two implementations: [Blink](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/modules/serial/) and [a polyfill](https://github.com/google/web-serial-polyfill/)
The Blink implementation is available in browsers based on Chromium 89 and later, such as Google Chrome and Microsoft Edge. Individual Chromium-based browsers may choose to enable or disable this API. Chromium-based Android browsers do not support this API because Android itself does not provide a direct API for accessing serial ports. For the same reason this API is not available in Android WebView ([Chromium issue 1164036](https://crbug.com/1164036)).
The polyfill implementation is based on the WebUSB API and currently only supports standard USB communications class devices but could be expanded to support other proprietary USB to serial adapters. It could also be expanded to support Bluetooth Low Energy UARTs via the Web Bluetooth API. Because both WebUSB and Web Bluetooth are available in Chromium-based browsers on Android the polyfill is an option for sites to support Android while using the native browser implementation on desktop platforms.