Hi, Shouldn't following code suffice in sending packets to serial
instead of radio? Compilation is fine but get no response in both Listen
or MsgReader execpt: $ java net.tinyos.tools.MsgReader BlinkToRadioMsg
[EMAIL PROTECTED]:115200: resynchronising
I'm using T2 w/Tmote
#include <Timer.h>
#include "BlinkToRadio.h"
configuration BlinkToRadioAppC {
}
implementation {
components MainC;
components LedsC;
components BlinkToRadioC as App;
components new TimerMilliC() as Timer0;
components SerialActiveMessageC;
components new SerialAMSenderC(AM_BLINKTORADIOMSG);
components new SerialAMReceiverC(AM_BLINKTORADIOMSG);
App.Boot -> MainC;
App.Leds -> LedsC;
App.Timer0 -> Timer0;
App.Packet -> SerialAMSenderC;
App.AMPacket -> SerialAMSenderC;
App.AMSend -> SerialAMSenderC;
App.AMControl -> SerialActiveMessageC;
App.Receive->SerialAMReceiverC;
}
#ifndef BLINKTORADIO_H
#define BLINKTORADIO_H
enum {
AM_BLINKTORADIOMSG = 6,
TIMER_PERIOD_MILLI = 250
};
typedef nx_struct BlinkToRadioMsg {
nx_uint16_t nodeid;
nx_uint16_t counter;
}BlinkToRadioMsg;
#endif
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help