Hi Miklos,
I suceed modifying some lines in this file :
C:\cygwin\opt\tinyos-2.x\tos\lib\rfxlink\layers\ActiveMessageLayerP.nc(176,74):
inline command bool AMPacket.isForMe(message_t* msg)
{
//am_addr_t addr = call AMPacket.destination(msg);
//return addr == call AMPacket.address() || addr ==
AM_BROADCAST_ADDR; //CHANGEEEEEEEEEEEEEEEEEE
am_addr_t addr = call AMPacket.destination(msg);
return addr == call AMPacket.destination(msg);
}
Then I'm able to snoop any packet.
On Fri, Feb 3, 2012 at 1:04 AM, Miklos Maroti <[email protected]>wrote:
> Hi David!
>
> You should look at lib/rfxlink/layers/Ieee154MessageLayerC.nc. There
> is the isForMe command on line 142. However, snoop is not yet
> implemented in the Ieee154MessageC component, but it would be trivial
> to do so, but it requires quite a bit of wiring.
>
> Best,
> Miklos
>
> On Mon, Jan 30, 2012 at 5:43 PM, Wacka wacka <[email protected]> wrote:
> > Hi again Miklos,
> >
> > Thanks for your quick reply. Excuse me, wether I insist,but,is there no
> way
> > to snoop the packets with my own sniffer?I mean.. I'm trying to find
> > ieeepacketlayer.isForMe(message) in rf230 folder or something like
> that..,
> > but I can't manage to work it out. In the CC2420 is easy to find.. though
> > with IRIS.. I'm becoming crazy.
> >
> > Is not possible by software or..?
> >
> > Thanks again for your time. You're really helpfull.
> >
> > David
> >
> >
> > On Mon, Jan 30, 2012 at 5:05 PM, Miklos Maroti <[email protected]
> >
> > wrote:
> >>
> >> Hi! Soory, no readme :( Just compile it with "make iris", upload it to
> >> your mote, then run
> >>
> >> "java net.tinyos.tools.DiagMsg -comm xxx"
> >>
> >> where xxx is your usual serial port settigs, e.g. serial@/ttyUSB0:iris
> >> or something similar. It will print out messages that it sees to the
> >> console. Hope it helps.
> >>
> >> Best,
> >> Miklos
> >>
> >> On Mon, Jan 30, 2012 at 4:32 PM, Wacka wacka <[email protected]>
> wrote:
> >> > Hi Miklos,
> >> >
> >> > Apologize me, but there is not README file in
> >> > apps/tests/rfxlink/PacketSniffer nor apps/tests/rfxlink/RadioSniffer,
> >> > even
> >> > in the sourceforge/googlecode repository. Nevertheless, I've build my
> >> > own
> >> > specifc sniffer, (I only want to snoop some kind of packets), so I
> only
> >> > need
> >> > how to let any packet to go "up" .
> >> >
> >> > Thanks for your time
> >> >
> >> >
> >> > On Mon, Jan 30, 2012 at 2:08 PM, Miklos Maroti
> >> > <[email protected]>
> >> > wrote:
> >> >>
> >> >> Hi!
> >> >>
> >> >> Use apps/tests/rfxlink/PacketSniffer, read the README there.
> >> >>
> >> >> Miklos
> >> >>
> >> >> On Mon, Jan 30, 2012 at 2:04 PM, Correo de Wacka <
> [email protected]>
> >> >> wrote:
> >> >> >
> >> >> > Hi all,
> >> >> >
> >> >> > I'm trying to snoop packets using RF230 iris mote. As I've read, If
> >> >> > hard
> >> >> > acks are enabled, you can't snoop packets, but,how am I able to
> snoop
> >> >> > packets if I'm not using hardware acks??? Any makefile command??
> >> >> >
> >> >> > Thanks for your time
> >> >> >
> >> >> > Best regards
> >> >> >
> >> >> > -Er wacka -
> >> >
> >> >
> >
> >
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help