Setting Up Bluetooth OOB Pairing with NFC on Raspberry Pi

This post shows steps to setup Bluetooth Out-Of-Band (OOB) pairing using NFC [1] on Raspberry Pi using nfcpy [2]. The goal is to pair a phone and Raspberry Pi by just touching each other.   Prerequisites (parentheses indicate my environment) Raspberry Pi board (Raspberry Pi3) running Raspbian Stretch (June 2018) NFC USB adapter (Identiv SCL3711) NFC enabled phone… Continue reading “Setting Up Bluetooth OOB Pairing with NFC on Raspberry Pi”

Changing a Bluetooth Device Address on Raspberry Pi

This post shows how to change Bluetooth device address on Raspberry Pi. Bluetooth device address (aka BD_ADDR, Bluetooth MAC address) is a 48-bit identifier assigned to each Bluetooth chip. Whether it can be changed is depends on each chip. Fortunately, Raspberry Pi’s on-board Bluetooth chip (Cypress/Broadcom) allows device address change.   Assumptions Raspberry Pi board with on-board… Continue reading “Changing a Bluetooth Device Address on Raspberry Pi”

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”

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”