BLE Indoor Positioning with PSoC
6 MCU with BLE Connectivity
Document No. 002-17647 Rev.**
10
Design and Implementation
shows the top design schematic.
Figure 10. BLE Indoor Positioning Code Example Schematic
This project demonstrates the functionality of the BLE Component configured as the IPS Server. It is designed to work with
CySmart.
After startup, the device initializes the BLE Component. To operate, the Component requires several callback functions to receive
events from the BLE Stack.
AppCallBack()
is used to receive general BLE events. Another callback (
IpsCallBack()
) is used
to receive events specific to the service’s attribute operations.
The
CYBLE_EVT_STACK_ON
event indicates successful initialization of the BLE Stack. After this event is received, the Component
starts fast advertising with the packet structure as configured in the BLE Component Customizer.
UART is used to print the debug information and scan the commands from the terminal.
Pin Assignments
lists the pin assignments and connections required on the development board for supported kits
.
Table 2. Pin Assignment
Pin Name
Development Kit
Comment
CY8CKIT-062
\UART_DEB:rx\
P5[0]
\UART_DEB:tx\
P5[1]
\UART_DEB:rts\
P5[2]
\UART_DEB:cts\
P5[3]
Disconnect_LED
P0[3]
The red color of the RGB LED
Advertising_LED
P1[1]
The green color of the RGB LED
Simulation_LED
P11[1]
The blue color of the RGB LED
SW2
P0[4]