]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
- polished READMEs
authorjanhauer <janhauer>
Tue, 5 Jan 2010 17:12:56 +0000 (17:12 +0000)
committerjanhauer <janhauer>
Tue, 5 Jan 2010 17:12:56 +0000 (17:12 +0000)
- simplified some test apps

17 files changed:
apps/tests/tkn154/README.txt
apps/tests/tkn154/beacon-enabled/TestAssociate/README.txt
apps/tests/tkn154/beacon-enabled/TestAssociate/coordinator/TestCoordC.nc
apps/tests/tkn154/beacon-enabled/TestAssociate/device/TestDeviceC.nc
apps/tests/tkn154/beacon-enabled/TestData/README.txt
apps/tests/tkn154/beacon-enabled/TestData/app_profile.h
apps/tests/tkn154/beacon-enabled/TestData/coordinator/TestCoordReceiverC.nc
apps/tests/tkn154/beacon-enabled/TestData/device/TestDeviceSenderC.nc
apps/tests/tkn154/beacon-enabled/TestIndirect/README.txt
apps/tests/tkn154/beacon-enabled/TestIndirect/coordinator/TestCoordSenderC.nc
apps/tests/tkn154/beacon-enabled/TestIndirect/device/TestDeviceReceiverC.nc
apps/tests/tkn154/beacon-enabled/TestStartSync/README.txt
apps/tests/tkn154/nonbeacon-enabled/TestActiveScan/README.txt
apps/tests/tkn154/nonbeacon-enabled/TestActiveScan/device/TestActiveScanDeviceC.nc
apps/tests/tkn154/nonbeacon-enabled/TestAssociate/README.txt
apps/tests/tkn154/nonbeacon-enabled/TestIndirectData/README.txt
apps/tests/tkn154/nonbeacon-enabled/TestPromiscuous/README.txt

index d2940a05bfb841579283b91104ddb7e0cfbb3831..8aa63d9e98e9f19dddf818654f452ffbcc76154e 100644 (file)
@@ -1,5 +1,5 @@
 README for tkn154 test applications
-Author/Contact: tinyos-help@millennium.berkeley.edu
+Author/Contact: Jan Hauer <hauer@tkn.tu-berlin.de>
 
 Description:
 
@@ -8,7 +8,7 @@ IEEE 802.15.4-2006 MAC implementation. Applications that use the beacon-enabled
 mode are located in the "beacon-enabled" folder, applications that use the
 nonbeacon-enabled mode are in the "nonbeacon-enabled" folder. Every test
 application resides in a separate subdirectory which includes a README.txt
-describing what it does and how it can be installed, respectively.
+describing what it does and how it can be installed.
 
 The TKN15.4 implementation can be found in tinyos-2.x/tos/lib/mac/tkn154.
 Note: TEP3 recommends that interface names "should be mixed case, starting
index 83cb0e6839ee8f7c471126b4e185fcb45db44d83..f8623dd9864016d4ec4880f6c81dc83b5e8ec7ed 100644 (file)
@@ -1,5 +1,5 @@
 README for TestAssociate
-Author/Contact: tinyos-help@millennium.berkeley.edu
+Author/Contact: Jan Hauer <hauer@tkn.tu-berlin.de>
 
 Description:
 
@@ -7,17 +7,16 @@ In this application one node takes the role of a PAN coordinator in a
 beacon-enabled 802.15.4 PAN, it transmits periodic beacons and waits for
 devices to request association to its PAN. Whenever a device tries to
 associate, the PAN coordinator accepts the association and assigns to the
-device a unique short address (starting from zero, incremented for every device
-new association). A second node acts as a device, it first scans the
+device a unique short address (starting from zero, incremented for every new
+association request). A second node acts as a device, it first scans the
 pre-defined channel for beacons from the coordinator and once it finds a beacon
-it tries to associate to the PAN and synchronize to and track all future
-beacons. A short time after association the device then disassociates from the
-PAN. 
+it tries to associate to the PAN. A short time after association the device
+then disassociates from the PAN. 
 
 Criteria for a successful test:
 
