UPDD Test

This document describes UPDD Test, the program used to test that touch input is working as expected, in UPDD V6 and V7 on Windows, macOS and Linux.

The current UPDD Test program described below is used in Windows and macOS. Linux uses a slightly older version that does not have all the features described.

Since April 2024 the UPDD client programs prioritise touch API usage to avoid a clash of touch control between UPDD Annotate, UPDD Commander, UPDD Test and the driver, so only one test program can run at a time and others are blocked. UPDD Annotate is disabled while UPDD Test is open. Co-ordinate input from all UPDD supported devices is shown in the inking area of the single test dialog, irrespective of its desktop location.

Starting UPDD Test

UPDD Test, if installed, can be invoked from the UPDD Daemon menu by selecting the Test option (see UPDD Daemon (tray and menu bar)), or directly from the Utilities folder under macOS or the UPDD application folder under Windows and Linux. If the Test option is missing, the utility is not installed. Source code for UPDD Test is available, see API example programs.

You can also run the test program directly if required:

OSCommand
Windowscd "C:\Program Files\UPDD"
"UPDD Test.exe"
macOS/Applications/Utilities/UPDD\ Test.app/Contents/MacOS/UPDD\ Test
Linux/opt/updd/upddenv /opt/updd/UPDD\ Test

Options menu

The test program can render the touches from the driver's API, the TUIO interface, native touch events or actual mouse emulation, as selected in the Options menu.

Whilst testing, mouse emulation (cursor movement, clicks etc) will be enabled unless you explicitly select it to be disabled. Emulation can be performed by the driver (mouse or touch interface) or by UPDD Commander. You will be warned that you will need another pointer device (e.g. a mouse) to use the system if neither emulation option is enabled. If selecting the gesture option, UPDD Commander must be active and configured to perform mouse emulation (e.g. One Finger Drag set to Click and Drag).

OptionDescription
Show Log WindowShows the touch log (see below).
Enable Mouse Port InterfaceMouse emulation by the driver's pointer interface.
Render Events from UPDD API InterfaceInks touches received on the driver's API.
Render Touches from TUIO InterfaceInks touches received via TUIO.
Toggle Full ScreenSwitches full screen mode on and off.
Render Mouse EventsInks the mouse events generated by mouse emulation.
Render Touches from QtInks native touch events received by the program.
Enable Gesture ProcessingMouse emulation by UPDD Commander.
Create Diagnostics...Captures a diagnostics package (see below).

What UPDD Test shows

The source of the inking is described below:

SourceDescription
UPDD APIShows the co-ordinate data received on the driver's API. The ink line is labelled UPDD device N touch N. When showing touches from the driver's API they can either be scaled into the drawing area (touches from the entire touch screen are scaled into the test drawing area) or non-scaled (only touches performed over the drawing area are shown, and they should be directly under the stylus on a calibrated touch screen).
TUIO interfaceIf a TUIO server, such as UPDD Commander, is sending touch data then this shows the co-ordinate data received via the TUIO protocol. The ink line is labelled 'Scaled TUIO cursor N'. In the case of TUIO this is not the same as calibrated.
Mouse eventsIf standard mouse emulation is enabled this shows the drawing associated with mouse emulation. The ink line is labelled 'mouse button 1'.
Qt eventsNative touch events, as received by a Qt application (Qt is the cross-platform application framework UPDD Test is built with). The ink line is tagged 'Qt touch n'. This option shows how well Qt touch applications, using native touch events, perform in the OS in use.

When drawing on the touch screen, the inking in the UPDD Test drawing area that relates to the mouse events should be under the stylus in a calibrated system. The position of the inking associated with the UPDD API and TUIO interface depends on the scaled / non-scaled setting.

If UPDD Commander is running, information about the current gesture being performed is also shown at the bottom of the drawing area, 'Current gesture for device n: [gesture]', along with the screen position (pixel) of the touch (see API event reference for the gesture events).

The full screen mode displays a grid with an option to exit full screen. If using a pressure device (pens, touch screens with pressure) it will display the pressure value on screen, the line will be thicker depending on the pressure, and a pen that supports an eraser function (normally inverted) will erase rather than paint.

