[Tinyos-devel] TOS_AM_GROUP

David Moss dmm at rincon.com
Wed Feb 6 07:43:04 PST 2008


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?

 

-David

 

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-devel/attachments/20080206/8c6e807c/attachment.html


More information about the Tinyos-devel mailing list