Hi all,

I was trying to implement something similar to the project here.
http://prasanthprabalan.blogspot.de/2012/07/connect-buzzer-to-gio-output-of-telosb.html

but I was getting none of my sensor. I tried to track down the problem my self, 
so I started reducing the written code a lot to resolve it. 
The diagnosis I made was that the mote did not boot.

I kept reducing the code to the minimum I will share at the bottom of this 
email...
I also tried several times to make clean before running make telosb. I also 
changed motes and installed on each one the default make blink application to 
make sure that the leds work.

The version I have now after booting has to turn one led on but it does not.

Finally I was also reading the produced c code app.c where I found that there 
is no declaration of the boot event.... which made my feeling of not booting 
correctly correct...

What I can not do now is to find the mistake in my code, that is so simple that 
makes me feel...

Regards
Alex




module BuzzerC{
    uses interface Boot;
    //uses interface HplMsp430GeneralIO as indication3;
    //uses interface BusyWait<TMicro,uint16_t> as delay;
    uses interface Timer<TMilli> as Timer0;
    uses interface Leds;
}

implementation{
   uint16_t value;
   uint16_t i;

event void Boot.booted() {
     //call Timer0.startPeriodic(500);
     call Leds.led1On();
}

event void Timer0.fired() {
     call Leds.led0Toggle();
   }  
}




configuration BuzzerAppC {
}

implementation{
components BuzzerC, MainC;
//components HplMsp430GeneralIOC;
//components BusyWaitMicroC;
components new TimerMilliC() as Timer0;
components LedsC;

BuzzerC.Boot -> MainC.Boot;

//BuzzerC.indication3 -> HplMsp430GeneralIOC.Port26; 
BuzzerC.Timer0 -> Timer0;
//BuzzerC.delay -> BusyWaitMicroC;
BuzzerC.Leds -> LedsC;
}
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to