Dear Kevin Klues,

Yes, there is a mismatch between ResouceController and ResouceDefaultOwner
in the file AccelConfigP.nc, which was downloaded from CVS of tinyos2.0. I
just revised it and there is no compiling error.

I use Tinyos2.0 which downloaded 2 weeks ago. The sensorboard is MTS310, and
the wireless board is micaz. I use mib520 as the getway.

You explain the resource and powermanger very clear. Thank you.

Best regards,
Fangming


On 5/9/07, Kevin Klues <[EMAIL PROTECTED]> wrote:

There seems to be a mismatch between your use of the
ResourceController and ResourceDefaultOwner interfaces.  In the
tinyos.2.0 release, ResourceController was the interface provided by
the Arbiter components to the PowerManager components for taking
control of a resource once it had gone idle.  Since this time, the
ResourceController interface has been replaced by the richer (more
intuitive) ResourceDefaultOwner interface.

A mismatch could appear if....

(1) you are trying to wire components implemented since the 2.0
release to the PowerManager components provided in that release.

(2) you are trying to wire components implemented for the 2.0 release
to the power managers that emerged after the release.

Which release version of of TinyOS are you using (or are you checking
out from cvs)?  Which platform are you trying to compile for?

I'm not sure what you mean by "I am confused that why a AD
transforming need so much component and interface".  Ideally, you
should never have to deal with the sensors at this level -- all of the
complications of performing AD conversions should be abstracted away.

If you are trying to build up your own resource that uses the resource
management architecture for your own custom sensor, then you should
refer to TEPS 108 and 115, as well as the tutorial provided here:


http://tinyos.cvs.sourceforge.net/*checkout*/tinyos/tinyos-2.x/doc/html/tep108.html

http://tinyos.cvs.sourceforge.net/*checkout*/tinyos/tinyos-2.x/doc/html/tep115.html
http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/lesson8.html

Kevin


Kevin

On 5/8/07, Fangming Zhang <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have been confused by power and resource in Tinyos2.0. There is an
erro
> (in 'AccelConfigP.nc') said AccelConfigP.nc:33: cannot find
> `ResourceDefaultOwner''. This code line is:
>
> PowerManager.ResourceDefaultOwner -> Arbiter;
>
> When I get rid off this line, it gave following errors:
> In component `AccelConfigP.PowerManager.PowerManager':
> /opt/tinyos-2.x/tos/lib/power/PowerManagerP.nc: In function
> `SplitControl.startD
> one':
> /opt/tinyos-2.x/tos/lib/power/PowerManagerP.nc(
AccelConfigP.PowerManager.PowerMa
> nager):93: ResourceController.release not connected
>
> I am confused that why a AD transforming need so much component and
> interface? It become very difficult to use it.
>
> Regards,
> Fangming
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
>
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>


--
~Kevin

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

Reply via email to