Book Image

Building Bluetooth Low Energy Systems

By : Muhammad Usama bin Aftab
Book Image

Building Bluetooth Low Energy Systems

By: Muhammad Usama bin Aftab

Overview of this book

Bluetooth Low Energy (BLE) is a Wireless Personal Area network technology aimed at novel applications for smart devices. High-tech BLE profiles and services are being increasingly used by application developers and hardware enthusiasts to allow devices to interact with the surrounding world. This book will focus on a technical introduction to BLE and how it is reshaping small-distance communication. We will start with IoT, where many technologies such as BLE, Zigbee, and IEEE 802.15.4 Mesh will be introduced. The book will present BLE from an engineering perspective, from which the protocol stack, architecture, and layers are discussed. You will learn to implement customized projects for Peripheral/Central communication, BLE Beacons, indoor navigation using triangulation, and the Internet gateway for Bluetooth Low Energy Personal Network, all using various code samples and APIs on Android, iOS, and the Web. Finally, the book will conclude with a glimpse into future technologies destined to be prominent in years to come.
Table of Contents (14 chapters)
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Deploying a Bluetooth gateway on your Raspberry Pi


The goal of this project is to convert your Raspberry Pi into a Bluetooth gateway so that it can scan and inform you about the surrounding Bluetooth devices (including their services and characteristics). The prerequisites of this project are:

  • A Raspberry Pi 3 Model B (or Raspberry Pi 2 with Wi-Fi and Bluetooth dongles)
  • An Internet connection

Let's start by setting up the required packages on the Raspberry Pi. I will assume that you are a Linux novice and will explain every step in detail. 

Step 1 - Update and upgrade the Pi

The first step before starting development on your Raspberry is to make sure that it is up to date. To do this, run the following command:

sudo apt-get update

This command will update the package lists from the repositories and update them to get information on the newest versions of packages and their dependencies. The next step is to upgrade the installed packages to the latest packages. To do this, run the following command...