Hello,

I'm using TinyOS 2.0 on TOSSIM micaz and I'm trying to use the CC2420Packet Interface to read the rssi value from my received packets. Since this interface was not provided by the ActiveMessageC wrapper for the micaz platform, I added the interface and wiring to the ActiveMessageC.nc configuration file in /tos/platforms/micaz/ directory like this:

configuration ActiveMessageC {
  provides {
    interface SplitControl;

    interface AMSend[uint8_t id];
    interface Receive[uint8_t id];
    interface Receive as Snoop[uint8_t id];

    interface Packet;
    interface AMPacket;
    interface PacketAcknowledgements;

    interface CC2420Packet; //Added by me
  }
}
implementation {
  components CC2420ActiveMessageC as AM;
 
  SplitControl = AM;
 
  AMSend       = AM;
  Receive      = AM.Receive;
  Snoop        = AM.Snoop;
  Packet       = AM;
  AMPacket     = AM;
  PacketAcknowledgements = AM;
  CC2420Packet = AM.CC2420Packet; //Added by me

I believe it should work since CC2420Packet is provided by CC2420ActiveMessageC in /tos/chips/cc2420.

In my application I'm wiring it like this:

"Leach.RadioPacket -> ActiveMessageC;"

Where Leach is my application name and RadioPacket is my "as" alias for CC2420Packet. But I'm getting the following compilation error on that line:

"In component `LeachC':
LeachC.nc: At top level:
LeachC.nc:45: no match"

Any insight on what's the reason of this error? Is my approach wrong?

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

Reply via email to