Hi,
I'm trying to send some packets over radio, and receive them from some
other motes. However, while, the sending seems to work, the packets
are not being received (the event handler for AMReceiveC.receive is
not being called. Could someone tell me if there's a problem with the
wiring?
The configuration file has the following:
components MainC, SendToUARTC as App, LedsC;
components new TimerMilliC();
components SerialActiveMessageC as USB;
components ActiveMessageAddressC as AMStack;
components ActiveMessageC as Radio;
components new AMReceiverC(AM_RADIO_MSG) as RadioReceive;
components new AMSenderC(AM_RADIO_MSG) as RadioSend;
App.Boot -> MainC.Boot;
//SERIAL WIRING
App.AMSend -> USB.AMSend[AM_USB_MSG];
App.Receive -> USB.Receive[AM_USB_MSG];
App.ActiveMessageAddress -> AMStack;
App.AMControl -> USB;
//RADIO WIRING
App.Radio -> Radio;
App.RadioReceive -> RadioReceive;
App.RadioSend -> RadioSend;
App.AMPacket -> RadioSend;
//OTHER WIRING
App.Leds -> LedsC;
App.MilliTimer -> TimerMilliC;
App.Packet -> USB;
Within the program file the following code may be relevant:
uses {
interface Leds;
interface Boot;
interface AMSend;
interface Timer<TMilli> as MilliTimer;
//SERIAL INTERFACES
interface SplitControl as AMControl;
interface Packet;
interface ActiveMessageAddress;
interface Receive;
//RADIO INTERFACES
interface SplitControl as Radio;
interface Receive as RadioReceive;
interface AMSend as RadioSend;
interface AMPacket;
}
Any suggestions would be greatly appreciated.
-Pallav
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help