]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Updated README's to describe different options when compiling for the CC2420. Update...
authorrincon <rincon>
Fri, 6 Jul 2007 18:26:04 +0000 (18:26 +0000)
committerrincon <rincon>
Fri, 6 Jul 2007 18:26:04 +0000 (18:26 +0000)
apps/BaseStation/Makefile
apps/BaseStation/README
apps/BaseStation/README.txt

index 3e098f4c73f15d7713e37de9859bee4a4d2c48b2..3c052e790cdf2f3a46e52aeaf9f2e7275ce4b264 100644 (file)
@@ -1,3 +1,6 @@
 COMPONENT=BaseStationC
+CFLAGS += -DCC2420_NO_ACKNOWLEDGEMENTS
+CFLAGS += -DCC2420_NO_ADDRESS_RECOGNITION
+
 include $(MAKERULES)
 
index e824815a76ae4b4ee5b2ae52e464748a0c1fc909..2fd802a581943b41fc836b29428c2c259ff0498f 100644 (file)
@@ -29,6 +29,23 @@ GREEN Toggle       - Message bridged from radio to serial
 YELLOW/BLUE Toggle - Dropped message due to queue overflow 
                      in either direction
 
+When using a CC2420 radio, several default preprocessor configurations
+are defined in the Makefile:
+  * CC2420_NO_ACKNOWLEDGEMENTS
+    - Prevents the base station from falsly acknowledging packets
+  * CC2420_NO_ADDRESS_RECOGNITION
+    - Allows the base station to sniff packets from any transmitter
+
+Other combinations can be defined to meet your application's needs:
+  * CC2420_NO_ADDRESS_RECOGNITION only
+    - Sniff all packets, but acknowledge packets only if they
+      are sent to the base station's address
+
+  * Removing all preprocessor definitions in the Makefile
+    - Only accept packets destined for the base station's address,
+      and acknowledge those packets
+
+
 Tools:
 
 tools/java/net/tinyos/sf/SerialForwarder.  
@@ -37,8 +54,4 @@ See doc/serialcomm/index.html for more information using these tools.
 
 Known bugs/limitations:
 
-On CC2420 platforms, BaseStation can only overhear packets transmitted
-to it or to the broadcast address. For these platforms (e.g., micaz,
-telos, intel mote 2), you should use BaseStationCC2420.
-
 
index e824815a76ae4b4ee5b2ae52e464748a0c1fc909..2fd802a581943b41fc836b29428c2c259ff0498f 100644 (file)
@@ -29,6 +29,23 @@ GREEN Toggle       - Message bridged from radio to serial
 YELLOW/BLUE Toggle - Dropped message due to queue overflow 
                      in either direction
 
+When using a CC2420 radio, several default preprocessor configurations
+are defined in the Makefile:
+  * CC2420_NO_ACKNOWLEDGEMENTS
+    - Prevents the base station from falsly acknowledging packets
+  * CC2420_NO_ADDRESS_RECOGNITION
+    - Allows the base station to sniff packets from any transmitter
+
+Other combinations can be defined to meet your application's needs:
+  * CC2420_NO_ADDRESS_RECOGNITION only
+    - Sniff all packets, but acknowledge packets only if they
+      are sent to the base station's address
+
+  * Removing all preprocessor definitions in the Makefile
+    - Only accept packets destined for the base station's address,
+      and acknowledge those packets
+
+
 Tools:
 
 tools/java/net/tinyos/sf/SerialForwarder.  
@@ -37,8 +54,4 @@ See doc/serialcomm/index.html for more information using these tools.
 
 Known bugs/limitations:
 
-On CC2420 platforms, BaseStation can only overhear packets transmitted
-to it or to the broadcast address. For these platforms (e.g., micaz,
-telos, intel mote 2), you should use BaseStationCC2420.
-