Dear TinyOS users,

I'm running MultihopOscilloscope in TOSSIM(T2). The event Receive.receive is supposed to be signaled at the root node only when it receives a new message. However, now every node will receive messages through this interface and it seems that snoop.receive is never signaled. I also add an intercept interface to the MultihopOscilloscope application and imlement the event Intercept.forward. However it is never signaled either.

I have also added one dbg(); in the file: ForwardingEngineP.nc as follows:

 event message_t*
  SubReceive.receive(message_t* msg, void* payload, uint8_t len) {
  ....
 if (duplicate) {
        call CollectionDebug.logEvent(NET_C_FE_DUPLICATE_QUEUE);
        return msg;
    }

    // If I'm the root, signal receive.
    else if (call RootControl.isRoot()){
      dbg("Test1", "Test1: Signal Receive.receive event. \n");   //--------TEST--------
      return signal Receive.receive[collectid](msg,
                        call Packet.getPayload(msg, &netlen),
                        call Packet.payloadLength(msg));}
    // I'm on the routing path and Intercept indicates that I
    // should not forward the packet.
    else if (!signal Intercept.forward[collectid](msg,
                        call Packet.getPayload(msg, &netlen),
                        call Packet.payloadLength (msg)))
      return msg;
    else {
      dbg("Route", "Forwarding packet from %hu.\n", hdr->origin);
      return forward(msg);
    }...

but found no DEBUG information containing "Test1: Signal Receive.receive event. \n" and ""Route", "Forwarding packet from %hu.\n", hdr->origin ".

Could anyone help me fix this problem? Thanks.

Regards,
-Xiaoyan
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to