On Sun, May 16, 2010 at 11:28 AM, Newlyn Erratt <nerr...@umail.iu.edu> wrote:
> All:
>
> I'm having an issue getting CTP to work with a TOSSIM simulation I'm
> running.  I've enabled some of the debugging in CTP and from what I can tell
> everything is setting up properly.  I get these messages from the sink:
>
> DEBUG (1): clientPtrs[0] = 0x76a070
> DEBUG (1): CtpRoutingEngineP$0$RootControl$setRoot I'm a root now!
> DEBUG (1): CtpForwardingEngineP$0$sendTask$runTask: Trying to send a packet.
> Queue size is 0.
> DEBUG (1): CtpForwardingEngineP$0$sendTask$runTask: queue empty, don't
> send
> and a bit later
> DEBUG (1): CtpRoutingEngineP$0$sendBeaconTask$runTask parent: 1 etx: 0
>
> From the other node I get
> DEBUG (2): clientPtrs[0] = 0x76a080
> DEBUG (2): CtpForwardingEngineP$0$Send$send: sending packet from client 0:
> 6a0e52, len 11
> DEBUG (2): CtpForwardingEngineP$0$Send$send: queue entry for 0 is 0
> deep
> DEBUG (2): CtpForwardingEngineP$0$sendTask$runTask: Trying to send a packet.
> Queue size is 1.
> DEBUG (2): CtpForwardingEngineP$0$sendTask$runTask: no route, don't send,
> start retry timer
> DEBUG (2):
> CtpRoutingEngineP$0$updateRouteTask$runTask
> DEBUG (2): CtpRoutingEngineP$0$sendBeaconTask$runTask parent: 65535 etx:
> 0
> DEBUG (2):
> CtpRoutingEngineP$0$updateRouteTask$runTask
> DEBUG (2):
> CtpRoutingEngineP$0$updateRouteTask$runTask
> DEBUG (2):
> CtpRoutingEngineP$0$updateRouteTask$runTask
> DEBUG (2):
> CtpRoutingEngineP$0$updateRouteTask$runTask
> DEBUG (2):
> CtpRoutingEngineP$0$updateRouteTask$runTask
> DEBUG (2):
> CtpRoutingEngineP$0$updateRouteTask$runTask
> DEBUG (2): CtpForwardingEngineP$0$sendTask$runTask: Trying to send a packet.
> Queue size is 1.
> DEBUG (2): CtpForwardingEngineP$0$sendTask$runTask: no route, don't send,
> start retry timer
>
> and then it sticks in a loop of the updateRouteTask and attempting to send
> with the same errors.  I setup my network connections as
>   r->add(1,2,-54.0);
>   r->add(2,1,-54.0);
>
> Also, all commands I call in CTP return success but, obviously, the send
> never completes.  After turning on the radio I do this,
>      call RoutingControl.start();
>      if (isSink)
>        call RootControl.setRoot();
>
> for setting up CTP.  Does anyone have any ideas as to what might be going on
> here?  I'm at a loss for what I could be doing wrong.

You might want to wait long enough for the routes to be setup.

- om_p

_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to