SlideShare a Scribd company logo
1 of 7
CC2530 ZigBee Network Processor Mini Kit
        Enabling two-ways communication with Mesh network capability




                                        Abstract
The CC2530 Mini Kit default 4 examples code - Hardware Interface Examples,
ZNP Interface Examples, Communication Examples, Simple Application
Examples – does not cover on how to enable two-ways communication and
only provided a star network structure instead of a stable mesh network
structure. Upon running the Simple Application Examples, once the end device
joins the coordinator through a router, the connection will crash after the end
device sends the 3rd message. Therefore, this application report will address
on these issues and enabling the mesh network capability of the CC2530ZNP
Mini Kit.


Related code and additional information are provided.


                                        Contents

Introduction                                                                     2
CC2530 ZigBee Network Processor                                                   2
ZigBee PRO Stack                                                                  3
Enabling Two-Ways Communication                                                   3
Wireless Doorbell Examples                                                        4
Using Router as Range Extender                                                    6
Reference                                                                         7




CC2530ZNP Mini Kit Application Report                                    Page 1 of 7
3/5/2011
1. Introduction
       The application report is an additional built-on modification of the
       original examples. It is recommended that you familiarize yourself with
       the original examples first before using this. See reference for the
       tutorial on the original examples wiki site.

        The ZigBee Network Processor Mini Development Kit is designed to give
        a simple introduction to ZigBee wireless networks. The examples
        provided are designed to be small, easy to use building blocks of code,
        which can be easily incorporated into your application. The example in
        this document is written for ease of use first, performance second.
        There is most likely a faster way to do everything, but we wanted to
        ensure that the examples are easy to understand.


    2. CC2530 ZigBee Network Processor
       There are two approaches to use CC2530 ZigBee Network Processor.



           CC2530ZNP Mini kit
             MSP430F2274
            32K flash/1K RAM

             Mini-kit Example
               applications
                                           CC2530ZNP

                   SPI           SPI
                                          SPI/UART/USB

                                        ZigBee Stack/MAC

                                        IEEE 802.15.4 Radio




        The Mini Kit approach will ensure a faster development time. It allows
        easy testing and prototyping simple ZigBee applications. It is easy to
        understand and smaller in code size compared to the other approaches.
        It is also portable to other TI platforms.

        Limitation of the mini kit includes, no ZigBee profile support and no
        operating system abstraction layer. The Mini Kit operates based on
        interrupt service routine.




CC2530ZNP Mini Kit Application Report                                      Page 2 of 7
3/5/2011
3. ZigBee PRO Stack
       The CC2530ZNP is a cost-effective, low power, ZigBee processor that
       provides full ZigBee functionality with a minimal development effort.




        In this solution, the ZigBee PRO stack runs on a CC2530 ZigBee SoC
        and the application runs on an external microcontroller (MSP430
        F2274). The CC2530ZNP handles all the ZigBee protocol tasks, and
        leaves the resources of the application microcontroller free to handle the
        application. To understand more on the ZigBee PRO stack, see reference
        for CC2530ZNP Interface Specification.


    4. Enabling Two-Ways Communication
       To enable broadcast, take a look at AfSendData and its parameter.
       AfSendData actually uses Af_Data_Request from the API. The detail of
       Af_Data_Request can be found in CC2530ZNP Interface Specification.

        Variation of the DestinationShortAddress:
        1. ALL_DEVUCES
        2. ALL_ROUTERS_AND_COORDINATORS
        3. 0 (send to coordinator only)


        If received afSendData error -31, it means the sender received a
        message but it wasn’t the type expected. Check receiver side’s code to
        make sure the code flowchart is correct.

        To simplify the problem, sleeping function is disabled in the example. If
        enable, make sure the interrupt wake-up is properly functioning or else


CC2530ZNP Mini Kit Application Report                                      Page 3 of 7
3/5/2011
the sleeping device will never receive the message.


    5. Wireless Doorbell Example




        In this setup configuration, access point means coordinator and the rest
        is end device. When pressing the button on the coordinator, all end
        device led will lights up as well. When pressing button on the end
        device, the coordinator and other end device led will lights up.

        #define SEND_MESSAGE_ON_MOTION: Once a motion is detected, the led will be
        triggered just like a button pressed.

        #define SEND_MESSAGE_ON_TIMER: The end-device will report the device status
        every few second back to the coordinator.

        The purpose of SEND_MESSAGE_ON_TIMER is to demonstrate how to receive and
        parse messages from the other devices. The coordinator checks if the received message is
        an info message, and if so then it parses the message and displays it.




