Streaming Bluetooth Audio from Phone to Raspberry Pi using ALSA

This post shows steps to setup Bluetooth audio sink on Raspberry Pi using bluez-alsa. Bluetooth audio sink (A2DP sink) enables Raspberry Pi to receive audio from other Bluetooth devices (e.g. smartphone) and play it through the connected speaker. Below are my setup. Raspberry Pi3 B+ with Raspbian Stretch (2018 April version) 3.5 mm plug Speaker Smartphone   Contents… Continue reading “Streaming Bluetooth Audio from Phone to Raspberry Pi using ALSA”

Creating AltBeacon with Raspberry Pi using BlueZ Example Code

A previous post showed the steps to make an iBeacon transmitter with Raspberry Pi using BlueZ example code (i.e. “example-advertisement“). This post shows the steps for AltBeacon [1] in the same manner.   Here are the contents of this post. Contents – Prerequisites – Steps 1. Enable experimental flag 2. Download BlueZ 3. Modify BLE Advertisement Example… Continue reading “Creating AltBeacon with Raspberry Pi using BlueZ Example Code”

Creating iBeacon with Raspberry Pi using BlueZ Example Code

This post shows the steps to make an iBeacon with Raspberry Pi, by modifying BlueZ BLE Advertisement example code (i.e. “example-advertisement“). Note: Even though it uses Bluetooth Low Energy standard, iBeacon is Apple’s proprietary protocol and making/deploying iBeacon devices requires the license from Apple [1]. The scope of this post is limited to getting familiar with… Continue reading “Creating iBeacon with Raspberry Pi using BlueZ Example Code”

Updating BlueZ on Raspberry Pi (5.43 to 5.48)

This post shows how to update BlueZ from 5.43 (the default version comes with Raspbian Stretch November 2017 version) to 5.48 (the latest as of 2/14/2018) on Raspberry Pi. According to the release notes [1], many issues (especially GATT related issues) have been fixed and also, Advertising Manager API, which was previously marked as experimental, is now stable… Continue reading “Updating BlueZ on Raspberry Pi (5.43 to 5.48)”

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).   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 modules such as bluetooth, hci_uart, btbcm, etc at… Continue reading “Disabling Bluetooth on Raspberry Pi”