Virtual devices, Touch over IP and Touch Split
This document describes the virtual device, Touch over IP (toip) and Touch Split functions of UPDD V6 and V7 on Windows, macOS and Linux.
A virtual device is a UPDD device that does not physically exist. Touch over IP uses virtual devices to remap touches from a touch screen connected to one computer to other computers. Touch Split uses the same mechanism on a single computer to associate one touch screen with two or more desktops.
Virtual devices
The driver can utilise virtual devices. These devices do not physically exist but can be used to utilise features normally associated with a real device where none actually exist.
Virtual devices are listed in the software thus:
(In this example the driver supports a real device and a virtual device)
Because virtual devices are not devices that can be physically discovered they need to be added:
Once added they allow specific device functions to be performed. Because of the nature of virtual devices, the device shows OK (connected) even though there is no physical device attached. Once configured, a virtual device works like any other device, e.g. it can be associated with a monitor and calibrated, and its behaviour is defined by device settings.
Adding a virtual device
| Setting | Description |
| virtual_device | A device setting. This is a boolean value (0 = false, 1 = true). A value of 1 indicates that this is a virtual device. This is set automatically when a virtual device is manually added. |
The full list of settings is in the Driver settings reference.
In this example, the command upddutils supported is used to identify the id of the virtual device type (4), then adddevice adds an instance of this device:

The commands are described in the upddutils command line reference.
Virtual device examples
Virtual devices are best understood by the following examples.
Posting touch data from an external source into UPDD
A Windows user had a system receiving co-ordinate data from an external source via IP that they wanted to post into the UPDD driver to control the Windows desktop, using the UPDD data injection API. UPDD was installed with a virtual device and the device was associated with the appropriate monitor such that data posted to the device moved the pointer on the correct monitor.
A macOS user wanted to support gestures for an i2c device. They modified their i2c driver to inject co-ordinate data into the driver configured with a virtual device. More information is in Hardware interfaces: USB, HID and I2C.
Touch over IP and Touch Split
The Touch over IP and Touch Split functions described below use virtual devices to reroute touches from a physical touch screen.
Touch over IP
UPDD supports a fully integrated Touch over IP solution (toip).
This leverages the existing monitor segmentation support and virtual device capabilities to provide a flexible system to remap touches from one computer to other computers.
At the heart of this is the touch routing capability. A touch on any physical touch device can be routed to a virtual device on another computer. This routing is based on a monitor or monitor segment and so can be based on the position of touch on the screen.
The UPDD driver in use must support the physical device and also define a generic virtual device.
A number of settings are used to configure touch over IP or have specific uses in a toip configuration. They are described below; the full list of settings is in the Driver settings reference.
toip.routing
This is a global (nodevice) setting and is set with the UPDD command line interface, i.e. upddutils nodevice set toip.routing [routing settings].
A list of routes, one per line. A route comprises the following:
<source monitor>;<target computer>;<target device>
or
<source monitor:segment>;<target computer>;<target device>
To enter a multi-line value on the command line use upddutils nodevice set+ toip.routing [routing setting], which adds a line to the existing value (see How UPDD settings work).
Target computer can be the network name or IP address of the target computer.
For example
1:2;192.168.0.10;2 1:1;192.168.0.9;1
This will take touches on monitor 1, segment 2 and direct them to the device with handle 2 on the computer with the address 192.168.0.10, and touches on monitor 1, segment 1 to the device with handle 1 on the computer with the address 192.168.0.9.
If the toip.routing setting is defined then local touches on the routing system are disabled. This behaviour can be overridden by using localhost to direct touches to the local computer:
1:2;192.168.0.10;2 1:1;192.168.0.9;1 1:3;localhost;3
When a touch screen is connected to a system it will always be associated with a monitor number, as in normal use touches on the touch screen will be associated with a specific monitor. In toip these touches are rerouted based on this routing setting, so in this case the monitor number is used to identify the touch device.
Do NOT use the local computer's name or IP address in a route, as there must not be multiple references to the same computer with different names, and localhost is used internally.
toip.source
This is a device setting. With toip.source set to 1 the device is a toip source: it receives data from a physical device and forwards it as determined by the toip routing table, rather than delivering it to the operating system and to client programs.
upddutils device 1 set toip.source 1
toip.client
This is a setting in the bootstrap file (updd.ini), described in How UPDD settings work. This file does not exist by default and should be created with a text editor (Notepad, vi etc).
This setting must be entered in the [updd] section:
[updd] toip.client=1
This is a boolean value (0 = false, 1 = true). A value of 1 indicates that this computer is acting as a toip client, i.e. it expects to receive touches from another computer or computers. This opens the driver's TCP/IP port for non-local connections.
Firewall considerations
Firewall settings will need to be reviewed, both to allow the connection from other expected computers and to disallow connections from elsewhere.
The touch over IP function uses a TCP/IP connection on port 4146.
This is a listening port in each toip client, meaning that on each computer configured as a toip client incoming TCP/IP connections must be allowed for this port. The computer's firewall must be configured appropriately to allow this.
For example, with Windows Defender Firewall the following settings could be used:

