X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Flib%2Fnet%2Fctp%2FCtpP.nc;h=b2aa76a779dea4345b20d439fdb075706c468d3c;hb=7bee95f09dde83e44b0512b09175104677394ce2;hp=00e20e0ec8217453abcb0a6b93016108925aa79c;hpb=b5bd3d23e8b4f8ec6880be019719bc725f5f395e;p=tinyos-2.x.git diff --git a/tos/lib/net/ctp/CtpP.nc b/tos/lib/net/ctp/CtpP.nc index 00e20e0e..b2aa76a7 100644 --- a/tos/lib/net/ctp/CtpP.nc +++ b/tos/lib/net/ctp/CtpP.nc @@ -130,8 +130,8 @@ implementation { components new AMSenderC(AM_CTP_DATA); components new AMReceiverC(AM_CTP_DATA); components new AMSnooperC(AM_CTP_DATA); - - components new CtpRoutingEngineP(TREE_ROUTING_TABLE_SIZE, 1, 1024) as Router; + + components new CtpRoutingEngineP(TREE_ROUTING_TABLE_SIZE, 10, 1024) as Router; StdControl = Router; StdControl = Estimator; RootControl = Router; @@ -139,6 +139,9 @@ implementation { Router.BeaconSend -> Estimator.Send; Router.BeaconReceive -> Estimator.Receive; Router.LinkEstimator -> Estimator.LinkEstimator; + + Router.CompareBit -> Estimator.CompareBit; + Router.AMPacket -> ActiveMessageC; Router.RadioControl -> ActiveMessageC; Router.BeaconTimer -> RoutingBeaconTimer; @@ -149,6 +152,10 @@ implementation { Router.CtpCongestion -> Forwarder; CtpInfo = Router; + components CC2420ActiveMessageC; + components CC2420PacketC as CC2420; + Router.CC2420Packet -> CC2420; + components new TimerMilliC() as RetxmitTimer; Forwarder.RetxmitTimer -> RetxmitTimer; @@ -176,9 +183,13 @@ implementation { LinkEstimator = Estimator; + Estimator.Random -> RandomC; + Estimator.AMSend -> SendControl; Estimator.SubReceive -> ReceiveControl; Estimator.SubPacket -> SendControl; Estimator.SubAMPacket -> SendControl; + Estimator.LinkPacketMetadata -> CC2420ActiveMessageC; + // Estimator.LinkPacketMetadata -> ActiveMessageC; MainC.SoftwareInit -> Estimator; }