Texas Instruments CC2511 Wireless mouse / practical joke, Simplehiddongle.hex, Simplehideb.hex

Page 10

CC2511 Dongle

6.1Wireless mouse / practical joke

This application demonstrates the use of the CC2511Dongle as a USB composite HID (Human Interface Device), with both keyboard and mouse.

The application will work on most operating systems.

This application example uses the USB framework found in the CC2511 firmware library to setup the USB on the CC2511 Dongle and to handle all USB standard requests. In addition the Class requests required by the HID device class are implemented in a separate file.

The radio communication between CC2510EM and CC2511 Dongle is done using the RF part of the CC2511 firmware library.

See “Device Class Definition for Human Interface Devices (HID)” found on http://www.usb.org/developers/devclass_docs/HID1_11.pdf for more information about the HID class.

6.1.1Software components

simple_hid_dongle.hex

The CC2511 USB Dongle firmware, is found in ”CC2511DK\embedded_sw\App_Ex\simple_hid\simple_hid_dongle\”.

simple_hid_eb.hex

The CC2510 EM firmware is found in

”CC2511DK\embedded_sw\App_Ex\simple_hid\simple_hid_eb\”.

6.1.2Installing the application

1.Attach the CC2510EM to a SmartRF04EB and program it with the flash image simple_hid_eb.hex, using IAR workbench or the Chipcon FLASH programmer.

(See “CC2430DK_CC2510_CC1110_User_Manual” for more information).

2.Connect the CC2511 Dongle to the other SmartRF04EB and program it with the flash image simple_hid_dongle.hex, using IAR workbench or the Chipcon FLASH programmer.

(See “CC2430DK_CC2510_CC1110_User_Manual” for more information).

6.1.3Running the application

Insert the CC2511 Dongle into a free USB port. The firmware will identify the CC2511 Dongle as a composite HID with a keyboard and mouse.

On most operating systems no extra driver is necessary; the OS will automatically load a standard driver for HID devices.

The pot-meter “RT1” on the SmartRF04EB is used to choose between the “simple mouse” and the “practical joke” mode. Turn the pot-meter fully counter clockwise to select the “simple mouse”, fully clockwise to select the “practical joke” mode.

In “simple mouse” mode the joystick on the SmartRF04EB can be used as a mouse. The button “S1” is the left mouse button, pushing the joystick is the right mouse button.

While in simple mouse mode the CC2510 will calculate the RSSI (Receive Signal Strength Indicator) on the packets received from the CC2511 Dongle and display it on the LCD screen. The RSSI value is updated each second.

In “practical joke” mode there are three jokes to choose from:

Moving mouse – the mouse will constantly move slowly towards the right.

Write to screen – Writes the text “anybody home” to the PC.

Change window (ALT – TAB) – Changes the active window in Windows by sending the ALT – TAB keystrokes.

Move the joystick up and down to select joke, push “S1” button to start/stop.

SWRU082

Page 10 of 24

Image 10
Contents CC2511 Dongle Rev Table of contents About this manual IntroductionDefinitions Powered with a USB cable Connecting CC2511 Dongle to SmartRF04EBPowered from the SmartRF04EB CC2511 Dongle powered from USB cable Using SmartRF04EB as an In-Circuit Emulator ICE Recommended debug connector layout Top view Known problems Highlight the project nameCC2511 application examples Screenshot of the Chipcon General Packet SnifferSimplehiddongle.hex Wireless mouse / practical jokeSimplehideb.hex Rs232tousbdongle.hex Wireless USB to Serial port converterCC2511ApExSerialPort.inf Rs232tousbeb.hexVirtual serial port in Windows Device manager Winampremoteeb.hex Wireless WinAmp remote controlWinampremotedongle.hex Genchipconremote.dllCC2511 Dongle USB development framework CC2511 USB embedded firmware libraryWindows USB driver framework Windows USB driver license Other firmware modules and librariesCC2511 Dongle hardware description USB interfaceTest pins P4 pin-out Cutaway section Debug connectorDebug connector P3 pin-out General purpose I/O connectors Pin FunctionCC2511 Dongle schematics CC2511 Dongle schematic,CC2511 Dongle CC2511 Dongle CC2511 Dongle Document history Revision Date Description/Changes

CC2511 specifications

Texas Instruments CC2511 is a highly versatile and efficient System-on-Chip (SoC) designed for wireless communication applications in the 2.4 GHz ISM band. This device is particularly suitable for low-power, low-rate wireless connections, making it ideal for applications such as home automation, industrial control, and medical device communications.

One of the key features of the CC2511 is its integrated low-power, high-performance radio transceiver, which enables robust wireless communication. The device supports a wide range of modulation schemes, including 2-FSK and GFSK, allowing for flexible communication options tailored to specific application requirements. With a maximum output power of +5 dBm, the CC2511 ensures reliable transmission over significant distances while maintaining energy efficiency.

The CC2511 also incorporates a powerful 8051 microcontroller. This 8-bit microcontroller operates at speeds up to 24 MHz and is equipped with 128 bytes of RAM and 4 KB of Flash memory. The integration of the microcontroller allows developers to run application code directly on the chip, simplifying the design and reducing the need for additional components.

Additionally, the CC2511 features multiple connectivity options, including a hardware accelerator for AES-128 encryption. This ensures secure data transmission, which is crucial for applications that require privacy and protection against unauthorized access. The built-in power management features allow for energy-efficient operation, with various sleep modes that help extend battery life for portable devices.

Moreover, the CC2511 supports the SimpleLink technology from Texas Instruments, which offers a seamless development environment and user-friendly tools. Developers can take advantage of software development kits (SDKs), sample applications, and extensive documentation to streamline the development process.

In terms of characteristics, the CC2511 operates across a wide range of temperatures, making it suitable for various environmental conditions. Its compact size and low power consumption make it an excellent choice for battery-operated devices.

In conclusion, Texas Instruments CC2511 stands out as a leading solution for low-power wireless applications with its integrated transceiver, microcontroller, and advanced features. This SoC empowers developers to create innovative and efficient communication solutions across various industries.