Tuesday, November 24, 2015

Wireless Communication using CC2530 Zigbee Wireless MCU

CC2530 is an system-on-chip (SoC) solution for IEEE 802.15.4 and Zigbee that combines RF transceiver and 8051 MCU. To develop a wireless module using it, we had bought a CC2530DK devolopment kit that consists of 2 CC2530EM Evaluation Modules, 2 SmartRF05EB Evaluation Boards, and a CC2531 USB Dongle. It cost about USD 400. At first, we installed SmartRF Studio which was available for free at TI's website.

CC2530DK

SimpliciTI

Then SimpliciTI Compliant Protocol Stack was downloaded and installed. Documents for examples of SimpliciTI were found at C:\Texas Instruments\SimpliciTI-IAR-1.2.0\Documents\SimpliciTI Sample Application User's Guide.pdf.

SimpliciTI


IAR EW8051

To develop firmware for CC2530, IAR Embedded Workbench for 8051 was used. A free trial version with 30 days evaluation licenses is available at IAR's website. It costs about USD 2000 to buy a USB Mobile Lock license for single user.

IAR EW8051 and hardware lock (dongle)

After installing IAR EW, we tested UART_Bridge.eww which is located at C:\Texas Instruments\SimpliciTI-IAR-1.2.0\Projects\Examples\SRF05_8051\UART_Bridge\IAR folder. Once you have connected SmartRF05EB Evaluation Board to USB and turned on the power switch on the board, computer will install the driver automatically. If the driver is not found, you can manually choose the IAR folder for the driver location. After that, main_UART_Bridge.c in IAR IDE was opened, and description text and character count were edited as shown below.

Editing text in IAR

Thereafter, for the first RF board, we chose CC2530-Link To at the drop down list near the upper left corner and used the first byte for the device address as its original 0x79 which was found in the smpl_config.dat. For the second RF board, we chose CC2530-LinkListen for the drop down list, and modified the first byte of device address as 0x97.

Modifications for 2 different boards.

After rebuilding, downloading, and debugging the both boards, we connected them to RS232 ports of computers. The following figures show wireless communication between these computers.

Comm at board 1.


Comm at board 2.

No comments:

Post a Comment

Comments are moderated and don't be surprised if your comment does not appear promptly.