quangthanh010290 / keyboard_mouse_emulate_on_raspberry

Bluetooth Keyboard Mouse Emulator on Raspberry Pi
https://thanhlev.github.io/
MIT License
289 stars 98 forks source link

Refuses to connect to android devices #28

Closed billthefarmer closed 2 years ago

billthefarmer commented 3 years ago

I find this project somewhat amazing – there are at least three sets of instructions, all different:

  1. https://thanhle.me/make-raspberry-pi3-as-an-emulator-bluetooth-keyboard/, this contains a link to this project as part of the code.
  2. The README for this project.
  3. https://thanhle.me/emulate-bluetooth-mouse-with-raspberry-pi/

The name of the project has also been changed, fortunately Github works around that. After entering tmux a, I find there are only three panes, so there's nothing to use to run bluetoothctl. It's possible that there's another session that I haven't worked out how to connect to.

So after splitting one of the panes to get a bluetoothctl session, I can get all the parts working. However, both android devices I have tested can see the ThanhLe_Keyboard_Mouse device, and to manage to get paired with it, but they won't connect. The bluetoothctl output shows them connect and then immediately disconnect. I have no idea why and no idea how to find out.

I only investigated using a Raspberry Pi 3 as a bluetooth keyboard because I've got one, and a spare keyboard and a user raised the idea of keyboard shortcuts for my android Editor app. I found that most of the implementations online can't possibly work because the BlueZ project made fundamental changes to the API that, AFAICS, make certain that any previous projects won't work.

I found that it does work with a Windows desktop

So, having wasted about a day attempting to get this to work on android, I have given up.

quangthanh010290 commented 2 years ago

Sorry for you feeling, since things change day by day, so the video was not get updated. When I have time I will remake it. Now we dont need bluetoothctl any more. Did you try to reboot raspberry after install ?