| Electronic Components Datasheet Search |
|
AN3972 Datasheet(PDF) 10 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3972 Datasheet(HTML) 10 Page - STMicroelectronics |
|
10 / 21 page ![]() 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); } |
|
|
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 |
| 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 |