User Manual Part 1

CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A 73
Example Projects
8. When connected, the app will list the services supported by the peripherals. Scroll and select the
CapSense service.
9. When the CapSense service page opens, bring your hand near the sensor wire on the BLE
Pioneer kit and see a similar response in the app as a bar graph, as shown in Figure 4-52.
Figure 4-52. CapSense Proximity Sensing with PSoC 4 BLE Module
10.To disconnect from the BLE Pioneer kit, return to the device selection screen on the CySmart
app.
11.To reconnect to the peripheral, press the user button (
SW2) on the BLE Pioneer Kit to restart the
advertisement and scan for the device in the CySmart app.
4.4 BLE Central Mode
4.4.1 Project Description
The BLE projects described above have been functioning as BLE peripheral devices. This means
that the firmware role was set to be a BLE peripheral and server; another device such as the
CySmart PC tool or CySmart mobile application will connect to it and collect the data.
This example project demonstrates the BLE central and client mode where it will scan for a periph-
eral device, connect to it, and send commands. In this project, the BLE Pioneer kit scans and auto-
connects to a particular peripheral device supporting
Immediate Alert Service (IAS). Whenever the
peripheral with a predetermined address is found, a connection request is sent followed by discover-
ing the attributes. When the discovery is over, you can send one of the three alert levels to the BLE
peripheral device over the IAS. This is done by pressing the
SW2 button on the BLE Pioneer kit and
cycling through the alert levels.
The BLE central project supports low-power mode operation, where the firmware supports BLESS
and CPU Deep Sleep mode whenever possible. The system remains in deep sleep when discon-
nected. Press
SW2 to wake up the system and start scanning (blinking blue LED). The scanning
timeout interval is set to 30 seconds. If the particular BLE peripheral device is found advertising
before timeout, a connection is made (blue LED always ON). If no such device is found, then the