投稿

ラベル(RaspberryPi)が付いた投稿を表示しています

Connect wireless keyboard to RaspberryPi

You can do it easily by using bluetoothctl on Jessie. Versions Raspberry Pi Type B Single Board Computer 512MB Raspbian 8.0 (Jessie) Kernel Version 4.1.10 BlueZ 5.23-2+b1 Start agent mode with bluetoothctl. yy:... is the MAC address of the receiver, xx:... is the Mac address of the keyboard. pi@raspberrypi ~ $ sudo bluetoothctl -a [NEW] Controller yy:yy:yy:yy:yy:yy BlueZ 5.23 [default] Agent registered [bluetooth] # Scan interactively your keybaord. [bluetooth] # scan on Discovery started [NEW] Device xx :xx :xx :xx :xx :xx BSKBB24 Connect your keyboard. [bluetooth] # connect xx :xx :xx :xx :xx :xx Attempting to connect to xx :xx :xx :xx :xx :xx [CHG] Device xx :xx :xx :xx :xx :xx Connected : yes Connection successful Trust your keyboard to connect auto. [bluetooth] # trust xx :xx :xx :xx :xx :xx [CHG] Device xx :xx :xx :xx :xx :xx Trusted : yes Changing xx :xx :xx :xx :xx :xx trust succeeded

Detect Bluetooth LE Device with BlueZ on RaspberryPi

BlueZ is a project to control Bluetooth Device on Linux. BlueZ is also required when controlling BLE with RaspberryPi. In this article, how to install BlueZ and I tried to run a simple Python script sample with BlueZ. Versions Raspberry Pi Type B Single Board Computer 512MB Raspbian 7.8 Python 2.7 BlueZ 5.32 pybluez 0.22 Boost 1.49 Install BlueZ into RPi sudo apt-get install libdbus-1-dev libdbus-glib-1-dev libglib2.0-dev libical-dev libreadline-dev libudev-dev libusb-dev make mkdir -p work/bluetooth cd work/bluetooth wget https://www.kernel.org/pub/linux/bluetooth/bluez-5.32.tar.xz tar xvf bluez-5.32.tar.xz cd bluez-5.32 ./configure --disable-systemd --enable-library make sudo make install Manually install commands that are not installed by make. sudo cp attrib/gatttool /usr/local/bin/ sudo cp -ipr lib/ /usr/include/bluetooth.5.32 cd /usr/include sudo mv bluetooth bluetooth.4.99 sudo ln -s bluetooth.5.32/ bluetooth Detecting test with hcitool ...