0% found this document useful (0 votes)
32 views8 pages

Features: BLE Device Information Service

Uploaded by

shatruddha123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views8 pages

Features: BLE Device Information Service

Uploaded by

shatruddha123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

PSoC® Creator™ Example Project

BLE Device Information Service


1.0

Features
 Custom Server in Peripheral Role operation
 Device Information Service usage
 DeepSleep mode demonstration
 LED status indication

General Description
This is a simple BLE example project that demonstrates how to configure and use BLE
component APIs and an application layer callback. The Device Information Service is used as an
example to demonstrate how to configure the BLE service characteristics in the BLE component.

Development Kit Configuration


Build the project and program the hex file onto the PSoC4 CY8CKIT-042 BLE Pioneer Kit.

Project Configuration
The example project consists of the following components: BLE and digital output pin. The input
pin is configured to the resistive pull up mode and used to wake the device from low power
hibernate mode. The top design schematic is shown in Figure 1.

Cypress Semiconductor Corporation • 198 Champion Court • San Jose, CA 95134-1709 • 408-943-2600
BLE Device Information Service PSoC® Creator™ Example Project

Figure 1. Top design schematic


The BLE component is configured as the Custom Profile in Peripheral Role. Device Information
Service is added with all the characteristics.

Figure 2. GATT settings

Page 2 of 8
PSoC® Creator™ Example Project BLE Device Information Service

Figure 3. GAP settings

Figure 4. GAP settings -> Advertisement packet

Page 3 of 8
BLE Device Information Service PSoC® Creator™ Example Project

Figure 5. Security settings

Page 4 of 8
PSoC® Creator™ Example Project BLE Device Information Service

Project Description
One callback function (AppCallBack()) is required to receive generic events from BLE Stack.
CyBle_GappStartAdvertisement() API is called after the CYBLE_EVT_STACK_ON event to start
advertising with the packet shown in Figure 4.
To indicate that the device is advertising, the green LED is blinking. The red LED will be lighted
on to indicate that no Client is connected to the device. When a Client is connected successfully,
both red and green LEDs will turn off.

Expected Results
You can use CySmart mobile app as a Device Information Service client:
 Launch CySmart mobile app (Android/iOS), and swipe down to refresh list of found BLE
devices.
 Connect to “Device Info Example” service and open “Device Information Service” service.
 Explore information about device:

Figure 6. CySmart iOS app Figure 7. CySmart Android app

Page 5 of 8
BLE Device Information Service PSoC® Creator™ Example Project

Also, the Device Information Service Example can be used together with CySmart app for
Windows. No security procedures (pairing) required. For further instructions on how to use
CySmart application, see CySmart User Guide.
The simple example how to use CySmart Windows application as Device Information Service
client is the next:
 Connect the CySmart BLE dongle to a USB port on the PC.
 Launch CySmart app and select connected dongle in the dialog window.
 Reset the development kit to start advertising by pressing SW1 button.
 Click Start Scan button to discover available devices.
 Select Device Info Example in the list of available devices and connect to it.
 Click Discover All Attributes, and Read All Characteristics in CySmart app.
Observe the Device Information Service characteristics values read with example data:

Page 6 of 8
PSoC® Creator™ Example Project BLE Device Information Service

Page 7 of 8
BLE Device Information Service PSoC® Creator™ Example Project

© Cypress Semiconductor Corporation, 2009-2015. The information contained herein is subject to change without notice. Cypress Semiconductor Corporation assumes no responsibility for the
use of any circuitry other than circuitry embodied in a Cypress product. Nor does it convey or imply any license under patent or other rights. Cypress products are not warranted nor intended to
be used for medical, life support, life saving, critical control or safety applications, unless pursuant to an express written agreement with Cypress. Furthermore, Cypress does not authorize its
products for use as critical components in life-support systems where a malfunction or failure may reasonably be expected to result in significant injury to the user. The inclusion of Cypress
products in life-support systems application implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all charges.
PSoC® is a registered trademark, and PSoC Creator™ and Programmable System-on-Chip™ are trademarks of Cypress Semiconductor Corp. All other trademarks or registered trademarks
referenced herein are property of the respective corporations.
Any Source Code (software and/or firmware) is owned by Cypress Semiconductor Corporation (Cypress) and is protected by and subject to worldwide patent protection (United States and
foreign), United States copyright laws and international treaty provisions. Cypress hereby grants to licensee a personal, non-exclusive, non-transferable license to copy, use, modify, create
derivative works of, and compile the Cypress Source Code and derivative works for the sole purpose of creating custom software and or firmware in support of licensee product to be used only in
conjunction with a Cypress integrated circuit as specified in the applicable agreement. Any reproduction, modification, translation, compilation, or representation of this Source Code except as
specified above is prohibited without the express written permission of Cypress.
Disclaimer: CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS MATERIAL, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Cypress reserves the right to make changes without further notice to the materials described herein.
Cypress does not assume any liability arising out of the application or use of any product or circuit described herein. Cypress does not authorize its products for use as critical components in life-
support systems where a malfunction or failure may reasonably be expected to result in significant injury to the user. The inclusion of Cypress’ product in a life-support systems application
implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all charges.
Use may be limited by and subject to the applicable Cypress software license agreement.

Page 8 of 8

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy