SWRU343 1. References The following references provide additional information on the CC2540, CC2541, the Texas Instruments Bluetooth® low energy (BLE) stack, the BLE HID over GATT profile the HID Service, and the BLE specification in general. (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.1\)
• • The CC2541 Advanced Remote Control is designed to act as a HID Peripheral Device (BLE Slave), operating according to the specifications laid out in the HID over GATT profile [5]. It comes pre-assembled in plastic casing with rubber buttons, battery enclosure and a hole to access the programming header.
2.2.3 Debugging IAR Embedded Workbench for 8051 development environment is required in order to make changes to the keyfob software. More information on IAR can be found in the Texas Instruments Bluetooth® Low Energy Software Developer’s Guide [1]. Page 5 of 19...
SWRU343 3. Using the CC2540 USB Dongle This section describes how the USB dongle appears to a computer running Windows 7, how it operates and how to use the buttons on the dongle. 3.1 Plugging it into a computer As the CC2540 USB dongle comes pre-programmed with emulated Human Interface Device USB endpoints, no extra drivers are necessary, and it should work out of the box.
SWRU343 3.2 Connecting to the Advanced Remote Control 3.2.1 First Time Pairing When the devices are programmed, they lose all stored pairing information. The dongle will power up and show a solid red LED. To initiate a connection to an ARC press the SW2 button on the HID dongle. This will cause the HID Dongle to scan for an ARC for 5 seconds.
SWRU343 3.2.4 Removing long term bond-data Pressing SW1 as seen on Figure 4 while not in a connection will cause the USB dongle to erase its record of the long-term bonding data stored for the Advanced Remote in the Flash memory of the USB dongle. This will not affect the data stored on the Advanced Remote.
SWRU343 4. Connecting the Advanced Remote Control to Windows 8 Once Bluetooth® low energy capable hardware is installed in a Windows 8 computer and updated drivers are installed (refer to section 2.2.2), you can discover and use the Advanced Remote Control by following the steps below.
SWRU343 4.2 Adding the Advanced Remote Control After clicking on HID AdvRemote in Figure 8 Windows will try and connect to the Advanced Remote. The Advanced Remote only advertises for 30 seconds, so the user may have to press a key on the remote to place it in advertising mode.
SWRU343 5. Using the Advanced Remote Control Figure 9 – Advanced Remote Control 5.1 Advertise and connect Almost all the keys will make the Advanced Remote start advertising and be discoverable by hosts scanning for HID capable BLE devices. 5.2 Keyboard input Pressing any number will act as a keyboard input of that number.
SWRU343 6. Programming / Debugging the CC2541 Advanced Remote The CC Debugger included with the Advanced Remote kit allows for debugging using IAR Embedded Workbench for 8051, as well as for reading and writing hex files to the CC2540/41 flash memory using the SmartRF Flash Programmer software.
SWRU343 6.2 Hardware Setup for USB Dongle The setup process for flashing the USB Dongle is very similar to the process when flashing the remote. Connect the CC Debugger to the USB Dongle as shown below. Be sure that the ribbon cable is oriented properly, with the red stripe connected to pin 1 as shown in figure below.
1.12.6), which is available at the following URL: http://www.ti.com/tool/flash-programmer To start the application go into your programs by choosing Start > All Programs > Texas Instruments > SmartRF Flash Programmer > SmartRF Flash Programmer. The program start-up screen is shown below.
IAR is the compiler and IDE used to develop the Advanced Remote and HID dongle. For more information on using IAR refer to the Texas Instruments Bluetooth® Low Energy Software Developer’s Guide [2]. This section provided a high level overview of advanced remote kit software projects There are two projects intended for the Advanced Remote Kit.
SWRU343 7. Software Overview 7.1 HID over GATT The software supports the HID Over GATT Profile specification which was approved by the BT SIG in December 2011. The specification is publicly available at bluetooth.org. Microsoft Windows 8 supports HID over GATT. 7.1.1 BLE HID Terminology HID Host The target machine that the user interacts with (e.g.
SWRU343 7.1.3 Data Flow The following data flow shows how HID reports are sent to Central device. Periodic sensor poll Scan keys on ISR hal_motion.c hal_key.c / OSAL.c / hal_drivers.c Raw I C sensor data Keyscan result, MOVEA library row & col AIR_MOTION_LIB_3G3A-Banked.r51 X + Y ”Mickeys”...
SWRU343 7.1.4 HID Report Overview The following HID reports are supported in the Advanced Remote Control. Type Bytes Data Function Ref Mouse Buttons, X, Y, wheel hidMouseSendReport Consumer Control Bitmap command hidCCSendReport Keyboard Modifier, reserved, key code 1..6 hidKeyboardSendReport Page 18 of 19...
SWRU343 8. General Information 8.1 Document History Revision Date Description/Change SWRU343 (1.0) 2013-03-22 Initial release Page 19 of 19...
Page 20
Any exceptions to this are strictly prohibited and unauthorized by Texas Instruments unless user has obtained appropriate experimental/development licenses from local regulatory authorities, which is responsibility of user including its acceptable authorization.
Page 21
FCC Interference Statement for Class B EVM devices This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation. This equipment generates, uses and can radiate radio frequency energy and, if not installed and used in accordance with the instructions, may cause harmful interference to radio communications.
Page 22
Also, please do not transfer this product, unless you give the same notice above to the transferee. Please note that if you could not follow the instructions above, you will be subject to penalties of Radio Law of Japan. Texas Instruments Japan Limited (address) 24-1, Nishi-Shinjuku 6 chome, Shinjuku-ku, Tokyo, Japan http://www.tij.co.jp...
Page 24
IMPORTANT NOTICE Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, enhancements, improvements and other changes to its semiconductor products and services per JESD46, latest issue, and to discontinue any product or service per JESD48, latest issue.
Need help?
Do you have a question about the CC2541 and is the answer not in the manual?
Questions and answers