Hi Lance, I'm not sure what your question is. What kind of mesh networking protocol are you using? Some protocols are described in the tutorials: http://docs.tinyos.net/index.php/TinyOS_Tutorials#Network_Protocols
You seem to use (or want to use) something similar to the Collection protocol: http://docs.tinyos.net/index.php/Network_Protocols#Collection To count the hops, you could add a hop count variable in your message and initialize it to 0 on the sending node. Then you intercept messages (with the Intercept interface) and increment this counter before forwarding the message. Do you have a working data collection program? If so, all you need to do is to add the functionality to count the number of hops of messages. Cheers, Urs On 10/17/10 7:34 AM, (¯`•._.•Lance•._.•´¯) wrote: > hi all, > I am currently working on a wsn ( Micaz) project.I encountered > some issues .The issue is that i want to forward message( hop count that i > received from the target in the mesh network ) back to the base station but > in between there will be some relay nodes. . Is there anyone can advice me > what should i do in order to solve this problem. Some programming guide as > well . > > Thanks for your time and appriciate it. > > Regards, > lance _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
