beta-tester
Posts: 1113
Joined: Fri Jan 04, 2013 1:57 pm
Location: de_DE

can a RPi3 act as bluetooth mouse/keyboard?

Mon Aug 14, 2017 4:53 pm

hello,

my old mobile phone has an option to act as a mouse/keyboard to remotecontrol a desktop PC via bluetooth, without any special or additional software.
i wondering if maybe a RPi3/RPi0w with its bluetooth modul (or any RPi with a BT dongle) can act as a bluetooth mouse and keyboard as well.
what packages do i need, how can i send keyboard/mouse events to a PC. from shell, python, C/C++ doesn't matter. any idea?

BTW.: the option my old mobile phone has to act as remote mouse/keyboard via BT, my new smartphone does not have - only in the app shop there is a far similar solution, that needs a special app and client software in the PC - how stupid is that.
everything gets complicated with the smartphones... :(
{ I only give negative feedback }
RPi Model B (rev1, 256MB) & B (rev2, 512MB) & B+, RPi2B (1GB), 64GB microSDXC1 class 10, HDMI 1920x1080, keyboard-mouse-combo (wireless), PiCamera, ethernet-cable, 5V/1.2A power supply, Wifi dongle (rt5370)

User avatar
Douglas6
Posts: 4045
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: can a RPi3 act as bluetooth mouse/keyboard?

Mon Aug 14, 2017 5:15 pm

The simple answer is 'yes', the complicated answer is, well, complicated. I was able to make a Pi act as a Bluetooth keyboard, but that was some years ago, and using BlueZ 4. BlueZ 5 has changed things up so that doesn't work the same, but it could be modified to work. Here's my original post, reply if you're interested in some programming tips to update that code: viewtopic.php?p=509679#p509679. It's based on code by Liam Fraser, which is available on git hub here: https://www.google.com/url?sa=t&source= ... uyplmKTjXA

beta-tester
Posts: 1113
Joined: Fri Jan 04, 2013 1:57 pm
Location: de_DE

Re: can a RPi3 act as bluetooth mouse/keyboard?

Mon Aug 14, 2017 5:24 pm

thank you, that sounds good...
{ I only give negative feedback }
RPi Model B (rev1, 256MB) & B (rev2, 512MB) & B+, RPi2B (1GB), 64GB microSDXC1 class 10, HDMI 1920x1080, keyboard-mouse-combo (wireless), PiCamera, ethernet-cable, 5V/1.2A power supply, Wifi dongle (rt5370)

Return to “Recommended peripherals”

Who is online

Users browsing this forum: No registered users and 1 guest