Setting Up Bluetooth Serial Port Profile on Raspberry Pi using sdptool

This post shows steps to set up Bluetooth Serial Port Profile (or SPP)[1] on Raspberry Pi. The goal is to establish SPP connection between Raspberry Pi 3 and Android phone, then send/receive text using serial terminal applications on both ends. SPP is not available by default. There are two options to enable it in BlueZ… Continue reading “Setting Up Bluetooth Serial Port Profile on Raspberry Pi using sdptool”

Creating BLE GATT Server (UART Service) on Raspberry Pi

In this post, I will create BLE GATT server on Raspberry Pi 3 using BlueZ dbus interface with Python. I will reuse BlueZ example code as much as possible. As an example of GATT service, I’ll create UART service (a.k.a. Nordic UART Service/NUS [1] ), so that I can test it with Nordic’s smartphone app… Continue reading “Creating BLE GATT Server (UART Service) on Raspberry Pi”

Updating BlueZ on Raspberry Pi (from 5.43 to 5.50)

Update (Jul 9, 2019): Now, Raspbian Buster, released on 6/20/2019, has bluez 5.50 by default! This post shows how to update BlueZ on Raspberry Pi from 5.43 (the default version comes with Raspbian Stretch) to 5.50 (released notes [1]). In this post, I assume that you already have a Raspberry Pi 3 B+ or Raspberry Pi Zero… Continue reading “Updating BlueZ on Raspberry Pi (from 5.43 to 5.50)”

Enabling Amazon Alexa on Raspberry Pi

This post shows steps to enable Amazon Alexa on Raspberry Pi. While there is already a comprehensive tutorial on Amazon Alexa official site [1], this post focuses on doing the same with minimal setup.   Example Setup Raspberry Pi (Raspberry Pi 3 B+) running Raspbian Stretch (Nov. 2018) USB Microphone (SunFounder USB 2.0 Mini Mic) 3.5 mm… Continue reading “Enabling Amazon Alexa on Raspberry Pi”

Controlling LEDs on Raspberry Pi using Voice with Amazon Echo

The goal of this post is to create an Alexa skill [1] that controls three LEDs (red, yellow, and green) connected to Raspberry Pi’s GPIO pins. The skill will enable to turn ON/OFF each LED by specifying the color of light and the ON/OFF status via voice command.   Prerequisites (parentheses indicate my environment) Raspberry Pi… Continue reading “Controlling LEDs on Raspberry Pi using Voice with Amazon Echo”