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
