Hello Dr.Levis,

I am working on modifying a clustering protocol which is implemented in the 
Surge application. I figured that the routing used is MultiHopLEPSM. I want 
to calculate the distance of the node from the base station (i.e node 0) and 
use it as one of the parameter for clustering. There are two ways that I 
think of implementing it:

1.Give the location of the nodes ahead ,so from there the distance can be 
calculated using Euclidean equation. Can I do that ,in that case I think I 
should be writing a module in MultiHopLEPSM.

2.Secondly I thought of giving the input of coordinates in Neighbortbl.But 
so far I understood the entries of Neighbortbl is updated from the packets 
received from the neighboring nodes by snooping. In that case I thought of 
declaring my own packet structure (as CC1000 radio can have it's own packet 
structure). And giving the two field for coordinates of the node.

Can you please correct me if I'm going in the wrong way? Or this is not at 
all possible? I am working on this for last few months and couldn't get a 
possible solution.

Regards
Nirupama Barua


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

Reply via email to