|
TinyOS
1.x won't do it, it's broken. TinyOS 2.x will, and so will an upgraded
radio stack on TinyOS 1.x.
To
upgrade your TinyOS 1.x CC1000 radio stack, download the CC1000Radio directory
from TinyOS 1.x CVS under /contrib/rincon/tos/lib/CC1000Radio. Put that in
your /lib/ directory, and compile your programs referencing that
directory:
CFLAGS
+= -I%T/lib/CC1000Radio
CFLAGS
+= -I%T/lib/CC1000Radio/interfaces
CFLAGS
+= -I%T/lib/CC1000Radio/core
That
should do it. Compile your program and you'll be referencing the new stack
instead of the old one located in /mica2. And if you ever want to go back
to the old one, just stop including the CC1000Radio
directory.
You'll
need NesC 1.2.7 to compile that code at the moment, because of some
return-from-atomic-block problems I haven't gotten around to fixing
yet.
The
interface you're interested in is CC1000Control.tuneManual(freqHz), provided by
CC1000RadioC. Example: call
CC1000Control.tuneManual(914077076);
You
may run into problems if you're in the middle of sending a message and switch
frequencies, I'm not sure.
-David
|
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