CC2530ZNP Mini Kit Application Report                                                    Page 4 of 7
3/5/2011
Example Code Flowchart:




CC2530ZNP Mini Kit Application Report   Page 5 of 7
3/5/2011
6. Using Router as Range Extender
       By using the router (range extender), we can now modify the above
       network structure in part 5 to the structure below. After you turn the
       router on, the led will light up once it joined a network (either join a
       coordinator or another router). After that, all is done, nothing else is
       required. You can also see the join message from the coordinator's
       hyperTerminal window. If one router connected to another router, which
       connected to a coordinator, you will be able to see 2 router's join
       message from the coordinator's hyperTerminal.




CC2530ZNP Mini Kit Application Report                                   Page 6 of 7
3/5/2011
7. Reference
       1. CC2530ZNP Mini kit product page
          – http://focus.ti.com/docs/toolsw/folders/print/cc2530zdk-znp-
            mini.html

        2. Wiki page documentation
           – http://processors.wiki.ti.com/index.php/CC2530ZDK-ZNP-MINI

        3. CC2530ZNP Interface Specification (SWRA312)
        4. CC2530ZNP Mini Kit Quick Start Guide (SWRU268A)




CC2530ZNP Mini Kit Application Report                                 Page 7 of 7
3/5/2011

More Related Content

What's hot

Zigbee based two way wireless chatting system
Zigbee based two way wireless chatting systemZigbee based two way wireless chatting system
Zigbee based two way wireless chatting systemShashidhar Reddy
 
Extending Bluetooth with Mesh Networking
Extending Bluetooth with Mesh NetworkingExtending Bluetooth with Mesh Networking
Extending Bluetooth with Mesh NetworkingSilicon Labs
 
EC8004 wireless networks unit 1 IEEE802.11
EC8004 wireless networks unit 1 IEEE802.11EC8004 wireless networks unit 1 IEEE802.11
EC8004 wireless networks unit 1 IEEE802.11HemalathaR31
 
Voice communication using zigbee
Voice communication using zigbeeVoice communication using zigbee
Voice communication using zigbeeWaqar Memon
 
Zigbee- The Future of Data Communications
Zigbee- The Future of Data CommunicationsZigbee- The Future of Data Communications
Zigbee- The Future of Data CommunicationsArkaprava Sadhu
 
CCNA 1 Routing and Switching v5.0 Chapter 4
CCNA 1 Routing and Switching v5.0 Chapter 4CCNA 1 Routing and Switching v5.0 Chapter 4
CCNA 1 Routing and Switching v5.0 Chapter 4Nil Menon
 
Networking Course in bangalore | CCNA training Institute
Networking Course in bangalore | CCNA training InstituteNetworking Course in bangalore | CCNA training Institute
Networking Course in bangalore | CCNA training InstituteNetworking Training
 
CCNA
CCNACCNA
CCNAniict
 
14.) wireless (hyper dense wi fi)
14.) wireless (hyper dense wi fi)14.) wireless (hyper dense wi fi)
14.) wireless (hyper dense wi fi)Jeff Green
 
summer training report on Computer network and Cisco packet tracer
summer training report on Computer network and Cisco packet tracer summer training report on Computer network and Cisco packet tracer
summer training report on Computer network and Cisco packet tracer Dheeraj Giri
 
Proxy Mobile IPv6 (PMIPv6)
Proxy Mobile IPv6 (PMIPv6)Proxy Mobile IPv6 (PMIPv6)
Proxy Mobile IPv6 (PMIPv6)Peter R. Egli
 
200-125-ccna-v3
200-125-ccna-v3200-125-ccna-v3
200-125-ccna-v3Ibby Nuj
 
Benchmarking Bluetooth Mesh, Thread, and Zigbee Network Performance
Benchmarking Bluetooth Mesh, Thread, and Zigbee Network PerformanceBenchmarking Bluetooth Mesh, Thread, and Zigbee Network Performance
Benchmarking Bluetooth Mesh, Thread, and Zigbee Network PerformanceSilicon Labs
 

What's hot (20)

