On Thu, Jul 14, 2011 at 6:44 PM, Geo Gkolfin <geo198...@gmail.com> wrote:
> Hello,
> I still cannot get it! In the beginning I had included DemoSensorC component
> wired with  Read interface and everything worked fine. In order to use the
> light sensor instead I replaced (at MineAppC.nc):
> components new DemoSensorC() as Sensor;
> with:
> components new PhotoC();
> and also replaced:
> App.Read -> Sensor;
> with:
> App.Read -> PhotoC;
> At MineC.nc I have:
> uses interface Read<uint16_t>;

That seems good.

> I execute "make iris" and I get:
> In component `ThisAppC':
> ThisAppC.nc:18: component PhotoC not found
> ThisAppC.nc:18: component `PhotoC' is not generic
> ThisAppC.nc:29: no match
> make: *** [exe0] Error 1
> The tinyos-2.1.0/tos/sensorboards/mts300/PhotoC.nc looks different than the
> .nc files in tos/interfaces directory and it confuses me a lot, but at least
> it describes PhotoC as generic:
> "generic configuration PhotoC()"

The error message is confusing, but the point is "not found".

> I am very confused. What do I miss? Must I add something in Makefile too?

Yes, that's your problem. Try adding this line:

SENSORBOARD=mts300

Andris

> Any help would be appreciated!
> Thank in advance,
> Georgia
>
>
>
>
>
>
> 2011/7/11 Bíró András <bband...@gmail.com>
>>
>> 2011/7/11 Geo Gkolfin <geo198...@gmail.com>:
>> > So I will use it as described in tinyos-2.1.0/tos/sensorboards, right?
>>
>> I don't have this file, so I don't know.
>> But check the /apps/test library, it's a good place to start, if
>> there's no documentation.
>> eg. mts300: /apps/tests/mts300/PhotoTemp/
>>
>> Andris
>> Q
>> > Thank you very much!!!
>> > Georgia
>> >
>> > 2011/7/11 Bíró András <bband...@gmail.com>
>> >>
>> >> Then it depends on the sensorboard: If you're using mts3xx or mts1xx,
>> >> it's called PhotoC. On mts400 it's called Taos2550C.
>> >>
>> >> Andris
>> >>
>> >> On Mon, Jul 11, 2011 at 8:14 PM, Geo Gkolfin <geo198...@gmail.com>
>> >> wrote:
>> >> > I am using iris motes...
>> >> > _______________________________________________
>> >> > Tinyos-help mailing list
>> >> > Tinyos-help@millennium.berkeley.edu
>> >> >
>> >> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>> >> >
>> >
>> >
>
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>

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

Reply via email to