[Tinyos-2-commits] CVS: tinyos-2.x/tos/lib/net/collection TreeRoutingEngineP.nc, 1.1.2.11, 1.1.2.12

Rodrigo Fonseca rfonseca76 at users.sourceforge.net
Fri Jun 16 06:00:59 PDT 2006


Update of /cvsroot/tinyos/tinyos-2.x/tos/lib/net/collection
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv20885

Modified Files:
      Tag: tinyos-2_0_devel-BRANCH
	TreeRoutingEngineP.nc 
Log Message:
Added UART debug statements 


Index: TreeRoutingEngineP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/net/collection/Attic/TreeRoutingEngineP.nc,v
retrieving revision 1.1.2.11
retrieving revision 1.1.2.12
diff -C2 -d -r1.1.2.11 -r1.1.2.12
*** TreeRoutingEngineP.nc	14 Jun 2006 21:52:56 -0000	1.1.2.11
--- TreeRoutingEngineP.nc	16 Jun 2006 13:00:57 -0000	1.1.2.12
***************
*** 270,273 ****
--- 270,274 ----
                    beaconMsg->hopcount, 
                    beaconMsg->metric);
+         call CollectionDebug.logEventRoute(NET_C_TREE_SENT_BEACON, beaconMsg->parent, beaconMsg->hopcount, beaconMsg->metric);
  
          eval = call BeaconSend.send(AM_BROADCAST_ADDR, 
***************
*** 321,324 ****
--- 322,326 ----
              __FUNCTION__, from, 
              rcvBeacon->parent, rcvBeacon->hopcount, rcvBeacon->metric);
+         //call CollectionDebug.logEventRoute(NET_C_TREE_RCV_BEACON, rcvBeacon->parent, rcvBeacon->hopcount, rcvBeacon->metric);
          //update neighbor table
          if (rcvBeacon->parent != INVALID_ADDR) {
***************
*** 398,401 ****
--- 400,404 ----
              signal Routing.routeFound();
          dbg("TreeRouting","%s I'm a root now!\n",__FUNCTION__);
+         call CollectionDebug.logEventRoute(NET_C_TREE_NEW_PARENT, routeInfo.parent, routeInfo.hopcount, routeInfo.metric);
          return SUCCESS;
      }



More information about the Tinyos-2-commits mailing list