background image

 

40 

 

ATZB-EVB-XXX-XXX User Manual 

AVR-09-2011 

with AVR Studio and just execute 

Build/Rebuild All 

item from the main menu. 

The 

WSNDemoApp.hex 

and

 WSNDemoApp.srec

 image files will be then generated. 

Low-Power, Peer-to-peer and Ping-Pong applications are described in details in  [4]. 

9 Troubleshooting 

In case of any operational problem with your system please check the power first, and 
make sure that all of your equipment is properly connected.  

Check if your PC conforms to the minimum system requirements (see Section  4.2). 
Check if the PC interfaces (COM, USB) are present and drivers are installed. 

Check on LED indication of a node if it is not responding or behaving unusually. Make 
sure the DIP switches are set according to the application running on the board.  

You can retest the particular node as described in Section  4.7, if needed. 

You may be required to reset the node. 

Table  represents some typical problems that you may encounter while working with 
the Development Kit and possible solutions. 

Table 14. Typical problems and solutions 

Problem  

Solution 

The board does not 
indicate its activity with 
LEDs. 

Make sure that either WSNDemo image or Hardware 
Test image is loaded. For SerialNet, the LED status is 
controlled by AT-commands. 

The board does not 
respond to outer 
commands (in case of 
external antenna) 

Make sure the external antenna is not broken and it is 
properly connected to the board. 

Detect ID for any single connected board using the  
USBView.exe utility from Silicon Laboratories.  
It can be downloaded from http://www.silabs.com/ 
tgwWebApp/public/web_content/products/ 
Microcontrollers/USB/en/USBXpress.htm 

You can use the CP210xSetIDs.exe utility from Silicon  
Laboratories which is included in AN144SW. It is  
described at http://www.silabs.com/public/documents/ 
tpub_doc/anote/Microcontrollers/Interface/en/an144.pdf 

In effort to connect 

several boards to the 

same PC their detection 

fails due to ID 

recognition conflict. 

and it can be downloaded from  
http://www.silabs.com/public/documents/software_doc/ 
othersoftware/Microcontrollers/Interface/en/an144sw.zip. 
Make sure Java machine is properly installed on your 
PC. Java Runtime Environment installation program can 
be found in 

./Third Party Software/

 directory as 

WSN Monitor fails to 
start. 

jre-6u6-windows-i586-p.exe

 file (see Appendix 

Section 10.7)

 

No node is shown on 
the Topology Pane in 
the WSN Monitor 

Check if the WSN Monitor uses proper COM port and if 
not, change it and restart the program. 

Summary of Contents for ATZB-EVB-24-A2

Page 1: ...ZigBit Development Kits ATZB EVB 24 SMA ATZB EVB 900 SMA ATZB EVB A24 SMA ATZB EVB 24 PCB ATZB EVB 24 A2 User Manual ZigBit Development Kits User Manual Rev 0 5 AVR 09 11...

Page 2: ...ion of the in band or out band radiation levels It can result in progressing violation of emission level limits thus causing harmful interference Precautions The product radiates power in the microwav...

Page 3: ...MAC and Physical Layer PHY Specifications for Low Rate Wireless Personal Area Networks LR WPANs 13 TSL2550 Ambient Light Sensor With Smbus Interface TAOS Datasheet TAOS029E February 2006 http www tao...

Page 4: ...ks the ZigBee end device provides sensor data sent to a router End device is often subject to power management restrictions so it may be in sleeping mode most of the time ESD Electrostatic Discharge G...

Page 5: ...tegy The ZigBee coordinator is also responsible for routing RP SMA Reversed Polarity Surface Mount Assembly RS 232 Serial binary data interconnection interface which is commonly used in computer seria...

Page 6: ...cumentation Distribution CD 1 item 3 Hardware General Specifications ATZB EVB MeshBean board is intended to evaluate the performance of a ZigBit module In turn a ZigBit module with the embedded BitClo...

Page 7: ...Hz PCB on board antenna external 50 Ohm unbalanced antenna or dual chip antenna MCU Microcontroller ATmega1281V RAM 8K Bytes Flash Memory 128K Bytes EEPROM 4K Bytes Performance Up to 4 MIPS throughput...

Page 8: ...the ZigBit module including the module interfaces voltage levels power consumption are available in the ZigBit datasheet 1 Sensors The board incorporates light sensor TSL2550T from TAOS and temperatur...

Page 9: ...antenna SMA connector only for ATZB EVB MeshBean with external antenna JTAG connector for software upload and debugging Power connector 3 V to use an AC DC adapter not supplied with ZDK 20 pin Expans...

Page 10: ...10 ATZB EVB XXX XXX User Manual AVR 09 2011 Figure 1 ATZB EVB MeshBean functional diagram...

Page 11: ...t I 2 C clock It is connected to the I2C_CLK pin of the module via low voltage level translators For details refer to ZigBit datasheet 1 8 I2C_DATA Bidirectional I2 C data It is connected to the I2C_D...

