
You are here: MyURC.org > Tools & Prototypes > UCHj > tutorial > UCHj Configuration
UCHj Configuration
Page Contents:
File Location
The UCHj configuration file is located at:
[TOMCAT_HOME]/webapps/UCH/WEB-INF/uch.config.
UCH Properties
Set the properties of UCH as appropriate. You have to change these settings only if you are developing a new version of UCHj.
<uch>
<prop>
<name>http://purl.org/dc/elements/1.1/title</name>
<value>Universal Control Hub</value>
</prop>
<prop>
<name>http://purl.org/dc/terms/modified</name>
<value>2008-08-18T00:00:00Z</value>
</prop>
<prop>
<name>http://myurc.org/ns/res#type</name>
<value>http://myurc.org/TR/uch/</value>
</prop>
<prop>
<name>http://purl.org/dc/terms/conformsTo</name>
<value>http://myurc.org/TR/uch-20080811/</value>
</prop>
</uch>
TDM Properties
UCHj will load the TDMs from the local file system, as specified by the <tdm> entries under <tdmList>.
Set the properties for each TDM, for example:
<tdmList>
<tdm>
<prop>
<name>http://myurc.org/ns/res#dynamicLibClass</name>
<value>edu.wisc.trace.uch.tdm.upnp.UpnpTDM</value>
</prop>
<prop>
<name>http://myurc.org/ns/res#type</name>
<value>http://myurc.org/restypes#tdm</value>
</prop>
<prop>
<name>http://purl.org/dc/elements/1.1/title</name>
<value>UPnP-TDM</value>
</prop>
<prop>
<name>http://purl.org/dc/terms/modified</name>
<value>2008-08-18T00:00:00Z</value>
</prop>
<prop>
<name>http://purl.org/dc/terms/conformsTo</name>
<value>http://myurc.org/TR/uch-20080811/</value>
</prop>
</tdm>
</tdmList>
Multiple TDMs can be added under <tdmList> for disovering devices of different networking platforms.
TA Properties
You can tell the UCHj what TAs are available, by the <ta> entries under <taList>.
Set the properties for each TA, for example:
<taList>
<ta>
<prop>
<name>http://myurc.org/ns/res#dynamicLibClass</name>
<value>edu.wisc.trace.uch.ta.upnpsatellitebox.UpnpSatelliteBoxTAFacade</value>
</prop>
<prop>
<name>http://myurc.org/ns/res#type</name>
<value>http://myurc.org/restypes#ta</value>
</prop>
<prop>
<name>http://purl.org/dc/terms/conformsTo</name>
<value>http://myurc.org/TR/uch-20080811/</value>
</prop>
<prop>
<name>http://myurc.org/ns/res#deviceType</name>
<value>urn:schemas-upnp-org:device:satellitebox:1</value>
</prop>
<prop>
<name>http://myurc.org/ns/res#devicePlatform</name>
<value>UPnP</value>
</prop>
<prop>
<name>http://purl.org/dc/terms/modified</name>
<value>2008-08-18T00:00:00Z</value>
</prop>
<prop>
<name>http://myurc.org/ns/res#tdUri</name>
<value>satellitebox/satellite_box.td</value>
</prop>
</ta>
</taList>
Multiple TAs can be added under <taList> for controlling different devices in the Network.
UIPM Properties
You can tell the UCHj what UIPMs are available, by the <uipm> entries under <uipmList>.
Set the properties of each UIPM, for example:
<uipmList>
<uipm>
<prop>
<name>uipmDLL</name>
<value>edu.wisc.trace.uch.uipm.urchttp.UrcHttpUIPM</value>
</prop>
<prop>
<name>http://myurc.org/ns/res#type</name>
<value>http://myurc.org/restypes#uipm</value>
</prop>
<prop>
<name>http://purl.org/dc/terms/conformsTo</name>
<value>http://myurc.org/TR/uch-20080811/</value>
</prop>
<prop>
<name>http://purl.org/dc/terms/modified</name>
<value>2008-08-18T00:00:00Z</value>
</prop>
<prop>
<name>http://purl.org/dc/elements/1.1/title</name>
<value>URC-HTTP UIPM</value>
</prop>
<prop>
<name>http://myurc.org/ns/res#forTargetName</name>
<value>*</value>
</prop>
<prop>
<name>http://myurc.org/ns/res#urlBasePath</name>
<value>/urchttp</value>
</prop>
<prop>
<name>http://myurc.org/ns/res#urlPortNo</name>
<value>80</value>
</prop>
<prop>
<name>http://res.myurc.org/uipm/urc-http#tcpIpPortNo</name>
<value>8888</value>
</prop>
<prop>
<name>http://myurc.org/ns/res#protocolShortName</name>
<value>URC-HTTP</value>
</prop>
</uipm>
</uipmList>
Multiple UIPMs can be added under <uipmList> for implementing different protocols for remote control clients (controllers).
Last update: Parikshit Thakur & Team, 2008-11-04