All you need to do is define and use a
compile-time flag eg: In your application directory e.g.
apps/Blink equivalent, open Makefile and add: PFLAGS+= –DSRC_NODE=2 PFLAGS+= –DDEST_NODE=49 These are pre-processor flags. In your
code simply test there value: If (SRC_NODE == TOS_LOCAL_ADDRESS) { ;// do something
interesting } Likewise for DEST_NODE. I am writing a site-survey experiment
myself at the moment. It is scripted using Python and I have implemented Command
Interpreter components, which effectively communicate with the Python script
over UART. Using this I can set which node is the transmitter at runtime. There
is a component suite called Command (or near enough…) which provides this
functionality (obviously I discovered it too late and haven’t delved into
– a retro-fit maybe a possibilty); review the source to see if it fits
your needs Best regards, --- Darren Bishop From:
saadia khan [mailto:[EMAIL PROTECTED] Hi all, |
_______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help