[Tinyos-help] How to change forwarding in CTP to get the packet overheard

Omprakash Gnawali gnawali at usc.edu
Mon May 4 09:49:41 PDT 2009


On Sat, May 2, 2009 at 7:46 AM, Shucheng Liu <lshucheng at gmail.com> wrote:
> Hi all,
> I'm using Tinyos 2.0, and I'm developing a small multihop network of telosb
> motes with CTP as the protocol.I based my code in the Antitheft application.
> Now the sink motes can receive packets from other motes.
>
> In my program I want to add some functions on forwarders to get the packet
> overheard, I mean to get those packets overheard and dropped by the
> mote and forwarded by other ones.  One possible solution is to modify
> CtpForwardingEngine. I wonder whether there is any possibility to do this
> without do some change to Ctp.

You can use the intercept function if you want to add/update some
information to the packet on each hop. You will be able to do this
without changing the forwarding engine.

- om_p



More information about the Tinyos-help mailing list