You are here

项目编号 028:Bluetooth Low Energy Proximity Profile | 赛普拉斯半导体

项目编号 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.

We've also seen a few examples of custom Bluetooth Low Energy Profiles like  CapSense, RGB-LED, Apple Notifications, and even a BLE-UART.

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:

   Immediate Alert Service (IAS): Recall from Project #001: Find Me, IAS can be used to trigger alerts on a peer Bluetooth Low Energy device

   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:


 BLE Screen Image with Chip