Zigbee
ZigbeeZigbee
Zigbee
 
Zigbee intro
Zigbee introZigbee intro
Zigbee intro
 
8051 zigbee interface
8051 zigbee interface8051 zigbee interface
8051 zigbee interface
 
Zigbee based two way wireless chatting system
Zigbee based two way wireless chatting systemZigbee based two way wireless chatting system
Zigbee based two way wireless chatting system
 
Extending Bluetooth with Mesh Networking
Extending Bluetooth with Mesh NetworkingExtending Bluetooth with Mesh Networking
Extending Bluetooth with Mesh Networking
 
EC8004 wireless networks unit 1 IEEE802.11
EC8004 wireless networks unit 1 IEEE802.11EC8004 wireless networks unit 1 IEEE802.11
EC8004 wireless networks unit 1 IEEE802.11
 
Wi-Fi Module
Wi-Fi ModuleWi-Fi Module
Wi-Fi Module
 
Voice communication using zigbee
Voice communication using zigbeeVoice communication using zigbee
Voice communication using zigbee
 
Zigbee- The Future of Data Communications
Zigbee- The Future of Data CommunicationsZigbee- The Future of Data Communications
Zigbee- The Future of Data Communications
 
Final presentation
Final presentationFinal presentation
Final presentation
 
CCNA 1 Routing and Switching v5.0 Chapter 4
CCNA 1 Routing and Switching v5.0 Chapter 4CCNA 1 Routing and Switching v5.0 Chapter 4
CCNA 1 Routing and Switching v5.0 Chapter 4
 
Summer training on CCNA
Summer training on CCNASummer training on CCNA
Summer training on CCNA
 
Networking Course in bangalore | CCNA training Institute
Networking Course in bangalore | CCNA training InstituteNetworking Course in bangalore | CCNA training Institute
Networking Course in bangalore | CCNA training Institute
 
CCNA
CCNACCNA
CCNA
 
14.) wireless (hyper dense wi fi)
14.) wireless (hyper dense wi fi)14.) wireless (hyper dense wi fi)
14.) wireless (hyper dense wi fi)
 
summer training report on Computer network and Cisco packet tracer
summer training report on Computer network and Cisco packet tracer summer training report on Computer network and Cisco packet tracer
summer training report on Computer network and Cisco packet tracer
 
Proxy Mobile IPv6 (PMIPv6)
Proxy Mobile IPv6 (PMIPv6)Proxy Mobile IPv6 (PMIPv6)
Proxy Mobile IPv6 (PMIPv6)
 
Ccna 1 4
Ccna 1  4Ccna 1  4
Ccna 1 4
 
200-125-ccna-v3
200-125-ccna-v3200-125-ccna-v3
200-125-ccna-v3
 
Benchmarking Bluetooth Mesh, Thread, and Zigbee Network Performance
Benchmarking Bluetooth Mesh, Thread, and Zigbee Network PerformanceBenchmarking Bluetooth Mesh, Thread, and Zigbee Network Performance
Benchmarking Bluetooth Mesh, Thread, and Zigbee Network Performance
 

Viewers also liked

Thesis Final PresentationV2
Thesis Final PresentationV2Thesis Final PresentationV2
Thesis Final PresentationV2Onur Kayikci
 
The A2530x24xx AIR Module for ZigBee Standard Applications
The A2530x24xx AIR Module for ZigBee Standard ApplicationsThe A2530x24xx AIR Module for ZigBee Standard Applications
The A2530x24xx AIR Module for ZigBee Standard ApplicationsAnaren, Inc.
 
Zig bee程式與韌體開發設計
Zig bee程式與韌體開發設計Zig bee程式與韌體開發設計
Zig bee程式與韌體開發設計casiolike0531
 
Introduction to zigbee
Introduction to zigbeeIntroduction to zigbee
Introduction to zigbeeAmit Dixit
 
Introduction to Ti wireless solution: ZigBee
Introduction to Ti wireless solution: ZigBeeIntroduction to Ti wireless solution: ZigBee
Introduction to Ti wireless solution: ZigBeeChiu-Hao Chen (Ted)
 
21 Błędów w 21 Miesięcy - w drodze do rentowności
21 Błędów w 21 Miesięcy - w drodze do rentowności21 Błędów w 21 Miesięcy - w drodze do rentowności
21 Błędów w 21 Miesięcy - w drodze do rentownościFilip Duszczak
 
