没有合适的资源?快使用搜索试试~ 我知道了~
首页Texas Instruments CC2540/41 BLE Software Developer’s Guide v1.3.2
Texas Instruments CC2540/41 BLE Software Developer’s Guide v1.3....
5星 · 超过95%的资源 需积分: 10 78 下载量 24 浏览量
更新于2023-03-16
评论 2
收藏 2.22MB PDF 举报
Texas Instruments CC2540/41 Bluetooth® Low Energy Software Developer’s Guide v1.3.2
资源详情
资源评论
资源推荐
Copyright © 2010-2013 Texas Instruments, Inc.
Texas Instruments CC2540/41
Bluetooth® Low Energy
Software Developer’s Guide
v1.3.2
Document Number: SWRU271F
TI CC254x Bluetooth Low Energy Software Developer’s Guide SWRU271F Version 1.3.1
Copyright © 2010-2013 Texas Instruments, Inc.
REFERENCES .............................................................................................................................................. 4
USEFUL LINKS ............................................................................................................................................ 4
1 OVERVIEW........................................................................................................................................... 5
1.1 INTRODUCTION ................................................................................................................................. 5
1.2 BLE PROTOCOL STACK BASICS........................................................................................................ 5
2 TEXAS INSTRUMENTS BLE SOFTWARE DEVELOPMENT PLATFORM ............................. 6
2.1 CONFIGURATIONS ............................................................................................................................. 6
2.2 PROJECTS ......................................................................................................................................... 8
3 SOFTWARE OVERVIEW ................................................................................................................... 9
3.1 OPERATING SYSTEM ABSTRACTION LAYER (OSAL)........................................................................ 9
3.1.1 Task Initialization .................................................................................................................. 10
3.1.2 Task Events and Event Processing ........................................................................................ 10
3.1.3 Heap Manager ....................................................................................................................... 10
3.1.4 OSAL Messages ..................................................................................................................... 11
3.2 HARDWARE ABSTRACTION LAYER (HAL) ..................................................................................... 11
3.3 BLE PROTOCOL STACK .................................................................................................................. 12
3.3.1 Generic Access Profile (GAP) ............................................................................................... 12
3.3.2 Generic Attribute Profile (GATT) .......................................................................................... 14
3.3.3 Using the GAP and GATT Stack API ..................................................................................... 16
3.3.4 GATT Server Application API ............................................................................................... 17
3.3.5 Library Files .......................................................................................................................... 17
3.4 PROFILES ........................................................................................................................................ 18
3.4.1 GAP Peripheral Role Profile ................................................................................................. 18
3.4.2 GAP Peripheral / Broadcaster Multi-Role Profile ................................................................ 19
3.4.3 GAP Central Role Profile ...................................................................................................... 19
3.4.4 GAP Bond Manager............................................................................................................... 20
3.4.5 Simple GATT Profile .............................................................................................................. 21
3.4.6 Simple Keys GATT Profile ..................................................................................................... 23
3.4.7 Device Information Service.................................................................................................... 24
3.4.8 Additional GATT Profiles ...................................................................................................... 25
4 WORKING WITH PROJECTS USING IAR EMBEDDED WORKBENCH 8.10.4 .................... 25
4.1 IAR OVERVIEW .............................................................................................................................. 25
4.2 USING IAR EMBEDDED WORKBENCH ............................................................................................ 25
4.2.1 Open an Existing Project ....................................................................................................... 25
4.2.2 Project Options, Configurations, and Defined Symbols ........................................................ 26
4.2.3 Building and Debugging a Project ........................................................................................ 29
4.2.4 Linker Map File ..................................................................................................................... 31
4.3 SIMPLEBLEPERIPHERAL SAMPLE PROJECT .................................................................................... 32
4.3.1 Project Overview ................................................................................................................... 32
4.3.2 Initialization ........................................................................................................................... 34
4.3.3 Periodic Event ....................................................................................................................... 34
4.3.4 Peripheral State Notification Callback .................................................................................. 34
4.3.5 Key Presses (CC2540/41DK-MINI Keyfob only) .................................................................. 34
4.3.6 LCD Display (CC2540/41 Slave only) ................................................................................... 35
4.3.7 Complete Attribute Table ....................................................................................................... 35
4.4 SIMPLEBLECENTRAL SAMPLE PROJECT ........................................................................................ 38
4.4.1 Project Overview ................................................................................................................... 38
4.4.2 User Interface ........................................................................................................................ 38
4.4.3 Basic Operation ..................................................................................................................... 39
4.4.4 Initialization ........................................................................................................................... 39
4.4.5 Event Processing ................................................................................................................... 39
4.4.6 Callbacks ............................................................................................................................... 40
4.4.7 Service Discovery .................................................................................................................. 40
4.5 HOSTTESTRELEASE NETWORK PROCESSOR PROJECT .................................................................... 40
TI CC254x Bluetooth Low Energy Software Developer’s Guide SWRU271F Version 1.3.1
Copyright © 2010-2013 Texas Instruments, Inc.
4.5.1 Project Overview ................................................................................................................... 40
4.5.2 External Device Control of BLE Stack .................................................................................. 41
4.6 ADDITIONAL SAMPLE PROJECTS ..................................................................................................... 41
5 GENERAL INFORMATION ............................................................................................................. 42
5.1 RELEASE NOTES HISTORY .............................................................................................................. 42
5.2 DOCUMENT HISTORY ..................................................................................................................... 54
6 ADDRESS INFORMATION .............................................................................................................. 54
7 TI WORLDWIDE TECHNICAL SUPPORT ................................................................................... 54
TI CC254x Bluetooth Low Energy Software Developer’s Guide SWRU271F Version 1.3.1
Copyright © 2010-2013 Texas Instruments, Inc.
References
Included with Texas Instruments Bluetooth Low Energy v1.3.2 Stack Release (All path and file
references in this document assume that the BLE development kit software has been installed to
the default path C:\Texas Instruments\BLE-CC254X-1.3.2\):
[1] OSAL API Guide
C:\Texas Instruments\ BLE-CC254X-1.3.2\Documents\osal\OSAL API.pdf
[2] HAL API Guide
C:\Texas Instruments\ BLE-CC254X-1.3.2\Documents\hal\HAL API.pdf
[3] TI BLE Vendor Specific HCI Reference Guide
C:\Texas Instruments\ BLE-CC254X-1.3.2\Documents\
TI_BLE_Vendor_Specific_HCI_Guide.pdf
[4] Texas Instruments CC2540 Bluetooth Low Energy API Guide
C:\Texas Instruments\ BLE-CC254X-1.3.2\Documents\BLE_API_Guide_main.htm
[5] Texas Instruments CC2540 Bluetooth Low Energy Sample Applications Guide
C:\Texas Instruments\ BLE-CC254X-1.3.2\Documents\
TI_BLE_Sample_Applications_Guide.pdf
Available for download from the Texas Instruments web site:
[6] Texas Instruments CC2540DK-MINI Bluetooth Low Energy User Guide v1.1
http://www.ti.com/lit/pdf/swru270
Available for download from the Bluetooth Special Interest Group (SIG) web site:
[7] Specification of the Bluetooth System, Covered Core Package version: 4.0 (30-June-2010)
https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id=229737
[8] Device Information Service (Bluetooth Specification), version 1.0 (24-May-2011)
https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id=238689
Useful Links
TI Bluetooth LE Wiki-page: www.ti.com/ble-wiki
Latest stack download: www.ti.com/ble-stack
Support forum: www.ti.com/ble-forum
TI CC254x Bluetooth Low Energy Software Developer’s Guide SWRU271F Version 1.3.1
Copyright © 2010-2013 Texas Instruments, Inc.
1 Overview
The purpose of this document is to give an overview of the Texas Instruments CC2540/41
Bluetooth® low energy (BLE) software development kit. This document also serves as an
introduction to the BLE standard; however it should not be used as a substitute for the complete
specification. For more details, see [7].
The release history of the BLE software development kit, including detailed information on
changes, enhancements, bug fixes, and known issues, can be found in section 5.1.
1.1 Introduction
Version 4.0 of the Bluetooth® standard allows for two systems of wireless technology: Basic Rate
(BR; often referred to as “BR/EDR” for “Basic Rate / Enhanced Data Rate”) and Bluetooth low
energy (BLE). The BLE system was created for the purpose of transmitting very small packets of
data at a time, while consuming significantly less power than BR/EDR devices.
Devices that can support BR and BLE are referred to as dual-mode devices and go under the
branding Bluetooth Smart Ready. Typically in a Bluetooth system, a mobile phone or laptop
computer will be a dual-mode device. Devices that only support BLE are referred to as single-
mode devices and go under the branding Bluetooth Smart. These single-mode devices are
generally used for application in which low power consumption is a primary concern, such as
those that run on coin cell batteries.
Figure 1 Bluetooth Smart and Smart Ready Branding Marks
1.2 BLE Protocol Stack Basics
The BLE protocol stack architecture is illustrated here:
Host
Generic Access Profile
(GAP)
Security Manager
(SM)
Controller
Host-Controller Interface (HCI)
Link Layer (LL)
Physical Layer (PHY)
Attribute
Protocol (ATT)
Logical Link Control and
Adaptation Protocol (L2CAP)
Generic Attribute
Profile (GATT)
Figure 2: BLE Protocol Stack
The protocol stack consists of two sections: the controller and the host. This separation of
controller and host goes back to standard Bluetooth BR/EDR devices, in which the two sections
剩余55页未读,继续阅读
孤独的飞行者
- 粉丝: 3
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- 2023年中国辣条食品行业创新及消费需求洞察报告.pptx
- 2023年半导体行业20强品牌.pptx
- 2023年全球电力行业评论.pptx
- 2023年全球网络安全现状-劳动力资源和网络运营的全球发展新态势.pptx
- 毕业设计-基于单片机的液体密度检测系统设计.doc
- 家用清扫机器人设计.doc
- 基于VB+数据库SQL的教师信息管理系统设计与实现 计算机专业设计范文模板参考资料.pdf
- 官塘驿林场林防火(资源监管)“空天地人”四位一体监测系统方案.doc
- 基于专利语义表征的技术预见方法及其应用.docx
- 浅谈电子商务的现状及发展趋势学习总结.doc
- 基于单片机的智能仓库温湿度控制系统 (2).pdf
- 基于SSM框架知识产权管理系统 (2).pdf
- 9年终工作总结新年计划PPT模板.pptx
- Hytera海能达CH04L01 说明书.pdf
- 数据中心运维操作标准及流程.pdf
- 报告模板 -成本分析与报告培训之三.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论3