Hi everyone,

I'm a beginner in TinyOS and I got a problem with a application in Mica2.

I've started with Blink application and everything got fine. The Leds really
blinked. Then, I tried to adapt the Blink to send some information through
the radio, but doesn't worked out. I noticed some thing strange: My original
Blink application works fine, but if I just put the ActiveMessageC component
in the configuration's file, the led dont light up ( I've adapted the
application to just light up one led). It's like the application doesnt go
to the Boot.booted event... I dont know what to do. Can anyone help me to
solve that problem?. Below, some samples of my code.

module BlinkC
{
  uses interface Timer<TMilli> as Timer0;
  uses interface Leds;
  uses interface Boot;
  uses interface SplitControl as AMControl;
}
implementation
{
  uint8_t counter = 0;

  event void Boot.booted()
  {
    call Timer0.startPeriodic( 250 );
    call Leds.led0Toggle();
  }

....

---------------------------------------


configuration BlinkAppC
{
}
implementation
{
  components MainC, BlinkC, LedsC;
  components new TimerMilliC() as Timer0;
  components ActiveMessageC;


  BlinkC -> MainC.Boot;

  BlinkC.Timer0 -> Timer0;
  BlinkC.Leds -> LedsC;
  BlinkC.AMControl -> ActiveMessageC.SplitControl;
}
----------------------------

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

Reply via email to