26 Disruptive & Technology Trends 2016 - 2018
26 Disruptive & Technology Trends 2016 - 201826 Disruptive & Technology Trends 2016 - 2018
26 Disruptive & Technology Trends 2016 - 2018Brian Solis
 

Viewers also liked (8)

Thesis Final PresentationV2
Thesis Final PresentationV2Thesis Final PresentationV2
Thesis Final PresentationV2
 
The A2530x24xx AIR Module for ZigBee Standard Applications
The A2530x24xx AIR Module for ZigBee Standard ApplicationsThe A2530x24xx AIR Module for ZigBee Standard Applications
The A2530x24xx AIR Module for ZigBee Standard Applications
 
Zig bee程式與韌體開發設計
Zig bee程式與韌體開發設計Zig bee程式與韌體開發設計
Zig bee程式與韌體開發設計
 
ZigBee CC2530
ZigBee CC2530 ZigBee CC2530
ZigBee CC2530
 
Introduction to zigbee
Introduction to zigbeeIntroduction to zigbee
Introduction to zigbee
 
Introduction to Ti wireless solution: ZigBee
Introduction to Ti wireless solution: ZigBeeIntroduction to Ti wireless solution: ZigBee
Introduction to Ti wireless solution: ZigBee
 
21 Błędów w 21 Miesięcy - w drodze do rentowności
21 Błędów w 21 Miesięcy - w drodze do rentowności21 Błędów w 21 Miesięcy - w drodze do rentowności
21 Błędów w 21 Miesięcy - w drodze do rentowności
 
26 Disruptive & Technology Trends 2016 - 2018
26 Disruptive & Technology Trends 2016 - 201826 Disruptive & Technology Trends 2016 - 2018
26 Disruptive & Technology Trends 2016 - 2018
 

Similar to Application Report On CC2530 Mini Kit Mesh Network

FOREST FIRE DETECTION SYSTEM USING XBEE
FOREST FIRE DETECTION SYSTEM USING XBEEFOREST FIRE DETECTION SYSTEM USING XBEE
FOREST FIRE DETECTION SYSTEM USING XBEETalvinder Singh
 
200701043 report
200701043 report200701043 report
200701043 reportMindTree
 
The pattern and realization of zigbee wi-fi
The pattern and realization of zigbee  wi-fiThe pattern and realization of zigbee  wi-fi
The pattern and realization of zigbee wi-fieSAT Publishing House
 
The pattern and realization of zigbee wi-fi wireless pathway
The pattern and realization of zigbee  wi-fi wireless pathwayThe pattern and realization of zigbee  wi-fi wireless pathway
The pattern and realization of zigbee wi-fi wireless pathwayeSAT Journals
 
Akraino TSC ike 5G System and SP New Services Data centric Approach 2021 02 1...
Akraino TSC ike 5G System and SP New Services Data centric Approach 2021 02 1...Akraino TSC ike 5G System and SP New Services Data centric Approach 2021 02 1...
Akraino TSC ike 5G System and SP New Services Data centric Approach 2021 02 1...Ike Alisson
 
Home Automation using NodeMCU .docx
Home Automation using NodeMCU .docxHome Automation using NodeMCU .docx
Home Automation using NodeMCU .docxclassic tpr
 
Gas management & disaster system using ZigBee
Gas management & disaster system using ZigBeeGas management & disaster system using ZigBee
Gas management & disaster system using ZigBeeUniversity of Lahore
 
Designing of Advanced and Efficient Tree Routing in Zigbee Wireless Network
Designing of Advanced and Efficient Tree Routing in Zigbee Wireless NetworkDesigning of Advanced and Efficient Tree Routing in Zigbee Wireless Network
Designing of Advanced and Efficient Tree Routing in Zigbee Wireless Networkrahulmonikasharma
 
Banking and ATM networking reports
Banking and ATM networking reportsBanking and ATM networking reports
Banking and ATM networking reportsShakib Ansaar
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)IJERD Editor
 
Centralized monitoring station for it computing and network infrastructure1
Centralized monitoring station for it computing and network infrastructure1Centralized monitoring station for it computing and network infrastructure1
Centralized monitoring station for it computing and network infrastructure1MOHD ARISH
 
