Project #028: Bluetooth Low Energy Proximity Profile | Cypress Semiconductor
Project #028: Bluetooth Low Energy Proximity Profile
In previous projects, we've talked about standard Bluetooth Low Energy Profiles, or more specifically, Adopted GATT Profiles with examples like Heart Rate Sensors, Thermometers and the Find Me project.
In today's project, we demonstrate a couple standard Bluetooth Low Energy Profiles that are useful for creating applications using RF proximity, based on the distance or a disconnection event from the Bluetooth Low Energy device. The BLE Pioneer Kit is programmed with the Bluetooth Low Energy Proximity Profile.
A BLE Proximity Profile has two roles, a Reporter (GATT Server) and a Monitor (GATT Client). It is typical for the GATT Server to also be the GAP Peripheral, but that is not mandatory.
This profile contains the following Services:
Link-Loss Service: Contains an Alert Level Characteristic that continues until the radio link is disconnected
TX Power Service: Shows the radio's transmit (Tx) power level when in a connection
This example project implements the Proximity Profile while also allowing dynamic control of the radio Tx power by simply pressing a button. The Bluetooth Low Energy radio in PSoC 4 BLE can be set to a power level from -18 dBm to +3 dBm.
You can use the CySmart mobile app to see the change in radio power level. You can also use the app to test the Link-Loss Service by either walking out of range or closing the app. This causes a disconnection between the kit and the mobile phone and trigger the alert LEDs on the kit.
Download this PSoC Creator project and a detailed PDF of instructions, here from GitHub: https://github.com/cypresssemiconductorco/PSoC-4-BLE/tree/master/100_Projects_in_100_Days/Day028_BLE_Proximity