Yes it is okay that boot is empty as recieve event will be called when the packet is received. In telosb I do not think you need to set anything in Makefile I think it should work. I cannot find any mistake in the code.
Zé Pedro Espogeira wrote: > Hi > the BlinkToRadio works great! the code i sent it seems it is not working > im intalling in telosb node, do i need to set frequency and power?? > > the boot is empty bcause the sensor should be only waiting for a the > radio msg from BlinkToRadio code, this is right? > > Ze > > > > > Date: Fri, 9 Oct 2009 22:40:14 +0200 > > Subject: Re: [Tinyos-help] Receiving radio msg > > From: [email protected] > > To: [email protected] > > CC: [email protected] > > > > Code looks perfect to me. > > However, what mote you are using if you are using mica2 then you might > > have to specify freq, power in Makefile. If the simple BlinkToRadio > works? > > > > -- > > Faisal Aslam > > > > PhD Student > > University of Freiburg > > http://cone.informatik.uni-freiburg.de/people/aslam/ > > > > > > > > Hi > > > i was reading tutorial mote-mote radio com... and i tried to install > > > BlinkToRadio in one mote and a Receive application in another mote. > > > this Receive app is my attempt to get the radio message from one > mote and > > > blink the leds in the other mote, the problem is that its not working! > > > I install it in the second mote but nothing happens, can you > please look > > > at the following code and help me ? > > > > > > /*Module code*/ > > > #include <Timer.h> > > > #include "BlinkToRadio.h" > > > > > > module ReceiveC > > > { > > > uses interface Boot; > > > uses interface Leds; > > > > > > uses interface Receive; > > > } > > > > > > implementation{ > > > > > > event void Boot.booted() > > > { > > > > > > } > > > > > > event message_t* Receive.receive(message_t* msg, void* payload, > > > uint8_t len) > > > { > > > BlinkToRadioMsg* btrpkt = (BlinkToRadioMsg*)payload; > > > call Leds.set(btrpkt->counter); > > > return msg; > > > } > > > } > > > > > > /*Configuration code*/ > > > #include <Timer.h> > > > #include "BlinkToRadio.h" > > > > > > configuration ReceiveAppC > > > { > > > > > > } > > > > > > implementation > > > { > > > components MainC; > > > components LedsC; > > > > > > components new AMReceiverC(AM_BLINKTORADIO); > > > components ReceiveC as App; > > > > > > App.Boot -> MainC; > > > App.Leds -> LedsC; > > > App.Receive -> AMReceiverC; > > > > > > } > > > > > > Thanks > > > Ze > > > > > > > > > > > > > > > > > > _________________________________________________________________ > > > Você sabia que pode acessar o Messenger direto do seu Hotmail? > Descubra > > > como! > > > > http://www.microsoft.com/brasil/windows/windowslive/products/tutoriais.aspx_______________________________________________ > > > Tinyos-help mailing list > > > [email protected] > > > > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > > > > > > > > ------------------------------------------------------------------------ > Com o Novo Internet Explorer 8 suas abas se organizam por cor. Baixe > agora, é grátis! > <http://brasil.microsoft.com.br/IE8/mergulhe/?utm_source=MSN%3BHotmail&utm_medium=Tagline&utm_campaign=IE8> > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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
