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

Want to add BLE support #15

Open
sago35 opened this issue Oct 12, 2023 · 6 comments
Open

Want to add BLE support #15

sago35 opened this issue Oct 12, 2023 · 6 comments
Labels
help wanted Extra attention is needed

Comments

@sago35
Copy link
Owner

sago35 commented Oct 12, 2023

I would like to add an implementation of the nRF52840 with BLE HID.
However, I do not have much knowledge of BLE and do not know how to tackle this issue.

@sago35
Copy link
Owner Author

sago35 commented Oct 12, 2023

I have tried the following so far

F5f70FrboAAIiq-

@sago35 sago35 added the help wanted Extra attention is needed label Oct 12, 2023
@funkycode
Copy link

i tried to implement it, but i doubt it is possible, as per tinygo bluetooth lib bonding/pairing is still not implemented and i would assume it would be impossible to act as a keyboard on device if you are not paired (at least from my understanding)

i opened meanwhile PR that does implement communication between two halves though, would like some feedback and maybe direction on how to improve it 🙏

@sago35
Copy link
Owner Author

sago35 commented Oct 31, 2023

Oops, tinygo-org/bluetooth did not support bonding.
Now, how should we proceed?

https://github.com/tinygo-org/bluetooth#api-stability

This package will probably remain unstable until the following has been implemented:

Scan filters. For example, to filter on service UUID.
Bonding and private addresses.
Full support for all features at least two desktop operating systems.
Maybe some Bluetooth Classic support, such as A2DP.

@sunxkui
Copy link

sunxkui commented Feb 29, 2024

Maybe it helps here https://github.com/bgould/tinygo-model-m

@sago35
Copy link
Owner Author

sago35 commented Feb 29, 2024

Thank you for the information. This is an example using a device that can be connected via SPI to BLE.

@sago35
Copy link
Owner Author

sago35 commented Feb 29, 2024

BLE HID Keyboard support has started to work a bit in #22. At least it worked on Android. However, pairing did not work well on Windows. We need to investigate this further in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants