The easiest way to prevent TOSBase from sending radio messages is to not
write any messages to it over the UART...it only acts as a passive pass-
though. But if you want to make sure nothing gets transmitted you could
probably disable UARTRcvdTask(). There may be some slick way to wire-it-
out, but there probably isn't a convenient null-Module to wire to...
MS
SS C wrote:
Hi all,
I'm modifying the sample code TOSBase to let it function as a receiver
only. The source is from my sensor. While I was modifying it, I found it
related to a radio componenet called CC2420RadioM. Because in the
TOSBase code, I don't want my radio send anything, it should only
RECEIVE. However, if I try to comment the line " interface BareSendMsg
as RadioSend", tinyos will return error
"In component `CC2420RadioM':
/opt/MoteWorks/tos/radio/cc2420/CC2420RadioM.nc: In function
`immedPacketSent':
/opt/MoteWorks/tos/radio/cc2420/CC2420RadioM.nc:472: Send.sendDone not
connected
/opt/MoteWorks/tos/radio/cc2420/CC2420RadioM.nc: In function `fSendAborted':
/opt/MoteWorks/tos/radio/cc2420/CC2420RadioM.nc:426: Send.sendDone not
connected"
Because in this radio module, it's predefined for the modules which are
going to use rf signal.
What should I do with this? Does anyone have experience on changing
TOSBase code to a receiver (stand-alone node) code? Thanks in advance,
Jessie
------------------------------------------------------------------------
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help