[Tinyos-help] Does Mica2 2003 version works with TinyOS 2.x?
Peizhao Hu
peizhao at itee.uq.edu.au
Sat Jun 2 20:52:05 PDT 2007
Sorry to my previous reply.
just realized in TinyOS 2.X is using constants to set freq.
however when I tried this:
/opt/tinyos-2.x/apps/RadioCountToLeds$
CFLAGS=-DCC1K_DEFAULT_FREQ=CC1K_915_998_MHZ make mica2 install
mkdir -p build/mica2
compiling RadioCountToLedsAppC to a mica2 binary
ncc -o build/mica2/main.exe -Os -finline-limit=100000 -Wall -Wshadow
-Wnesc-all -target=mica2 -fnesc-cfile=build/mica2/app.c -board=micasb
-DCC1K_DEFAULT_FREQ=CC1K_915_998_MHZ0 -fnesc-dump=wiring
-fnesc-dump='interfaces(!abstract())'
-fnesc-dump='referenced(interfacedefs, components)'
-fnesc-dumpfile=build/mica2/wiring-check.xml RadioCountToLedsAppC.nc -lm
In file included from
/opt/tinyos-2.x/tos/chips/cc1000/CC1000CsmaRadioC.nc:72,
from
/opt/tinyos-2.x/tos/chips/cc1000/CC1000ActiveMessageC.nc:57,
from
/opt/tinyos-2.x/tos/platforms/mica2/ActiveMessageC.nc:60,
from /opt/tinyos-2.x/tos/system/AMQueueP.nc:43,
from /opt/tinyos-2.x/tos/system/AMSenderC.nc:50,
from RadioCountToLedsAppC.nc:48:
In component `CC1000ControlP':
/opt/tinyos-2.x/tos/chips/cc1000/CC1000ControlP.nc: In function
`CC1000Control.init':
/opt/tinyos-2.x/tos/chips/cc1000/CC1000ControlP.nc:282:
`CC1K_915_998_MHZ0' undeclared (first use in this function)
/opt/tinyos-2.x/tos/chips/cc1000/CC1000ControlP.nc:282: (Each undeclared
identifier is reported only once
/opt/tinyos-2.x/tos/chips/cc1000/CC1000ControlP.nc:282: for each
function it appears in.)
make: *** [exe0] Error 1
why it changes my constant to CC1K_915_998_MHZ0 ??
Philip Levis wrote:
> On Jun 2, 2007, at 2:51 AM, Peizhao Hu wrote:
>
>> Hi, All,
>>
>> I just received a mote kit from my supervisor she bought in year 2003.
>> I have setup TinyOS 2.X on my ubuntu machine. And I tested it will
>> the Blink application without any problem.
>> However, when I got to Lesson 3 that require one of the mote to
>> receive packet from over the radio. It didn't do anything.
>> I confirmed it triggered the AMSend.send command with
>> call Leds.led0Toggle();
>> just after the send command. and it does blink.
>>
>> but the toggling of Led1 in my receive never occurs.
>> I also tested it with the RadioCountToLeds example, which came with
>> TinyOS 2.x package, but it is the same, no luck.
>>
>> so my question is whether my hardware compatible with TinyOS 2.x.
>>
>> The hardware specification I can see on the board:
>> MPR400CB
>> 2003 CrossBow C29
>> with 900MHZ
>
> Yes, it is compatible. But you need to tell TinyOS that you are using
> a 900MHz radio, not a 433MHz radio (the default). If you search
> through the archives there are a lot of messages on how to do this.
>
> Phil
--
regards;
Peizhao
More information about the Tinyos-help
mailing list