Code sample HID client using Bluez

I’m desperately looking for some C sample source code that describes how to implement a HID client using Bluez. More specifically, I would like to know how to write an application that sends keyboard inputs over bluetooth to another Linux system. (Really, the fact that the receiver is running Linux/Bluez shouldn’t matter.)

-Cheers

android bluetooth serversocket with python-bluez client

I am trying to connect my laptop(as client) to my android phone(as listener) using python-bluez on the laptop and android-bluetooth API on the phone. I use the following code for my phone: BluetoothS

Porting BLE under android using bluez

I’m new bluez user , I ‘m trying to use the bluez API and develop a native code c using NDK in order to make android 4.0.3 support BLE I read the code source of Bluez but I can’t find exactly what fun



How to scan for Bluetooth low energy devices using bluez API

I’m new in programming Bluetooth low energy using BlueZ. I want to develop a native code c to scan nearby devices using a BlueZ API for Bluetooth low energy under Android 4.0.3. Anyone know which Blue

Bluetooth: Detect Event Using Bluez

We are trying to detect an event in C/C++. We are using Bluez on Linux as our Bluetooth Library. Our objective is to run an external script when that event is triggered. Specifically, we have a Motoro

Android: Swipe using HID

I want to implement android swiping mechanism using a HID (Human Interface Device). For example, if I click button X on my HID, it should be equivalent to swiping left on my android device. Can anyone

Bluetooth LE HID Eject Key Code?

I am implementing a dongle based on the TI Bluetooth LE HID sample that needs to restore or disable keyboard functionality. When using an Apple keyboard with an iOS device, pressing the eject button w

Pair iPhone with Ubuntu using bluez 5.17

I am using the graphical interface to find and pair the iPhone with my laptop. On the iPhone I can see the 6 digit number, but on the ubuntu bluez interface I can’t. When I observe the bluetooth traff

How to send Bluetooth Low Energy GATT Notification with Bluez?

I am extending plugin/gatt_example.c in Bluez sources to try the BLE Notification function without success. I am using the included sample Battery Service in Bluez source. It has 1 characteristic with

Android not discovering Bluez service

I don’t know what can be happening. I have a bluetooth application developed on my laptop using BlueZ. I have managed to create a client that connect to that server using Bluez, but I’m unable to do s

Multiple BLE Connections using Linux and Bluez 5.0

I am currently attempting to connect to multiple BLE devices using BlueZ 5.0 and Linux. I have one host BLE adapter and I have modified the gatttool to connect and perform this function. If I run an i

Answers

Shamelessly copying from a previous answer of mine:

Some time ago I found this project:

http://nohands.sourceforge.net/index.html

They emulate a full-blown headset with audio and keyboard controls on the Linux bluetooth stack. If they can emulate something like that, you would probably be able to emulate something simpler like a keyboard.

Here is full example apply to keyboard and mouse include get report set report virtual unplug function. the client hid is slave side… http://fatalfeel.blogspot.tw/2013/09/hid-client-of-bluez.html

and you can refer to bluez/android/hidhost.c(Master side) see how to connect to slave