Serial (RS232) devices
UPDD 6 and UPDD 7 support RS232 serial touch devices. RS232 support is really only needed for old legacy systems, and hence we have only added support that should suffice for the majority of serial devices: we only support devices with a single fixed length packet definition.
This document describes how to add a serial device, the serial port names used by each operating system, the settings that define the port and the device's data, and the use of USB to serial adaptors.
For a serial device to be supported, serial data must be seen when touching the screen prior to utilising UPDD. For example, a customer reported difficulty with a PCI-E serial adapter under Linux, so used a USB to serial adaptor and all was OK.
Adding a serial device
If the UPDD software package contains support for an RS232 device it has to be added manually and its port defined. Serial port devices are not added to the list of active devices by default, unless the installed driver only supports one serial device, in which case it is added automatically with the default serial port name. The port name can also be predefined in the software package if required.
Serial devices are normally added using the UPDD Console, Devices function, but can also be added using the command line interface.
Using the UPDD Console
- In the list of supported devices select the serial device and use the plus (+) option to add the device:

- Enter the serial port name. It must match the port name as listed in the system:

- The port is then listed in the device list:

In the above example there is no serial port 'COM1' on the system, so the connect request has failed, hence the status of NOK. A status of OK indicates the connection to the serial port was successful. For serial devices the Console shows the associated serial port, which can be changed as required, and serial devices or any listed as NOK or Disabled can be deleted with the delete control (-).
Using the command line
This Windows example adds a serial device using upddutils:
- List the supported devices in the UPDD software (
upddutils supported) and note the controller id of the device you wish to add (9 devices listed). - Enter the add device command passing the controller id as required (
upddutils adddevice 9 "Salt, PenMount 9000 Series, Serial"). - List the devices configured in the driver (
upddutils devices): one USB device automatically discovered and one manually added. - Note the UPDD device handle for the serial device: in this case device handle 2, shown as NOK because the default com port was COM1, which does not exist and so could not be opened.
- Set the serial port as required: set device (handle) 2 to COM3 to reflect the com port listed in the Device Manager (
upddutils device 2 set rs232.port COM3). - List the devices to confirm all is now OK.
- At this point touch should be working and, depending on the default calibration data, may or may not be calibrated.

