Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for bluetooth serial devices #55

Open
95gabor opened this issue Aug 9, 2023 · 4 comments
Open

Add support for bluetooth serial devices #55

95gabor opened this issue Aug 9, 2023 · 4 comments

Comments

@95gabor
Copy link

95gabor commented Aug 9, 2023

I love this project. Could you also provide Bluetooth support for serial devices?

@reillyeon
Copy link
Collaborator

There are issues like #7 which reference specific proprietary Serial-over-X protocols (e.g. the Nordic Bluetooth GATT UART). Is this request referring to another Serial-over-GATT protocol or Serial-over-Bluetooth Classic (i.e. RFCOMM)?

@reillyeon
Copy link
Collaborator

Also to set expectations, I don't have time to implement any particular protocol in this library but I am happy to review patches adding such support.

@95gabor
Copy link
Author

95gabor commented Aug 9, 2023

There are issues like #7, which reference specific proprietary Serial-over-X protocols (e.g. the Nordic Bluetooth GATT UART). Is this request referring to another Serial-over-GATT protocol or Serial-over-Bluetooth Classic (i.e. RFCOMM)?

Yes, I think Bluetooth GATT is what I need, but I'm not sure since I'm currently using the web serial interface, which hides this from me. (I just want to make it available for Android devices as well)

Also to set expectations, I don't have time to implement any particular protocol in this library but I am happy to review patches adding such support.

It's understandable, I'll try to implement it, but it's still a foreign area for me.

@reillyeon
Copy link
Collaborator

There are issues like #7, which reference specific proprietary Serial-over-X protocols (e.g. the Nordic Bluetooth GATT UART). Is this request referring to another Serial-over-GATT protocol or Serial-over-Bluetooth Classic (i.e. RFCOMM)?

Yes, I think Bluetooth GATT is what I need, but I'm not sure since I'm currently using the web serial interface, which hides this from me. (I just want to make it available for Android devices as well)

If the browser-implemented Web Serial API is working for your device then this is probably Bluetooth Classic rather than Bluetooth GATT. This reason for this assumption is that I don't think there's a standard protocol for Serial-over-GATT which your operating system is detecting an creating a platform-level serial port from that the browser detects. Unfortunately this means there isn't an option for implementing support for such a device through this polyfill as there isn't any other web API which provides access to Bluetooth Classic devices.

We are working on shipping built-in support for Bluetooth Classic devices in Chromium, initially targeting desktop platforms but once the API changes have landed adding support for Android should be a straightforward follow-up project.

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

No branches or pull requests

2 participants