You are here

Project #019: Updating BLE Connection Parameters | Cypress Semiconductor

Project #019: Updating BLE Connection Parameters

In today's project, we will learn how to update the Connection Parameters for a BLE connection.

In BLE communication, there exists a concept called Connection Interval - this determines the time intervals at which a GAP Central (e.g. a mobile phone) will request data from the GAP Peripheral (e.g. the BLE product that talks to the mobile phone). The GAP Peripheral provides a minimum and maximum value for the desired interval. The BLE specfication allows for Connection Intervals from 7.5-ms (min) to 4-seconds (max). There's additional useful parameters like Slave Latency and Supervision Timeout - you can learn more about these in the Bluetooth 4.1 specification in Volume 3, Part A, Section 4.20.

This example project implements a GAP Peripheral configured with a custom Profile, running on the BLE Pioneer Kit. The CySmart USB Dongle (included with the kit) assumes the role of the GAP Central, which can be interfaced using the CySmart tool for Windows-PC. Once our Peripheral device (the Pioneer Kit) connects to the Central device (the CySmart USB Dongle), a Connection Parameter Update Request can be sent from the kit to the dongle via a button press on the kit. When the CySmart tool receives this request, the user can chose to accept or reject the request, which is confirmed by LED colors on the kit (Red for rejected requests, Blue/Green for accepted requests). In a typical scenario, the GAP Central in your application may be replaced by a mobile phone.

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

 

    

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.