} radio_count_msg_t;
enum {
- AM_RADIO_COUNT_MSG = 6,
+ AM_RADIO_COUNT_MSG = 134,
};
#endif
* every time it gets updated. A RadioCountToLeds node that hears a counter
* displays the bottom three bits on its LEDs. This application is a useful
* test to show that basic AM communication and timers work.
+ * <p>
+ * This version uses low-power listening.
*
* @author Philip Levis
- * @date June 6 2005
+ * @date June 24 2008
*/
configuration RadioCountToLedsAppC {}
* every time it gets updated. A RadioCountToLeds node that hears a counter
* displays the bottom three bits on its LEDs. This application is a useful
* test to show that basic AM communication and timers work.
+ * <p>
+ * This version uses low-power listening.
*
* @author Philip Levis
- * @date June 6 2005
+ * @date June 24 2008
*/
module RadioCountToLedsC {
* This app sends a message from Transmitter node to AM_BROADCAST_ADDR
* and waits 1000 ms between each delivery so the Rx mote's radio
* shuts back off and has to redetect to receive the next message.
- * Receiver: TOS_NODE_ID != 1
- * Transmitter: TOS_NODE_ID == 1
+ * Receiver: TOS_NODE_ID != 1.
+ * Transmitter: TOS_NODE_ID == 1.
*
* @author David Moss
*/
} TestPeriodicMsg;
enum {
- AM_TESTPERIODICMSG = 0x5,
+ AM_TESTPERIODICMSG = 133,
};
#endif
} rssi_serial_msg_t;
enum {
- AM_RSSI_SERIAL_MSG = 6,
+ AM_RSSI_SERIAL_MSG = 134,
WAIT_TIME = 256,
//* Using log2 samples to avoid a divide. Sending a packet every 1 second will allow
//* allow about 5000 samples. A packet every half second allows for 2500 samples, and
*/
/**
- *
+ * Java class to display RSSI readings returned from a mote running the
+ * RssiToSerial application.
+ *
* @author Jared Hill
*/
components TestAcksP,
MainC,
ActiveMessageC,
- new AMSenderC(0),
- new AMReceiverC(0),
+ new AMSenderC(128),
+ new AMReceiverC(128),
new TimerMilliC(),
LedsC;
} PacketLinkMsg;
enum {
- AM_PACKETLINKMSG = 0,
+ AM_PACKETLINKMSG = 128,
};
enum {
} ThroughputMsg;
enum {
- AM_THROUGHPUTMSG = 5,
+ AM_THROUGHPUTMSG = 133,
};
/**