Hello Daniel

You are missing one definition to wire to low power components. Add:

CFLAGS += -DLOW_POWER_LISTENING

Into your make file and it will wire.

All best
Hristo


-----Original Message-----

Message: 3
Date: Mon, 14 Dec 2009 18:32:15 +0100
From: Daniel Garcia Aubert <[email protected]>
Subject: [Tinyos-help] Problem to use Low Power Listening.
To: [email protected]
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

Hi all!

I'm working with TinyOS 2.1 under MicaZ plataform. In my program I want to
use Low Power Listening but in the moment to compile I have the following
problem:

*/opt/tinyos-2.1.0/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: #warning
"*** LOW POWER COMMUNICATIONS DISABLED ***"*

Also, I've compiled another
application"/opt/tinyos-2.1.0/apps/tests/cc2420/LplUnicastPeriodicDelivery"
with the
following output:

$ make micaz
mkdir -p build/micaz
    compiling TestPeriodicAppC to a micaz binary ncc -o build/micaz/main.exe
-Os -Wall -Wshadow -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c
-board=micasb -DDEFINED_TOS_AM_GROUP=0x22 --param
max-inline-insns-single=100000 -DACK_LOW_POWER_LISTENING
-DIDENT_APPNAME=\"TestPeriodicApp\" -DIDENT_USERNAME=\"sueko\"
-DIDENT_HOSTNAME=\"sueko-laptop\" -DIDENT_USERHASH=0xe0a01419L
-DIDENT_TIMESTAMP=0x4b266b12L -DIDENT_UIDHASH=0xa92ff5c7L -fnesc-dump=wiring
-fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs,
components)' -fnesc-dumpfile=build/micaz/wiring-check.xml
TestPeriodicAppC.nc -lm
*/opt/tinyos-2.1.0/tos/chips/cc2420/lpl/DefaultLplC.nc:39:2: warning:
#warning "*** USING DEFAULT LOW POWER COMMUNICATIONS ***"*
    compiled TestPeriodicAppC to build/micaz/main.exe
           13086 bytes in ROM
             353 bytes in RAM
avr-objcopy --output-target=srec build/micaz/main.exe build/micaz/main.srec
avr-objcopy --output-target=ihex build/micaz/main.exe build/micaz/main.ihex
    writing TOS image

Both applications have the similar code to use LPL. Any idea?

Thanks & regards!

--
Daniel Garc?a Aubert
Universidad Carlos III de Madrid.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/200912
14/ae1071c2/attachment-0001.htm 

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to