STU Installation
STU Serial Connection
Installation
Download the Serial Connection Utilities and DemoButtons Test tool
The Serial Connection Utilities zip file contains the following tools:
Utility | Description |
---|---|
query.exe | Displays STU firmware information |
simpleInterface.exe | Displays realtime pen data |
hid2serial.exe | Switches from HID to Serial |
serial2hid.exe | Switches from Serial to HID |
getSerialPorts.exe | Lists visible COM ports |
libeay32.dll | Encryption library needed in some Windows installations |
DemoButtons.exe | Test signature capture via COM port |
Overview
Certain STU models support the serial communication interface:
- STU-430V
- STU-540
The tablets can be configured for:
Human Interface Device (HID) - standard USB connection
or
Virtual COM Port (VCP) - serial connection over USB
Used in a Command Prompt, the connection utilities provide tools to verify and change the connection mode.
Utilities
query
Use this utility to determine the current state of the tablet.
For a USB connection:
query.exe
For a serial connection:
query.exe COM_PORT BAUDRATE
If the tablet is in HID mode its status will be reported.
If it is in serial mode the results will be:
->query.exe
STU query sample
No USB devices found
getSerialPorts
To find the COM port use getSerialPorts:
->getSerialPorts.exe
COM1 physical
COM6 virtual
When in serial mode the STU tablet appears as a virtual COM port. The virtual COM port can then be used with query, specifying the port name and baud rate:
->query.exe com6 128000
NOTE for COM10 and above: COM10 and above require special handling. See Microsoft support
Example:
-> query \\.\COM10
->query.exe com6
STU query sample
connecting to com6 128000
Status.statusCode = Ready
Status.lastResultCode = None
Status.statusWord = 00
HidInformation = 056a:00a6:0104
Information.modelName = STU-430V
Information.firmwareMajorVersion = 01
Information.firmwareMinorVersion = 04
Information.secureIc = 0
Information.secureVersion = bb.0.0.0
Capability.tabletMaxX = 9600
Capability.tabletMaxY = 6000
Capability.tabletMaxPressure = 1023
Capability.screenWidth = 320
Capability.screenHeight = 200
Capability.maxReportRate = 200
Capability.resolution = 2540
Capability.encodingFlag = 1bitZlib
Uid = 0x00000000
Uid2 = 5JZQS00032
Eserial - not supported
DefaultMode = Serial
RenderingMode - not supported
ReportRate = 150
HostPublicKey - not supported
DevicePublicKey - not supported
DHprime - not supported
DHbase - not supported
InkingMode = Off
InkThreshold.onPressureMark = 21
InkThreshold.offPressureMark = 16
HandwritingThicknessColor.penColor = 0000
HandwritingThicknessColor.penThickness = 2
BackgroundColor - not supported
HandwritingDisplayArea.upperLeftXpixel = 0
HandwritingDisplayArea.upperLeftYpixel = 0
HandwritingDisplayArea.lowerRightXpixel = 319
HandwritingDisplayArea.lowerRightYpixel = 199
BacklightBrightness - not supported
ScreenContrast - not supported
HandwritingThicknessColor24.penColor = 000000
HandwritingThicknessColor24.penThickness = 2
BackgroundColor24 - not supported
PenDataOptionMode = None
OperationMode - not supported
RomImageHash - not supported
ReportSizeCollection =
PenData 7
Status 5
Reset 2
HidInformation 9
Information 17
Capability 17
Uid 5
Uid2 11
DefaultMode 3
ReportRate 2
RenderingMode -
Eserial -
PenDataEncrypted 17
HostPublicKey -
DevicePublicKey -
StartCapture 5
EndCapture 2
DHprime -
DHbase -
ClearScreen 2
InkingMode 2
InkThreshold 5
ClearScreenArea 11
StartImageDataArea 11
StartImageData 2
ImageDataBlock 256
EndImageData 2
HandwritingThicknessColor 4
BackgroundColor -
HandwritingDisplayArea 9
BacklightBrightness -
ScreenContrast -
HandwritingThicknessColor24 5
BackgroundColor24 -
BootScreen 2
PenDataOption -
PenDataEncryptedOption -
PenDataOptionMode 2
PenDataTimeCountSequenceEncrypted 17
PenDataTimeCountSequence 11
EncryptionCommand 68
EncryptionStatus 17
GetReport -
SetResult -
PinPadData -
PinPadDataEncrypted -
PinOperationMode -
OperationMode -
RomStartImageData -
RomImageOccupancy -
RomImageHash -
RomImageDelete -
CurrentImageArea -
EventData -
EventDataEncrypted -
RomImageDisplay -
160 5
162 5
163 17
171 12
178 3
180 3
181 11
ReportSizeCollection 512
->
simpleInterface
Use this utility to display real-time pen data.
When the pen is in contact or in close proximity of the tablet surface, the X/Y coordinates and pressure values will be reported.
simpleInterface.exe COM_PORT BAUDRATE
Press Ctrl-C to exit the program.
->simpleInterface.exe com6
STU simpleInterface sample
connecting to com6 128000
Connected!
getInformation()... modelName=STU-430V firmware=01.04.187
getReportRate()... 150
setPenDataOptionMode(SequenceNumberTimeCount)... ok!
getPenDataOptionMode()... penDataOptionMode=TimeCountSequence
setClearScreen()... ok!
setInkingMode(On)... ok!
(use stylus, press CTRL-C to quit)
rdy sw x y pres time seq
1 1 612 5339 3528 3513 1
1 1 612 5339 3528 3516 2
1 1 614 5339 3528 3523 3
1 1 615 5329 3518 3529 4
1 1 620 5329 3518 3536 5
1 1 624 5329 3518 3543 6
1 1 627 5329 3518 3549 7
1 1 630 5318 3513 3556 8
1 1 632 5307 3506 3563 9
1 1 633 5289 3493 3569 10
1 1 625 5253 3468 3576 11
1 1 593 5189 3422 3583 12
1 1 470 5094 3348 3589 13
1 1 263 4971 3247 3596 14
1 1 64 4819 3111 3603 15
1 0 0 4664 2960 3609 16
1 0 0 4502 2795 3616 17
1 0 0 4356 2634 3623 18
1 0 0 4228 2484 3629 19
1 0 0 4124 2350 3636 20
1 0 0 4068 2263 3643 21
0 0 0 0 0 3696 22
quitting!
setInkingMode(Off)... ok!
setClearScreen()... ok!
setPenDataOptionMode(None)... ok!
->
hid2serial
Use this utility to change the STU to serial VCP mode. No parameters are required.
You can verify that the STU is in serial mode by viewing the serial ports with getSerialPorts.exe.
Verify the connection using query.exe:
query.exe COM_PORT BAUDRATE
->hid2serial.exe
STU HID2serial sample
Device:
056a:00a8:0100
Status.statusCode = 0
Status.lastResultCode = 0
Status.statusWord = 00
Information.modelName = STU-540
Information.firmwareMajorVersion = 01
Information.firmwareMinorVersion = 00
Information.secureIc = 0
Information.secureVersion = 0.0.0.0
setDefaultMode()...
Done!
Status.statusCode = 0
Status.lastResultCode = 0
Status.statusWord = 00
Rebooting device
->
In addition you can view the connection in Windows Device Manager.
An HID connection appears as shown below.
A serial connection appears as follows:
Normally Windows automatically installs the FTDI driver needed to create the VCP. If the tablet is reported as the following:
**Future Devices Single RS232-HS**
then download and install the driver from: http://www.ftdichip.com/Drivers/VCP.htm
For example: https://ftdichip.com/wp-content/uploads/2021/08/CDM212364_Setup.zip
NOTE ON SERIAL KIT
A serial kit is available for the STU-540. It includes:
- Serial D-type to tablet cable
- Power supply
When the serial kit is used the tablet must still be switched to serial mode but can be connected to a physical serial port.
In this case a different baud rate is used as follows:
>query COM1 115200
serial2hid
Use this utility to restore the default STU tablet HID connection mode.
serial2hid.exe COM_PORT BAUDRATE
You can confirm the HID connection using query.exe.
serial2hid.exe com6 128000
serial to hid STU query sample
serial2hid serialPort baudRate
{processReadBuffer size=22}
{queued report: size= 17 08 53 54 55 2d 35 34 30 00 00 01 00 00 02 00 00 00}
{removing 22 bytes}
Information.modelName = STU-540
Information.firmwareMajorVersion = 01
Information.firmwareMinorVersion = 00
{processReadBuffer completed
{processReadBuffer size=5}
{queued report: size= 2 81 00}
{removing 5 bytes}
{processReadBuffer completed
{processReadBuffer size=5}
{queued report: size= 2 81 00}
{removing 5 bytes}
{processReadBuffer completed
DemoButtons
Captures a signature from the STU pad with options to perform via standard HID mode or via a virtual COM port.
Signature Mode can also be selected for use with the STU 540.