zigbee_presentation.pptx
zigbee_presentation.pptxzigbee_presentation.pptx
zigbee_presentation.pptxBhumitPatel46
 
IRJET- Raspberry Pi and NodeMCU based Home Automation System
IRJET- Raspberry Pi and NodeMCU based Home Automation SystemIRJET- Raspberry Pi and NodeMCU based Home Automation System
IRJET- Raspberry Pi and NodeMCU based Home Automation SystemIRJET Journal
 
IRJET - Design of RISC-V Bit Manipulation Instruction IP using Bluespec S...
IRJET -  	  Design of RISC-V Bit Manipulation Instruction IP using Bluespec S...IRJET -  	  Design of RISC-V Bit Manipulation Instruction IP using Bluespec S...
IRJET - Design of RISC-V Bit Manipulation Instruction IP using Bluespec S...IRJET Journal
 

Similar to Application Report On CC2530 Mini Kit Mesh Network (20)

FOREST FIRE DETECTION SYSTEM USING XBEE
FOREST FIRE DETECTION SYSTEM USING XBEEFOREST FIRE DETECTION SYSTEM USING XBEE
FOREST FIRE DETECTION SYSTEM USING XBEE
 
Wireless notice board using zigbee
Wireless notice board using zigbeeWireless notice board using zigbee
Wireless notice board using zigbee
 
200701043 report
200701043 report200701043 report
200701043 report
 
The pattern and realization of zigbee wi-fi
The pattern and realization of zigbee  wi-fiThe pattern and realization of zigbee  wi-fi
The pattern and realization of zigbee wi-fi
 
The pattern and realization of zigbee wi-fi wireless pathway
The pattern and realization of zigbee  wi-fi wireless pathwayThe pattern and realization of zigbee  wi-fi wireless pathway
The pattern and realization of zigbee wi-fi wireless pathway
 
Project report
Project reportProject report
Project report
 
Akraino TSC ike 5G System and SP New Services Data centric Approach 2021 02 1...
Akraino TSC ike 5G System and SP New Services Data centric Approach 2021 02 1...Akraino TSC ike 5G System and SP New Services Data centric Approach 2021 02 1...
Akraino TSC ike 5G System and SP New Services Data centric Approach 2021 02 1...
 
Home Automation using NodeMCU .docx
Home Automation using NodeMCU .docxHome Automation using NodeMCU .docx
Home Automation using NodeMCU .docx
 
Gas management & disaster system using ZigBee
Gas management & disaster system using ZigBeeGas management & disaster system using ZigBee
Gas management & disaster system using ZigBee
 
Designing of Advanced and Efficient Tree Routing in Zigbee Wireless Network
Designing of Advanced and Efficient Tree Routing in Zigbee Wireless NetworkDesigning of Advanced and Efficient Tree Routing in Zigbee Wireless Network
Designing of Advanced and Efficient Tree Routing in Zigbee Wireless Network
 
MininetasSDNPlatform.pdf
MininetasSDNPlatform.pdfMininetasSDNPlatform.pdf
MininetasSDNPlatform.pdf
 
Banking and ATM networking reports
Banking and ATM networking reportsBanking and ATM networking reports
Banking and ATM networking reports
 
CompTIA Security Plus Overview
CompTIA Security Plus OverviewCompTIA Security Plus Overview
CompTIA Security Plus Overview
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 
Zigbee
ZigbeeZigbee
Zigbee
 
Centralized monitoring station for it computing and network infrastructure1
Centralized monitoring station for it computing and network infrastructure1Centralized monitoring station for it computing and network infrastructure1
Centralized monitoring station for it computing and network infrastructure1
 
zigbee_presentation.pptx
zigbee_presentation.pptxzigbee_presentation.pptx
zigbee_presentation.pptx
 
IRJET- Raspberry Pi and NodeMCU based Home Automation System
IRJET- Raspberry Pi and NodeMCU based Home Automation SystemIRJET- Raspberry Pi and NodeMCU based Home Automation System
IRJET- Raspberry Pi and NodeMCU based Home Automation System
 
IRJET - Design of RISC-V Bit Manipulation Instruction IP using Bluespec S...
IRJET -  	  Design of RISC-V Bit Manipulation Instruction IP using Bluespec S...IRJET -  	  Design of RISC-V Bit Manipulation Instruction IP using Bluespec S...
IRJET - Design of RISC-V Bit Manipulation Instruction IP using Bluespec S...
 