The other RS232 settings are set to the default for the device but can be changed as required using the upddutils set command.
Connecting to the port
- Once a serial device is added the driver will try to connect to the serial port every 5 seconds until a successful connection is established. This was implemented for USB to serial adaptors, whereby the virtual port may not be created or ready at the time the driver loads and tries to establish a connection to the port.
- This implementation assumes the serial port is always available once the device connection is opened. Once a connection is established it is further assumed the port is not removed, as could happen with a USB to serial adaptor that creates a virtual RS232 port and is unplugged. Once a port is opened (OK) the software will not reflect the status change (NOK) of a lost device or automatically recover a lost connection.
Serial port names
The serial port names differ between operating systems. Port names will be associated with physical UART ports or virtualised ports using a USB to serial adaptor, as listed below. The port name is defined in the rs232.port setting.
| OS | Physical | Virtualised |
| Windows | COMn, as listed in the Device Manager.![]() e.g. com1 | COMn, as listed in the Device Manager. In the case below created by a Keyspan USB to serial adaptor:![]() e.g. com3 |
| macOS | Listed in the /dev folder as tty.[id]. Use the command ls /dev/{tty,cu}.* to list the serial ports. The fully qualified device path is defined, e.g. /dev/tty.serial | Port name dependent on the virtualising hardware and software, but typically starts with 'cu.'. Use the command ls /dev/{tty,cu}.* to list the serial ports. In this example the device is seen in the dev folder:![]() and as listed in the Keyspan utility: ![]() The fully qualified device path is defined, e.g. /dev/cu.USA19H64P1.1 |
| Linux | Listed in the /dev folder as ttySn. The fully qualified device path is defined, e.g. /dev/ttyS0 for port 1. | USB to serial adaptors are normally registered in the /dev folder as ttyUSBn. The fully qualified device path is defined, e.g. /dev/ttyUSB0. |
Serial port settings
A number of device settings define the RS232 communication parameters and the touch data structure (in keeping with the USB HID settings that define the touch data structure as read from the HID report descriptor). They can be changed with upddutils device n set <setting> <value>; see How UPDD settings work.
| Setting | Meaning | Value |
| port_type | Denotes the hardware interface | serial |
| rs232.baudrate | Data rate | 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200 |
| rs232.databits | Number of data bits | 5, 6, 7 or 8. Most likely will be 8. |
| rs232.parity | Data parity | 0 = No parity. This is the most common setting and unlikely to be different. 2 = Even, 3 = Odd, 4 = Space, 5 = Mark |
| rs232.stopbits | Number of stop bits | 1 or 2 (or 3 = 1.5, Windows only) |
| rs232.port | Com port name, or auto | The port name varies by operating system: see Serial port names. On Unix based systems the full device path or the device name may be used, e.g. /dev/ttyS0 or ttyS0; in the latter case /dev/... is assumed. The full path is useful, for example, in the case of a system with a non-standard device path. A value of auto can also be used. This is only tested on Windows and supports only one device; see rs232.probe and rs232.probe.ack, which are used in conjunction with auto. |
| rs232.probe | Probe string | If rs232.port is "auto" then the value of this setting is sent to each RS232 port in turn until one responds with the value of rs232.probe.ack. If such a response is received within 3 seconds the search ends and rs232.port is set to the name of the port just identified. The format of rs232.probe and rs232.probe.ack is a series of hex byte pairs, e.g. AA BB CC. Notes: an empty rs232.probe.ack will match any or no response, so leaving both rs232.probe and rs232.probe.ack blank allows the first port to be selected; this is only tested on Windows; this only works for a single device; this should not be used in situations where sending the probe data to an unrelated device might be problematic. In this example an 'Elo, Smartset, serial' device is configured for auto detect by sending the query report command 55620000000000000000, which is acknowledged with a 20 byte string starting with 5542: |
| rs232.probe.ack | Acknowledge string | Expected acknowledge sequence to the probe hex sequence. |
| rs232.macro | Initialisation macro | See Macro language. |
| rs232.macro.keepalive | Heartbeat | Controller command (macro) sent periodically to keep the controller active. Rarely required; see Known hardware issues (DMC, DUS, serial) for an example. |
| rs232.macro.keepalive.ms | Heartbeat interval | The interval between heartbeat macros, in milliseconds (default 10000). |
| rs232.reset.byte | Reset byte | Some serial devices send out a 'reset' byte when they are connected to a system, so that the driver will run whatever initialisation sequence may be required to enable the device. This setting specifies a 2 character hex value representing the 1 byte value that, if received from the device, triggers the resend of rs232.macro, e.g. for a byte value of 0x12 a value of 12 is needed; for a byte value of 0x1 a value of 01 is needed. |
Macro language
For USB devices the initialisation protocol is determined by information extracted from the device's HID Report Descriptor. For serial devices that need an initialisation sequence we utilise a macro language, held in the device setting rs232.macro. A macro is executed immediately after the port is opened. The following options are supported:
| Notation | Meaning |
| // | Denotes a comment // this is a comment [RTS 1] // this is also |
| [HEX] | Denotes that the characters that follow are pairs of hex characters separated by spaces. This is the default mode. The mode remains in effect until the end of the string, or until the [ASCII] macro command is encountered, e.g. [HEX]01 02 03 |
| [ASCII] | Denotes that the characters that follow are ASCII characters. The mode remains in effect until the end of the string, or until the [HEX] macro command is encountered, e.g. [ASCII]ABC |
| [DTR n] | Where n = 0 or 1. [DTR 1] sets the DTR line active (high); [DTR 0] sets the DTR line inactive (low). |
| [RTS n] | Where n = 0 or 1. [RTS 1] sets the RTS line active (high); [RTS 0] sets the RTS line inactive (low). |
| [Wait nnnn] | Pause for the specified number of milliseconds. |
| [Break n] | Sets the UART break line to the value of n (0 or 1). |
Note: CTS and DSR are input lines and thus cannot be set in a macro.
Touch data definition (legacy devices)
These settings are set up within our device configuration system for a specific device and define, in an abstract way, the structure of the RS232 touch data packet. They should not be changed and are listed here for completeness:
legacy.0mask, legacy.1mask, legacy.invertmask, legacy.tipmask, legacy.tipshift, legacy.xmask, legacy.xshift, legacy.ymask, legacy.yshift
Example as defined in our device configuration system:

Serial data filtering
Some old serial devices may produce a 'glitch' in the x and y co-ordinates, such that the touch temporarily jumps to an incorrect position and then jumps back again. If this occurs the settings deglitch.packets and deglitch.cal_points filter out the glitches; they are described in Touch data filtering.
USB to serial adaptors
Most modern systems do not come with serial (RS232) ports, so in order to use serial touch devices in these cases you will need to use a USB to serial adaptor. These adaptors allow a serial device to be plugged into a USB port, and a driver is used to create a 'virtual' serial port in the system that can be defined and used as though it was a real serial port.
With a virtual serial port you should be able to test all is working as described in Capturing USB or serial traffic. This section documents the information we have about the use of these adaptors.
Keyspan / Tripp Lite
The Keyspan macOS driver creates a virtual serial port as per the example below:
A user reported they used the port name cu.USA19Hfd13P1.1 in our software.
FTDI
A customer reported that a serial to USB adaptor that used the FTDI FT232R chip created a device name of tty.usbserial-A104PFUI.
SIIG
The SIIG adaptor required two drivers to be installed in macOS in order for the serial port to be fully functional. This is described in their documentation. The virtual serial port name /dev/cu.UC-232AC was created and this port name needed to be defined in our software. Additionally we found we had to run a kextload command:



