Hi Romain,
Yes, an LED is suppose to toggle in the application in the
Intercept.forward event as follows

  event bool Intercept.forward(message_t * msg, void* payload, uint8_t
len){
    call Leds.led2Toggle();     
    return TRUE;
  }

But the LED does not toggle on the intermediated node. Neither I get the
packet delivered at the TARGET as the LED that should toggle on this
node also does not toggle, which is understandable as the packet is
somehow not Intercepted and forwarded correctly from the intermediate
node.

Though, I would like to state that the TOSSIM python script for TestTymo
is running correctly for me and even network of two nodes.

Cheers,

Varun Jain

-----Original Message-----
From: Romain Thouvenin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 16, 2008 6:30 AM
To: Varun Jain
Cc: [email protected]
Subject: Re: TestTymo application

On Mon, Jul 14, 2008 at 4:22 AM, Varun Jain <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I am trying to run the TestTymo application. I have programmed two
nodes
> with nodeId 1 and 3. I have a Push button on my motes so I have
modified the
> application such that I send a packet from the 'Origin' only when an
event
> (in this case Pushbutton) is generated. On the 'target' end, I make an
LED
> toggle when the packet is received correctly and it works but I want
to
> check Multihop behavior of Tymo now. So I programmed another mote with
> nodeID = 7. I kept the 'target node (3) ' out of range of the ORIGIN
(1).
> Now, I kept node-7 such that it is in range of other two motes. But
there is
> no multihop communication taking place whereas due to the Intercept
> interface defined in "TestTymo" application, it should hop from 1 to
7(which
> it should forward) and then to 3 but it is not.
>
> Has someone encountered with this problem??
>

Hello,

Do you toggle a LED on the intermediate node to check that it
receives/forwards something?
Anyway, I just tried in TOSSIM to set a 4-node network like this one:
1 -- 3
|     |
4 -- 2

and it worked fine. Unfortunately I don't have motes to compare with
the real-world behaviour.

Romain

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to