CSE-Zigbee-ppt.pptx
CSE-Zigbee-ppt.pptxCSE-Zigbee-ppt.pptx
CSE-Zigbee-ppt.pptx
 

More from Chiu-Hao Chen (Ted)

Streetlight management system brochure
Streetlight management system brochureStreetlight management system brochure
Streetlight management system brochureChiu-Hao Chen (Ted)
 
Application Report On Stellaris To Dac5571(I2c)
Application Report On Stellaris To Dac5571(I2c)Application Report On Stellaris To Dac5571(I2c)
Application Report On Stellaris To Dac5571(I2c)Chiu-Hao Chen (Ted)
 
Application Report On Stellaris To DAC7311 (Spi)
Application Report On Stellaris To DAC7311 (Spi)Application Report On Stellaris To DAC7311 (Spi)
Application Report On Stellaris To DAC7311 (Spi)Chiu-Hao Chen (Ted)
 
Sustainability – A Global Journey
Sustainability –  A Global JourneySustainability –  A Global Journey
Sustainability – A Global JourneyChiu-Hao Chen (Ted)
 
Green And Sustainable Technologies Society (Gsts)
Green And Sustainable Technologies Society (Gsts)Green And Sustainable Technologies Society (Gsts)
Green And Sustainable Technologies Society (Gsts)Chiu-Hao Chen (Ted)
 
LED Basic Circuit & Application (Chinese)
LED Basic Circuit & Application (Chinese)LED Basic Circuit & Application (Chinese)
LED Basic Circuit & Application (Chinese)Chiu-Hao Chen (Ted)
 

More from Chiu-Hao Chen (Ted) (9)

E Bootcamp Acceptance Letter
E Bootcamp Acceptance LetterE Bootcamp Acceptance Letter
E Bootcamp Acceptance Letter
 
Streetlight management system brochure
Streetlight management system brochureStreetlight management system brochure
Streetlight management system brochure
 
Application Report On Stellaris To Dac5571(I2c)
Application Report On Stellaris To Dac5571(I2c)Application Report On Stellaris To Dac5571(I2c)
Application Report On Stellaris To Dac5571(I2c)
 
Application Report On Stellaris To DAC7311 (Spi)
Application Report On Stellaris To DAC7311 (Spi)Application Report On Stellaris To DAC7311 (Spi)
Application Report On Stellaris To DAC7311 (Spi)
 
Sustainability – A Global Journey
Sustainability –  A Global JourneySustainability –  A Global Journey
Sustainability – A Global Journey
 
Green And Sustainable Technologies Society (Gsts)
Green And Sustainable Technologies Society (Gsts)Green And Sustainable Technologies Society (Gsts)
Green And Sustainable Technologies Society (Gsts)
 
LED Basic Circuit & Application (Chinese)
LED Basic Circuit & Application (Chinese)LED Basic Circuit & Application (Chinese)
LED Basic Circuit & Application (Chinese)
 
LyRex Business Presentation
LyRex Business PresentationLyRex Business Presentation
LyRex Business Presentation
 
LyRex Business Plan
LyRex Business PlanLyRex Business Plan
LyRex Business Plan
 

