CE217647 - BLE Indoor Positioning with
PSoC
6 MCU with BLE Connectivity
Document No. 002-17647 Rev.**
1
Objective
This Bluetooth Low Energy (BLE) example project demonstrates how to create an indoor navigation system using the BLE
broadcasting mode that can be configured over a GATT connection.
Overview
This example project configures the BLE Pioneer Kit as a time-multiplexed broadcaster and a connectable Indoor Positioning
Service (IPS) server. The GAP role is set to the broadcaster or peripheral and the GATT role set to the server. By default, the
device broadcasts the IPS data and then switches over to Connectable Advertisement mode when a button is pressed. The IPS
data broadcast interval is 100 ms, and the IPS Broadcast mode is indicated by the blue LED on the BLE Pioneer Kit. The
connectable advertisement interval (to configure IPS data over GATT connection) is set to 20-30 ms for 180 seconds and the
BLE device switches over to IPS Broadcast mode on an advertisement timeout or when a button is pressed. The green LED on
the BLE Pioneer Kit indicates the Connectable Advertisement mode and the red LED indicates the connected state.
This example supports all the GATT sub-procedures defined in the IPS specification.
Requirements
Tool:
Programming Language:
C (Arm
®
GCC 5.4-2016-q2-update)
Associated Parts:
Related Hardware:
CY8CKIT-062-BLE PSoC 6 BLE Pioneer Kit
Hardware Setup
This example uses the kit’s default configuration. See the
to ensure the kit is configured correctly.
1.
Connect the BLE Pioneer Kit to the computer’s USB port.
2. Connect the BLE Dongle to one of the USB ports on the computer.
LED Behavior
If the V
DDD
voltage is set to lesser than 2.7 V in the DWR settings
System
tab, only the red LED is used. The red LED blinks to
indicate that the device is advertising. The red LED is OFF when a device is connected to a peer device. When the device is in
Hibernate mode, the red LED stays ON.
LED behavior for V
DDD
voltage greater than 2.7 V is described in the
Software Setup
BLE Host Emulation Tool
This example requires the CySmart application. Download and install either the
PC application or
the CySmart app for
You can test behavior with any of the two options, but the CySmart app is simpler. Scan
one of the following QR codes from your mobile phone to download the CySmart app.