BLE GAP API

1.2

Date:
2013-08-26 15:11:57 -0700 (Mon, 26 Aug 2013)
Revision:
35113

This file contains the interface to the GAP.

HighLevelGAP.PNG
 Functional Description

Functional Description

The GAP provides the following abilities:

·          Profile Role Definition: Broadcaster, Observer, Peripheral, and/or Central

·          Device Discovery

·          Link establishment

·         Link Termination

Other features provided by the GAP are:

·          GAP Characteristics and Attributes

·          Initiation of the security features – pairing, authentication, and bonding

·          Device configuration

Profile Roles

The GAP will work in four profile roles:

·         Broadcaster - an advertiser that is non-connectable.

·         Observer – scans for advertisements, but can not initiate connections.

·         Peripheral – an advertiser that operates as a slave in a single link layer connection.

·         Central – scans for advertisements and operates as a master in a single or multiple link layer connections.

 

The application will set the GAP’s profile role and the application may set a combination of profile roles.

The possible multi profile roles that we will support are:

·         Central and Broadcaster - scans for advertisements and operates as a master in a single or multiple link layer connections, but allows the device to broadcast non-connectable advertisements.

·         Peripheral and Observer - an advertiser that operates as a slave in a single link layer connection and allows scanning for advertisements without initiating a connection.

 

 

CentralDeviceDiscoveryProcess.PNG

A central device can scan for advertising peripheral and broadcaster devices. The Observer process is similar to the central process except that will not receive the SCAN_RSP data.

The central device will initialize the device, then ask for a device discovery. The GAP will setup the link layer to scan and it will filter incoming advertisements and SCAN_RSPs based on the type of device discovery parameters passed in when GAP_DeviceDiscoveryRequest() was called. Then, when the scan is complete, it will return an array of devices that pass through its filter.

CentralLinkEstablishmentProcess.PNG

After the Device Discovery Process, the central device can establish a connection with a peripheral device by calling GAP_EstablishLinkRequest(). When the link has been established the GAP will send back the GAP_LINK_ESTABLISHED_EVENT [GAP_LinkEstablished].

CentralPairingProcess.PNG

After a link is established, the central device can initiate a pairing process to either encrypt the link or exchange keys for bonding.





Copyright 2009 - 2013 Texas Instruments Incorporated. All rights reserved.

IMPORTANT: Your use of this Software is limited to those specific rights granted under the terms of a software license agreement between the user who downloaded the software, his/her employer (which must be your employer) and Texas Instruments Incorporated (the "License"). You may not use this Software unless you agree to abide by the terms of the License. The License limits your use, and you acknowledge, that the Software may not be modified, copied or distributed unless embedded on a Texas Instruments microcontroller or used solely and exclusively in conjunction with a Texas Instruments radio frequency transceiver, which is integrated into your product. Other than for the foregoing purpose, you may not use, reproduce, copy, prepare derivative works of, modify, distribute, perform, display or sell this Software and/or its documentation for any purpose.

YOU FURTHER ACKNOWLEDGE AND AGREE THAT THE SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL TEXAS INSTRUMENTS OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.

Should you have any questions regarding your right to use this Software, contact Texas Instruments Incorporated at www.TI.com.