Hi Dhivya,
 
I won't be able to help you with the compile errors in your app, but I
can point you to sample apps for MTS400.
If you are using MoteWorks, the following apps that can be used with
MTS400 board.
C:\Crossbow\cygwin\opt\MoteWorks\apps\xsensor\XSensorMTS400 - single hop
version to be used with TOSBase as base station app
C:\Crossbow\cygwin\opt\MoteWorks\apps\xmesh\XMTS400 - multi-hop version
to be used with XMeshBase as a base station app
 
Please refer to MoteWorks getting started guide (Chapters 6 and 7) below
for usage details.
http://www.xbow.com/Support/Support_pdf_files/MoteWorks_Getting_Started_
Guide.pdf
 
I hope that helps,
Giri


________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dhivya
G
Sent: Monday, March 31, 2008 9:27 PM
To: TinyOS_Help
Subject: [Tinyos-help] Error while compiling



Hello all,

          I am running into trouble while trying to use the light sensor
on the MTS400 sensor board.I am using Micaz motes and MIB520 programming
board.  Does anyone have some example code on how to take a light
measurement on the mts400 sensor board?  I am attempting to use the
TaosPhoto component that comes with the mts400, but I get the following
error:


In component `MyApp':
MyApp.nc:46: no match
make: *** [exe0] Error 1



My MyApp.nc file looks like this:


#include "appFeatures.h"
includes SensorboardApp;
configuration MyApp {
}
implementation {
    components Main, MyAppM, TimerC, LedsC, GenericComm,TaosPhoto;
    Main.StdControl->MyAppM.StdControl;    
    Main.StdControl->TimerC.StdControl;   
    Main.StdControl->GenericComm.Control;
MyAppM.Timer->TimerC.Timer[unique("Timer")];  
    MyAppM.Leds->LedsC.Leds;
MyAppM.SendMsg->GenericComm.SendMsg[AM_XSXMSG];
MyAppM.PhotoControl->TaosPhoto.SplitControl;  
    MyAppM.Light->TaosPhoto.ADC[0];   
    MyAppM.Light->TaosPhoto.ADC[1];
}    



And the first part of my MyAppM.nc file is:

module MyAppM {   
    provides {
        interface StdControl;
    }   
    uses {
        interface Timer;
        interface Leds;
        interface SendMsg;
        interface StdControl as PhotoControl;
        interface ADC as Light;
    }
}
   Thanks in advance.
-- 
G.Dhivya 
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to