Fixed scaling
fixed_scale_x and fixed_scale_y are device settings.
Each is a decimal number using US / UK local formatting (i.e. the decimal point is ".").
If set, these values override all calibration functions and provide a fixed scaling ratio. This is useful in situations where a normal calibration is not practical.
The entered value should be 65535 / <the maximum raw co-ordinate reported by the device in question>.
For example, if a controller outputs maximum decimal co-ordinates of 4095 then the value entered should be 16.0 (65535 / 4095 = 16).
To determine the largest value, use the command:
upddutils events 1
and touch the bottom right corner of the screen.
The values rx and ry (raw x and y) show the maximum values in hexadecimal, i.e. 7fff = 32767, fff = 4095, 7ff = 2047, 3ff = 1023.

Note: this only works for screens with the origin (0,0) at top left.
A complex example
The following is an example of a complex configuration and how to set it up.
The configuration
The UPDD package has 2 supported controllers: 1, the real touch device, and 2, the virtual device.
The real touch device is a frame that spans across 9 screens in a 3x3 grid and is physically connected to COMPUTERA.
There are 3 systems with the network names COMPUTERA, COMPUTERB and COMPUTERC.
The 3 leftmost screens are connected to COMPUTERA, the 3 middle screens to COMPUTERB and the 3 rightmost screens to COMPUTERC.

Setup steps
- Install UPDD on all 3 computers.
- On COMPUTERB and COMPUTERC identify these systems as toip clients.
Edit the UPDD bootstrap file with the contents
[updd]
toip.client=1
as per this Windows example
- On COMPUTERA, COMPUTERB and COMPUTERC find the UPDD device id of the virtual device type (002 in this example).
This will be the same if installing the same package on all 3 systems.

- On COMPUTERA, COMPUTERB and COMPUTERC create 3 virtual devices using the id from above (2).

- On COMPUTERA:
Set up the source segment map

Identify device 1 as the toip source. The toip source device receives data from a physical device and forwards it as determined by the toip routing table:
upddutils device 1 set toip.source 1
Because calibrating such a configuration is not readily supported, set up fixed x / y scaling. First find the maximum x / y raw values by touching the screen until you see the highest rx and ry values:

and apply the calculated scaling value (0x7fff = 32767; 65535 / 32767 = 2.0):


Set up the routing
(note: the real physical touch screen will be device 1 on the toip server, hence the routing is to virtual devices 2, 3 and 4)

