没有合适的资源?快使用搜索试试~ 我知道了~
BLE蓝牙4 0 CC2540相关的文档
5星 · 超过95%的资源 需积分: 10 21 下载量 84 浏览量
2013-01-17
16:57:05
上传
评论 1
收藏 137KB PDF 举报
温馨提示
试读
23页
BLE蓝牙4 0 CC2540相关的文档 解释例子程序的 参考设计很有用
资源推荐
资源详情
资源评论
Texas Instruments CC2540/41
Bluetooth® Low Energy
Sample Applications Guide
v1.2
Document Number: SWRU297B
Copyright © 2011-2012 Texas Instruments, Inc.
Table Of Contents
1 OVERVIEW..................................................................................................................................................5
1.1 INTRODUCTION........................................................................................................................................5
2 BLOOD PRESSURE SENSOR...................................................................................................................5
2.1 PROJECT OVERVIEW................................................................................................................................5
2.1.1 User Interface.................................................................................................................................5
2.1.2 Basic Operation..............................................................................................................................5
2.2 SOFTWARE DESCRIPTION.........................................................................................................................6
2.2.1 Initialization....................................................................................................................................6
2.2.2 Event Processing ............................................................................................................................6
2.2.3 Callbacks ........................................................................................................................................6
2.2.4 Sending Blood Pressure Measurement Indications ........................................................................7
2.2.5 Sending Intermediate Measurement Notifications..........................................................................7
2.2.6 Blood Pressure Measurement.........................................................................................................7
3 HEALTH THERMOMETER .....................................................................................................................7
3.1 PROJECT OVERVIEW................................................................................................................................7
3.1.1 User Interface.................................................................................................................................7
3.1.2 Basic Operation..............................................................................................................................8
3.2 SOFTWARE DESCRIPTION.........................................................................................................................8
3.2.1 Initialization....................................................................................................................................8
3.2.2 Event Processing ............................................................................................................................9
3.2.3 Callbacks ........................................................................................................................................9
3.2.4 Sending Temperature Indications...................................................................................................9
3.2.5 Sending Intermediate Measurement Notifications..........................................................................9
3.2.6 Sending Interval Change Indications..............................................................................................9
3.2.7 Thermometer Measurement Format .............................................................................................10
4 HEART RATE SENSOR...........................................................................................................................10
4.1 PROJECT OVERVIEW..............................................................................................................................10
4.1.1 User Interface...............................................................................................................................10
4.1.2 Basic Operation............................................................................................................................10
4.2 SOFTWARE DESCRIPTION.......................................................................................................................10
4.2.1 Initialization..................................................................................................................................11
4.2.2 Event Processing ..........................................................................................................................11
4.2.3 Callbacks ......................................................................................................................................11
4.2.4 Sending Notifications....................................................................................................................11
5 HID EMULATED KEYBOARD...............................................................................................................11
5.1 PROJECT OVERVIEW..............................................................................................................................12
5.1.1 User Interface...............................................................................................................................12
5.1.2 Basic Operation............................................................................................................................12
5.2 SOFTWARE DESCRIPTION.......................................................................................................................12
5.3 HIDEMUKBD APPLICATION...................................................................................................................13
5.3.1 Initialization..................................................................................................................................13
5.3.2 Event Processing ..........................................................................................................................13
5.3.3 Callbacks ......................................................................................................................................13
5.3.4 Sending Notifications....................................................................................................................13
5.4 HID DEVICE PROFILE............................................................................................................................13
5.4.1 Initialization..................................................................................................................................13
5.4.2 Event Processing ..........................................................................................................................13
5.4.3 Callbacks ......................................................................................................................................14
5.4.4 GATT Read and Write Callbacks..................................................................................................14
5.4.5 Mapping HID Reports to HID Characteristics.............................................................................14
5.4.6 Sending and Receiving HID Reports ............................................................................................14
5.4.7 Advertising and Connection Procedures ......................................................................................14
6 HOSTTESTRELEASE- BLE NETWORK PROCESSOR.....................................................................15
Page 2 of 22
Copyright © 2011-2012 Texas Instruments, Inc
7 KEYFOBDEMO.........................................................................................................................................15
7.1 PROJECT OVERVIEW..............................................................................................................................15
7.1.1 User Interface...............................................................................................................................15
7.1.2 Battery Operation.........................................................................................................................15
7.1.3 Accelerometer Operation..............................................................................................................16
7.1.4 Keys ..............................................................................................................................................16
7.1.5 Proximity ......................................................................................................................................16
7.2 SOFTWARE DESCRIPTION.......................................................................................................................16
7.2.1 Initialization..................................................................................................................................16
7.2.2 Event Processing ..........................................................................................................................16
7.2.3 Callbacks ......................................................................................................................................17
8 SIMPLEBLECENTRAL ...........................................................................................................................17
9 SIMPLEBLEPERIPHERAL.....................................................................................................................17
10 TIMEAPP- BLE WATCH.....................................................................................................................17
10.1 PROJECT OVERVIEW..............................................................................................................................17
10.1.1 User Interface...............................................................................................................................17
10.1.2 Basic Operation............................................................................................................................18
10.2 SOFTWARE DESCRIPTION.......................................................................................................................18
10.2.1 Initialization..................................................................................................................................18
10.2.2 Event Processing ..........................................................................................................................19
10.2.3 Callbacks ......................................................................................................................................19
10.2.4 Service Discovery .........................................................................................................................19
10.2.5 Service Configuration...................................................................................................................20
10.2.6 Handling Indications and Notifications........................................................................................20
10.2.7 Clock Time....................................................................................................................................20
11 GENERAL INFORMATION................................................................................................................21
11.1 DOCUMENT HISTORY ............................................................................................................................21
12 ADDRESS INFORMATION.................................................................................................................21
13 TI WORLDWIDE TECHNICAL SUPPORT......................................................................................21
Page 3 of 22
Copyright © 2011-2012 Texas Instruments, Inc
TI CC2540 Bluetooth Low Energy Sample Applications Guide v1.2 SWRU297 Version 1.2
References
Included with Texas Instruments Bluetooth Low Energy v1.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-CC254-1.2\):
[1] Texas Instruments Bluetooth® Low Energy Software Developer’s Guide (SWRU271B)
C:\Texas Instruments\BLE-CC254x-1.2\Documents\TI_BLE_Software_Developer's_Guide.pdf
Adopted Bluetooth specifications (which can be downloaded from
https://www.bluetooth.org/Technical/Specifications/adopted.htm
):
[2] Blood Pressure Profile (BLP) Specification v1.0
[3] Blood Pressure Service (BLS) Specification v1.0
[4] Health Thermometer Profile (HTP) Specification v1.0
[5] Health Thermometer Service (HTS) Specification v1.0
[6] Heart Rate Profile (HRP) Specification v1.0
[7] Heart Rate Service (HRS) Specification v1.0
[8] HID over GATT Profile (HOGP) Specification v1.0
[9] HID Service (HIDS) Specification v1.0
[10] Scan Parameters Profile (ScPP) v1.0
[11] Scan Parameters Service (ScPS) v1.0
[12] Device Information Service (DIS) Specification v1.1
[13] Battery Service (BAS) specification v1.0
[14] Proximity Profile (PXP) Specification v1.0
[15] Find Me Profile (FMP) Specification v1.0
[16] Link Loss Service (LLS) Specification v1.0
[17] Immediate Alert Service (IAS) Specification v1.0
[18] Tx Power Service (TPS) Specification v1.0
[19] Time Profile (TIP) Specification v1.0
[20] Alert Notification Profile (ANP) Specification v1.0
[21] Phone Alert Status (PASP) Specification v1.0
Page 4 of 22
Copyright © 2011-2012 Texas Instruments, Inc
TI CC2540 Bluetooth Low Energy Sample Applications Guide v1.2 SWRU297 Version 1.2
1 Overview
The purpose of this document is to give an overview of the sample applications that are included
in the Texas Instruments CC2540/41 Bluetooth® low energy (BLE) software development kit. It is
recommended that you read [1] before attempting to use these sample applications, as some
kno
wledge of the CC2540/41 BLE protocol stack and software is required.
1.1 Introduction
Versi
on 1.2 of the Texas Instruments CC2540/41 BLE software development kit includes several
sample applications implementing a variety of GATT-based profiles. Some of these
implementations are based on specifications that have been adopted by the Bluetooth Special
Interest Group (BT SIG), while others are based on specifications that are a work-in-progress and
have not been finalized. In addition, some applications are not based on any standardized profile
being developed by the BT SIG, but rather are custom implementations developed by Texas
Instruments. In order to interoperate with other Bluetooth low energy devices (such as a mobile
phone), an application would need to be written on the other device which implements the proper
GATT client and/or server functionality that matches the CC2540/41 sample application. The
status of the implementation of each profile/application is included in this document.
The information in this guide specifically mentions only CC2540 projects; however all of the
applications and configurations (with the exception of those that use the USB interface) also can
run on the CC2541. Be sure to open the correct project file depending on the chipset that is being
used.
2 Blood Pressure Sensor
This sample project implements the Blood Pressure profiles in a BLE peripheral device to provide
an example blood pressure monitor using simulated measurement data. The application
implements the "Sensor" role of the blood pressure profile. The project is based on the adopted
profile and service specifications for Blood Pressure ([2] and [3]). The project also includes the
Device Information Service ([12]).
The proje
ct can be opened with the following IAR workspace file:
C:\Texas Instruments\BLE-CC254x-1.2\
Projects\ble\BLoodPressure\CC2540DB\bloodpressure.eww
2.1 Project Overview
The projec
t structure is very similar to that of the SimpleBLEPeripheral project. The APP directory
contains the application source code and header files. The project contains two configurations.
- CC2540DK-MINI Keyfob Slave: using the keyfob hardware platform.
- CC2540 Slave: using the SmartRF platform.
2.1.1 User Interface
There are two button input
s for this application.
KeyFob Right or SmartRF Joystick Right
When not connected, this button is used to toggle advertising on and off. When in a connection,
this increases the value of various measurements.
KeyFob Left or SmartRF Joystick Up
This button cycle through different optional measurement formats.
2.1.2 Basic Operation
Powe
r up the device and press the right button to enable advertising. From a blood pressure
collector peer device, initiate a device discovery and connection procedure to discover and
connect to the blood pressure sensor. The peer device should discover the blood pressure
service and configure it to enable indication or notifications of the blood pressure measurement.
Page 5 of 22
Copyright © 2011-2012 Texas Instruments, Inc
剩余22页未读,继续阅读
资源评论
- xibeidaxiongying2013-10-29很不错的blue4.0资料
- richardguo_gc2014-02-11TI 的样例应用程序说明,可在官网上找到!谢谢分享
- kiteu22014-06-06好的 ,有用, 有帮助!
- cxl2356332013-10-21好的 ,非常好,很有帮组!
zhoubinwy99
- 粉丝: 0
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功