Page 12: ...ls refer to ZigBit datasheet 1 19 GND Digital analog ground 20 GND Digital analog ground GENERAL NOTES Pins 12 13 14 16 17 18 are not buffered and driven by the MCU pins directly Thus this interface s...

Page 13: ...ed by primary source battery USB or AC DC adapter J2 bridges POWER pin and DC DC pin ZigBit is powered by 3 6 V internal voltage regulator Table 6 J3 jumper settings Serial USB selection Jumper positi...

Page 14: ...onnector to attach an external antenna The specifications of external antenna supplied with the Development Kit are presented below in Table Table 8 External antenna specifications Min Separation Part...

Page 15: ...to develop custom applications based on the BitCloud API 4 The general guidelines to BitCloud programming are given in 5 API based demos are provided in source code which can be modified and extended...

Page 16: ...rackets WSNDemo WSNDemo Low Power Networking Lowpower Ping Pong Pingpong Peer To Peer Data Exchange Peer2peer Blink minimal sample application Blink Hardware Test HardwareTest The WSNDemo application...

Page 17: ...shBean to PC via USB port see Section 3 4 4 4 IDE AVR Studio 4 14 WinAVR Necessary to upload firmware image through JTAG see Appendix B and to develop applications using API see Section 7 Serial Bootl...

Page 18: ...ZDK deployment the following auxiliary software can be optionally installed USB to UART Bridge VCP driver for Windows platform Java Runtime Environment JRE Microsoft NET Framework To complete the ins...

Page 19: ...App public web_content products Micro controllers USB en mcu_vcp htm Java Runtime Environment JRE is also available from http java sun com javase downloads index jsp There may be other Java instances...

Page 20: ...r see details in Section 4 3 Section 0 As a result generic COM port can be used to access a board via USB IMPORTANT NOTES When USB connection is used the COM port number would be changed by the Window...

Page 21: ...ld fail In this case the only option becoming available would be using of JTAG emulator see 10 8 Using nickel cadmium rechargeable batteries is allowed but with certain precautions Nominally their cel...

Page 22: ...as described above see Table While the Hardware Test is running all the board LEDs are blinking Reports are generated each second see Figure and include the status of buttons DIP switches the UID chip...

Page 23: ...ts Refer to the Application Note 6 for details 4 9 Antenna Precautions Each type of antenna namely PCB antenna dual chip antenna and external antenna were matched and tuned with taking into account al...

Page 24: ...ally to transmit the sensor data That data is displayed on WSN Monitor panes as temperature light and battery level measurements End device is mostly sleeping and it wakes up shortly each 10 seconds f...

Page 25: ...h MAC address can be performed in four ways MAC address can be uploaded to a board by means of Serial Bootloader using a command line flag see 7 It can be specified in Configuration file when defining...

Page 26: ...ds to the actual connection of the board namely Serial or USB Serial Bootloader indicates the operation progress Once an upload is successfully completed the board would restart automatically If an up...

Page 27: ...abled BOOTSZ Boot Flash size 1024 words start address FC00 BOOTRST Disabled CKDIV8 Enabled CKOUT Disabled SUT_CKSEL Int RC Osc Start up time 6 CK 65 ms Figure 5 Fuse bits setting Make sure the followi...

Page 28: ...channel mask to EEPROM from flash from an image file then startup initialization of the node must be performed as follows Press and hold the on board SW1 button first see Error Reference source not f...

Page 29: ...OFF Board is configured to be a router OFF OFF ON Board is configured to be an end device Coordinator organizes the wireless network automatically Upon starting any node informs the network on its rol...

Page 30: ...SN Monitor 5 5 Sensors Data and Battery Level Indication Each of the boards measures temperature light and its own battery level They send the data values to coordinator and further to the PC The WSN...

Page 31: ...e the nodes join send data or leave The Topology Pane updates automatically while the nodes are discovered and while they join through coordinator The networking tree is displayed in form of parent ch...

Page 32: ...nodes First connect the coordinator node to the USB or to serial port in accordance with the J3 jumper setting see Table Next run the WSN Monitor application on your PC At startup WSN Monitor will at...

Page 33: ...WSN Monitor Connection Settings menu Node Reset A node can be reset by means of the WSN Monitor using the Tools Send Command menu see Figure 8 A node can be identified by its MAC address or it can be...

Page 34: ...the 27 valid channels 1 available 0 unavailable Figure 11 Setting channel mask dialog box Open the Channel bit mask window by clicking the button Use checkboxes to check the allowed channels see Figur...

Page 35: ...values are shown on the Sensor Data Graph Pane You can easily check how they evolve over time The Sensor Data Graph Pane includes a Sensor Selection combo box Use the button on the Sensor Control Too...

Page 36: ...ootloader is contained in 7 8 Programming with BitCloud API 8 1 API Overview BitCloud internal architecture follows 802 15 4 ZigBee defined separation of the networking stack into logical layers Besid...

