Texas Instruments 2540USB The CC2540Dongle is a development tool for the 2.4 GHz CC2540 BLE System-on-Chip with USB from TI. User Manual CC2540 Development Kit Quick Start Guide

Texas Instruments Inc. The CC2540Dongle is a development tool for the 2.4 GHz CC2540 BLE System-on-Chip with USB from TI. CC2540 Development Kit Quick Start Guide

Contents

user manual1

SWRU300August2011Web sites:www.ti.com/lprfE2E Forum:www.ti.com/lprf-forumMake sure to subscribe to the Low-Power RFNewsletter to receive information about updates todocumentation, new product releases,and more.Sign up on the TI web pages.CC2540Development KitQuick StartGuideOpening the Box and Running theBluetooth®Low EnergySimpleBLEDemo Application1. Kit Contents2xSmartRF05EB (the two large boards)2 x CC2540 Evaluation Modules2 xPulse Antennas1 xCC2540 USB DongleCablesDocumentationPlease contact a TI Representative if any partsare missing from the kit.2.Hardware SetupConnect the antennas to the SMA connector onthe RF evaluation boards. Tighten the antenna’sscrew firmly on to theSMA connector. If notproperly connected, you might see reduced RFperformance. Next, mount theCC2540evaluation modules (CC2540EMs) on toconnectors P5 and P6 on the SmartRF05EB.Make sure that the boards are pressed firmlyinto the connectors.3.Power OptionsThere are several ways of applying power totheSmartRF05EB.2 x 1.5 V AABatteriesUSBExternal Power SupplyFor the batteries and USB, there are voltageregulators on theSmartRF05EBthat will setthe on-board voltage to 3.3 V. The externalpower supply should set a voltage that doesnot exceed 3.3 V.Note that there should only be one activepower source at any one time.4. SetJumper P11Find jumper P11 on the top side of eachSmartRF05EB. This jumper is used to set thepower source for the board. Set P11 to “1-2” ifyou are using battery power. Set P11 to “2-3” ifyou are using USB or an external power supply.5.Turn on the BoardsOnce you have set P11, find switch P8 on thetop sideof each SmartRF05EB. To power upthe boards, flip the switch from the “OFF”position to “ON”6.Start-up ScreenOne of the CC2540EMswill be pre-loadedwith the SimpleBLECentral application, whilethe other will be pre-loaded with theSimpleBLEPeripheralapplication. The LCDscreens on the two SmartRF05EBs shoulddisplay messagessimilar to those below:The “0x…” value displayed on each board isthe device address. Every CC2540 devicehasa unique address.7.Using the JoystickThe SimpleBLEPeripheral application runsautonomously and does not require any userinteraction. The SimpleBLECentral application,however,requires user interaction by means ofjoystick U1. Find joystick U1 on the top side ofthe SmartRF05EB, immediately below the LCD.The joystick has five different movements: it canbe moved up, down, left, right, and it can pressedin like a button. Each movement performsdifferent actions depending on the state of thedevice.8.Device DiscoveryBefore the twodevices can connect,the central devicemust first discover theperipheral device. Toperform devicediscovery, press up onjoystick U1 once. TheLCD on the centraldevice should display“Discovering…”.After a few seconds, it should display “DevicesFound 1 / <-To Select”. This means that thecentral device successfully discovered theperipheral. Press left on joystick U1 to view theaddress of the peripheral device. This addressshould match the address seen on theperipheral’s LCD.9.Establish ConnectionTo establish aconnection with theperipheral, pressjoystick U1 intowards the board(push it in like it is abutton). Once theconnection isestablished, thecentral device willautomatically perform service discovery on theperipheral using theBLEGATT protocol. Thisshould complete within a fewseconds.The two LCD screens should appear as in theimages below, with the central still displayingthe peripheral’s addressand the peripheralhaving changed from “Advertising” to“Connected”:
10.Connected OperationsOnce the connection has been established andservice discovery is complete, you can performthe following operations using joystick U1 on thecentral device:Read / Write Data–U1UPRSSI Monitoring–U1DOWNConnection Parameter Update–U1RIGHTTerminate Link–U1IN(towards the board)11.Read / Write DataPressing up on U1 will send a readrequest to theperipheral device. One byte of data will be read,and the value will be displayed. Pressing upagain will send a write request, and one byte ofdata will be written to the peripheral. Theperipheral’s LCD should display the written valueeach time this is done.Bluetoothlow energy is an ideal technology fortransmission of small amounts of data betweentwo deviceswhile consuming very little power, asis demonstrated here.Continuing to press up on the joystick willalternate between reads and writes, with thevalue incrementing each time.12.Monitor RSSIPressing down on U1 will turn on RSSI (receivedsignal strength indication) monitoring. The RSSIwill be displayed on the LCD in units of negativedBm.If the boards are moved farther apart from eachother, the RSSI will drop (since the value isnegative, a higher number means lower RSSI). Ifthey are moved closer together, the RSSI shouldrise.Pressing down on U1 again will turn off RSSImonitoring.13. Connection ParameterUpdatePressingrighton U1 will send aconnectionparameter update request to the peripheral touse a longer connection interval. This will resultin much longer latency when performing datareads and writes; however the power consumedby both devices is significantly reduced.14.Terminate LinkPressing U1 intowards the boardwill terminatethe link. The peripheral will return to anadvertising state.The central device willdisplaya “Reason” code, which indicates why thedisconnection occurred (values are defined in theBLE stack API).In this case, the reason code of 22 indicates thatthe link termination was initiated by the centraldevice. In the event that the peripheral devicegoes out of range or has power disconnectedfrom it, you will see a reason code of8whichindicates that a link timeout has occurred.You cannowperformdevice discovery and re-connect to the peripheralif desired.15.SimpleBLE Demo SourceCodeThe project and source codefilesfor theseapplications(as well as many others)areincluded with the CC2540 Bluetooth low energy(BLE) stack from Texas Instruments, which canbe downloaded atwww.ti.com/blestack.The two projects implementing this demo arecalled SimpleBLECentral (CC2540EM Masterconfiguration) and SimpleBLEPeripheral(CC2540 Slave configuration).These can bemodified as desired, and should providea goodframework for developing your own custom BLEapplications.More details on theseprojectscan be foundwithin the CC2540 BLE Software Developer’sGuide, which is included with the stack. Moreinformation on the CC2540 Development Kit canbe found in the CC2540DK User’s Guide, whichcan be downloaded atwww.ti.com/lit/pdf/swru301.Additional ToolsandLinksBLE Packet SnifferThe CC2540 USB Dongle included with thedevelopment kit can be used asa BLE sniffer andmonitor packets while the SimpleBLE Demo isrunning.The SmartRF Protocol Packet Sniffer softwarecan be downloadedfromwww.ti.com/packetsnifferSmartRF™StudioSmartRF Studio allows you to configure the radio,run RF performance tests, and run link testsbetween the two SmartRF05EBs.SmartRF Studio can be downloadedfromwww.ti.com/smartrfstudioSmartRF Flash ProgrammerTexas Instruments has a simple tool which canbe used to program and flash the CC2540SmartRF Flash Programmer can bedownloaded fromfocus.ti.com/docs/toolsw/folders/print/flash-programmer.htmlBToolBTool is a Windows application that allows you tocontrol a central deviceusing the serial interfaceand perform variousBLEfunctionswhileconnected to a peripheral device.BTool is included as part of the installation of theBLE stack (see “Useful Links” to the right).IAR Embedded WorkbenchTo develop software, program, and debug theCC2540, you should use IAR EmbeddedWorkbench for 8051.Moreinformation on IAR EW8051, including afree evaluation version download, can be found atwww.iar.com/ew8051.Useful LinksTI BLE Stack and Software:www.ti.com/blestackCC2540 Development Kit User Guide:www.ti.com/lit/pdf/swru301CC2540BLE Software Developer’s Guide:www.ti.com/lit/pdf/swru271CC2540 User’sGuide:http://www.ti.com/lit/pdf/swru191CC2540 Product Page:www.ti.com/cc2540For additional help, visit the TI E2E Forums:www.ti.com/lprf-forum
IMPORTANT NOTICETexas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications, enhancements, improvements,and other changes to its products and services at any time and to discontinue any product or service without notice. Customers shouldobtain the latest relevant information before placing orders and should verify that such information is current and complete. All products aresold subject to TI’s terms and conditions of sale supplied at the time of order acknowledgment.TI warrants performance of its hardware products to the specifications applicable at the time of sale in accordance with TI’s standardwarranty. Testing and other quality control techniques are used to the extent TI deems necessary to support this warranty. Except wheremandated by government requirements, testing of all parameters of each product is not necessarily performed.TI assumes no liability for applications assistance or customer product design. Customers are responsible for their products andapplications using TI components. To minimize the risks associated with customer products and applications, customers should provideadequate design and operating safeguards.TI does not warrant or represent that any license, either express or implied, is granted under any TI patent right, copyright, mask work right,or other TI intellectual property right relating to any combination, machine, or process in which TI products or services are used. Informationpublished by TI regarding third-party products or services does not constitute a license from TI to use such products or services or awarranty or endorsement thereof. Use of such information may require a license from a third party under the patents or other intellectualproperty of the third party, or a license from TI under the patents or other intellectual property of TI.Reproduction of TI information in TI data books or data sheets is permissible only if reproduction is without alteration and is accompaniedby all associated warranties, conditions, limitations, and notices. Reproduction of this information with alteration is an unfair and deceptivebusiness practice. TI is not responsible or liable for such altered documentation. Information of third parties may be subject to additionalrestrictions.Resale of TI products or services with statements different from or beyond the parameters stated by TI for that product or service voids allexpress and any implied warranties for the associated TI product or service and is an unfair and deceptive business practice. TI is notresponsible or liable for any such statements.TI products are not authorized for use in safety-critical applications (such as life support) where a failure of the TI product would reasonablybe expected to cause severe personal injury or death, unless officers of the parties have executed an agreement specifically governingsuch use. Buyers represent that they have all necessary expertise in the safety and regulatory ramifications of their applications, andacknowledge and agree that they are solely responsible for all legal, regulatory and safety-related requirements concerning their productsand any use of TI products in such safety-critical applications, notwithstanding any applications-related information or support that may beprovided by TI. Further, Buyers must fully indemnify TI and its representatives against any damages arising out of the use of TI products insuch safety-critical applications.TI products are neither designed nor intended for use in military/aerospace applications or environments unless the TI products arespecifically designated by TI as military-grade or "enhanced plastic." Only products designated by TI as military-grade meet militaryspecifications. Buyers acknowledge and agree that any such use of TI products which TI has not designated as military-grade is solely atthe Buyer's risk, and that they are solely responsible for compliance with all legal and regulatory requirements in connection with such use.TI products are neither designed nor intended for use in automotive applications or environments unless the specific TI products aredesignated by TI as compliant with ISO/TS 16949 requirements. Buyers acknowledge and agree that, if they use any non-designatedproducts in automotive applications, TI will not be responsible for any failure to meet such requirements.Following are URLs where you can obtain information on other Texas Instruments products and application solutions:Products ApplicationsAudio www.ti.com/audio Communications and Telecom www.ti.com/communicationsAmplifiers amplifier.ti.com Computers and Peripherals www.ti.com/computersData Converters dataconverter.ti.com Consumer Electronics www.ti.com/consumer-appsDLP® Products www.dlp.com Energy and Lighting www.ti.com/energyDSP dsp.ti.com Industrial www.ti.com/industrialClocks and Timers www.ti.com/clocks Medical www.ti.com/medicalInterface interface.ti.com Security www.ti.com/securityLogic logic.ti.com Space, Avionics and Defense www.ti.com/space-avionics-defensePower Mgmt power.ti.com Transportation and www.ti.com/automotiveAutomotiveMicrocontrollers microcontroller.ti.com Video and Imaging www.ti.com/videoRFID www.ti-rfid.com Wireless www.ti.com/wireless-appsRF/IF and ZigBee® Solutions www.ti.com/lprfTI E2E Community Home Page e2e.ti.comMailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265Copyright © 2011, Texas Instruments Incorporated

Navigation menu