Specifications

Touch Controllers Reference Guide42
Response: <SOH>0<CR> Positive response.
After the controller is in Format Binary mode, the host must issue a
Ctrl Q (^Q) before the controller sends the touch coordinate.
For each touchdown event, Format Binary always sends the following
hexadecimal packet followed by the 5-byte data packet:
0x17, 0x20, 0x20, 0x20, 0x20
The 5-byte data packet has the following format:
<Status>Xx,Yy
where:
<Status> = Defines how the X, Y coordinates are generated, where:
^Y (Hex 19) is a touchdown (first position of finger on
the screen).
^\ (Hex 1C) is a continued touch (position of finger
remains on the screen).
^R (Hex 18) is a touch liftoff (last position of finger on
the screen).
X
x = X (horizontal) coordinate data. Total of 2 bytes.
Yy = Y (vertical) coordinate data. Total of 2 bytes.
MSB* Bits LSB*
Data Sequence 7 6543210
Header - Byte 1 S7 S6 S5 S4 S3 S2 S1 S0
X - Byte 2 0 0 1 X9 X8 X7 X6 X5
x - Byte 3 0 0 1 X4 X3 X2 X1 X0
Y - Byte 4 0 0 1 Y9 Y8 Y7 Y6 Y5
y - Byte 5 0 0 1 Y4 Y3 Y2 Y1 Y0
*
MSB = Most Significant Bit, LSB = Least Significant Bit