Page 37: ...ed to compile C or C codes For description of GCC compiler see WinAVR documentation You can find command options for compilation and linking specified in 20 In AVR Studio the development of an applica...

Page 38: ...is supplied with the set of BitCloud API sample applications in source code These are named as given in brackets WSNDemo application WSNDemo Low Power Networking application Lowpower Peer to Peer Dat...

Page 39: ...UFFER_SIZE 3 CS_DUPLICATE_REJECTION_TABLE_SIZE 7 CS_NWK_DATA_REQ_BUFFER_SIZE 4 CS_NWK_DATA_IND_BUFFER_SIZE 4 USE_STATIC_ADDRESSING 0 Used only for static addressing CS_NWK_ADDR 0x7001 USE_NETWORK_KEY...

Page 40: ...WSNDemo image or Hardware Test image is loaded For SerialNet the LED status is controlled by AT commands The board does not respond to outer commands in case of external antenna Make sure the external...

Page 41: ...controller flash memory was not erased before and the bootstrap was not lost there after having the node programmed through JTAG 10 Appendix 10 1 FCC Statements 10 2 Equipment usage This equipment is...

Page 42: ...certified Radio module with FCC ID VW4A090664 ATZB EVB 24 SMA This equipment carries a certified Radio module with FCC ID VW4A090665 ATZB EVB 900 SMA This equipment carries a certified Radio module w...

Page 43: ...mo image files Evaluation Tools WSNDemo WSN Monitor WSNMonitorSetup exe WSN Monitor installer Evaluation Tools SerialNet serialnet srec Evaluation Tools SerialNet serialnet hex SerialNet image files B...

Page 44: ...Measurement Tool image files Evaluation Tools Range Test RangeTestRf230 srec Third Party Software CP210x_VCP_Win2K_XP_S2K3 exe USB to UART Bridge VCP driver installation program Third Party Software J...

Page 45: ...is shown in Figure Figure 13 AVR Studio dialog box for firmware upload using JTAG The well known command line utility avrdude which is a part of WinAVR environment http sourceforge net projects winavr...

Page 46: ...h endif ifdef _SLIDERS_ ifdef _BUTTONS_ include buttons h endif ifdef _BUTTONS_ ifdef _LEDS_ include leds h endif ifdef _LEDS_ include zdo h ifndef BLINK_PERIOD define BLINK_PERIOD 1000 Initial blink...

Page 47: ...educes blink interval to a half define DOUBLE_PERIOD_BUTTON BSP_KEY1 Button that doubles blink interval static HAL_AppTimer_t blinkTimer Blink timer ifndef _BUTTONS_ static HAL_AppTimer_t changeBlinkT...

Page 48: ...k changeTimerFired Callback function for timer fire event HAL_StartAppTimer changeBlinkTimer Start blink timer endif ifdef _BUTTONS_ Configure blink timer blinkTimer interval BLINK_INTERVAL Timer inte...

Page 49: ...Led LED_YELLOW BSP_ToggleLed LED_GREEN Description button release event handler Parameters buttonNumber released button number Returns nothing static void buttonsReleased uint8_t buttonNumber HAL_Stop...

Page 50: ...LINK_INTERVAL blinkTimerFired Update LED status immediately HAL_StartAppTimer blinkTimer Start updated blink timer Description just a stub Parameters are not used Returns nothing void ZDO_MgmtNwkUpdat...

Page 51: ...on COMPONENTS_PATH Components Application makerules including include COMPONENTS_PATH lib MakerulesBcAll Project name PRJ_NAME blink Application parameters CFLAGS DBLINK_PERIOD 1000 CFLAGS DMIN_BLINK_...

Page 52: ...clude I HAL_PATH include I HAL_HWD_PATH include I BSP_PATH include I CS_PATH include I PDS_PATH include I TC_PATH include I SSP_PATH include Linking ifeq HAL ATMEGA1281 LINK_OBJECTS COMPONENTS_PATH li...

Page 53: ...ME o o c echo echo Application executable creation CC c CFLAGS INCLUDES o PRJ_NAME elf PRJ_NAME o CC CFLAGS INCLUDES PRJ_NAME o LIB_PATH LINK_OBJECTS l STACK_LIB l CS_LIB l PDS_LIB l BSP_LIB l STACK_L...

Page 54: ...an echo echo Application cleaning rm rf PRJ_NAME elf PRJ_NAME hex PRJ_NAME srec PRJ_NAME o PRJ_NAME map PRJ_NAME bin echo echo PDS library cleaning make clean C PDS_PATH echo echo Configuration Server...

Page 55: ...assumes all responsibility and liability for proper and safe handling of the goods Further the user indemnifies Atmel from all claims arising from the handling or use of the goods Due to the open con...

Page 56: ...OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTY OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE OR NON INFRINGEMENT IN NO EVENT SHALL ATMEL BE LIAB...

Reviews: