[Tinyos-help] 'No Match Error'

Moni GV tamuzija at yahoo.es
Thu Apr 30 03:10:26 PDT 2009


Hi everyone,

I'm using TOSSIM. The problem is similar to the mentioned below...
What I want to do now is send a message to a specific mote. I've found out how to send boradcast messages, where the structures to define an AMMessage, and staff useful, but I only get compilation errors, like: no-match or ActiveMessageAddress component not found. Right down I write a piece of code, that I'm sure causes the errors.

Maybe I'm using the wrong components?? Any Ideas!!?
Please help!
thank you in advance!
Monica

CODE:
At the module I'm doing something like this:
-------------------------------------------------------------------
module PFM_topo2C @safe() {
  uses {
    //other interfaces
    interface ActiveMessageAddress;
  }
}

implementation {

  am_addr_t nodeAddress;
  //other variables


  event void MilliTimer.fired() {
  
     nodeAddress = call ActiveMessageAddress.amAddress();
     //other instructions that work
     // call AMSend.send(AM_BROADCAST_ADDR, &packet, sizeof(radio_count_msg_t)), command used to send a broadcast message

 }
// other events
}
-------------------------------------------------------------------
At the Interface of the module I do something like this:

configuration PFM_topo2AppC {}
implementation {
   components MainC, PFM_topo2C as App, LedsC;
   components ActiveMessageAddressC;
   //other components

   App.ActiveMessageAddress -> ActiveMessageAddressC;
}



--- El vie, 24/4/09, Abhishek Phadnis <abhishek.phadnis at gmail.com> escribió:
De: Abhishek Phadnis <abhishek.phadnis at gmail.com>
Asunto: [Tinyos-help] 'No Match Error'
Para: tinyos-help at millennium.berkeley.edu
Fecha: viernes, 24 abril, 2009 11:39

hey all,

have a small program which we trying to implement..its based on the sense program..have debugged most of the errors
and the last remaining on is

 CommonSenseAppC.nc:15: no match
make: *** [exe0] Error 1



the line in question is "  CommonSenseC.Read -> DemoSensorC; "

now we've no idea how to proceed..do we need the hardware for this? we only have the avrora simulator to work with..



thanks

abhishek

_______________________________________________
Tinyos-help mailing list
Tinyos-help at millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090430/100cc8f0/attachment-0001.htm 


More information about the Tinyos-help mailing list