Enabling Python Autocomplete in VIM on Raspberry Pi

This post shows steps to enable Python autocomplete in vim editor [1] on Raspberry Pi. In this post, jedi-vim [2] and Vundle.vim [3] will be used for autocomplete plugin and plugin manager respectively. Also, even Raspbian Stretch has vim preinstalled, it’s a minimal version which is called “vim.tiny” and to use the plugin, we need… Continue reading “Enabling Python Autocomplete in VIM on Raspberry Pi”

Setting Up Bluetooth Serial Port Profile on Raspberry Pi using D-Bus API

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

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)”