Re: [Tinyos-help] question about tymo

2011-08-24 Thread Daniel Minder
Hi,

> Do you know how long I wait to get the getRoute response.

Simple answer: Look at the TYMO code how the do it! In ForwardingEngineM
AMSend.send the a timer is started with 100ms. Then, they wait again
100ms, then 200, 400, 800 using a muliplicate approach. After 1,6s in
total they give up.

It's up to you if you want to follow their approach. The maximum wait
time will also depend on your network.

Best,
Daniel

-- 
Daniel Minder
University of Duisburg-Essen, Networked Embedded Systems
Bismarckstr. 90, 47057 Duisburg, Germany
Skype: d.minder
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] question about tymo

2011-08-23 Thread Omar Cheikhrouhou (yahoo)
Thanks for your replay.
Do you know how long I wait to get the getRoute response.

//my code is
//determine the physical hop: how far Ni is from GC
res=call RoutingTable.getRoute(GCAddress[gid], &rt_info);
//affichage parameter de la route
printf("EndDevice %02i: Printing route info res=%s\n",
TOS_NODE_ID, errType(res));
//if the route exist
if(res==SUCCESS)
{
print_route(&rt_info, sizeof(rt_info_t));
//save the physicalhop to the GC
physicalHop[gid]=rt_info.hopcnt;
}
Else
{
I wait ==> how long???
//again..
res=call RoutingTable.getRoute(GCAddress[gid],
&rt_info);
}


-Original Message-
From: tinyos-help-boun...@millennium.berkeley.edu
[mailto:tinyos-help-boun...@millennium.berkeley.edu] On Behalf Of Daniel
Minder
Sent: Tuesday, August 23, 2011 9:41 AM
To: tinyos-help@millennium.berkeley.edu
Subject: Re: [Tinyos-help] question about tymo

Hi Omar,

it's quite a while that I played around with TYMO - and actually it never
worked satisfyingly. So, I can only answer this question:

> Moreover, the command getRoute returns SUCCESS only if the nodes are 
> one hop far from (directly connected), and it returns EBUSY if the 
> nodes are more than one-hop far from.

This is how TYMO works! It only knows its direct neighbors. If you ask for a
route to a different node, it returns an EBUSY but sends out a route request
packet to discover this route. So, you have to wait and ask for the route
again later. This is also TYMO is doing. See AMSend.send in
ForwardingEngineM.nc and RouteSelect.selectRoute in MHEngineM.nc

Best,
Daniel

--
Daniel Minder
University of Duisburg-Essen, Networked Embedded Systems Bismarckstr. 90,
47057 Duisburg, Germany
Skype: d.minder
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

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


Re: [Tinyos-help] question about tymo

2011-08-23 Thread Daniel Minder
Hi Omar,

it's quite a while that I played around with TYMO - and actually it
never worked satisfyingly. So, I can only answer this question:

> Moreover, the command getRoute returns SUCCESS only if the nodes are one
> hop far from (directly connected), and it returns EBUSY if the nodes are
> more than one-hop far from.

This is how TYMO works! It only knows its direct neighbors. If you ask
for a route to a different node, it returns an EBUSY but sends out a
route request packet to discover this route. So, you have to wait and
ask for the route again later. This is also TYMO is doing. See
AMSend.send in ForwardingEngineM.nc and RouteSelect.selectRoute in
MHEngineM.nc

Best,
Daniel

-- 
Daniel Minder
University of Duisburg-Essen, Networked Embedded Systems
Bismarckstr. 90, 47057 Duisburg, Germany
Skype: d.minder
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] question about tymo

2011-08-22 Thread Omar Cheikhrouhou (yahoo)
 

Please any reply..

From: tinyos-help-boun...@millennium.berkeley.edu
[mailto:tinyos-help-boun...@millennium.berkeley.edu] On Behalf Of Omar
Cheikhrouhou (yahoo)
Sent: Sunday, August 14, 2011 2:54 PM
To: 'Romain Thouvenin'; tinyos help
Cc: Anis Koubaa (COINS)
Subject: [Tinyos-help] question about tymo

 

Hello,

I am simulating a multi-hop protocol and I use tymo for the multi-hop
service.

In my protocol I need to determine number of hop between two nodes, so I
used the interface RoutingTable, with the command "getRoute". Is it the best
solution?

Moreover, the command getRoute returns SUCCESS only if the nodes are one hop
far from (directly connected), and it returns EBUSY if the nodes are more
than one-hop far from. Can you tell me how to resolve this problem?

 

Thanks in advance,

**
Omar Cheikhrouhou 
Engineer & Researcher @SENS Lab (Software Engineering and Network Security)
Higher Institute of Technological Studies - Address : Mahdia's road Km 2.5
Sfax. BP 88 A - 3099 El Bustan Sfax Telephone : (+216)74 237425 Poste : 437
Fax: : (+216)74 431 386 

Ph.D @ CES Lab (Computer and Embedded System)-University of Sfax, National
School of Engineers BP W, Sfax, 3038, Tunisia , Fax:(+216)74665369 
Home page: http://www.ceslab.org/eng/perso.php?id=46
Coordinator C2i @ ISET Sfax (Certified C2i since 2008)

 

 

 

 

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