-Assuming one coordinator and one device has been installed, both should
-simultaneously toggle (only) the second LED, about once every 5 seconds.
+Both, coordinator and device, should toggle LED1 in unison about once every 5 
+seconds. The coordinator should also toggle LED2 every second.
 
 
 Tools: NONE
index b0d8ca9a76372f3620499c298be8056f165e278f..43c788ae737f585991e960be66b5d64ebfb2d076 100644 (file)
@@ -52,8 +52,7 @@ module TestCoordC
   }
 } implementation {
 
-  ieee154_address_t m_lastDevice;
-  uint16_t m_shortAddress;
+  uint16_t m_assignedShortAddress;
 
   event void Boot.booted() {
     call MLME_RESET.request(TRUE);
@@ -88,7 +87,7 @@ module TestCoordC
                           ieee154_security_t *security
                         )
   {
-    call MLME_ASSOCIATE.response(DeviceAddress, m_shortAddress++, IEEE154_ASSOCIATION_SUCCESSFUL, 0);
+    call MLME_ASSOCIATE.response(DeviceAddress, m_assignedShortAddress++, IEEE154_ASSOCIATION_SUCCESSFUL, 0);
   }
 
   event void MLME_DISASSOCIATE.indication (
@@ -114,7 +113,6 @@ module TestCoordC
     if (status == IEEE154_SUCCESS){
       // association was successful
       call Leds.led1On();
-      m_lastDevice.extendedAddress = DstAddr.extendedAddress;
     } else {
       call Leds.led1Off();
     }
index 55a07084ac2e5892746b2096e63f0452e35f609c..acd74d6a9dd7d4195e3682fe0ec9deb86efbecff 100644 (file)
@@ -56,7 +56,7 @@ module TestDeviceC
 
   ieee154_CapabilityInformation_t m_capabilityInformation;
   ieee154_PANDescriptor_t m_PANDescriptor;
-  bool m_isPANDescriptorValid;
+  bool m_wasScanSuccessful;
   void startApp();
 
   event void Boot.booted() {
@@ -81,16 +81,14 @@ module TestDeviceC
     ieee154_phyChannelsSupported_t channel;
     uint8_t scanDuration = BEACON_ORDER; 
 
-    m_isPANDescriptorValid = FALSE;
-
-    // scan only one channel
+    // scan only one channel (to save time)
     channel = ((uint32_t) 1) << RADIO_CHANNEL;
 
     // we want all received beacons to be signalled 
     // through the MLME_BEACON_NOTIFY interface, i.e.
     // we set the macAutoRequest attribute to FALSE
     call MLME_SET.macAutoRequest(FALSE);
-    m_isPANDescriptorValid = FALSE;
+    m_wasScanSuccessful = FALSE;
     call MLME_SCAN.request  (
                            PASSIVE_SCAN,           // ScanType
                            channel,                // ScanChannels
@@ -108,22 +106,20 @@ module TestDeviceC
   {
     // received a beacon frame
     ieee154_phyCurrentPage_t page = call MLME_GET.phyCurrentPage();
-    ieee154_macBSN_t beaconSequenceNumber = call BeaconFrame.getBSN(frame);
-
-    if (beaconSequenceNumber & 1)
-      call Leds.led2On();
-    else
-      call Leds.led2Off();   
-    if (!m_isPANDescriptorValid && call BeaconFrame.parsePANDescriptor(
-          frame, RADIO_CHANNEL, page, &m_PANDescriptor) == SUCCESS){
-      // let's see if the beacon is from the coordinator we expect...
-      if (m_PANDescriptor.CoordAddrMode == ADDR_MODE_SHORT_ADDRESS &&
-          m_PANDescriptor.CoordPANId == PAN_ID &&
-          m_PANDescriptor.CoordAddress.shortAddress == COORDINATOR_ADDRESS){
-        // yes - wait until SCAN is finished, then syncronize to beacons
-        m_isPANDescriptorValid = TRUE;
+
+    if (!m_wasScanSuccessful) {
+      if (call BeaconFrame.parsePANDescriptor(
+            frame, RADIO_CHANNEL, page, &m_PANDescriptor) == SUCCESS){
+        // let's see if the beacon is from the coordinator we expect...
+        if (m_PANDescriptor.CoordAddrMode == ADDR_MODE_SHORT_ADDRESS &&
+            m_PANDescriptor.CoordPANId == PAN_ID &&
+            m_PANDescriptor.CoordAddress.shortAddress == COORDINATOR_ADDRESS){
+          // yes - wait until SCAN is finished, then syncronize to beacons
+          m_wasScanSuccessful = TRUE;
+        }
       }
     }
+
     return frame;
   }
 
@@ -138,7 +134,7 @@ module TestDeviceC
                           ieee154_PANDescriptor_t* PANDescriptorList
                         )
   {
-    if (m_isPANDescriptorValid){
+    if (m_wasScanSuccessful) {
       call MLME_SET.macPANId(m_PANDescriptor.CoordPANId);
       call MLME_SET.macCoordShortAddress(m_PANDescriptor.CoordAddress.shortAddress);
       call MLME_SYNC.request(m_PANDescriptor.LogicalChannel, m_PANDescriptor.ChannelPage, TRUE);
@@ -161,7 +157,7 @@ module TestDeviceC
                           ieee154_security_t *security
                         )
   {
-    if ( status == IEEE154_SUCCESS ){
+    if ( status == IEEE154_SUCCESS ) {
       // we are now associated - set a timer for disassociation 
       call Leds.led1On();
       call DisassociateTimer.startOneShot(312500U);
index 50818c82ff7b27d3e47ba892f5a0254c783bb4e8..c241ac5b734ee37eb255d2b90bb5917570be7aad 100644 (file)
@@ -1,5 +1,5 @@
 README for TestData
-Author/Contact: tinyos-help@millennium.berkeley.edu
+Author/Contact: Jan Hauer <hauer@tkn.tu-berlin.de>
 
 Description:
 
@@ -13,9 +13,10 @@ transmission in the contention access period, CAP).
 
 Criteria for a successful test:
 
-Assuming a clear channel and one coordinator and one device has been installed,
-both should toggle (only) the second LED fast, about 5 times per second. They
-don't have to toggle the LED simultaneously.
+Coordinator and device should both toggle LED2 about twice per second in
+unison. They should also each toggle LED1 about 5 times per second (but
+not necessarily in unison). Note: the nodes should be close to each other, 
+because the transmission power is reduced to -20 dBm.
 
 
 Tools: NONE
index 5a331de9db3dbdfc7d0413ae28f4903e0561a2ad..ef3cc433b597f78297c1abb700560fd0419beef2 100644 (file)
@@ -42,7 +42,7 @@ enum {
   COORDINATOR_ADDRESS = 0x4331,
   BEACON_ORDER = 5,
   SUPERFRAME_ORDER = 5,
+  TX_POWER = -20, // in dBm
 };
-//#define IEEE154_DEFAULT_TRANSMITPOWER_dBm -25
 
 #endif
index 8ae7d636bba44bc299c3a481d7428bbb4d2c7a14..23123d57b31e2813c044259a630a3eea8ef7f4f0 100644 (file)
@@ -60,6 +60,7 @@ module TestCoordReceiverC
   {
     if (status != IEEE154_SUCCESS)
       return;
+    call MLME_SET.phyTransmitPower(TX_POWER);
     call MLME_SET.macShortAddress(COORDINATOR_ADDRESS);
     call MLME_SET.macAssociationPermit(FALSE);
     call MLME_START.request(
index 279e43e2325417fa82bdd81210374e971ce2a350..e4a1ab2fd7b267a1224b17e9a8f0909b9fd65c84 100644 (file)
@@ -58,8 +58,7 @@ module TestDeviceSenderC
   uint8_t m_payloadLen;
   ieee154_PANDescriptor_t m_PANDescriptor;
   bool m_ledCount;
-  bool m_isPANDescriptorValid;
-  bool m_sending;
+  bool m_wasScanSuccessful;
 
   void startApp();
   task void packetSendTask();
@@ -88,16 +87,17 @@ module TestDeviceSenderC
     ieee154_phyChannelsSupported_t channelMask;
     uint8_t scanDuration = BEACON_ORDER;
 
-    m_isPANDescriptorValid = FALSE;
+    call MLME_SET.phyTransmitPower(TX_POWER);
     call MLME_SET.macShortAddress(TOS_NODE_ID);
 
-    // scan only one channel
+    // scan only the channel where we expect the coordinator
     channelMask = ((uint32_t) 1) << RADIO_CHANNEL;
 
     // we want all received beacons to be signalled 
     // through the MLME_BEACON_NOTIFY interface, i.e.
     // we set the macAutoRequest attribute to FALSE
     call MLME_SET.macAutoRequest(FALSE);
+    m_wasScanSuccessful = FALSE;
     call MLME_SCAN.request  (
                            PASSIVE_SCAN,           // ScanType
                            channelMask,            // ScanChannels
@@ -110,7 +110,6 @@ module TestDeviceSenderC
                            0                       // security
                         );
   }
-  bool m_ready;
 
   event message_t* MLME_BEACON_NOTIFY.indication (message_t* frame)
   {
@@ -118,22 +117,26 @@ module TestDeviceSenderC
     ieee154_phyCurrentPage_t page = call MLME_GET.phyCurrentPage();
     ieee154_macBSN_t beaconSequenceNumber = call BeaconFrame.getBSN(frame);
 
-    if (m_ready)
-      post packetSendTask();
-    if (beaconSequenceNumber & 1)
-      call Leds.led2On();
-    else
-      call Leds.led2Off();   
-    if (!m_isPANDescriptorValid && call BeaconFrame.parsePANDescriptor(
-          frame, RADIO_CHANNEL, page, &m_PANDescriptor) == SUCCESS){
-      // let's see if the beacon is from our coordinator...
-      if (m_PANDescriptor.CoordAddrMode == ADDR_MODE_SHORT_ADDRESS &&
-          m_PANDescriptor.CoordPANId == PAN_ID &&
-          m_PANDescriptor.CoordAddress.shortAddress == COORDINATOR_ADDRESS){
-        // yes! wait until SCAN is finished, then syncronize to the beacons
-        m_isPANDescriptorValid = TRUE;
+    if (!m_wasScanSuccessful) {
+      // received a beacon during channel scanning
+      if (call BeaconFrame.parsePANDescriptor(
+            frame, RADIO_CHANNEL, page, &m_PANDescriptor) == SUCCESS) {
+        // let's see if the beacon is from our coordinator...
+        if (m_PANDescriptor.CoordAddrMode == ADDR_MODE_SHORT_ADDRESS &&
+            m_PANDescriptor.CoordPANId == PAN_ID &&
+            m_PANDescriptor.CoordAddress.shortAddress == COORDINATOR_ADDRESS){
+          // yes! wait until SCAN is finished, then syncronize to the beacons
+          m_wasScanSuccessful = TRUE;
+        }
       }
+    } else { 
+      // received a beacon during synchronization, toggle LED2
+      if (beaconSequenceNumber & 1)
+        call Leds.led2On();
+      else
+        call Leds.led2Off();   
     }
+
     return frame;
   }
 
@@ -148,7 +151,8 @@ module TestDeviceSenderC
                           ieee154_PANDescriptor_t* PANDescriptorList
                         )
   {
-    if (m_isPANDescriptorValid){
+    if (m_wasScanSuccessful) {
+      // we received a beacon from the coordinator before
       call MLME_SET.macCoordShortAddress(m_PANDescriptor.CoordAddress.shortAddress);
       call MLME_SET.macPANId(m_PANDescriptor.CoordPANId);
       call MLME_SYNC.request(m_PANDescriptor.LogicalChannel, m_PANDescriptor.ChannelPage, TRUE);
@@ -161,24 +165,23 @@ module TestDeviceSenderC
           NULL                            // security
           );
       post packetSendTask(); 
-      m_ready = TRUE;
     } else
       startApp();
   }
 
   task void packetSendTask()
   {
-    if (!m_sending && m_isPANDescriptorValid &&
-        call MCPS_DATA.request  (
+    if (!m_wasScanSuccessful)
+      return;
+    else if (call MCPS_DATA.request  (
           &m_frame,                         // frame,
           m_payloadLen,                     // payloadLength,
           0,                                // msduHandle,
           TX_OPTIONS_ACK // TxOptions,
-          ) == IEEE154_SUCCESS)
-      m_sending = TRUE;
+          ) != IEEE154_SUCCESS)
+      call Leds.led0On();
   }
 
-  uint8_t m_useLeds = TRUE;
   event void MCPS_DATA.confirm    (
                           message_t *msg,
                           uint8_t msduHandle,
@@ -186,11 +189,9 @@ module TestDeviceSenderC
                           uint32_t timestamp
                         )
   {
-    m_sending = FALSE;
-    if (status == IEEE154_SUCCESS && m_ledCount++ == 20){
+    if (status == IEEE154_SUCCESS && m_ledCount++ >= 20) {
       m_ledCount = 0;
-      if (m_useLeds)
-        call Leds.led1Toggle();
+      call Leds.led1Toggle();
     }
     post packetSendTask(); 
   }
@@ -202,9 +203,9 @@ module TestDeviceSenderC
                           uint8_t ChannelPage,
                           ieee154_security_t *security)
   {
-    m_useLeds = FALSE;
+    m_wasScanSuccessful = FALSE;
     call Leds.led1Off();
-    //startApp();
+    call Leds.led2Off();
   }
 
   event message_t* MCPS_DATA.indication (message_t* frame)
index 68122e6b1c95feb72dd9a24a577f8b642dafe08f..f963b8018606bf6d8cf857f62cdcddde640e98f4 100644 (file)
@@ -1,5 +1,5 @@
 README for TestIndirect
-Author/Contact: tinyos-help@millennium.berkeley.edu
+Author/Contact: Jan Hauer <hauer@tkn.tu-berlin.de>
 
 Description:
 
@@ -14,8 +14,8 @@ DATA frame from the coordinator.
 
 Criteria for a successful test:
 
-Both nodes should simultaneously toggle (only) the second LED, about once every
-half second.
+Both nodes should toggle the LED1 in unison, about once every half second. 
+The coordinator should also toggle LED2 with the same frequency.
 
 
 Tools: NONE
index 381aba9f5e4517842b7685f8fcf618872d7c0eb0..e270937fe0c4d269aa5aa7b8ae3b500e4c54c6a1 100644 (file)
@@ -55,32 +55,14 @@ module TestCoordSenderC
   uint8_t m_payloadLen;
 
   event void Boot.booted() {
-    char payload[] = "Hello Device!";
-    uint8_t *payloadRegion;
-    ieee154_address_t deviceShortAddress;
-
-    // construct the frame
-    m_payloadLen = strlen(payload);
-    payloadRegion = call Packet.getPayload(&m_frame, m_payloadLen);
-    deviceShortAddress.shortAddress = DEVICE_ADDRESS; // destination
-    if (m_payloadLen <= call Packet.maxPayloadLength()){
-      memcpy(payloadRegion, payload, m_payloadLen);
-      call Frame.setAddressingFields(
-          &m_frame,                
-          ADDR_MODE_SHORT_ADDRESS, // SrcAddrMode,
-          ADDR_MODE_SHORT_ADDRESS, // DstAddrMode,
-          PAN_ID,                  // DstPANId,
-          &deviceShortAddress,     // DstAddr,
-          NULL                     // security
-          );
-      call MLME_RESET.request(TRUE);
-    }
+    call MLME_RESET.request(TRUE);
   }
 
   event void MLME_RESET.confirm(ieee154_status_t status)
   {
     if (status != IEEE154_SUCCESS)
       return;
+
     call MLME_SET.macShortAddress(COORDINATOR_ADDRESS);
     call MLME_SET.macAssociationPermit(FALSE);
     call MLME_START.request(
@@ -110,8 +92,26 @@ module TestCoordSenderC
 
   event void MLME_START.confirm(ieee154_status_t status)
   {
-    if (status == IEEE154_SUCCESS)
+    char payload[] = "Hello Device!";
+    uint8_t *payloadRegion;
+    ieee154_address_t deviceShortAddress;
+
+    // construct the frame
+    m_payloadLen = strlen(payload);
+    payloadRegion = call Packet.getPayload(&m_frame, m_payloadLen);
+    deviceShortAddress.shortAddress = DEVICE_ADDRESS; // destination
+    if (status == IEEE154_SUCCESS && m_payloadLen <= call Packet.maxPayloadLength()) {
+      memcpy(payloadRegion, payload, m_payloadLen);
+      call Frame.setAddressingFields(
+          &m_frame,                
+          ADDR_MODE_SHORT_ADDRESS, // SrcAddrMode,
+          ADDR_MODE_SHORT_ADDRESS, // DstAddrMode,
+          PAN_ID,                  // DstPANId,
+          &deviceShortAddress,     // DstAddr,
+          NULL                     // security
+          );
       dataRequest();
+    }
   }
 
   event void MCPS_DATA.confirm(
index 197a0430e0b342362b38aeca7d9a5898ef38c64c..dc2482d3954c746eb8e2746bde15e132cb39e497 100644 (file)
@@ -55,7 +55,7 @@ module TestDeviceReceiverC
   uint8_t m_coordAddressMode;
   ieee154_macPANId_t m_coordPANID;
   ieee154_PANDescriptor_t m_PANDescriptor;
-  bool m_isPANDescriptorValid;
+  bool m_wasScanSuccessful;
   void startApp();
 
   event void Boot.booted() {
@@ -82,6 +82,7 @@ module TestDeviceReceiverC
     // through the MLME_BEACON_NOTIFY interface, i.e.
     // we set the macAutoRequest attribute to FALSE
     call MLME_SET.macAutoRequest(FALSE);
+    m_wasScanSuccessful = FALSE;
     call MLME_SCAN.request  (
                            PASSIVE_SCAN,           // ScanType
                            channel,                // ScanChannels
@@ -99,21 +100,15 @@ module TestDeviceReceiverC
   {
     // received a beacon frame during SCAN
     ieee154_phyCurrentPage_t page = call MLME_GET.phyCurrentPage();
-    ieee154_macBSN_t beaconSequenceNumber = call BeaconFrame.getBSN(frame);
 
-    if (beaconSequenceNumber & 1)
-      call Leds.led2On();
-    else
-      call Leds.led2Off();   
-
-    if (!m_isPANDescriptorValid && call BeaconFrame.parsePANDescriptor(
+    if (!m_wasScanSuccessful && call BeaconFrame.parsePANDescriptor(
           frame, RADIO_CHANNEL, page, &m_PANDescriptor) == SUCCESS){
       // let's see if the beacon is from our coordinator...
       if (m_PANDescriptor.CoordAddrMode == ADDR_MODE_SHORT_ADDRESS &&
           m_PANDescriptor.CoordPANId == PAN_ID &&
           m_PANDescriptor.CoordAddress.shortAddress == COORDINATOR_ADDRESS){
         // wait until SCAN is finished, then syncronize to beacons
-        m_isPANDescriptorValid = TRUE;
+        m_wasScanSuccessful = TRUE;
       }
     }
     return frame;
@@ -130,7 +125,7 @@ module TestDeviceReceiverC
                           ieee154_PANDescriptor_t* PANDescriptorList
                         )
   {
-    if (m_isPANDescriptorValid){
+    if (m_wasScanSuccessful){
       // set the macAutoRequest attribute to TRUE, so indirect
       // transmissions are automatically carried through
       call MLME_SET.macAutoRequest(TRUE);
@@ -158,7 +153,6 @@ module TestDeviceReceiverC
                           ieee154_security_t *security)
   {
     call Leds.led1Off();
-    startApp();
   }
 
   event message_t* MCPS_DATA.indication (message_t* frame)
index 3706469c3445a3790ee7c66bc69cff085a59ea95..0f4b39c063f65b6793ab1b611488031ff162d8e1 100644 (file)
@@ -1,5 +1,5 @@
 README for TestStartSync
-Author/Contact: tinyos-help@millennium.berkeley.edu
+Author/Contact: Jan Hauer <hauer@tkn.tu-berlin.de>
 
 Description:
 
@@ -11,7 +11,8 @@ a beacon it tries to synchronize to and track all future beacons.
 
 Criteria for a successful test:
 
-After a few seconds all nodes should have (only) their second LED turned on.
+After a few seconds all nodes should have the LED1 turned on and LED2
+toggling in unison every second.
 
 
 Tools: NONE
index 5990eae2c236db5bdedd972db35261c9b4a97890..4de87f23560b6ec15544a71a908a5b2d7aac5170 100644 (file)
@@ -1,5 +1,5 @@
 README for TestActiveScan
-Author/Contact: tinyos-help@millennium.berkeley.edu
+Author/Contact: Jan Hauer <hauer@tkn.tu-berlin.de>
 
 Description:
 
@@ -11,10 +11,8 @@ the predefined channel and expects beacon frames in return.
 
 Criteria for a successful test:
 
-On the coordinator node (only) the second LED should toggle once every 2 
-seconds. On the device the second and third LED should toggle once every 2 
-seconds, but with a small offset of half a second. On the device the first
-LED may toggle, but this should happen very rarely.
+The coordinator should toggle LED1 once every 2 seconds. The device should
+toggle LED1 and LED2 every 2 seconds (not necessarily simultaneously).
 
 
 Tools: NONE
index e1534edb6e06f2793ce764140a6291aaade7efc8..8bd067bee2fbabeb2c748b1a871732eb4a45002c 100644 (file)
@@ -105,8 +105,8 @@ module TestActiveScanDeviceC
       }
     }
     if(rightCoordFound == FALSE) {
-      call Leds.led0On();
-      call Led0Timer.startOneShot(62500U); 
+      // call Leds.led0On();
+      // call Led0Timer.startOneShot(62500U); 
     }
   }
 
index 211fcf7547106e740b75b3ecbb5a1e3d8ae06c2e..194911fb13a2421771a34143e861f987a11b3e22 100644 (file)
@@ -1,5 +1,5 @@
 README for TestAssociate
-Author/Contact: tinyos-help@millennium.berkeley.edu
+Author/Contact: Jan Hauer <hauer@tkn.tu-berlin.de>
 
 Description:
 
@@ -15,8 +15,8 @@ association the device then disassociates from the PAN.
 Criteria for a successful test:
 
 Assuming one coordinator and one device has been installed, both should
-simultaneously switch on (only) the second LED. About 5 seconds later
-both should switch off the second LED. 
+simultaneously switch on LED1. About 5 seconds later both should switch LED1
+off. That's all.
 
 
 Tools: NONE
index b91a58085c32cbac29eaa96543fb0502fc9c4f94..7334f3da64b35b512d5dbd3f8973fc1bcd16655a 100644 (file)
@@ -1,5 +1,5 @@
 README for TestIndirectData
-Author/Contact: tinyos-help@millennium.berkeley.edu
+Author/Contact: Jan Hauer <hauer@tkn.tu-berlin.de>
 
 Description:
 
@@ -13,8 +13,8 @@ transmissions.
 Criteria for a successful test:
 
 Assuming one coordinator and one device has been installed, the coordinator
-should briefly flash the second LED every 3 seconds. The device should briefly
-flash its third LED every 1 second. 
+should briefly flash LED1 every 3 seconds. The device should briefly flash 
+LED2 every 1 second. 
 
 
 Tools: NONE
index 9377938dcb166616d9ed209a8ad9af56dbc6a447..743fa3a07ac024baddcda462ef71278ed0f1bafd 100644 (file)
@@ -1,5 +1,5 @@
 README for TestPromiscuous
-Author/Contact: tinyos-help@millennium.berkeley.edu
+Author/Contact: Jan Hauer <hauer@tkn.tu-berlin.de>
 
 Description:
 
@@ -12,13 +12,12 @@ toggled whenever a frame is received.
 
 Criteria for a successful test:
 
-A successful test means that for every received frame the second LED is toggled
+A successful test means that for every received frame LED1 is toggled
 and the java application outputs some text. To see this effect you need a
-second node sending a packet. The TestPromiscuous application does not send
-packets, but you can, for example, use the
+second node sending a packet, for example, use the
 ../../beacon-enabled/TestStartSync/coordinator application to send periodic
-beacon packets. In this case you should see some new text and the second LED
-should toggle every half second.
+beacon packets. In this case LED1 should toggle every half second and
+printf java client should output some text on the frame content.
 
 
 Tools: The printf java client in $TOSDIR/../apps/tests/TestPrintf