You are here

Project #006: BLE Central with Immediate Alert Service | Cypress Semiconductor

Project #006: BLE Central with Immediate Alert Service

In previous examples we've used the BLE Pioneer Kit as a GAP Peripheral device, that will connect to a mobile phone or the CySmart USB Dongle acting as the GAP Central device.

In today's project, we demonstrate how to use the BLE Pioneer Kit to implement a BLE GAP Central device. This is useful for cases where the end-application does not connect to a mobile phone, but instead to another embedded controller with BLE.

Accordingly, the respective GAP roles are also reversed - the BLE Pioneer Kit now acts as the GATT Client, whereas the CySmart USB Dongle acts as the GATT Server.

The project implements a GAP Central device running the Immediate Alert Service. It can write the Alert Level Characteristic to a Peripheral device. Pressing a button on the kit will cause it to connect to the dongle, and the LED on the kit turns to Blue to indicate a successful connection.

One way to think about this project is that its similar to the example in Project #001: BLE Find Me, but with the roles on kit and the dongle reversed.

 

You can download this PSoC Creator project along with a detailed PDF from GitHub here: https://github.com/cypresssemiconductorco/PSoC-4-BLE/tree/master/100_Projects_in_100_Days/Day006_Central_IAS

 

      

Comments

embeddedmasters's picture

Hello,
Thanks for all these projects first off I am very impressed!! Regarding this particular project I was trying to understand how PSoC Creator determines which device is being targeted for programming. I realize the Dongle has a different end PSoC BLE device selected but imagine I had 2 PSOC 4 BLE Kits plugged into a PC. How do I dictate which board is being targeted for being programmed? I have a need to expand on this project with a BLE Peripheral and a Client and would be very useful if there is a means to determine which one is actually being programmed/debugged. Is it possible to have 2 board actively being Debugged?

Regards,
Embedded Masters

embeddedmasters's picture

Hello,
First off Thanks for all the projects!! Quite impressive in assisting someone getting up and running with these devices. My question is how does the PSoC Creator know which 'target' is being programmed, Dongle or PSOC 4 Pioneer board? I tried to see if there was some sort of Serial port being defined or set somehow in the project settings and did not find anything. I have a need to expand this project for a peripheral & client and would like to have 2 Pioneer kits plugged into a PC and need to be able to distinguish which one is being programmed/debugged. Secondly is it possible to have 2 targets being Debugged at the same time or only 1?

Regards,
Embedded Masters

ran_d0m's picture

How many peripherals can a central connect to? 

sherapova_2972126's picture

If you don't mind proceed with this extraordinary work and I anticipate a greater amount of your amazing blog entries. Rutabagas

zacknight_2986731's picture

This substance is composed extremely well. Your utilization of organizing when mentioning your focuses makes your objective facts clear and straightforward. Much obliged to you. brian holm lawyer san diego

ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.