[Tinyos-devel] TOS_AM_GROUP
Philip Levis
pal at cs.stanford.edu
Wed Feb 6 10:27:30 PST 2008
On Feb 6, 2008, at 7:43 AM, David Moss wrote:
> There has been a change to the way TinyOS defines its
> TOS_AM_GROUP. According to the unit test here http://
> www.lavalampmotemasters.com/reports/html/1_micaz/tests/tinyos-2/x/
> tos/system/10_TestActiveMessageAddressC.html the TOS_AM_GROUP and
> DEFINED_TOS_AM_GROUP are both set to 125 (0x7D). Up until the
> other day, it was 0x22.
>
>
>
> I notice DEFINED_TOS_AM_GROUP is being set by the .rules files
> instead of AM.h now:
>
>
>
> ifdef DEFAULT_LOCAL_GROUP
>
> PFLAGS += -DDEFINED_TOS_AM_GROUP=$(DEFAULT_LOCAL_GROUP)
>
> endif
>
>
>
> And you can see this when compiling:
>
>
>
> ncc -o build/tmote2500/main.exe -Os -O -mdisable-hwmul -Wall -
> Wshadow -Wnesc-all -target=tmote2500 -fnesc-cfile=build/tmote2500/
> app.c -board= -DDEFINED_TOS_AM_GROUP=0x7d …
>
>
>
> Obviously this isn’t backwards compatible with other TinyOS
> networks, and AM.h now gives you a false sense of what’s really
> happening. Can someone look into this behavior?
>
We fixed a bug, which caused a bug! The group should have been 0x7d,
as per support/make/Makedefaults, but the defines were being
referenced incorrectly. To be backwards compatible, I've updated
Makedefaults to have 0x22 as the default.
Phil
More information about the Tinyos-devel
mailing list