Specifications
Packet Structure 49
Commands and Acknowledgements
Each command sent to a SmartSet controller is confirmed by an Acknowledge
response. This response packet indicates any errors in the command and any other
pending errors. See page 82 in the Command Reference for a list of the possible
error codes.
A typical query/response/set interaction flows as follows:
Host sends query command packet
Controller sends a response packet
Controller sends an acknowledge response packet
Host sends a set command packet
Controller sends an acknowledge response packet
The only commands that does not return an Acknowledge response are the Hard
Reset and Quiet-all commands.
Let's use the SMARTSET utility to demonstrate this interaction. Type:
SMARTSET
at the DOS prompt, select your interface, and proceed to the Main Menu. (For
more information on using SMARTSET, see Chapter 4.)
Make sure touches are enabled by typing "P". (PC-Bus and Micro Channel
controllers are not enabled by default). Change Touch Reporting to Report as
necessary.
Next select the Touch Mode submenu by typing "M". Initial Touches, Stream
Touches, and Untouches should all be Enabled.
Now type "A" for ASCII Setup. Touch the touchscreen and notice the stream of
packets received by SMARTSET. A sample display is shown in Figure 5-1, page
50.
The "T" in byte 0 indicates the packets are Touch packets. Refer to page 102 for
detailed information on the contents of the Touch packet. Byte 1 contains the
Status bits, the X coordinate is the Intel (byte swapped) integer formed by bytes 2
& 3, Y is in bytes 4 & 5, and Z follows in bytes 6 & 7. As you move your finger,
bytes 2-5 should change. Byte 1 should indicate your Initial Touch, Stream
Touches, and Untouch with 1, 2, and 4 respectively. These values correspond to
the bit positions defined for the Touch packet on page 102. Bytes 6 & 7 are
constant because the current SmartSet controllers do not support a Z-axis.