pdf

CC254X BLE 软件开发指导 v1.3.2

  • 1星
  • 日期: 2018-07-10
  • 大小: 2.22MB
  • 所需积分:1分
  • 下载次数:0
  • favicon收藏
  • rep举报
  • 分享
  • free评论
标签: 蓝牙

TI CC254X Bluetooth® Low Energy(BLE)Software Developer’s Guide v1.3.2。

文档内容节选

Texas Instruments CC254041 Bluetooth Low Energy Software Developers Guide v132 Document Number SWRU271F Copyright 20102013 Texas Instruments Inc TI CC254x Bluetooth Low Energy Software Developers Guide SWRU271F Version 131 REFERENCES 4 USEFUL LINKS 4 1 OVERVIEW 5 11 12 INTRODUCTION 5 BLE PROTOCOL STACK BASICS 5 2 TEXAS INSTRUMENTS BLE SOFTWARE DEVELOPMENT PLATFORM 6 21 22 CONFIGURATIONS 6 PROJECTS 8 3 S......

Texas Instruments CC2540/41 Bluetooth® Low Energy Software Developer’s Guide v1.3.2 Document Number: SWRU271F Copyright © 2010-2013 Texas Instruments, Inc. TI CC254x Bluetooth Low Energy Software Developer’s Guide SWRU271F Version 1.3.1 REFERENCES .............................................................................................................................................. 4 USEFUL LINKS ............................................................................................................................................ 4 1 OVERVIEW........................................................................................................................................... 5 1.1 1.2 INTRODUCTION ................................................................................................................................. 5 BLE PROTOCOL STACK BASICS........................................................................................................ 5 2 TEXAS INSTRUMENTS BLE SOFTWARE DEVELOPMENT PLATFORM ............................. 6 2.1 2.2 CONFIGURATIONS ............................................................................................................................. 6 PROJECTS ......................................................................................................................................... 8 3 SOFTWARE OVERVIEW ................................................................................................................... 9 3.1 3.2 3.3 3.4 OPERATING SYSTEM ABSTRACTION LAYER (OSAL)........................................................................ 9 Task Initialization .................................................................................................................. 10 Task Events and Event Processing ........................................................................................ 10 Heap Manager ....................................................................................................................... 10 OSAL Messages ..................................................................................................................... 11 HARDWARE ABSTRACTION LAYER (HAL) ..................................................................................... 11 BLE PROTOCOL STACK .................................................................................................................. 12 Generic Access Profile (GAP) ............................................................................................... 12 Generic Attribute Profile (GATT) .......................................................................................... 14 Using the GAP and GATT Stack API ..................................................................................... 16 GATT Server Application API ............................................................................................... 17 Library Files .......................................................................................................................... 17 PROFILES ........................................................................................................................................ 18 GAP Peripheral Role Profile ................................................................................................. 18 GAP Peripheral / Broadcaster Multi-Role Profile ................................................................ 19 GAP Central Role Profile ...................................................................................................... 19 GAP Bond Manager............................................................................................................... 20 Simple GATT Profile .............................................................................................................. 21 Simple Keys GATT Profile ..................................................................................................... 23 Device Information Service.................................................................................................... 24 Additional GATT Profiles ...................................................................................................... 25 3.1.1 3.1.2 3.1.3 3.1.4 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.4.7 3.4.8 4 WORKING WITH PROJECTS USING IAR EMBEDDED WORKBENCH 8.10.4 .................... 25 4.1 4.2 4.3 4.4 IAR OVERVIEW .............................................................................................................................. 25 USING IAR EMBEDDED WORKBENCH ............................................................................................ 25 Open an Existing Project ....................................................................................................... 25 Project Options, Configurations, and Defined Symbols ........................................................ 26 Building and Debugging a Project ........................................................................................ 29 Linker Map File ..................................................................................................................... 31 SIMPLEBLEPERIPHERAL SAMPLE PROJECT .................................................................................... 32 Project Overview ................................................................................................................... 32 Initialization ........................................................................................................................... 34 Periodic Event ....................................................................................................................... 34 Peripheral State Notification Callback .................................................................................. 34 Key Presses (CC2540/41DK-MINI Keyfob only) .................................................................. 34 LCD Display (CC2540/41 Slave only) ................................................................................... 35 Complete Attribute Table ....................................................................................................... 35 SIMPLEBLECENTRAL SAMPLE PROJECT ........................................................................................ 38 Project Overview ................................................................................................................... 38 User Interface ........................................................................................................................ 38 Basic Operation ..................................................................................................................... 39 Initialization ........................................................................................................................... 39 Event Processing ................................................................................................................... 39 Callbacks ............................................................................................................................... 40 Service Discovery .................................................................................................................. 40 HOSTTESTRELEASE NETWORK PROCESSOR PROJECT .................................................................... 40 4.2.1 4.2.2 4.2.3 4.2.4 4.3.1 4.3.2 4.3.3 4.3.4 4.3.5 4.3.6 4.3.7 4.4.1 4.4.2 4.4.3 4.4.4 4.4.5 4.4.6 4.4.7 4.5 Copyright © 2010-2013 Texas Instruments, Inc. TI CC254x Bluetooth Low Energy Software Developer’s Guide SWRU271F Version 1.3.1 4.5.1 4.5.2 Project Overview ................................................................................................................... 40 External Device Control of BLE Stack .................................................................................. 41 ADDITIONAL SAMPLE PROJECTS ..................................................................................................... 41 4.6 5 GENERAL INFORMATION ............................................................................................................. 42 5.1 5.2 RELEASE NOTES HISTORY .............................................................................................................. 42 DOCUMENT HISTORY ..................................................................................................................... 54 6 ADDRESS INFORMATION .............................................................................................................. 54 7 TI WORLDWIDE TECHNICAL SUPPORT ................................................................................... 54 Copyright © 2010-2013 Texas Instruments, Inc. TI CC254x Bluetooth Low Energy Software Developer’s Guide SWRU271F Version 1.3.1 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 Copyright © 2010-2013 Texas Instruments, Inc. TI CC254x Bluetooth Low Energy Software Developer’s Guide SWRU271F Version 1.3.1 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: 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 Copyright © 2010-2013 Texas Instruments, Inc.
更多简介内容

