Texas Instruments | CC2541 Mini Development Kit (Rev. C) | User Guides | Texas Instruments CC2541 Mini Development Kit (Rev. C) User guides

Texas Instruments CC2541 Mini Development Kit (Rev. C) User guides
User's Guide
SWRU332C – November 2012 – Revised October 2016
CC2541 Mini Development Kit Quick Start Guide
This document is a guide through the initial steps required to run the preprogrammed Bluetooth® low
energy (BLE) Keyfob demo application.
1
2
3
4
Contents
Opening the Box and Evaluating Bluetooth® Low Energy ............................................................. 2
Evaluate Using BTool ....................................................................................................... 4
Evaluate Using an iOS Device (iPod, iPad, or iPhone) ................................................................. 8
Additional Tools and Links ................................................................................................ 11
List of Figures
1
Insert Battery ................................................................................................................. 3
2
Port Settings .................................................................................................................. 4
3
Scan Button
4
Establish Button .............................................................................................................. 5
5
Characteristic Value Handle ................................................................................................ 5
6
Discover UUIDs .............................................................................................................. 6
7
Terminate Button
8
SimpleLink™ Starter
9
10
11
12
13
14
..................................................................................................................
5
............................................................................................................ 7
........................................................................................................ 8
Connect to the Keyfob ...................................................................................................... 9
Evaluate App................................................................................................................ 10
BLE Packet Sniffer ......................................................................................................... 11
SmartRF Flash Programmer .............................................................................................. 11
IAR Embedded Workbench ............................................................................................... 12
BLE E2E Forum ............................................................................................................ 12
Trademarks
SimpleLink is a trademark of Texas Instruments.
Bluetooth is a registered trademark of Bluetooth SIG Inc..
iOS is a trademark of Cisco.
Windows is a registered trademark of Microsoft Corp..
SWRU332C – November 2012 – Revised October 2016
Submit Documentation Feedback
CC2541 Mini Development Kit Quick Start Guide
Copyright © 2012–2016, Texas Instruments Incorporated
1
Opening the Box and Evaluating Bluetooth® Low Energy
www.ti.com
1
Opening the Box and Evaluating Bluetooth® Low Energy
1.1
Kit Contents
•
•
•
•
•
•
1 × CC2540 USB dongle
1 × CC2541 Keyfob board
1 × Keyfob plastic case
1 × CC Debugger with cables
1 × CR2032 Battery
Documentation
The RF boards in this kit are designed to comply with ETIS, FCC, and IC regulations over a temperature
from 0°C to +35°C. The kit is for evaluation only; it is not FCC approved for resale.
CAUTION
The kit contains ESD sensitive components. Handle with care to prevent
permanent damage.
2
CC2541 Mini Development Kit Quick Start Guide
SWRU332C – November 2012 – Revised October 2016
Submit Documentation Feedback
Copyright © 2012–2016, Texas Instruments Incorporated
Opening the Box and Evaluating Bluetooth® Low Energy
www.ti.com
1.2
Introduction
This guide describes the hardware in the box and some of the tools that can be used for developing
software at a later stage. For the CC2541DK-MINI, there are two ways of getting started:
1. Evaluate using BTool: BTool is a Windows® application that allows the user to control a central device
using the serial interface, and perform various BLE functions while connected to a peripheral device,
such as the CC2541 Keyfob.
2. Evaluate using an iOS™ device: Some Apple iOS devices support BT4.0, and Texas Instruments has
created an iOS application to evaluate a peripheral device, such as the CC2541 Keyfob. The iOS
application runs on:
• iPhone 4s / 5 / 5s / 5c / 6 / 6Plus / 6s
• iPad 3 / 4 / air / air 2
• iPod Touch (5. gen)
1.3
Hardware Setup
First, power up the CC2541 Keyfob. Insert the CR 2032 battery, as shown in Figure 1; the LED is lit green
for one second.
Figure 1. Insert Battery
Toggle advertisements on and off by pushing the right button on the CC2541 Keyfob. During
advertisement, the LED blinks red.
WARNING
This kit includes a non-rechargeable lithium battery. To minimize
risk of personal injury or property damage due to a potential
explosion or rupture of the battery, always completely remove the
battery from the CC2541 Keyfob when connected to an external
power source. The external power source cannot exceed 3.6 VDC.
Dispose of the battery properly, and keep out of the reach of
children at all times.
SWRU332C – November 2012 – Revised October 2016
Submit Documentation Feedback
CC2541 Mini Development Kit Quick Start Guide
Copyright © 2012–2016, Texas Instruments Incorporated
3
Evaluate Using BTool
www.ti.com
2
Evaluate Using BTool
2.1
Download and Install BLE-Stack
The latest BLE software can be downloaded at www.ti.com/ble-stack.
After the BLE-Stack software installation is complete, the USB dongle driver must be associated with the
device to use the BTool application. To associate the USB dongle driver, first connect the USB dongle to
the USB port of the PC, or to a USB hub that connects to the PC.
The first time the dongle is connected to the PC, a message pops up indicating that Windows does not
recognize the device.
The driver is found in the Accessories\ Drivers folder in the default install directory. For more information
on how to install the driver, refer to the CC2540/41 Mini Development Kit User Guide (SWRU270).
2.2
Identify the COM Port Number
When the driver is installed, determine which COM port Windows has assigned to the USB dongle. Rightclick on Computer in the Start Menu, and select Properties.
The System Properties window opens; select Device Manager.
A list of all hardware devices appears. Under the Ports (COM & LPT) section, the device TI CC2540 LowPower RF to USB CDC Serial Port appears. Next to the name should be the port number (COM#).
Note this port number, as it is needed to use BTool.
2.3
Start BTool
BTool is included as part of the installation of the BLE stack, and can be found in the \Projects\BTool
folder in the default install directory.
When starting up BTool, you will be prompted to set port settings. Select the options shown in Figure 2,
and press OK.
Figure 2. Port Settings
2.4
Connect to the CC2541 Keyfob
Pressing the right button on the CC2541 Keyfob starts the advertisement. The device advertises for 30
seconds. In BTool, press the Scan button, as shown in Figure 3.
4
CC2541 Mini Development Kit Quick Start Guide
SWRU332C – November 2012 – Revised October 2016
Submit Documentation Feedback
Copyright © 2012–2016, Texas Instruments Incorporated
Evaluate Using BTool
www.ti.com
Figure 3. Scan Button
After the scanning is complete, choose the device to connect to, and press Establish, as shown in
Figure 4.
Figure 4. Establish Button
2.5
Button Notifications
To notify when buttons are pressed on the CC2541 Keyfob, notifications must be enabled. This is done in
the Read/Write tab of BTool by writing 01:00 to the characteristic handle 0x0049, as shown in Figure 5.
Figure 5. Characteristic Value Handle
If a button on the CC2541 Keyfob is now pushed, notifications are sent, and can be monitored in the
BTool log window.
NOTE: These handles are subject to change, depending on the firmware version used. To verify
handle IDs, discover all UUIDs by right-clicking the handle id under Connection Info, and
selecting Discover UUIDs, as shown in Figure 6.
SWRU332C – November 2012 – Revised October 2016
Submit Documentation Feedback
CC2541 Mini Development Kit Quick Start Guide
Copyright © 2012–2016, Texas Instruments Incorporated
5
Evaluate Using BTool
www.ti.com
Figure 6. Discover UUIDs
2.6
Enable Accelerometer
Similar to the button notifications, the notifications for the accelerometer data can be enabled. This
example only shows enable notifications for the x-axis.
First, enable the accelerometer by writing 01:00 to the characteristic handle 0x0035 in the Read/Write tab
of BTool. To enable notifications for the xaxis, write 01:00 to the characteristic handle 0x003C. This
enables the CC2541 Keyfob to send notifications as it is moved.
For more information about the accelerometer service, refer to the CC2540/41 Mini Development Kit User
Guide (SWRU270).
2.7
Immediate Alert
To sound the buzzer located on the CC2541 Keyfob, write the following value to the characteristic handle
0x0028:
6
CC2541 Mini Development Kit Quick Start Guide
SWRU332C – November 2012 – Revised October 2016
Submit Documentation Feedback
Copyright © 2012–2016, Texas Instruments Incorporated
Evaluate Using BTool
www.ti.com
•
•
•
01:00 for low Alert
02:00 for high Alert
00:00 to turn off
The buzzer will sound for 10 seconds.
2.8
Terminate Connection
There are three options to terminate the connection:
• Press the Terminate button in BTool, as shown in Figure 7.
• Remove the battery from the CC2541 Keyfob, which triggers a supervision timeout.
• Move the CC2541 Keyfob out of range (typically >10m), which triggers a supervision timeout.
Figure 7. Terminate Button
2.9
Source Code
The project and source code files for the preprogrammed application (as well as many others) are
included with the Bluetooth low energy (BLE) stack from Texas Instruments, which can be downloaded at
www.ti.com/ble-stack.
The project implementing this demo is called Keyfobdemo (CC2541DK-mini Keyfob Slave configuration).
The project can be modified as desired, and should provide a good framework for developing custom BLE
applications.
More details on these projects can be found within the BLE Software Developer’s Guide (SWRU271),
which is also included with the stack installer. For troubleshooting, refer to the CC2540/41 Mini
Development Kit User Guide (SWRU270).
SWRU332C – November 2012 – Revised October 2016
Submit Documentation Feedback
CC2541 Mini Development Kit Quick Start Guide
Copyright © 2012–2016, Texas Instruments Incorporated
7
Evaluate Using an iOS Device (iPod, iPad, or iPhone)
3
Evaluate Using an iOS Device (iPod, iPad, or iPhone)
3.1
Download the SimpleLink™ Starter
www.ti.com
The SimpleLink™ Starter iOS app can be downloaded through iTunes (found at www.apple.com/itunes) or
the App Store, which is pre-installed on iOS devices.
Figure 8. SimpleLink™ Starter
8
CC2541 Mini Development Kit Quick Start Guide
SWRU332C – November 2012 – Revised October 2016
Submit Documentation Feedback
Copyright © 2012–2016, Texas Instruments Incorporated
Evaluate Using an iOS Device (iPod, iPad, or iPhone)
www.ti.com
3.2
Connect to the CC2541 Keyfob
Figure 9. Connect to the Keyfob
SWRU332C – November 2012 – Revised October 2016
Submit Documentation Feedback
CC2541 Mini Development Kit Quick Start Guide
Copyright © 2012–2016, Texas Instruments Incorporated
9
Evaluate Using an iOS Device (iPod, iPad, or iPhone)
3.3
www.ti.com
Evaluate the Application
Figure 10. Evaluate App
10
CC2541 Mini Development Kit Quick Start Guide
SWRU332C – November 2012 – Revised October 2016
Submit Documentation Feedback
Copyright © 2012–2016, Texas Instruments Incorporated
Additional Tools and Links
www.ti.com
4
Additional Tools and Links
4.1
TI Packet Sniffer
The CC2540 USB dongle loaded with the TI Packet Sniffer firmware can be used as a BLE sniffer, and
monitor packets while the iPhone 4S Demo is running.
Figure 11. BLE Packet Sniffer
The TI Packet Sniffer software can be downloaded at www.ti.com/tool/packet-sniffer.
4.2
SmartRF Flash Programmer
Texas Instruments has a simple tool to program and flash the CC2541.
Figure 12. SmartRF Flash Programmer
SmartRF Flash Programmer can be downloaded at www.ti.com/tool/flash-programmer.
SWRU332C – November 2012 – Revised October 2016
Submit Documentation Feedback
CC2541 Mini Development Kit Quick Start Guide
Copyright © 2012–2016, Texas Instruments Incorporated
11
Additional Tools and Links
4.3
www.ti.com
IAR Embedded Workbench
To develop software, program, and debug the CC2541, use the IAR Embedded Workbench for 8051.
Figure 13. IAR Embedded Workbench
More information on IAR EW8051, including a free evaluation version download, can be found at
https://www.iar.com/iar-embedded-workbench/partners/texas-instruments/ti-wireless/. Refer to the BLE
Software Developer’s Guide (SWRU271) for the specific version of IAR.
4.4
BLE E2E Forum
For additional help, visit the TI Bluetooth low energy E2E forum, www.ti.com/ble-forum, for instant support
during development.
Figure 14. BLE E2E Forum
12
CC2541 Mini Development Kit Quick Start Guide
SWRU332C – November 2012 – Revised October 2016
Submit Documentation Feedback
Copyright © 2012–2016, Texas Instruments Incorporated
Additional Tools and Links
www.ti.com
4.5
BLE Wiki
The BLE Wiki contains application examples, guides, and documentation covering any extra steps you
might need help with. The Wiki is not only managed by Texas Instruments employees, but also by E2E
community members. Anyone can share, edit, and make use of the information posted here.
The Wiki is found at www.ti.com/ble-wiki.
4.6
Useful Links
•
•
•
•
•
TI BLE Stack and Software: www.ti.com/ble-stack
CC2540/41 Mini Development Kit User Guide: www.ti.com/lit/swru270
CC2540/41 BLE Software Developer’s Guide: www.ti.com/lit/swru271
CC2540/41 User’s Guide: www.ti.com/lit/swru191
CC2541 Product Page: www.ti.com/product/cc2541
Revision History
NOTE: Page numbers for previous revisions may differ from page numbers in the current version.
Changes from B Revision (October 2015) to C Revision ............................................................................................... Page
•
•
•
•
Changed Characteristic Handle from 0x0048 to 0x0049. ............................................................................
Updated Characteristic Value Handle image. .........................................................................................
Changed Characteristic Handle from 0x0034 to 0x0035. ............................................................................
Changed Characteristic Handle from 0x003B to 0x003C. ...........................................................................
SWRU332C – November 2012 – Revised October 2016
Submit Documentation Feedback
Copyright © 2012–2016, Texas Instruments Incorporated
Revision History
5
5
6
6
13
IMPORTANT NOTICE FOR TI DESIGN INFORMATION AND RESOURCES
Texas Instruments Incorporated (‘TI”) technical, application or other design advice, services or information, including, but not limited to,
reference designs and materials relating to evaluation modules, (collectively, “TI Resources”) are intended to assist designers who are
developing applications that incorporate TI products; by downloading, accessing or using any particular TI Resource in any way, you
(individually or, if you are acting on behalf of a company, your company) agree to use it solely for this purpose and subject to the terms of
this Notice.
TI’s provision of TI Resources does not expand or otherwise alter TI’s applicable published warranties or warranty disclaimers for TI
products, and no additional obligations or liabilities arise from TI providing such TI Resources. TI reserves the right to make corrections,
enhancements, improvements and other changes to its TI Resources.
You understand and agree that you remain responsible for using your independent analysis, evaluation and judgment in designing your
applications and that you have full and exclusive responsibility to assure the safety of your applications and compliance of your applications
(and of all TI products used in or for your applications) with all applicable regulations, laws and other applicable requirements. You
represent that, with respect to your applications, you have all the necessary expertise to create and implement safeguards that (1)
anticipate dangerous consequences of failures, (2) monitor failures and their consequences, and (3) lessen the likelihood of failures that
might cause harm and take appropriate actions. You agree that prior to using or distributing any applications that include TI products, you
will thoroughly test such applications and the functionality of such TI products as used in such applications. TI has not conducted any
testing other than that specifically described in the published documentation for a particular TI Resource.
You are authorized to use, copy and modify any individual TI Resource only in connection with the development of applications that include
the TI product(s) identified in such TI Resource. NO OTHER LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE TO
ANY OTHER TI INTELLECTUAL PROPERTY RIGHT, AND NO LICENSE TO ANY TECHNOLOGY OR INTELLECTUAL PROPERTY
RIGHT OF TI OR ANY THIRD PARTY IS GRANTED HEREIN, including but not limited to any patent right, copyright, mask work right, or
other intellectual property right relating to any combination, machine, or process in which TI products or services are used. Information
regarding or referencing third-party products or services does not constitute a license to use such products or services, or a warranty or
endorsement thereof. Use of TI Resources may require a license from a third party under the patents or other intellectual property of the
third party, or a license from TI under the patents or other intellectual property of TI.
TI RESOURCES ARE PROVIDED “AS IS” AND WITH ALL FAULTS. TI DISCLAIMS ALL OTHER WARRANTIES OR
REPRESENTATIONS, EXPRESS OR IMPLIED, REGARDING TI RESOURCES OR USE THEREOF, INCLUDING BUT NOT LIMITED TO
ACCURACY OR COMPLETENESS, TITLE, ANY EPIDEMIC FAILURE WARRANTY AND ANY IMPLIED WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL
PROPERTY RIGHTS.
TI SHALL NOT BE LIABLE FOR AND SHALL NOT DEFEND OR INDEMNIFY YOU AGAINST ANY CLAIM, INCLUDING BUT NOT
LIMITED TO ANY INFRINGEMENT CLAIM THAT RELATES TO OR IS BASED ON ANY COMBINATION OF PRODUCTS EVEN IF
DESCRIBED IN TI RESOURCES OR OTHERWISE. IN NO EVENT SHALL TI BE LIABLE FOR ANY ACTUAL, DIRECT, SPECIAL,
COLLATERAL, INDIRECT, PUNITIVE, INCIDENTAL, CONSEQUENTIAL OR EXEMPLARY DAMAGES IN CONNECTION WITH OR
ARISING OUT OF TI RESOURCES OR USE THEREOF, AND REGARDLESS OF WHETHER TI HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
You agree to fully indemnify TI and its representatives against any damages, costs, losses, and/or liabilities arising out of your noncompliance with the terms and provisions of this Notice.
This Notice applies to TI Resources. Additional terms apply to the use and purchase of certain types of materials, TI products and services.
These include; without limitation, TI’s standard terms for semiconductor products http://www.ti.com/sc/docs/stdterms.htm), evaluation
modules, and samples (http://www.ti.com/sc/docs/sampterms.htm).
Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
Copyright © 2018, Texas Instruments Incorporated
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertising