quaxalber / bluetooth_2_usb

Convert a Raspberry Pi into a HID relay that translates Bluetooth keyboard and mouse input to USB. Minimal configuration. Zero hassle.
MIT License
32 stars 6 forks source link

[DRAFT] Send keystrokes via BLE GATT server #113

Open ig-sinicyn opened 8 months ago

quaxalber commented 4 months ago

Hi @ig-sinicyn

Thanks so much for your contribution! That's looking really neat.

The title still says [DRAFT] - are you still working on this or planning further changes?

What's your use case for this feature?

Cheers

ig-sinicyn commented 4 months ago

Hi @quaxalber!

This MR is made as an example for this discussion, just as a proof that idea is working. Technically the code is in good shape and I have no issues with it. The thing is, I'm not sure it fits into the use cases of this project. If you're interested I'll check that my code works with current master branch and will remove the draft mark. If not - I'm fine with it as the BLE relay mode may be not the most useful thing:)

I was originally going to use BLE relay mode to control an Android projector (it has some Bluetooth issues and loses connect to bluetooth mouse / keyboard). Suddenly it turns out the thing is really useful for running commands on another computer.

I have two PCs in use - a working laptop and a thin client nettop for remote virtual machine. I use Elgato Stream Deck for most used shortcuts / commands, but I've failed to pair it with the thin client. So, I've connected Stream Deck to the laptop. Stream Deck command runs BLE command line utility that sends shortcuts to the thin client (via a Raspberry Pi running BLE relay). Voila!:)

quaxalber commented 3 months ago

Thanks for the clarification.

Where does RelayKeys fit in this setup? Or has it become redundant by this feature?

While this feature falls out of my intended scope, I can see it being potentially useful to other people with similar use cases.

PS: Would you fancy becoming a maintainer of this project? :)

ig-sinicyn commented 3 months ago

Hi @quaxalber

I've missed the message and I'm very sorry for the late reply.

I've tried the RealyKeys, it works fine and provides much better functionality but requires arduino dongle to work. Actually, the BLE relay mode was made while I was waiting for the nrf52840. It was more like an opportunity to learn something new rather than real project, tbh:)

For the maintainer role - I defennitely want (and going to) help with the project but I'm not sure if my skill level will be good enough. Until now I've used python for small pet projects only. If that is fine - let's go!

quaxalber commented 3 months ago

No worries :) I'm far from considering myself an expert. This project started out of pure necessity for myself since the existing projects didn't quite suit my needs (and also for fun and learning ^^). I greatly appreciate any help moving forward. Sent you a collab invite.