Hi all,

I am able to work it out both in TinyOS 1.x (1.1.15) and TinyOS 2.02
*
Snooping in TinyOS 1.x :*

As Dr.Omprakash said, we need to use *GenericCommPromiscuous* instead of
GenericComm.Not only that, we need call
*CommControl.setPromiscuous(TRUE)*to enable the snooping
mode.Last but not least, we need to diable ACK's by calling *
MacControl.disableAck();*

I borrowed this idea from this source:
http://sensorweb.vancouver.wsu.edu/wiki/index.php/Cs455
see section 3.3

Lot of Thanks to them !


*Snooping in TinyOS 2.x (2.0.2) :*

Snooping made easier in TOS 2.0.2 than TOS 2.0.0/1

I got ideas from this mail...
http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2007-August/027152.html

  For snooping to work I edited BlinkToRadio application (TOS2.x
/apps/tutorials/BlinkToRadio).

# 1: In this application I added these two lines in 'Makefile'
CFLAGS += -DCC2420_NO_ACKNOWLEDGEMENTS
CFLAGS += -DCC2420_NO_ADDRESS_RECOGNITION

( these two lines are in 'Makefile' of Basestation application)

# 2: I used AMSnoopingReceiverC instead AMReceiverC for 'Receive' interface

*******
I used TelosB motes from Crossbow.

Hope I am doing correctly.If not please let me know or is there any thing to
do snooping in a better way !


Best,
Mahesh Satharla.





On Feb 16, 2008 12:24 AM, Omprakash Gnawali <[EMAIL PROTECTED]> wrote:

> On Feb 15, 2008 10:18 PM, Mahesh Satharla <[EMAIL PROTECTED]> wrote:
> > Dear Omprakash,
> >
> > Thanks for your early reply.
> >
> > Sir, I dont have much idea about BaseStation( coz I haven't upgraded to
> > TinyOS 2.02) but I understood that,  it replaces TOSbase of TinyOS1.x.
> >
> > Then how about TOSbase, I have seen the code but not able to understand
> > clearly and how far it implements the Snooping mechanism I am looking
> for.
> > ???
> >
> > I am working on a scenario where in few motes are deployed and running
> on
> > Delta application.
> > //
> > The Delta application is an example of a multihop data collection
> system.
> > By installing Delta on Moteiv's motes, the devices will sample their
> >  internal temperature sensor and report readings to base station using a
> > Multihop/Mesh
> > topology  //
> >
> > the scenario is like ,  Mote A sends message to Mote B  which in turn
> > forwards the message to Base Station  ,
> >
> > but Mote D should snoop the A's message.( As it is broadcast medium,
> surely
> > Mote D receives the message from A , but  D eventually drops the packet
> as
> > it is not destined to it. Before dropping the packet,  D needs to snoop
> the
> > packet and see the senderID of the packet .) This is the Snooping
> mechanism
> > I want to Implement.
>
>
> You want to understand and use GenericCommPromiscuous in TinyOS 1.x.
> It will be helpful for you to also study GenericComm and understand
> how it is different from GenericCommPromiscuous. I do not know what
> the corresponding component in Boomerang is called if you are using
> Boomerang.
>
> - om_p
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to