On Sat, Jan 31, 2009 at 10:59 PM, Brandon Fu <[email protected]> wrote:
> Hi all,
>  I am currently, doing a project on data collection and i doing the last
> part of the project. The last part of my project is to transmit a packet
> from child node to a parent node to the base station. To implement this i
> knw i would have to use the multihop protocol. But I m not really sure how
> do i implement it.
>
>  May I know what shld i use CTP or dymo protocol? In order to create the
> parent nodes do i have to treat the nodes as one of the root collector
> besides the base station? Currently, what i have done is just forward the
> packets (from the 3 motes which i am given to work on for my proj) to a base
> station. How do i treat a node as a parent and do the forwarding to another
> parent and eventually forward to the base station?
>
> Anyone can provide me with enlightments?
>

CTP already does what you want to do. You should read the code for CTP
to understand how it determines the parent node and forwards packets
to the root. You can find the code at tos/lib/net/ctp. You can look at
apps/MultihopOscilloscope to understand how to use CTP.

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

Reply via email to