When used in a Linux multi-touch environment (uinput.multi_touch=1) the test program filters out Qt touch events, as these caused a crash in the Qt library. This means that with multi-touch enabled you cannot see the mouse emulation inking. UPDD API and TUIO inking is unaffected.

Scaled and non-scaled

In scaled mode all API and TUIO touches are scaled down into the UPDD Test drawing area, so the inking will not be under the point of touch.

In non-scaled mode the inking is not distorted and, in a correctly calibrated system, should be drawn under the point of touch. However, in some complex Linux monitor configurations this may not be the case, as UPDD Test is unaware of the driver's desktop segmentation set up to cater for these configurations.

Show Event Data

When enabled, this lists event data related to the contacts being performed in the drawing area, colour coded to match the corresponding inking.

Selecting an event data entry shows driver data relating to the event (contact point) and highlights the contact point (crosshair) within the drawing area, as shown below. You can use the keyboard up and down arrows to move through the list.

This information can be useful to determine some of the characteristics of the device / stylus in use, such as whether it passes pressure data or width and height information, so that UPDD Commander settings related to these values can be used.

It can also help in understanding the contact information available on the driver's API (see UPDD API overview): the event data names shown are taken from the API. The displayed information will be relevant to the device in use, such as a touch screen or pen.

The meaning of the individual items is as follows:

NameMeaning
isTimedIndicates if it is a timed lift off or a 'pen up' packet.
isToolbarIndicates if the touch is within a toolbar.
ScreenThe touch position in pixels.
InternalVideo X and Y co-ordinates relative to the 0,0 co-ordinate of the primary monitor. Can be negative if the touched position is to the left of or above the primary monitor.
CalCalibrated X and Y co-ordinates in the range 0 - 65535.
RawRaw X and Y co-ordinates from the device.
zSupportIndicates if the device passes pressure data.
stylusSupportIndicates that the touch packet carries a stylus value.
touchingLeft1 = active left click touch, 0 = not touching (last data packet).
touchingRight1 = active right click touch, 0 = not touching (last data packet).

Create Diagnostics

This allows the test program to be used to capture diagnostics data to aid the investigation of any touch issues. It is only needed when diagnostics have been requested by Touch-Base support; how to send them is described in Taking a diagnostics package.

In older versions of UPDD Test the Diagnostics option is on the main dialog; in later versions it is on the Options menu (Create Diagnostics...).

Invoke the diagnostics, draw or replicate the touch issue on the touch screen, and then select Finish Diagnostics to create the UPDD diagnostics file.

Touch log

A touch log can be displayed via the Options menu, Show Log Window option, to view relevant driver touch events:

In the above example, three different UPDD devices have been used with the log enabled, with device 2 also passing pressure data.

Pressure support

Starting with version 1.04 of the test program (September 2019) the test program caters for pressure data, as shown below. The line thickness relates to the pressure value, and the pressure value is also shown in the touch log.

Command line arguments

The UPDD Test program accepts the following arguments:

ArgumentDescription
-h, --helpDisplays this help.
-v, --versionDisplays version information.
-u, --upddRender events from the UPDD interface (default).
-t, --tuioRender events from the TUIO interface.
-m, --mouseRender mouse events.
-d, --device <handle>Tests the specified device in full screen mode.

-u and -t cannot be used together. These arguments can be used to start UPDD Test with a different default render, as per this macOS example to render mouse events:

"/Applications/Utilities/UPDD Test.app/Contents/MacOS/UPDD Test" --mouse

For review

1. The old article linked separate UPDD Test downloads on v6download.touch-base.com for a system where Test is missing; those static links were dropped (the review marks them stale). Decide what a customer whose package has no UPDD Test should do (a new My Touch-base download with Test included?) and add one sentence.

2. The Options menu screenshots (TestMenuMac2, TestMenuWindows2) may predate Create Diagnostics and Enable Gesture Processing; the option table above is taken from updd-test/upddtest.ui on origin/master. Replace the screenshots if they no longer match.

3. Create Diagnostics is given version_min: 7: the source enables it only with the UPDD V7 API (updd-test/upddtest.cpp:76-81).