background image

Install and run the sink-sensor application

UM1454

24/28

Doc ID 022085 Rev 2

Figure 19.

Sensor: join and data messages

Commands can be sent through the HyperTerminal to both the STEVAL-sink and the 
STEVAL-sensor. For example, in 

Figure 20

 the result of the command “i=print node 

info” sent to STEVAL-sink can be seen.

Figure 20.

Sink: “i” command output

Note:

The application uses a constant called MISS_PACKET_TOLERANCE as a threshold for 
fault tolerance. On the sensor, this threshold controls how many message timeouts can be 
permitted between the sensor and sink before the sensor decides to attach itself to a 
different sink. 

For a sink, this controls how many data reports can be missed from a sensor before the sink 
“forgets” about the sensor (stops maintaining a record of its attachment). Although bindings 
are kept on the sink node to track the attached sensors, these could easily be made 
temporary (used only for the SINK_READY message) to allow the sink application to 
support more nodes without enlarging the binding table, assuming that the sink application 
does not care which sensors and how many sensors are attached to it.

www.BDTIC.com/ST

Summary of Contents for STEVAL-IDZ301V1

Page 1: ...RO Zigbee RF4CE and simplified MAC on the STM32W108CB microcontroller The STEVAL IDZ3xxV HW integrates an RF module belonging to the SPZB32W1x2 x series together with an extended number of external co...

Page 2: ...4 2 5 3 Configurable button 14 2 5 4 Voltage battery meter 14 2 5 5 Temperature sensor 15 2 5 6 Ground points 15 2 5 7 Test points 15 2 5 8 Setting up STEVAL 16 2 5 9 Powering setup 16 2 5 10 Serial c...

Page 3: ...sensor application 21 3 1 Sink sensor sample application 21 3 2 Load sink sensor on the STEVAL 22 3 3 Setting up a network and running the sink sensor application 22 4 RoHS compliance 25 Appendix A S...

Page 4: ...ble 1 The STEVAL IDZ3xxV1 versions 6 Table 2 Abbreviations 6 Table 3 Recommended operating conditions 10 Table 4 Board connections and configuration 11 Table 5 STEVAL interfaces maximum voltage config...

Page 5: ...mper positioning 16 Figure 9 External power supply JP conf 16 Figure 10 Mini USB power supply JP conf 16 Figure 11 Mini USB connection JP conf 17 Figure 12 RS 232 connection JP conf 17 Figure 13 Boot...

Page 6: ...ctor STEVAL integrates the following An RF module belonging to the series of ZigBee 802 15 4 SPZB32W1x2 x modules A 20 pin JTAG connector for programming and debugging purposes Hardware support for ap...

Page 7: ...dded Workbench IDE for ARM is a very powerful integrated development environment used for developing and managing complete embedded application projects Note For programming and or debugging using the...

Page 8: ...ly tested with the following libraries and ToolSuite versions EmberZnet package versions 4 0 2 and 4 3 0 STM32W_flasher 1 1 0 available on the CD of the kit Sink Sensor example Included in the kit IAR...

Page 9: ...R UMPER 3UPPLY MAIN VOLTAGE REGULATOR 4 30 7 X 34 4EMPERATURE SENSOR 4 ONNECTOR 2ESET 0USH UTTON 3 0USH UTTONS 5 24 0 XT CONNECTOR UMPER FOR 3ERIAL OOT 53 5 24 RIDGE 3ERIAL 3ELECTOR UMPER MINI53 3ERIA...

Page 10: ...ons Table 3 Recommended operating conditions Symbol Parameter Conditions Min Typ Max Unit J1 Ext VIN Main board supply voltage 20 C T 70 C 4 5 6 V J2 Ext VIN Alternate board ext battery supply voltage...

Page 11: ...10 Extension connector PB7 STM32W108CB signal 11 Extension connector PB5 STM32W108CB signal 12 Extension connector PB0 STM32W108CB signal 13 Extension connector PA5 STM32W108CB signal 14 Extension con...

Page 12: ...able boot jumper See Section 2 5 11 for configuration cases JP3 Jumper Configurable serial jumper RTS pin on the Zigbee module See Section 2 5 10 for configuration cases JP4 Jumper Configurable serial...

Page 13: ...UM1454 HW description Doc ID 022085 Rev 2 13 28 2 4 STEVAL layout Figure 4 STEVAL layout Figure 5 STEVAL mechanical dimensions mm V V www BDTIC com ST...

Page 14: ...r Pin 1 Max 6 V external power supply voltage may be used also as supply input if selected by user using the proper jumper positioning This pin is totally user settable pay attention to avoid power su...

Page 15: ...cations of the device 2 5 6 Ground points The A and B ground points shown in Figure 6 facilitate the stacking of a daughterboard Figure 6 Ground points for daughterboard connection 2 5 7 Test points T...

Page 16: ...is recommended to use only one power source supply at a time and in particular to remove any other supplier when the mini USB is selected with JP1 Figure 9 and 10 show how the J1 jumper must be config...

Page 17: ...serial connection by configuring the JP2 jumper as shown in Figure 13 and 14 The Flasher utility integrated in the kit is used to run the boot function as explained in Section 2 6 6 of this manual Fig...

Page 18: ...hardware configuration files for STEVAL documentation idz3lib contains documents related to the kit and the SPZB32W1x2 x series of modules tools idz3lib contains flasher utility to be used with STEVAL...

Page 19: ...hen the driver is correctly installed it is possible to see the COM associated to the STEVAL listed in the Ports field of the computer management utility of the PC see Figure 15 If you want to connect...

Page 20: ...mand syntax Also refer to the batch file contained in tools idz3lib for the syntax of the command to be used to run the flasher Remember to configure the options in the batch file by specifying the co...

Page 21: ...can be used by every kind of application running on it The sink node is also set up to be the ZigBee coordinator device and it forms the network automatically on first startup therefore retaining the...

Page 22: ...images on the STEVAL 3 3 Setting up a network and running the sink sensor application This section describes how to use the STEVAL to run the sink sensor application Refer to the source code files fo...

Page 23: ...join the network set up by the STEVAL sink press the SW3 button on STEVAL sink and the SW3 button on STEVAL sensor in an interval shorter than 60 seconds If this join operation sequence runs successfu...

Page 24: ...eshold controls how many message timeouts can be permitted between the sensor and sink before the sensor decides to attach itself to a different sink For a sink this controls how many data reports can...

Page 25: ...d density ZigBee limits the number of broadcasts that can be active in a network to 10 to minimize the network disruption and loss of bandwidth As this network increases in size or density the rate of...

Page 26: ...RING CIRCUIT 6 MAX 6EXT 2 3 4 053 544 OOTLOADER NABLE 4 5 4 2 4 2 37 37 053 544 37 37 053 544 N N 2 2 2 2 0 0 2 HM 2 HM 5 0 4 44 5 0 4 44 6IN 6OUT N N 2 2 N N N N 2 HM 2 HM 2 2 U 6 U 6 53 4 2 53 4 2 U...

Page 27: ...on history Doc ID 022085 Rev 2 27 28 Revision history Table 6 Document revision history Date Revision Changes 29 Nov 2011 1 Initial release 12 Dec 2011 2 Minor text changes to improve readability www...

Page 28: ...OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION OR INFRINGEMENT OF ANY PATENT COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT UNLESS EXPRES...

Reviews: