Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.COM

X  

AN3972 Datasheet(PDF) 11 Page - STMicroelectronics

Part # AN3972
Description  This document describes how to use the STM3210C-EVAL
Download  21 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3972 Datasheet(HTML) 11 Page - STMicroelectronics

Back Button AN3972 Datasheet HTML 7Page - STMicroelectronics AN3972 Datasheet HTML 8Page - STMicroelectronics AN3972 Datasheet HTML 9Page - STMicroelectronics AN3972 Datasheet HTML 10Page - STMicroelectronics AN3972 Datasheet HTML 11Page - STMicroelectronics AN3972 Datasheet HTML 12Page - STMicroelectronics AN3972 Datasheet HTML 13Page - STMicroelectronics AN3972 Datasheet HTML 14Page - STMicroelectronics AN3972 Datasheet HTML 15Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 11 / 21 page
background image
AN3972
Application firmware description
Doc ID 022161 Rev 1
11/21
// do the sink advertise (multicast)
if (timeBeforeSinkAdvertise == 0) {
emberSerialPrintf(APP_SERIAL,
"EVENT: sink automatically advertising to find sensors\r\n");
sinkAdvertise();
timeBeforeSinkAdvertise = TIME_BEFORE_SINK_ADVERTISE;
}
Each smartplug object of the list includes all the information related to the power
consumption measurement of each smartplug device installed in the building. These data
are sent using a private ZigBee profile with a specific cluster ID
(CLUST_GET_PLUG_DATA_ID = 0x1010) which is initialized into the function
ZB_ClustersInitialization; the message related to this cluster is managed by the function
OnGetPlugDataMsg that updates the data of the smartplug object included in the smartplug
objects list.
The smartplug devices are compliant with both the “Home Automation” profile and the
private profile implemented in the Home Web Console application running on the
STM3210C-EVAL. On the smartplug, the ON/OFF command is implemented by the HA
standard profile so the home web console uses a standard ZCL command for this command
implemented by the function SendZclOnOffCmd.
3.2
TCP/IP section
3.2.1
TCP/IP stack
The web section of the application is based on the “lwIP” stack implemented by SICS. It is
designed to reduce memory usage and code size in order to be used in embedded systems.
For details related to this TCP/IP stack, refer to the lwIP manual available at www.sics.se.
The TCP/IP task, which is implemented by the tcpip_thread function, is created by the
function vStartEthernetTasks. The tcpip_thread task creates the task ethernetif_input that
manages the messaging process with the Ethernet controller which is embedded in STM32.
3.2.2
TCP/IP application layer
The HTTP server services run on the task httpd; it mainly creates a TCP listener on port 80
and as soon as an incoming connection is received the server accepts it and parses the
HTML request by the function ParseHTMLRequest; after the parsing procedure the
connection is closed. The task is normally in sleep state and it is woken up by the incoming
connection request from the client.
The HTML parser processes both GET and POST requests and expects to immediately get
the data. The web page is made up of two static parts and two dynamic parts, so it is
organized into four frames. The static parts and the “index” pages are stored in the
embedded flash of the STM32; the dynamic parts are built at runtime on the basis of the
smartplug data objects list maintained by the ZigBee application layer described in
Section 3.1.2. The first dynamic part shows a table reporting the label, the measured
voltage, current and power consumption for each smartplug in the HAN; the table is
refreshed every 30 seconds. The second dynamic part shows a list of smartplugs (using the


Similar Part No. - AN3972

ManufacturerPart #DatasheetDescription
logo
STMicroelectronics
AN3971 STMICROELECTRONICS-AN3971 Datasheet
1Mb / 28P
   For photovoltaic standalone installations
AN3973 STMICROELECTRONICS-AN3973 Datasheet
3Mb / 24P
   Electronic ballast with active PFC using
AN3975 STMICROELECTRONICS-AN3975 Datasheet
1Mb / 26P
   Transparent serial link over ST7590 OFDM PRIME modem
AN3978 STMICROELECTRONICS-AN3978 Datasheet
1,008Kb / 19P
   Designing a digital output module
More results

Similar Description - AN3972

ManufacturerPart #DatasheetDescription
logo
STMicroelectronics
AN4290 STMICROELECTRONICS-AN4290 Datasheet
492Kb / 16P
   This document describes how the SPI communication
AN4570 STMICROELECTRONICS-AN4570 Datasheet
574Kb / 46P
   This application note describes how to use the high-density
AN3117 STMICROELECTRONICS-AN3117 Datasheet
421Kb / 28P
   This application note describes how to use the direct memory access
UM1561 STMICROELECTRONICS-UM1561 Datasheet
972Kb / 39P
   This document describes how the firmware to manage the 250 W micro-inverter demo
October 2012 Rev 1
AN3008 STMICROELECTRONICS-AN3008 Datasheet
697Kb / 14P
   This application note describes how to use the STOD2540 DC-DC converter
logo
Silicon Laboratories
SI50X-32X4-EVB SILABS-SI50X-32X4-EVB Datasheet
1Mb / 8P
   This document describes the operation
logo
STMicroelectronics
UM1524 STMICROELECTRONICS-UM1524 Datasheet
1Mb / 35P
   This document describes the functions
UM1554 STMICROELECTRONICS-UM1554 Datasheet
1Mb / 34P
   This document describes the functioning
UM1529 STMICROELECTRONICS-UM1529 Datasheet
1Mb / 35P
   This document describes the functioning
AN1633 STMICROELECTRONICS-AN1633 Datasheet
68Kb / 9P
   This application note describes how to implement
More results


Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21


Datasheet Download

Go To PDF Page


Link URL




Privacy Policy
ALLDATASHEET.COM
Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Datasheet Upload   |   Contact us   |   Privacy Policy   |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com