You are here

프로젝트 #006: BLE Central with Immediate Alert Service | Cypress Semiconductor

프로젝트 #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

 

      Project Screen Inage

Blog: 

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? 

angelina_3306851's picture

I am glad to locate your recognized method for composing the post. Presently you make it simple for me to comprehend and execute the idea. Much obliged to you for the post. tipico

본 사이트의 모든 컨텐츠와 자료는 "있는 그대로" 제공됩니다. CYPRESS SEMICONDUCTOR와 해당 공급자는 그 목적에 관계 없이 이러한 자료의 적합성에 대한 표현을 하지 않으며 상업성, 특정 목적에의 적합성, 권리 및 제3자 지적 재산권의 비침해에 대한 모든 묵시적 보증과 조건을 포함하여(이에 제한되지 않음) 이러한 자료와 관련한 모든 보증과 조건을 부인합니다. CYPRESS SEMICONDUCTOR에서는 명시적 또는 묵시적으로 금반언이나 여타의 다른 방법으로 라이센스를 부여하지 않습니다. 이 사이트의 정보를 사용하려면 제3자의 라이센스 또는 CYPRESS SEMICONDUCTOR에서 제공하는 라이센스가 필요할 수 있습니다.

이 사이트의 컨텐츠에는 특정 사용 지침이나 제한이 포함되거나 그러한 제한이 적용될 수 있습니다. 모든 게시물과 이 사이트 컨텐츠 사용에는 사이트 약관이 적용됩니다. 이 컨텐츠를 사용하는 제3자는 제한 또는 지침을 따르고 이 사이트의 약관을 준수할 것이라는 데 동의합니다. Cypress Semiconductor와 그 공급자는 컨텐츠와 자료, 그 제품, 프로그램 및 서비스를 언제든 수정, 삭제, 개조, 개선, 향상 및 기타 변경하거나 예고 없이 컨텐츠, 제품, 프로그램 또는 서비스를 이동 또는 중단할 수 있는 권리를 보유합니다.