Project #019: Updating Bluetooth Low Energy Connection Parameters | Cypress Semiconductor
Project #019: Updating Bluetooth Low Energy Connection Parameters
In today's project, we will learn how to update the Connection Parameters for a Bluetooth Low Energy connection.
In Bluetooth Low Energy communication, there exists a concept called Connection Interval - this determines the time intervals at which a GAP Central (e.g. a mobile phone) will request data from the GAP Peripheral (e.g. the Bluetooth Low Energy product that talks to the mobile phone). The GAP Peripheral provides a minimum and maximum value for the desired interval. The Bluetooth Low Energy specfication allows for Connection Intervals from 7.5-ms (min) to 4-seconds (max). There's additional useful parameters like Slave Latency and Supervision Timeout - you can learn more about these in the Bluetooth 4.1 specification in Volume 3, Part A, Section 4.20.
This example project implements a GAP Peripheral configured with a custom Profile, running on the BLE Pioneer Kit. The CySmart USB Dongle (included with the kit) assumes the role of the GAP Central, which can be interfaced using the CySmart tool for Windows-PC. Once our Peripheral device (the Pioneer Kit) connects to the Central device (the CySmart USB Dongle), a Connection Parameter Update Request can be sent from the kit to the dongle via a button press on the kit. When the CySmart tool receives this request, the user can chose to accept or reject the request, which is confirmed by LED colors on the kit (Red for rejected requests, Blue/Green for accepted requests). In a typical scenario, the GAP Central in your application may be replaced by a mobile phone.
You can download this PSoC Creator project along with a detailed PDF of instructions, here from GitHub: https://github.com/cypresssemiconductorco/PSoC-4-BLE/tree/master/100_Projects_in_100_Days/Day019_Connection_Parameters