Application Report On CC2530 Mini Kit Mesh Network

  • 1. CC2530 ZigBee Network Processor Mini Kit Enabling two-ways communication with Mesh network capability Abstract The CC2530 Mini Kit default 4 examples code - Hardware Interface Examples, ZNP Interface Examples, Communication Examples, Simple Application Examples – does not cover on how to enable two-ways communication and only provided a star network structure instead of a stable mesh network structure. Upon running the Simple Application Examples, once the end device joins the coordinator through a router, the connection will crash after the end device sends the 3rd message. Therefore, this application report will address on these issues and enabling the mesh network capability of the CC2530ZNP Mini Kit. Related code and additional information are provided. Contents Introduction 2 CC2530 ZigBee Network Processor 2 ZigBee PRO Stack 3 Enabling Two-Ways Communication 3 Wireless Doorbell Examples 4 Using Router as Range Extender 6 Reference 7 CC2530ZNP Mini Kit Application Report Page 1 of 7 3/5/2011
  • 2. 1. Introduction The application report is an additional built-on modification of the original examples. It is recommended that you familiarize yourself with the original examples first before using this. See reference for the tutorial on the original examples wiki site. The ZigBee Network Processor Mini Development Kit is designed to give a simple introduction to ZigBee wireless networks. The examples provided are designed to be small, easy to use building blocks of code, which can be easily incorporated into your application. The example in this document is written for ease of use first, performance second. There is most likely a faster way to do everything, but we wanted to ensure that the examples are easy to understand. 2. CC2530 ZigBee Network Processor There are two approaches to use CC2530 ZigBee Network Processor. CC2530ZNP Mini kit MSP430F2274 32K flash/1K RAM Mini-kit Example applications CC2530ZNP SPI SPI SPI/UART/USB ZigBee Stack/MAC IEEE 802.15.4 Radio The Mini Kit approach will ensure a faster development time. It allows easy testing and prototyping simple ZigBee applications. It is easy to understand and smaller in code size compared to the other approaches. It is also portable to other TI platforms. Limitation of the mini kit includes, no ZigBee profile support and no operating system abstraction layer. The Mini Kit operates based on interrupt service routine. CC2530ZNP Mini Kit Application Report Page 2 of 7 3/5/2011
  • 3. 3. ZigBee PRO Stack The CC2530ZNP is a cost-effective, low power, ZigBee processor that provides full ZigBee functionality with a minimal development effort. In this solution, the ZigBee PRO stack runs on a CC2530 ZigBee SoC and the application runs on an external microcontroller (MSP430 F2274). The CC2530ZNP handles all the ZigBee protocol tasks, and leaves the resources of the application microcontroller free to handle the application. To understand more on the ZigBee PRO stack, see reference for CC2530ZNP Interface Specification. 4. Enabling Two-Ways Communication To enable broadcast, take a look at AfSendData and its parameter. AfSendData actually uses Af_Data_Request from the API. The detail of Af_Data_Request can be found in CC2530ZNP Interface Specification. Variation of the DestinationShortAddress: 1. ALL_DEVUCES 2. ALL_ROUTERS_AND_COORDINATORS 3. 0 (send to coordinator only) If received afSendData error -31, it means the sender received a message but it wasn’t the type expected. Check receiver side’s code to make sure the code flowchart is correct. To simplify the problem, sleeping function is disabled in the example. If enable, make sure the interrupt wake-up is properly functioning or else CC2530ZNP Mini Kit Application Report Page 3 of 7 3/5/2011
  • 4. the sleeping device will never receive the message. 5. Wireless Doorbell Example In this setup configuration, access point means coordinator and the rest is end device. When pressing the button on the coordinator, all end device led will lights up as well. When pressing button on the end device, the coordinator and other end device led will lights up. #define SEND_MESSAGE_ON_MOTION: Once a motion is detected, the led will be triggered just like a button pressed. #define SEND_MESSAGE_ON_TIMER: The end-device will report the device status every few second back to the coordinator. The purpose of SEND_MESSAGE_ON_TIMER is to demonstrate how to receive and parse messages from the other devices. The coordinator checks if the received message is an info message, and if so then it parses the message and displays it. CC2530ZNP Mini Kit Application Report Page 4 of 7 3/5/2011
  • 5. Example Code Flowchart: CC2530ZNP Mini Kit Application Report Page 5 of 7 3/5/2011
  • 6. 6. Using Router as Range Extender By using the router (range extender), we can now modify the above network structure in part 5 to the structure below. After you turn the router on, the led will light up once it joined a network (either join a coordinator or another router). After that, all is done, nothing else is required. You can also see the join message from the coordinator's hyperTerminal window. If one router connected to another router, which connected to a coordinator, you will be able to see 2 router's join message from the coordinator's hyperTerminal. CC2530ZNP Mini Kit Application Report Page 6 of 7 3/5/2011
  • 7. 7. Reference 1. CC2530ZNP Mini kit product page – http://focus.ti.com/docs/toolsw/folders/print/cc2530zdk-znp- mini.html 2. Wiki page documentation – http://processors.wiki.ti.com/index.php/CC2530ZDK-ZNP-MINI 3. CC2530ZNP Interface Specification (SWRA312) 4. CC2530ZNP Mini Kit Quick Start Guide (SWRU268A) CC2530ZNP Mini Kit Application Report Page 7 of 7 3/5/2011