background image

Z-Stack User's Guide - CC2430ZDK 

F8W-2005-0036 Version 1.4.3

 

Copyright 

 2005-2007 Texas Instruments, Inc.  All rights reserved. 

This FLASH memory location would also be used for factory commissioning of IEEE addresses 
on devices that use Z-Stack. For CC2430-F128 devices, used on all boards in the development 
kit, the least significant byte of the IEEE address is located at “linear” FLASH memory address 
0x1FFF8, corresponding to “banked” address 0x3FFF8.  

Z-Stack  treats  the  IEEE  address  area  of  FLASH  as  “write  once”  memory.  When  an  attempt  is 
made  to  write  an  IEEE  address  to  that  location  (via  Z-Tool,  etc.),  it  will  succeed  only  if  the 
current  contents  are  empty  (0xFFFFFFFFFFFFFFFF).  In  other  words,  any  8-byte  pattern  other 
than all 0xFF values, is considered to be a valid IEEE address and won’t be modified. 
 

5.   Configuring and Using Z-Stack 

5.1.  Configuring Z-Stack 

For the purposes of this release, the ZigBee Logical Device Type and Profile are pre-configured. 
Details  on  configuring  and  programming  sample  applications  for  Z-Stack  are  provided  in  the 
sections beginning with “Building the SampleApp Devices”. 

5.2.  Logical Device Types 

Z-Stack can be configured in one of three ways: 

 

ZigBee Coordinator – This device is configured to start the IEEE 802.15.4 network and 
will serve as the PAN Coordinator in that network. 

 

ZigBee  Router  –  This  device  is  configured  to  join  an  existing  network,  associate  to  a 
Coordinator or Router, and then allow other devices to associate to it.  It  will route data 
packets in the network. 

 

ZigBee  End  Device  –  This  device  is  configured  to  join  an  existing  network  and  will 
associate with a Coordinator or Router. 

5.3. Building SampleApp Devices 

The remainder of this section describes programming SmarCC2430EM boards to set 
up a simple ZigBee network with 2 or more nodes, a SampleApp Coordinator and one or more 
SampleApp  Routers.  The  SampleApp  project  file  provides  configurations  to  uniquely  build 
either of these devices, a well as, to build a generalized “Demo” device which permits selection 
of  Coordinator  and  Router  operation  by  setting  one  jumper  on  the  SmartRF04EB  board.  The 
following examples provide details on building and running the “Demo” sample application on 
two or more devices. 

5.4. Building a SampleLight Coordinator Device 

 

Make sure all tools have been installed (Sections 4.1 – 4.2) 

 

Connect a SmartRF04EB board to the development PC with a USB cable. Apply power 
by moving switch S3 toward the CC2430EM board. If Windows needs to install a driver, 
browse to 

C:\Program Files\IAR Systems\Embedded Workbench 4.0\8051\drivers\Chipcon

 to 

locate the necessary files. 

 

Navigate to the SampleApp project directory  and launch the  IAR Embedded Workshop 
by double clicking on the 

SampleApp.eww

 file: 

Summary of Contents for CC2430ZDK

Page 1: ...2005 2007 Texas Instruments Inc All rights reserved Z Stack User s Guide For CC2430ZDK ZigBee 2006 Release Version 1 4 3 Document Number F8W 2005 0036 Texas Instruments Inc San Diego California USA 61...

Page 2: ...logo on title page changed copyright on page footer 02 27 2006 1 2 Added Figure 3 showing SOC_BB Battery Board 06 25 2006 1 3 Changed sample applications to SampleSwitch and SampleLight 12 13 2006 1...

Page 3: ...FIGURING AND USING Z STACK 4 5 1 CONFIGURING Z STACK 4 5 2 LOGICAL DEVICE TYPES 4 5 3 BUILDING SAMPLEAPP DEVICES 4 5 4 BUILDING A SAMPLELIGHT COORDINATOR DEVICE 4 6 Z STACK DEMONSTRATION 7 6 1 SWITCHE...

Page 4: ...scription 2 1 Installation Package Contents The downloaded Z Stack installation package contains all of the documentation and software required to install configure and develop applications using Z St...

Page 5: ...n CC2430DB evaluation boards are also contained in CC2430ZDK and CC2431ZDK ZigBee development kits Figure 2 Chipcon CC2430DB Development Board Ten compact Chipcon SOC_BB evaluation boards each to be f...

Page 6: ...linking downloading and debugging for various 8051 based processors including the Chipcon CC243x family The following is required support for the Z Stack target development system IAR EW8051 http www...

Page 7: ...serve as the PAN Coordinator in that network ZigBee Router This device is configured to join an existing network associate to a Coordinator or Router and then allow other devices to associate to it I...

Page 8: ...W 2005 0036 Version 1 4 3 5 Copyright 2005 2007 Texas Instruments Inc All rights reserved Select the DemoEB project from the Workspace pull down menu Build the application by pulling down the Project...

Page 9: ...yright 2005 2007 Texas Instruments Inc All rights reserved Download the application by pulling down the Project menu and clicking on Debug After downloading to the CC2430EM is complete exit the debugg...

Page 10: ...n this and other Z Stack sample application documents references are made to switches and LEDs located on evaluation boards These devices are used to control certain Z Stack features and display statu...

Page 11: ...shown in the table below Figure 5 CC2430DB LEDs The SmartRF04EB has 4 colored LEDs designated 1 4 The CC2430EM module does not have connections to the red LED 2 or the blue LED 4 Therefore LEDs 1 and...

Page 12: ...P10 9 and P10 11 on the SmartRF04EB as shown in Figure 7 below Make sure that only one SmartRF04EB board has a jumper in this position Figure 7 SmartRF04EB Coordinator Jumper Initially begin executio...

Page 13: ...Selection The ZigBee specification defines the use of a 14 bit Personal Area Network Identifier PanID to uniquely identify a network Z Stack provides the user with two methods of selecting a PanID wh...

Page 14: ...r their projects This feature allows developers set up a personal channel and PanID to avoid conflict with others Multiple channels can be specified by including the appropriate bits in the DEFAULT_CH...

Page 15: ...uments Internal Documents 1 Serial Port Interface F8W Document F8W 2003 0001 2 OSAL API F8W Document F8W 2003 0002 3 Z Stack API F8W Document F8W 2006 0021 External Documents 4 Wireless Medium Access...

Reviews: