Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN3972 Datasheet(PDF) 10 Page - STMicroelectronics

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

AN3972 Datasheet(HTML) 10 Page - STMicroelectronics

Back Button AN3972 Datasheet HTML 6Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 10 / 21 page
background image
Application firmware description
AN3972
10/21
Doc ID 022161 Rev 1
the same time, the application periodically sends in broadcast the “Sink-Advertise” message
to keep the network alive and a “many-to-one-route-request” to update the routing tables of
all smartplugs in the network. The code sections that implement these functions are the
following:
Joined smartplugs list maintenance
for (i=0; i<APPLICATION_ADDRESS_TABLE_SIZE; i++) {
if (ticksSinceLastHeard[i] != 0xFFFF) {
if (++ticksSinceLastHeard[i] >
(MISS_PACKET_TOLERANCE * SEND_DATA_RATE)) {
//Remove the lost SmartPlug from the Plugs collection MP
CoordinatorType* pObjCoordinator = GetCoordinatorObj();
if(pObjCoordinator){
pObjSmartPlug = pObjCoordinator
>GetSmartPlug(pObjCoordinator,emberGetAddressTableRemoteNodeId(i));
if ( pObjSmartPlug )
{
id = pObjSmartPlug->ID;
pObjCoordinator-
>DelSmartPlug(pObjCoordinator,emberGetAddressTableRemoteNodeId(i));
sprintf( msg, "Node %d Deleted", id );
LCD_DisplayStringLineCol(Line8, 300, ( unsigned char * )msg );
emberSetAddressTableRemoteNodeId(i, EMBER_TABLE_ENTRY_UNUSED_NODE_ID);
emberSerialPrintf(APP_SERIAL,
"EVENT: too long since last heard, ");
emberSerialPrintf(APP_SERIAL,
"deleting address table index %x, status %x\r\n", i,
status);
ticksSinceLastHeard[i] = 0xFFFF;
}
}
}
}
}
Network maintenance
if (timeBeforeSinkAdvertise == 2) {
status = emberSendManyToOneRouteRequest(concentratorType,
10); // radius
emberSerialPrintf(APP_SERIAL,
"EVENT: sink send many-to-one route request,"
" status 0x%x\r\n", status);
}



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



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   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