|STU 540 Test Utilities src.zip||C++ source code|
The STU-540 can be used in standard USB HID mode or changed to operate as a serial Virtual Com Port (VCP) device (serial over USB connection).
The serial mode can be used when a remote connection is required and a full USB transfer is not possible. The serial interface is significantly slower than HID and the transfer of images takes a significant time.
This means that normal operation is impractical because there is a long delay between display updates while image data is uploaded.
To overcome this the STU-540 has a number of enhanced modes whereby images are preloaded on the device in non-volatile memory and displayed at runtime - this removes the need to upload images during operation.
The test utilities demonstrate these functions in HID and Serial modes.
To configure the STU-540 for USB or Serial operation see:
STU Serial Connection
Unzip the test utilities from STU-540-Test-Utilities.zip to a folder:
|DemoButtons.exe||Demonstrates signature mode|
|DemoKeyPad.exe||Demonstrates key pad mode|
|DemoPinPad.exe||Demonstrates pin pad mode|
|DemoSlideShow.exe||Demonstrates slide show|
|DeleteRomImages.exe||Deletes preloaded images|
NOTE: To avoid the delays experienced uploading images, run the tests using the USB HID connection before attempting to use the serial mode.**
The ‘Use Signature Mode’ option is used to switch between the conventional and on-board signature capture methods. The on-board Signature Mode is intended for use with slow serial connections.
Click [ Signature ] - this will start signature capture using the STU-540 signature capture mode (over HID):
The first time DemoButtons runs, the images it needs for signature capture mode will be uploaded to the tablet. Since they are stored in ROM they will not be uploaded again.
It is advisable to use HID mode to upload the images. To exit, press a button on the STU display (not Windows).
Signature Capture over Serial
Run DemoButtons.exe and select the following:
- Select ‘Use serial connection’
- Select Port to match the Virtual Port used in query.exe
- Set Baud rate to 128000
- Select ‘Use Signature Mode’
- Click [ Signature ] to start signature capture
Because the images were uploaded in the HID test they are immediately available and there is no delay in signing or clearing the screen etc.
To emphasise the effectiveness of the signature capture mode, deselect ‘Use Signature Mode’. This method uses the conventional image upload method and takes a considerable time to start because the full screen image is uploaded at runtime:
The demo uses the Key Pad mode to make a graphic user selection. The first time the program runs it uploads the images it needs.
The demo uses the PIN Pad mode to enter a PIN code. The first time the program runs it uploads the images it needs.
The demo uses the slide show mode to display a number of images. The first time the program runs it uploads the images it needs. The images display continuously on the tablet until stopped.
The utility deletes all images stored on the STU tablet.
Use query.exe from STU Serial Connection to view the hash values of images stored in ROM. The values indicate the storage status of an image, for example:
RomImageHash[Signature,1,normal] = 6686b765cb00bcdefd40a0f53c58d46a RomImageHash[Signature,1,pushed] = 1b4bf1afd08396de7fd8715749bd9274 RomImageHash[Signature,2,normal] = not stored RomImageHash[Signature,2,pushed] = not stored