Hi all,
I'm trying to use the xmac implemented in UPMA in my application. I'm using
TinyOS 2.1.

My scenario is a coordinator node (a PC with a telosb running the
BaseStation application) which manages the sampling and the processing of
the remote sensor nodes.
That means the coordinator sends over-the-air requests for sampling sensors,
enabling/disabling on-node signal processing and so on. Requests are
originated by end-user applications talking with the WSN thru our developed
framework layer which in turn relies on the "tinyos.jar" APIs.
On the other hand, remote nodes, based on their coordinator requests, will
send back raw o processed data.

I tried a sample application that just requests raw-data at a certain rate
to any active remote sensor node in the nearby.
It's weird to me that it works always if just one single node is active, but
most of the times not if even just two nodes are active.

Below the makefiles I'm using for the Basestation and the remote nodes
application.

MY_APP Makefile:
COMPONENT=SPINEApp_AppC

PFLAGS += -DCC2420_DEF_CHANNEL=14
PFLAGS += -I..
PFLAGS += -DLOW_POWER_LISTENING
PFLAGS += -DPACKET_LINK

UPMA_MAC = xmac

include $(MAKERULES)

BaseStation Makefile:
COMPONENT=BaseStationC

PFLAGS += -DCC2420_DEF_CHANNEL=14
PFLAGS += -I..
PFLAGS += -DLOW_POWER_LISTENING
PFLAGS += -DPACKET_LINK

include $(MAKERULES)

The BaseStation application has set
"call LowPowerListening.setLocalSleepInterval(0);" within the event handler
"RadioControl.startDone"
and
"call LowPowerListening.setRxSleepInterval(msg, 1024);" before the "call
RadioSend.send[id](addr, msg, len)"

The remote application has just set
"call LowPowerListening.setLocalSleepInterval(1024);" within the event
handler "Boot.booted"

I really can't find where things screw up!
Any comments will be much appreciated!!

Cheers,

-- 
Raffaele Gravina

Research Engineer
Wireless Sensor Networks Lab Berkeley
2000 Hearst Ave, suite 304
Berkeley, CA 94709
+1 510 666 0174 ext. 101
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to