推荐帖子

抗干扰滤波器的工作原理解析
    伴随着现在电子技术的高速发展和电子设备的迅速增加,电磁环境日益恶化,大量的电子设备在这种电磁环境中很难正常工作。滤波器是应用最普遍的的一种抗干扰的方法,它主要是抑制通过电路通路直接进入的干扰,根据信号与干扰信号之间的频率差别,采用不同性能的滤波器,抑制干扰信号,提高模块化。     抗干扰滤波器有哪些      1、数字滤波器     与模拟滤波器相对应,在离散系统中广泛应用数字滤波
火辣西米秀 【模拟与混合信号】
msp430f149单片机串口C程序
msp430f149是基于闪存或 ROM 的超低功耗 MCU,提供 8MIPS,工作电压为 1.8V - 3.6V,具有高达 60KB 的闪存和各种高性能模拟及智能数字外设。 超低功耗低至: 0.1μA RAM (保持模式) 0.7μA (实时时钟模式) 200μA/MIPS (工作模式) 在 6μs 之内快速从待机模式唤醒 器件参数: 闪存选项:1KB – 60KB ROM 选项:1KB
Jacktang 【微控制器 MCU】
工业路由器应该如何选型
工业路由器选型考虑一下: 1. 价格 由于成本考量, 了解价格是很多用户考虑的一个重要因素。 2. 稳定性 设备的稳定性相当重要,这关系到整个网络数据的稳定。设备需要支持软件重启和硬件看门狗,在无人职守的情况下,保证长时间运行而不出状况。 3. 扩展性 有的4G工业路由器只有2个网口,有的不支持串口, 那么在采购的时候要考虑到后续项目度进行的兼容性。 4.
蓝先生 工控电子
免费申请Vicor大功率模块化 DC-DC电源!
  模块化电源组件不仅可帮助工程师获得强大的设计优势(包括组件与系统功能性及可靠性可预测、很短的设计周期、便捷的系统配置、可重构性与扩展性),同时还可帮助他们实现超越最佳备选解决方案的系统工作效率、功率密度和经济性。使用各种组件的组合,工程师可设计一款完整的电源系统,其不仅可克服艰巨的空间及效率挑战,而且几乎可消除常规设计方法或定制设计方法常出现的“最后一分钟”惊险及延迟可能性。
eric_wang 电源技术
Modbus多机通信程序设计
    给从机下发不同的指令,从机去执行不同的操作,这个就是判断一下功能码即可,和我们前边学的实用串口例程是类似的。多机通信,无非就是添加了一个设备地址判断而已,难度也不大。我们找了一个 Modbus 调试精灵,通过设置设备地址,读写寄存器的地址以及数值数量等参数,可以直接替代串口调试助手,比较方便的下发多个字节的数据,如图 18-7 所示。我们先来就图中的设置和数据来对 Modbus 做进一步的
Jacktang 【微控制器 MCU】
编程模式下,从USB虚拟串口输出传感器数据
学习st官方例程STM32CubeFunctionPack_STBOX1_V1.1.0\Projects\STM32L4R9ZI-SensorTile.box\Applications\BLESensors,刷进去后,蓝牙不稳定,连接上后,能显示各个环境传感器数据,但是没过一分钟,蓝牙就连接失败。可能跟手机的蓝牙兼容性不好,索性自己改代码,通过预留的USB虚拟调试串口进行数据查看。 主要修改
sipower ST MEMS传感器创意设计大赛专区

评论

登录/注册

意见反馈

求资源

回顶部

datasheet推荐 换一换

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版 版权声明

北京市海淀区知春路23号集成电路设计园量子银座1305 电话:(010)82350740 邮编:100191

电子工程世界版权所有 京ICP证060456号 京ICP备10001474号 电信业务审批[2006]字第258号函 京公海网安备110108001534 Copyright © 2005-2020 EEWORLD.com.cn, Inc. All rights reserved
$(function(){ var appid = $(".select li a").data("channel"); $(".select li a").click(function(){ var appid = $(this).data("channel"); $('.select dt').html($(this).html()); $('#channel').val(appid); }) })