[Tinyos-help] Any bug in Snoop T2

Hui Kang hukang at ic.sunysb.edu
Tue Sep 30 22:23:11 PDT 2008


Hi, all,
I modified a little about the RadioSendToLedsC.nc as attached to test 
snooping message. Mainly I tried adding the snoop interface, like

 if (call AMSend.send(10/*AM_BROADCAST_ADDR*/, &packet, 
sizeof(radio_sense_msg_t)) == SUCCESS) {
             locked = TRUE;
      }

  event message_t* Snoop.receive(message_t* bufPtr, void* payload, 
uint8_t len) {
    call Leds.led0Toggle();
    return bufPtr;     
  }
I wired the snoop like this

components new AMSnooperC(AM_RADIO_SENSE_MSG);
App.Snoop -> AMSnooperC;

---------------------------------
However, when I assign one node as 1 and the other as 2, 2 can not snoop 
the packet from 1. Is there any bug in snoop?

- Hui Kang
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: RadioSenseToLedsAppC.nc
Url: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20081001/6714443e/attachment.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: RadioSenseToLedsC.nc
Url: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20081001/6714443e/attachment-0001.txt 


More information about the Tinyos-help mailing list