Texas Instruments CC2511 user manual Wireless USB to Serial port converter, Software components

Models: CC2511

1 24
Download 24 pages 31.84 Kb
Page 11
Image 11
6.2Wireless USB to Serial port converter

CC2511 Dongle

6.2Wireless USB to Serial port converter

This application example is a wireless USB to serial port (RS232) converter.

It creates a virtual serial port in Windows. Data sent to this virtual serial port will be sent to the CC2511 Dongle over USB, then to CC2510 EM over radio and finally out on the serial port on the CC2510 EM / SmartRF04EB.

Data sent to the serial port on the SmartRF04EB will be transferred to the virtual serial port in Windows.

Full duplex and flow control on the serial port (CTS and RTS lines) are supported. The radio link has CRC check and automatic retransmission for error free operation.

The application uses a CDC driver found in Windows, if used on other operating systems a suitable driver must be found/created. The Windows driver is rather slow and will limit the maximum throughput to approx 70 Kbit/s.

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 CDC 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.

The application example also uses the buffer module in the library to handle data buffering and the timer4 manager module for timing.

See “Class Definitions for Communication Devices” found on http://www.usb.org/developers/devclass_docs/usbcdc11.pdf for more information about the CDC class.

6.2.1Software components

rs232_to_usb_dongle.hex

The CC2511 USB Dongle firmware, is found in

“CC2511DK\embedded_sw\App_Ex\rs232_to_usb\rs232_to_usb_dongle\”.

rs232_to_usb_eb.hex

The CC2510 EM firmware is found in

“CC2511DK\embedded_sw\App_Ex\rs232_to_usb\rs232_to_usb_eb\”.

CC2511ApExSerialPort.inf

The windows driver for the Wireless USB to Serial port, found in “CC2511DK\pc_sw\App_Ex\rs232_to_usb\driver\”.

6.2.2Installing the application

1.Attach the CC2510EM to a SmartRF04EB and program it with the flash image rs232_to_usb_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 rs232_to_usb_dongle.hex, using IAR workbench or the Chipcon FLASH programmer.

(See “CC2430DK_CC2510_CC1110_User_Manual” for more information).

3.Disconnect the programmed CC2511 USB Dongle from the SmartRF04EB and plug it into a free USB port on the PC.

4.When windows ask for a driver, point to the file “CC2511ApExSerialPort.inf”.

SWRU082

Page 11 of 24

Page 11
Image 11
Texas Instruments Wireless USB to Serial port converter, Software components, rs232tousbdongle.hex, CC2511 Dongle