Ok, I see what you are doing. You should NOT use the PhotoTempDeviceC. Either use the SensorMts300C component, or one of the components inside it. For you that is new PhotoC() or new TempC(). Also, there is no StdControl for any of these, just use the read interface. Miklos
On Thu, Apr 28, 2011 at 10:05 PM, Kendra Lukowski <[email protected]> wrote: > The exact error message is: > > In component 'MyTestAppC': > MyTestAppC.nc:24: no match > > I have attached my application and module files stripped of everything > except for the parts dealing with the sensor. > > Kendra > > On Thu, Apr 28, 2011 at 2:49 PM, Miklos Maroti <[email protected]> > wrote: >> >> What is the exact error message? Can you send me a zip of your >> application file (preferably strip away everything unrelated). Miklos >> >> On Thu, Apr 28, 2011 at 9:42 PM, Kendra Lukowski <[email protected]> >> wrote: >> > Miklos, >> > >> > This did not make a difference. >> > >> > Kendra >> > >> > On Thu, Apr 28, 2011 at 2:18 PM, Miklos Maroti >> > <[email protected]> >> > wrote: >> >> >> >> Hi Kendra, >> >> >> >> Look at the PhotoTempDeviceC, it has a few ifdefs. Basically, you have >> >> to specify what version of the sensorboard you have. Add this to your >> >> makefile: >> >> >> >> CFLAGS += -DMTS300CB >> >> >> >> (or select the revision you have). >> >> >> >> Miklos >> >> >> >> On Thu, Apr 28, 2011 at 9:04 PM, Kendra Lukowski >> >> <[email protected]> >> >> wrote: >> >> > I have installed the tinyos svn and I can make/install sample apps >> >> > such >> >> > as >> >> > blink. When I tried to run MyTest the way I had it configured >> >> > originally >> >> > it >> >> > gave the following errors: >> >> > >> >> > In component `PhotoTempDeviceC.TempControl': >> >> > >> >> > >> >> > /home/Kendra/local/src/tinyos-2.x/tos/sensorboards/mts300/PhotoTempControlP.nc: >> >> > In function `SplitControl.stop': >> >> > >> >> > >> >> > /home/Kendra/local/src/tinyos-2.x/tos/sensorboards/mts300/PhotoTempControlP.nc(PhotoTempDeviceC.TempControl):38: >> >> > Power.clr not connected >> >> > >> >> > >> >> > /home/Kendra/local/src/tinyos-2.x/tos/sensorboards/mts300/PhotoTempControlP.nc(PhotoTempDeviceC.TempControl):39: >> >> > Power.makeInput not connected >> >> > >> >> > >> >> > /home/Kendra/local/src/tinyos-2.x/tos/sensorboards/mts300/PhotoTempControlP.nc: >> >> > In function `PhotoTempResource.granted': >> >> > >> >> > >> >> > /home/Kendra/local/src/tinyos-2.x/tos/sensorboards/mts300/PhotoTempControlP.nc(PhotoTempDeviceC.TempControl):22: >> >> > Power.makeOutput not connected >> >> > >> >> > >> >> > /home/Kendra/local/src/tinyos-2.x/tos/sensorboards/mts300/PhotoTempControlP.nc(PhotoTempDeviceC.TempControl):23: >> >> > Power.set not connected >> >> > >> >> > When I tried to wire in PhotoTempDeviceC with the following code I >> >> > get a >> >> > "no >> >> > match" error on the line with MyTestC.TempControl -> >> >> > PhotoTempDeviceC. I >> >> > have tried different versions and have not had any luck. What do I >> >> > need >> >> > to >> >> > do to fix my problem, or where can I find examples showing how to >> >> > wire >> >> > the >> >> > mts300 sensorboard? >> >> > >> >> > configuration MyTestAppC{ >> >> > ... >> >> > components new TempC(); >> >> > components new PhotoC(); >> >> > components new AMSenderC(AM_MYTESTMSG); >> >> > components new AMReceiverC(AM_MYTESTMSG); >> >> > components PhotoTempDeviceC; >> >> > >> >> > ... >> >> > MyTestC.Timer -> TimerMilliC; >> >> > MyTestC.Temp -> TempC; >> >> > MyTestC.Photo -> PhotoC; >> >> > MyTestC.TempControl -> PhotoTempDeviceC; >> >> > MyTestC.Mic -> MicC; >> >> > MyTestC.Packet -> AMSenderC; >> >> > } >> >> > >> >> > module MyTestC{ >> >> > ... >> >> > uses interface SplitControl as TempControl; >> >> > uses interface AMSend; >> >> > uses interface Leds; >> >> > uses interface Read<uint16_t> as Photo; >> >> > uses interface Read<uint16_t> as Mic; >> >> > uses interface Read<uint16_t> as Temp; >> >> > uses interface Timer<TMilli>; >> >> > } >> >> > >> >> > Thank you, >> >> > >> >> > Kendra >> >> > >> >> > >> >> > On Mon, Apr 25, 2011 at 4:07 PM, Miklos Maroti >> >> > <[email protected]> >> >> > wrote: >> >> >> >> >> >> Well, then install the latest version from here, it might solve your >> >> >> problem: >> >> >> >> >> >> http://code.google.com/p/tinyos-main/ >> >> >> >> >> >> Miklos >> >> >> >> >> >> On Mon, Apr 25, 2011 at 10:55 PM, Kendra Lukowski >> >> >> <[email protected]> wrote: >> >> >> > I installed tinyos 2.1. >> >> >> > >> >> >> > Kendra >> >> >> > >> >> >> > On Mon, Apr 25, 2011 at 4:18 AM, Miklos Maroti >> >> >> > <[email protected]> >> >> >> > wrote: >> >> >> >> >> >> >> >> Yes, or no? Did you install tinyos 2.1 or you have used the svn >> >> >> >> command? >> >> >> >> Miklos >> >> >> >> >> >> >> >> On Mon, Apr 25, 2011 at 1:37 AM, Kendra Lukowski >> >> >> >> <[email protected]> >> >> >> >> wrote: >> >> >> >> > I believe so. >> >> >> >> > >> >> >> >> > Kendra >> >> >> >> > >> >> >> >> > On Sun, Apr 24, 2011 at 2:38 PM, Miklos Maroti >> >> >> >> > <[email protected]> >> >> >> >> > wrote: >> >> >> >> >> >> >> >> >> >> Hi Kendra, >> >> >> >> >> >> >> >> >> >> Do you use the latest SVN version from tinyos-main? >> >> >> >> >> >> >> >> >> >> http://code.google.com/p/tinyos-main/ >> >> >> >> >> >> >> >> >> >> Best, >> >> >> >> >> Miklos >> >> >> >> >> >> >> >> >> >> On Sun, Apr 24, 2011 at 4:03 AM, Kendra Lukowski >> >> >> >> >> <[email protected]> >> >> >> >> >> wrote: >> >> >> >> >> > I have a Mts 300 sensor board. I am getting 0 reading for >> >> >> >> >> > temp. >> >> >> >> >> > I >> >> >> >> >> > have >> >> >> >> >> > researched and have changed the >> >> >> >> >> > >> >> >> >> >> > TempControl.Power -> MicaBusC.Int2; >> >> >> >> >> > >> >> >> >> >> > to >> >> >> >> >> > >> >> >> >> >> > TempControl.Power -> MicaBusC.PW0; >> >> >> >> >> > >> >> >> >> >> > per previous posts, but it had no effect. >> >> >> >> >> > >> >> >> >> >> > Any help would be appreciated. >> >> >> >> >> > >> >> >> >> >> > Kendra >> >> >> >> >> > >> >> >> >> >> > _______________________________________________ >> >> >> >> >> > Tinyos-help mailing list >> >> >> >> >> > [email protected] >> >> >> >> >> > >> >> >> >> >> > >> >> >> >> >> > >> >> >> >> >> > >> >> >> >> >> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >> >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> > >> >> >> > >> >> > >> >> > >> > >> > > > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
