USB connection problems
There are multiple software and hardware components involved in communicating with a USB touch device, and all of them must be in place and working for UPDD to communicate with the device. This document describes the USB connection problems we see most often on Windows, macOS and Linux with UPDD V7, and how to recognise them in the UPDD log.
When everything is working, UPDD is able to issue an interrupt transfer request on a USB endpoint of the device. When the touch device sends data, the request completes, UPDD receives the data and issues further requests. When no data is being sent, UPDD is waiting for a request to complete. When UPDD is able to receive data from an endpoint we refer to this as connected. To be connected, the cable must be in place, the appropriate software installed, and the firmware and software in the hardware devices must be able to exchange information according to the USB protocol.
In general this should 'just work'. From an end user's point of view, if UPDD does not show a connected status, and the UPDD package supports the device in question (see Touch not working: first steps), then checking the hardware is the only practical option.
Check the connection
If there are no obvious configuration or hardware issues, check the following:
- Swap the USB cable. We have had many reports of USB connection issues caused purely by a 'bad' cable, where a replacement cable worked.
- Switch USB ports. We have seen devices be over- or under-sensitive (e.g. ghost touches) and all has been well once plugged into a different port or hub. USB devices are powered by the USB port, so any variation in power can have a detrimental effect.
- Switch between USB port types, USB3 to USB2 or vice versa. Some old USB devices do not like USB3 ports.
- Use an external powered hub.
We highly recommend that initial tests are conducted with the touch device connected directly to a USB port of the computer with a standard, short cable, as connecting through hubs (powered or not), adapters and extenders can cause solid or intermittent touch issues.
Hubs, adapters and extenders
Failures have been seen when using USB extenders (which extend the distance a USB device can be from the computer) or incompatible USB hubs, such as a Sabrent USB3 hub. One user reported that a powered hub caused touch issues and a non-powered hub was fine; another that a touch screen failed with USB 3.1 Gen 2 hubs but was fine with a standard USB 3 hub.
Connecting the USB device directly with a standard short USB cable normally resolves the issue, as has connecting directly through two USB-A/C adapters, or through Apple's own USB-C Digital AV Multiport Adapter (which is reported as USB2 by ioreg -p IOUSB).
If a USB extender is in use and failing, it is possible that:
- There is not enough power to the extender.
- The extender is not fully USB compliant.
- The extender is trying to handle HID and making incorrect assumptions.
- The extender is not compatible with the operating system's USB stack.
Power
Some USB touch devices are powered from within the monitor, but most are powered by the USB connection, so it is important that the device receives sufficient power. For example, a USB hub with many devices may not deliver enough power for the touch screen to operate correctly. If you must plug into a hub, make sure it is powered and not overloaded with other devices.
One user reported that touch did not work on a Mac or a Windows laptop, and the device did not show up in the System Report or the Device Manager. On the Windows system, he plugged in the laptop's power, and the device then showed up in the Device Manager: without the laptop power connected the USB port had switched to low power, insufficient for the touch device. On the Mac he used a separate power cable for the monitor. This was with the Prism+ Nomad monitor.
USB-C and Thunderbolt connections
Small portable monitors connected by USB-C carry video, the touch screen and other USB devices within the monitor, such as hubs, over one cable. USB-C also offers power, so a single cable can perform all functions. These monitors often come with several USB-C cables for connection to USB, USB-C and Thunderbolt ports, and often with their own power cable.
In the vast majority of cases these devices work well with UPDD, but some touch screens are more sensitive than others to slight variations in the USB-C connection. When issues arise the touch screen does not work, or perpetual connect and disconnect notifications are issued although touch works to a degree.
Touch screens known to be troublesome (these touch screens are used on many monitors, not just those listed):
| Touch manufacturer | USB vendor id | Monitor | Observation |
| G2Touch | 2A94 | Viewsonic 1655 | Often not seen in the System Report USB tree although the USB-C cable is plugged in. One customer reported: 'It seems to work on the top USB-C port happily, but it's temperamental on the bottom port of the monitor'. |
| Wing Cool Touch | 27C0 | Prism+ Nomad | Very sensitive to power. The USB port must supply sufficient power, or use the monitor's power cable. |
To resolve these issues, make the USB connection as good as possible: power the monitor separately with its power cable (normally supplied), and plug the monitor-to-computer cable directly into the computer, not into an extender, hub or USB/HDMI adapter. You can also try a different port or port type (USB, Thunderbolt) or a different or shorter cable. We have had many reports of issues caused purely by a 'bad' USB-C cable, where none of the supplied cables worked but a top-end, shielded cable did.
What the UPDD log shows
If the driver cannot connect to a device, the UPDD log (updd.log) shows why. By default updd.log omits data that might impact performance; for full information enable boot logging or run diagnostics, which includes the log.
For a device read through the driver's USB interface, the key point to look for is the message that a read has started on an endpoint (in V7, 'Read started on endpoint 0x…'). It shows that a USB interrupt request has been issued and the driver is waiting for data from the device. In normal use the driver waits at this point; there are other messages periodically but there should be no error messages. It is at this point that UPDD reports the device as connected, and the message is only shown if all the setup operations completed successfully.
If it is not seen, the device is most likely not visible to UPDD. The log lists the accessible devices periodically, and shows which of them are supported by the installed package ('VID:0x… PID:0x… is supported by this UPDD package'). If a supported device is found that is not available through UPDD's standard interface, an operating system specific mechanism to claim control of the device is invoked.
It is quite normal to see errors at the start of the log: if UPDD cannot access the device properly it attempts to claim it and tries again. Errors are only significant if they are repeated and prevent the read from starting, or if they occur after it has started. There is a lot of other information in the log, nothing that is likely to be useful to an end user; for a firmware engineer the details of all USB requests are logged.
On macOS a device that is listed in the System Report but whose details are incomplete (the bottom right pane) has failed one or more of the reads macOS makes when it first enumerates the device. This indicates a hardware fault or an incompatibility between the operating system or the computer's USB hardware (e.g. the USB host controller) and the touch device. In such a case the operating system typically does not fully recognise the device and, as far as client drivers are concerned, the device is simply not present.
Errors opening the device
A problem opening a connection to a USB device typically shows in the log as follows:
2021/01/13-02:28:03: TRC: VID:0xafa PID:0x3e8 BCD:0x200 is supported by this UPDD package 2021/01/13-02:28:03: TRC: USB location bus:0001-port:0001-0003 2021/01/13-02:28:03: ERR: USB error: (open) Operation not supported or unimplemented on this platform
We have only ever seen this message when a USB extender or a filter driver is installed and the open function is not supported: there is a driver in the stack that does not support open, typically the filter driver of a USB extender.
Errors reading from the device
For HID compliant USB devices the driver reads information from the HID descriptor and the HID Report Descriptor, and uses some of it to configure the device automatically. It also reads the HID Report Descriptor (in some cases even when it is not used) as one of the ways it determines whether a device is connected. These reads can fail; the log shows that the driver has accessed the device but the reads failed, for example:
2019/06/20-18:12:26: TRC: Configuration has 1 interfaces 2019/06/20-18:12:26: ERR: USB error: (get serial number) Other error 2019/06/20-18:12:26: ERR: USB error: (get product) Other error 2019/06/20-18:12:26: ERR: USB error: (get manufacturer) Other error 2019/06/20-18:12:26: TRC: Found interface 0 class 3 2019/06/20-18:12:26: TRC: Interface 0 is supported 2019/06/20-18:12:26: ERR: USB error: (claiming interface) No such device (it may have been disconnected)
or
2022/01/17-00:08:00: ERR: USB error: (get serial number) Pipe error 2022/01/17-00:08:00: ERR: USB error: (get product) Pipe error 2022/01/17-00:08:00: ERR: USB error: (get manufacturer) Pipe error
The inability to read data from the device indicates the device is not in a healthy state.
Other errors show that a read was issued against the device but the USB interface reported a data transfer error and the connection to the device was closed, for example:
2022/01/31-20:38:12: ***: USB: (LIBUSB_TRANSFER_ERROR) 2022/01/31-20:38:12: ***: USB: (LIBUSB_XXX_ERROR closing device)
In this case the driver issues a disconnected notification, re-establishes the connection and issues a connected notification, and this repeats if the error recurs. Notifications can be disabled, but that does not resolve the underlying issue and touch performance is likely to be compromised. Other read errors, of which there are many, do not always result in a disconnection, but touch does not respond.
It is our understanding that nearly all of these errors are the result of the hardware environment: lack of power to the device, faulty cables, overloaded hubs, USB extenders and so on. Work through the checks above.
A driver that does not read the descriptors
Where an extender or hub cannot be avoided and the descriptor reads fail, one possible solution is a driver that does not read the HID Report Descriptor from the device but carries it in the device's UPDD settings. For this we need the HID Report Descriptor from a UPDD diagnostics package taken when the device is working (e.g. connected directly); we then supply a driver with the settings disable_interface_prolog and hid.skip_hidrd_check enabled. Raise a ticket at https://www.touch-base.com/contact.
Other causes
During system start-up, or when a device is hot plugged, there is a short delay before the device is discovered and ready to use, and the UPDD Console, which is refreshed periodically, can take a moment to update its status. See Delay before touch is active.
Some devices stall when the driver sends them certain USB requests, during initialisation or when reading data. See USB initialisation settings and stalls.
On macOS, a device that gives 'device not responding (0xe00002ed)' errors is described in macOS: device not responding (0xe00002ed).
For review
- 50780 named vendor 27C0 'Cadwell Laboratories'; 50231 and the driver's known-devices list name it Wing Cool Touch ('WingCoolTouch, HID (27C0), USB', tests/licensing/data/perm_326.sqlite). Written as Wing Cool Touch (review E19).
- In 7.1,
disable_interface_prologis read by the macOS USB reader but its use is commented out (updd/macos/macusbreader.cpp:1185, 1256), and the Windows readers do not read it;hid.skip_hidrd_checkis read by the macOS USB reader (macusbreader.cpp:1529). Confirm which settings a V7 'no descriptor read' driver actually needs, on which platforms. - The log examples are carried from 50607/50780 with their dates; several are libusb messages of the V6 driver (LIBUSB_*, 'Operation not supported or unimplemented on this platform'). V7 wording differs by platform (e.g. 'Read started on endpoint 0x…', macusbreader.cpp:631; 'Read started for all endpoint 0x…', upddusbreader.cpp:91). Replace with V7 examples when available.
- Dropped the V6 log screenshots of 50724 (Log1.png, Log2.png, Log3.png: 'read starts', the device list and the IOKit check). New V7 screenshots wanted. Also dropped the link to 50672 (Incorrect USB listing, retired, macOS 10.15).
- Sections of 50724 used: the connected-status introduction and the log reading. Its Windows Device Manager listing (UPDD Devices vs HID class) is left to windows-virtual-device-problems.