- On all three systems associate the individual virtual devices with the appropriate monitor, as described in Monitors: identify, bind, metrics and segments.
Touch Split
The 'touch split' feature allows a single touch screen to be associated with two or more desktops, such as an infra-red touch frame surrounding two or more monitors.
| Y axis | X axis |
![]() | ![]() |
Desktops are normally individual monitors, but a desktop could consist of multiple monitors.
There are two touch split methods: one that scales the entire touch co-ordinate range to the complete desktop co-ordinate range, and one that uses segmentation to redirect touch input to the individual desktops.
Video scaling
This method rescales the touch co-ordinate range to the complete desktop range based on the number of individual desktops that are configured.
Two global settings, x_multiplier and y_multiplier, are used to specify the multiplier value to use. This value represents the number of configured desktops in the X or Y plane.
For this to work:
- Desktop layouts must be defined with increasing co-ordinate ranges, i.e. configured left to right (increasing X) or top to bottom (increasing Y).
- Desktop resolution must be identical in the multiplier plane (X or Y).
This function simply multiplies the x (or y) calibrated co-ordinate by the specified multiplier value. It applies only when the touch interface in use is not bound to individual operating system monitors, so it does not apply to the Windows touch interface.
In this example, with the touch screen spanning three desktops configured left to right, the touch co-ordinates are scaled to a co-ordinate range of 0 - 11519 and posted to the appropriate desktop based on the multiplier setting:
| Monitor 1 | Monitor 2 | Monitor 3 |
| Left: 0 Top: 0 Right: 3839 Bottom: 2159 | Left: 3840 Top: 0 Right: 7679 Bottom: 2159 | Left: 7680 Top: 0 Right: 11519 Bottom: 2159 |
To cater for the above, x_multiplier would be set to 3 in the UPDD Console, Advanced, Settings, or using the command upddutils nodevice set x_multiplier 3.
When the calibration procedure is run, the calibration points will span the entire system co-ordinate range, so will cover all desktops.
If this method does not achieve the desired results or does not offer perfect calibration, then try the segment redirection method described below.
Segment redirection
This method uses UPDD segmentation to direct touches to the individual desktops and treat them as separate entities. It uses the routing option of Touch over IP, but in this case only on the source computer. The example above can be used with the following variations:
- It is not necessary to set toip.client.
- In the example configuration, only the setup for COMPUTERA is required.
The physical touch frame will be plugged in and be listed as device handle 1 in the UPDD software (see the Devices list in the UPDD Console).
The following commands are a working example for a 2x1 configuration on UPDD V7 (Windows and macOS). They can be pasted as one block into a terminal or command window. Copying from a web page may convert straight quotes to "smart quotes", which cannot be used in commands: check the quotes after pasting.
On Windows, first change to the UPDD folder: cd "\Program Files\UPDD"
upddutils device 1 set toip.source 1 upddutils adddevice 1 upddutils device 2 set virtual_device 1 upddutils adddevice 1 upddutils device 3 set virtual_device 1 upddutils device 1 set source_segment_map 2x1 upddutils nodevice set toip.routing "1:1;localhost;2" upddutils nodevice set+ toip.routing "1:2;localhost;3" upddutils device 2 set monitor_number 1 upddutils device 3 set monitor_number 2 upddutils device 2 set identified 1 upddutils device 3 set identified 1
What each command does:
| Command | Purpose |
upddutils device 1 set toip.source 1 | Informs the driver that touches will be directed to virtual devices via toip routing and not sent to the OS directly. |
upddutils adddevice 1 | Adds a 2nd (then a 3rd) touch device based on the touch device with device handle 1. |
upddutils device 2 set virtual_device 1 | Informs the driver this is a virtual device. UPDD will now list 3 touch devices, all of which will show OK. |
upddutils device 1 set source_segment_map 2x1 | Informs the driver of the touch screen segment layout (2x1 or 1x2 depending on layout). |
upddutils nodevice set toip.routing "1:1;localhost;2"upddutils nodevice set+ toip.routing "1:2;localhost;3" | Informs the driver how to route the touches from the real touch screen to the virtual touch screens: monitor 1, segment 1 to device 2 on the local host; monitor 1, segment 2 to device 3. |
upddutils device 2 set monitor_number 1upddutils device 3 set monitor_number 2 | Associates the virtual touch devices with individual real monitors / desktops. |
upddutils device 2 set identified 1upddutils device 3 set identified 1 | Informs the driver that monitor identification has been set. |
With these settings in place, it is important to restart the UPDD Daemon, by rebooting the system or by stopping and starting the daemon:
| OS | Commands |
| Windows | taskkill /f /im "UPDD Daemon.exe""UPDD Daemon.exe" |
| macOS | upddprocesses stop -aupddprocesses start -a |
With this in place, each individual monitor must be calibrated via its own virtual device. This means that the exact positioning of the touch frame and the separation of the screens (e.g. due to mountings or bezels) is compensated for by the software.
Segment redirection in UPDD V6 (Windows)
This feature was originally developed in UPDD V6 for Windows. For UPDD V6 on Windows run the commands:
cd "\Program Files (x86)\UPDD" upddutils adddevice 1 upddutils adddevice 1 upddutils device 2 set virtual_device 1 upddutils device 3 set virtual_device 1 upddutils set source_segment_map 2x1 upddutils nodevice set+ toip.routing "1:1;localhost;2" upddutils nodevice set+ toip.routing "1:2;localhost;3" upddutils device 2 set monitor_number 1 upddutils device 3 set monitor_number 2
The two adddevice commands add a 2nd and 3rd touch device based on device 1; UPDD will then list 3 touch devices, device 1 as OK and devices 2 and 3 as NOK (as these do not really exist) until they are set as virtual devices. source_segment_map (2x1 or 1x2 depending on layout) informs the driver of the touch screen segment layout; the toip.routing lines route monitor 1, segment 1 to device 2 and segment 2 to device 3 on the local host; monitor_number associates each virtual device with a real monitor.
With these settings in place, restart the driver by rebooting the system or by stopping and starting the driver processes, as described in What UPDD installs on Windows. All three devices should then show as OK in the UPDD Console.
Touch Split with UPDD Commander
The examples above cater for the driver being responsible for posting touch data into the OS.
However, in some situations, especially on macOS where UPDD Commander is used to handle multi-touch gestures, it is necessary to indicate that the touch data, delivered to Commander via the driver's API, is in fact coming from a single physical touch device.
The device setting toip.treat_as_device is used for this purpose. If set, touch events delivered to the API for the device report this value as the device handle instead of the real device handle. This is a UPDD V7 setting only.
In the examples above, where 2 virtual devices have been created (devices 2 and 3) to represent the 2 physical monitors / desktops, direct all touches to Commander as though they are coming from a single device:
upddutils device 2 set toip.treat_as_device 2 upddutils device 3 set toip.treat_as_device 2
This will allow you to perform gestures on the single physical touch screen.
For review
1. The V7 command list used to be offered as a download, http://v6download.touch-base.com/downloads/TOIP/TOIP2Devices.txt, to preserve the quotes. That file still has the wrong argument order on line 6 (upddutils set device 1 source_segment_map 2x1; correct: upddutils device 1 set source_segment_map 2x1, utils/main.cpp 4699/4826), so the link was not carried over. Correct the file and restore the link, or keep the <pre> block above.
2. The Touch over IP screenshots (toipvirtual, toipvirtualid, toipexample2-6, toipbootstrap) and the virtual device screenshots are UPDD V6 captures (folder V6/TOIP). The commands are unchanged in UPDD V7, but a V7 capture would show the 64-bit C:\Program Files\UPDD folder.
3. upddutils help toip.routing (07.01.235) describes a local line and \n to separate lines on the command line. Neither is handled in 7.1: the daemon accepts only three-field routes (daemon/mymainwindow.cpp:1178-1189) and the \n conversion is commented out (1170-1175). The page documents localhost routes and set+ only; the help text needs correcting.

