Taking a diagnostics package

This document describes the UPDD diagnostics procedure used to gather the information that will help us diagnose issues you may be having with the driver. It applies to UPDD V7 on Windows, macOS and Linux.

Diagnostics can still be run even if the UPDD Console is showing 'No devices found'. We still want the diagnostics file to be created and sent, but there is no need to touch the screen when asked to do so.

The diagnostic procedure tries to gather as much information as possible on a failing system: system information, the USB and HID devices present, the driver's settings and logs, the HID Report Descriptor of each device and a capture of the raw touch data. What the package contains is described in What is in a diagnostics package.

Running diagnostics from the UPDD Console

The procedure is normally invoked from the Diagnostics button in the UPDD Console, Touch > General:

The Diagnostics option is enabled if there is a connection to the driver.

Running diagnostics from the command line

The procedure can also be invoked with the command upddutils diagnostics (see the upddutils command line reference). It prompts you to draw a circle and a cross on each touch screen and then a short line with two fingers, pressing Enter after each. For Linux users, running the diagnostics from a terminal is described in Linux: what is installed, start-up and processes.

Running diagnostics from UPDD Test

UPDD Test can also invoke the diagnostic procedure whilst you reproduce the issue within the test program. If you are reporting strange, unexpected drawing, this is the way to do it: you see the drawing issue on the screen as it occurs and the data is captured at the same time.

The procedure

Initially the procedure gathers system and driver configuration and debug information ('Analyzing'): system information, HID Report Descriptor details and the various driver logs.

The data capture then reads and stores the raw data from the controller. This shows whether any data is coming from the controller and, if there is, allows us to view and analyse it. You trace a fixed pattern with your fingers over the entire touch screen (not over the image itself).

You are first asked to draw a 'single touch' pattern on all connected touch screens and select Done when completed. The image is only displayed on the main monitor; you trace the pattern on each touch monitor and then select Done.

You are then asked to draw with two fingers on all connected touch screens and select Done when completed. If you have a single-touch touch monitor, ignore this and select Done.

You will need a keyboard or mouse to proceed through the steps. You can cancel the procedure at any time using the standard cancel keystroke for the operating system, such as Esc on Windows.

Sending us the file

The procedure writes the file updd_diagnostics.zip to a folder updd_diagnostics on your desktop. Attach it to a support ticket raised at https://www.touch-base.com/contact.

Please send the diagnostics file whenever we ask for it, even if touch is not working at all: an empty capture is itself useful information.

Periodic diagnostics

Diagnostics can also be run periodically as a background task by the UPDD Daemon. This helps identify touch issues that occur intermittently, especially on user facing systems rather than in a test environment. Three global settings control it:

SettingMeaning
log.periodic_diagnostic_minutesIf set to a non-zero value, UPDD performs a non-interactive diagnostic at this interval in minutes. A change to this setting needs a restart of the UPDD Daemon, or a reboot, to take effect.
Note: this can create a lot of data, especially if a small interval is used.
log.periodic_diagnostic_folderAn alternative folder for the periodic diagnostic files. If not set, the logged-in user's desktop is used.
log.periodic_diagnostic_retention_daysHow many days the periodic diagnostic files are kept (5 if not set). Older files are deleted when the next diagnostic is written.

Each periodic diagnostic is written to the updd_diagnostics sub-folder of that folder as updd_diagnostics_yyyy-MM-dd-hhmmss.zip. Settings are set with the upddutils nodevice set command; see How UPDD settings work.

Capturing raw touch data only

The UPDD command line interface also has a data capture function on its own. Run the command upddutils recordraw and draw a circle on the screen. This captures the raw data coming from the touch device (when touching the screen) to the desktop file updd.raw.txt. Use Ctrl+C to end the capture. The file starts with the device it came from, followed by one line per data packet, for example:

-- from 2149:270b
01 09 EB 21 32 58 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 3F 00 01
01 09 EB 21 32 58 11 EE 1A 38 63 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 85 00 02

With several touch devices connected you may need to pass the device n option on the command to capture data from the target device. The command upddutils devices lists the devices and their device handles.

For review

  • Dropped the screenshot of the final dialog (DiagFile.PNG): it tells the customer to email the file to our support address. The product still shows that text and still says the file is 'on your desktop' although it is written to the updd_diagnostics folder on the desktop (console/diagnostics.ui:170-172, daemon/diagnostics.ui:211-213, utils/main.cpp:5613; path from common/rundiagnostics.cpp:359-388). The page tells customers to use the contact form; the product text needs changing separately.
  • Dropped the recordraw screenshot (recordraw.PNG): it shows the V6 C:\Program Files (x86)\UPDD folder. Its captured lines are given as text. A V7 screenshot would be welcome.
  • The two-finger drawing screenshot (DiagDualDraw.png) was kept unseen; check it matches the current dialog.