Disabling Bluetooth on Raspberry Pi

This post shows steps to 1) disable on-board Bluetooth and 2) disable Bluetooth completely. I tested the steps with Raspbian Stretch (November 2017 version). Update (Jul 9, 2019): Tested with Raspbian Buster 2019-07-10.   Disabling on-board Bluetooth The steps below shows how to disable on-board Bluetooth and related services. Those steps also disable loading the related kernel… Continue reading “Disabling Bluetooth on Raspberry Pi”

Running BLE GATT Server Example on Raspbian Stretch

The purpose of this post is to run an example code of Bluetooth Low Energy GATT server from BlueZ source code on Raspberry Pi. Here are the contents of this post. Contents – Assumptions – Steps 1. Download Example Code 2. Execute Example Code 3. Install Requisite 4. Start Advertising BLE 5. Verify – Reference… Continue reading “Running BLE GATT Server Example on Raspbian Stretch”

Running BLE Advertising Example Code on Raspbian Stretch

Update (Feb 26, 2018): If your BlueZ version is 5.48 or higher, you can skip Step 1 since the Advertising Manager is marked as stable In BlueZ 5.48. (To update BlueZ, please see this post. )   The purpose of this post is to run an example code of Bluetooth Low Energy Advertisement from BlueZ… Continue reading “Running BLE Advertising Example Code on Raspbian Stretch”

Enabling Hands-Free Profile on Raspberry Pi (Raspbian Stretch) by using PulseAudio

The purpose of this post is to enable Bluetooth Handsfree Profile (HFP) with PulseAudio on Raspbian Stretch so that Raspberry Pi can act like as a handsfree speaker phone or a handsfree car kit. This is an updated version of this post. When I wrote the previous post, I was using Raspbian Jessie and some… Continue reading “Enabling Hands-Free Profile on Raspberry Pi (Raspbian Stretch) by using PulseAudio”

Auto Power On Bluetooth Adapter on Boot-up

By default, it’s automatically powered on with Raspberry Pi 3 and Raspbian Jessie on boot. But after I updated Bluez from 5.23 to 5.43, it’s not turning on automatically and I needed to do so manually by using hciconfig or bluetoothctl as below. Powering on manually by hciconfig: $ hciconfig hci0: Type: Primary Bus: USB… Continue reading “Auto Power On Bluetooth Adapter on Boot-up”