Page Content:
Please refer to the UCH specification.
Your TDM must implement the ITDM interface, and may use any method of the ITDMListener interface.
ITDM has the following methods:
init() is called only once by the UCH prior to any other method of TDM. UCH instantiates TDMs for starting discovery of particular device(s) for certain networking platforms.
Will start the discovery engine for discovering different devices in the network supporting the protocol for which the TDM has been written.
On discovering the device, a targetProps map has to be created with following keys:
This target property map has to be passed to the method - string ITDMListener.targetDiscovered(Map<String, Object> targetProps, Map<String, Object> taProps). Here the 'taProps' are properties of TargetAdapter, if the TDM knows the details of the TargetAdapter already.
The UCH shall return the targetId (string) that it has assigned the newly discovered target. This may be identical to the property ‘http://myurc.org/ns/res#instanceId’ in targetProps, if globally unique. NULL if the UCH does not instantiate a Target Adapter for this target, and does not want to be notified when the target will be discarded.
Using the above properties, UCH will search for the appropriate TA for the discovered target and accordingly initialize the TA and register the discovered target. Also the above target property map will be passed to the TA from the UCH.
TDM also needs to implement proper mechanism for detecting that a target has been discarded from the network. On detection, the TDM has to call the method void ITDMListener.targetDiscarded(string targetId)
Stop discovering devices in the network.
Get Property Map of the TDM, which was passed to the TDM when initialized.
Clear the memory held by the TDM.
Please refer to How to create a dynamic library.
Please refer to How to Modify the UCH Configuration File.
Last update: Gottfried Zimmermann, 2008-06-25