The Device Manager provides support for managing users and devices. A device can be manually added through a wizard. The first step is to select a connection type. The devices are detected by the corresponding discovery services. The following sections explain the different configuration files.
Each connection has a name which is displayed in the wizard and a discovery service represented by the name of the class that implements the discovery service.
<connections> <connection> <name>Bluetooth</name> <discoveryService> org.ximtec.igesture.tool.view.devicemanager.discoveryservice.BluetoothDeviceDiscoveryService </discoveryService> </connection> <connection> <name>Tuio 2D</name> <discoveryService> org.ximtec.igesture.tool.view.devicemanager.discoveryservice.Tuio2DDeviceDiscoveryService </discoveryService> </connection> <connection> <name>Tuio 3D</name> <discoveryService> org.ximtec.igesture.tool.view.devicemanager.discoveryservice.Tuio3DDeviceDiscoveryService </discoveryService> </connection> </connections>
Each connection type can support multiple devices. For example, different kinds of devices can be connected through a Bluetooth connection such as the Wii Remote, digital pens and mobile phones. Each kind of device can be implemented by a different class. In order to instantiate the right class if a device was detected by the discovery service a mapping must be defined.
The configuration below is used for Bluetooth devices. Most Bluetooth devices have a minor and major device class to identify the type of device. An example major device class is a computer, while the minor device class corresponding to that major class can be desktop or laptop. However not all devices have been identified with a major and minor device class, therefore the name of the device is used instead. This does mean that all devices of that type should have the same name or each device has to be added separately to that list. The class to instantiate is also mentionned.
<devices> <device> <minor>4</minor> <major>1280</major> <name>Nintendo RVL-CNT-01</name> <class>org.ximtec.igesture.io.wiimote.WiiReader</class> </device> <device> <minor>0</minor> <major>1536</major> <name>Pen LZ7064501GN</name> <class>org.ximtec.igesture.tool.view.devicemanager.BlueToothReader</class> </device> <device> <minor>0</minor> <major>0</major> <name>DP-201</name> <class>org.ximtec.igesture.tool.view.devicemanager.BlueToothReader</class> </device> </devices>