From: rincon Date: Fri, 6 Jul 2007 18:26:04 +0000 (+0000) Subject: Updated README's to describe different options when compiling for the CC2420. Update... X-Git-Tag: release_tools_1_2_4_1~71 X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=commitdiff_plain;h=8b6973832825337ddfbf63f47b4ebd70b40d2c05;p=tinyos-2.x.git Updated README's to describe different options when compiling for the CC2420. Updated the Makefile to include the new CC2420 configurations. This does away with the need for a separate BaseStationCC2420 since no files need to be overridden. --- diff --git a/apps/BaseStation/Makefile b/apps/BaseStation/Makefile index 3e098f4c..3c052e79 100644 --- a/apps/BaseStation/Makefile +++ b/apps/BaseStation/Makefile @@ -1,3 +1,6 @@ COMPONENT=BaseStationC +CFLAGS += -DCC2420_NO_ACKNOWLEDGEMENTS +CFLAGS += -DCC2420_NO_ADDRESS_RECOGNITION + include $(MAKERULES) diff --git a/apps/BaseStation/README b/apps/BaseStation/README index e824815a..2fd802a5 100644 --- a/apps/BaseStation/README +++ b/apps/BaseStation/README @@ -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. - diff --git a/apps/BaseStation/README.txt b/apps/BaseStation/README.txt index e824815a..2fd802a5 100644 --- a/apps/BaseStation/README.txt +++ b/apps/BaseStation/README.txt @@ -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. -