well....heck...

My project is under contrib/xbow/apps (I assume I guessed right about you?)

I have in my main config file:

 components Main, ..., CC1000ControlM,  ... ;
 RoboMsgM.CC1000Control -> CC1000ControlM;
 ...

In the RoboMsgM.nc file:

  uses
  {
        interface CC1000Control;
        ...
  }

and in a method in that file:

  call CC1000Control.SetRFPower( 0xff );


My makefile has these paths set:

  PFLAGS= -I$(XBOWROOT)/platform/mica2 -I../../tos/interfaces -I../../tos/system

and in some automagical way it picks up
    ...\tinyos-1.1.7\tos\platform\mica2/CC1000Control.nc
I have no idea how it works however...


I also very presciently put a comment in my code about the power arg values:
                // set Xmit strength if requested
                //       mica2 916 Mhz  -20          0x02 --   2
                //                      -10          0x09 --   9
                //                        0 (1mw)    0x80 -- 128
                //                        5          0xFF -- 255


Hope some of this helps...
MS


Hamdi Roumani wrote:
Its still not working for me.

I get Bcast.nc 53 cannot find 'CC1000ControlM' which is the line:

BcastM.CC1000ControlM -> CC1000ControlM;

I'd like to get it to work ANYWAY :-) so if there is another way to do it let me know.

Thanks for the help!
--Regards,
Hamdi


Quoting Michael Schippling <[EMAIL PROTECTED]>:

As far as I understand it, config wiring only works at the
full interface level, not at the individual function level.

Put something like this in your config:

    BcastM.CC1000ControlM -> CC1000ControlM;

and then use it in your code like:

    CC1000ControlM.SetRFPower( xyz );

MS


Hamdi Roumani wrote:
This might be a silly question but i'd like to use
CC1000ControlM.SetRFPower

I included the CC1000ControlM commpontent and in the M file. I also included the following wiring:

BcastM.setPower -> CC1000ControlM.SetRFPower
interface setPower in the M file.

But i get the error: interface setPower not found:
C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/avrmmote/HPLIint.nc:51: expected interface 'setPower', but got interface ' HPLint'

and also the error

cannot find setPower.

Any help would be greats

--Regards,
Hamdi





----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to