]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
use app am ids
authoridgay <idgay>
Tue, 24 Jun 2008 18:05:48 +0000 (18:05 +0000)
committeridgay <idgay>
Tue, 24 Jun 2008 18:05:48 +0000 (18:05 +0000)
apps/tests/cc2420/LplBroadcastCountToLeds/RadioCountToLeds.h
apps/tests/cc2420/LplBroadcastCountToLeds/RadioCountToLedsAppC.nc
apps/tests/cc2420/LplBroadcastCountToLeds/RadioCountToLedsC.nc
apps/tests/cc2420/LplBroadcastPeriodicDelivery/TestPeriodicC.nc
apps/tests/cc2420/LplUnicastPeriodicDelivery/TestPeriodic.h
apps/tests/cc2420/RssiToSerial/RssiToSerial.h
apps/tests/cc2420/RssiToSerial/SpecAnalyzer.java
apps/tests/cc2420/TestAcks/TestAcksC.nc
apps/tests/cc2420/TestPacketLink/TestPacketLink.h
apps/tests/cc2420/TxThroughput/TxThroughput.h

index deed967d99713c8e398c82b9dc931ceff5146b54..634fa855ce28eb19582c0b04ae4d57166ba1c892 100644 (file)
@@ -6,7 +6,7 @@ typedef nx_struct radio_count_msg {
 } radio_count_msg_t;
 
 enum {
-  AM_RADIO_COUNT_MSG = 6,
+  AM_RADIO_COUNT_MSG = 134,
 };
 
 #endif
index 0414f07931cfcdbd2b9bcc49c2e319ec678d3d77..441fbf6e8292db0d242d217baae44d307352bce1 100644 (file)
  * 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 {}
index 34576fd14a3090d9f2d66f8c0c535a26633ba7e8..71fd0279aeb0a6b67d79209ccdfd5bce9f6835f7 100644 (file)
  * 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 {
index 59d6b0c122ba016564c0635961d6376af98ee23c..98e7071ae6f9199e58207a9f589ec32f7e88579f 100644 (file)
@@ -33,8 +33,8 @@
  * 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
  */
index 7183641dbf71dc4e16345423a3e560dd1efe786d..697efe7caea7f83f56f9c201906f0d3a4aa88d79 100644 (file)
@@ -7,7 +7,7 @@ typedef nx_struct TestPeriodicMsg {
 } TestPeriodicMsg;
 
 enum {
-  AM_TESTPERIODICMSG = 0x5,
+  AM_TESTPERIODICMSG = 133,
 };
 
 #endif
index ffe364d2e149c31e5dd01980eaece4d0e8a2a8a4..f1d9e2465d42f9351e88747b5adeab262932e462 100644 (file)
@@ -44,7 +44,7 @@ typedef nx_struct rssi_serial_msg {
 } 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
index d03c6b04189148578084d0a784fce046ddb00d9b..ccadaff0d5a7085b8081075cfd31254248a6424c 100644 (file)
@@ -31,7 +31,9 @@
  */
 
 /**
- * 
+ * Java class to display RSSI readings returned from a mote running the
+ * RssiToSerial application.
+ *
  * @author Jared Hill
  */
 
index 2267e43f5171be49039c41c5ec29f11c63dad4fa..2ad42356f39c92a5e138e42cb9a7ef01930ba34a 100644 (file)
@@ -46,8 +46,8 @@ implementation {
   components TestAcksP,
       MainC,
       ActiveMessageC,
-      new AMSenderC(0),
-      new AMReceiverC(0),
+      new AMSenderC(128),
+      new AMReceiverC(128),
       new TimerMilliC(),
       LedsC;
       
index aeb8463e36cf6f68ea5001129cfda1307466d3b7..1f2253542a247e412e0c97a470dd2488766aa528 100644 (file)
@@ -40,7 +40,7 @@ typedef nx_struct PacketLinkMsg {
 } PacketLinkMsg;
 
 enum {
-  AM_PACKETLINKMSG = 0,
+  AM_PACKETLINKMSG = 128,
 };
 
 enum {
index 2d0627c8235f33a419f40769ef5f3b2d1dae67e4..fb258053a7208736e01bbaca5eb292a31f74724c 100644 (file)
@@ -52,7 +52,7 @@ typedef nx_struct ThroughputMsg {
 } ThroughputMsg;
 
 enum {
-  AM_THROUGHPUTMSG = 5,
+  AM_THROUGHPUTMSG = 133,
 };
 
 /**