This document describes how to use the STM3210C-EVAL, based on the STM32F107VC
microcontroller, as a web console to monitor and control a ZigBee
The application can be used as a reference for the development of a ZigBee - TCP/IP
Networks Bridge and is an example on how, in a smartgrid scenario, the services offered by
a ZigBee HAN can be exported to the Internet by an Ethernet/Internet gateway.
The STM32F107VC coordinates the ZigBee network through an SPZB260-PRO module
included in an adapter connected by the expansion connectors of the STM3210C-EVAL; the
ZigBee network is built using several STEVAL-IHP001V3s used to monitor and control
several AC loads (lights, appliances, etc.) inside the HAN. The adapter also includes an
M24LR64-R dual interface EEPROM to store the TCP/IP network configuration. In fact, in
the microcontroller firmware, a web server is also implemented which allows to monitor the
AC load power consumption measured by each smartplug and to control its status
(ON/OFF).
The STM3210C-EVAL is a standard evaluation tool for the STM32F107xx microcontroller
which includes an embedded Ethernet controller; this is the main feature necessary for the
home web console. For further details about this board please refer to the UM0600 user
manual.
Figure 1.STM3210C-EVAL demonstration board
The connectors CN8 and CN9, which include all the MCU pinouts, are used to connect the
SPZB260-PRO adapter, so a specific configuration of the board is necessary to free some
MCU I/O resources. The following is the board setup:
●To close jumper JP19
●To open jumper JP15
●To remove R79, R84 and R169.
Tab l e 2 shows the pinout mapping of the connectors over the adapter.
Doc ID 022161 Rev 15/21
Hardware kitAN3972
Table 2.SPZB260-PRO adapter pin description
STM32 pin no.Pin name
-VDD3.3 VCN8-Pin 48VCC_3V3
-VSSGNDCN9-Pin 50GND
29PA4SPI1_NSSCN9-Pin 41ZIG_SS
30PA5SPI1_CLKCN9-Pin 40ZIG_SCLK
31PA6SPI1_MISOCN9-Pin 38ZIG_MISO
32PA7SPI1_MOSICN9-Pin 37ZIG_MOSI
92PB6CAN2_TX/I2C1_SCKCN8-Pin 36I2C1_SCK
93PB7I2C1_SDACN8-Pin 37I2C1_SDA
2PE3Trace_D0CN8-Pin 42ZIG_HOST_INT
3PE4Trace_D1CN8-Pin 43VCC-GPIO (for M24LR64-r)
4PE5Trace_D2CN8-Pin 44ZIG_WAKE
5PE6Trace_D3CN8-Pin 47ZIG_RSTB
STM3210C-EVAL
I/O assignment
2.2 SPZB260-PRO adapter
This board allows to add the ZigBee connectivity to the STM3210C-EVAL board; it includes
the connectors for the SPZB260-PRO module and the M24LR64-R dual interface EEPROM.
Figure 2 shows the adapter layout.
Extension
connector pin no.
ZigBee adapter I/O
assignment
Figure 2.SPZB260-PRO adapter layout
Figure 3 shows how to connect to the STM3210C-EVAL board.
6/21Doc ID 022161 Rev 1
AN3972Hardware kit
Figure 3.How to connect SPZB260-PRO adapter to the STM3210C-EVAL
The SPZB260-PRO is a 2.4 GHz ZigBee module compliant with FCC regulations (FCC ID:
S9NZB260A); for further information refer to the SPZB260-PRO datasheet. The M24LR64R is an EEPROM with both I
access for an MCU using the I
2
C interface and RF interface; this allows a “standard” memory
2
C and an access for a standard long range (ISO 15693/ISO
18000-3 mode 1) RFID reader. Using the RF interface, the memory can read/write even
when it is not powered. In this application, the EEPROM stores, in the first three 32-bit
memory locations, the TCP/IP network parameters:
●IP address
●Gateway IP address
●IP address mask.
The parameters are programmed by the RFID reader with the board switched off and at the
power-on, during boot, the MCU reads the network parameters to configure the TCP/IP
stack. The 64-Kbit memory is organized into 8192 x 8 bits accessing from the I
into 2048 x 32 bits accessing from the RF interface. M24LR64-R is the slave of the I
2
C bus and
2
C
communication with STM32; the two jumpers included on the board are used to set the
slave address of the memory. For further information about M24LR64-R functionalities, refer
to the M24LR64-R datasheet; for information related to application development, several
application notes are available for downloading at www.st.com.
Doc ID 022161 Rev 17/21
Loading...
+ 14 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.