CARROLL TOUCH
Chapter 5 - Smart-Frame Protocol II
Touch System Programmer’s Guide
5-7
Validation Layer
The format for SFP-II commands at the validation layer is:
header packetbytecount interpretationlayer
trailer
The validation layer consists of the outer portions of the command
format and “wraps” around the inner portions of the command format,
or the interpretation layer. To detect a valid SFP-II command in the
incoming stream of bytes, the touch system firmware detects the
header, reads the byte count that follows the header, reads the number
of bytes specified by the byte count (the command packet), and verifies
that the following byte is a trailer byte. If the segment of the incoming
byte stream under consideration fits this format, the segment is deemed
to be a valid SFP-II command packet and the command number and
parameters are forwarded to the interpretation layer.
Interpretation Layer
The format for SFP-II commands at the interpretation layer is:
commandnumber optionalparameters
To interpret the command, the touch system firmware first jumps to the
appropriate command handler using a jump table. If the command
number does not correspond to a defined SFP-II command, the
command is deemed invalid and a report is sent to the host with the
command error parameter set to the Invalid Command value.
If the command handler determines that the appropriate number of
parameter bytes for the command is not present, or that one or more of
the parameter bytes are otherwise invalid for the command (parameter
is out of range, not set to a valid value for this particular touch system,
and so forth), the corresponding SFP-II report is sent to the host with
the command error parameter set to indicate the missing or invalid
parameter byte. The parameters that the host sent in the command are
echoed to the host in this report.
If the command handler determines that the appropriate number of
parameter bytes for the command is present and that all of the
parameter bytes are valid for that command, the touch system processes
the command and sends the corresponding SFP-II report back to the
host. The command error parameter is set to the “valid command and
parameters” value to indicate that both the command and parameters
were valid.
Содержание TouchSystems CarrollTouch Prog
Страница 1: ...CARROLL TOUCH TOUCH PRODUCTS an company AMP Touch System Programmer s Guide ...
Страница 11: ...Table of Contents CARROLL TOUCH viii ...
Страница 13: ...Table of Contents CARROLL TOUCH x ...
Страница 17: ...Welcome CARROLL TOUCH xiv Touch System Programmer s Guide ...
Страница 25: ...Chapter 1 Introduction to Infrared Touch Systems CARROLL TOUCH 1 8 Touch System Programmer s Guide ...
Страница 29: ...Chapter 2 Introduction to Guided Wave Touch Systems CARROLL TOUCH 2 4 Touch System Programmer s Guide ...
Страница 41: ...Chapter 3 General Programming Issues CARROLL TOUCH 3 12 Touch System Programmer s Guide ...
Страница 57: ...Chapter 4 Smart Frame Protocol CARROLL TOUCH 4 16 Touch System Programmer s Guide ...
Страница 87: ...Chapter 6 Touch Application Program Interface TAPI CARROLL TOUCH 6 10 Touch System Programmer s Guide ...
Страница 149: ...Appendix A Smart Frame Protocol Command Reference CARROLL TOUCH A 40 Touch System Programmer s Guide ...
Страница 179: ...Appendix B Smart Frame Protocol II Function Reference CARROLL TOUCH B 30 Touch System Programmer s Guide ...
Страница 237: ...Appendix D CTKERN Function Reference CARROLL TOUCH D 42 Touch System Programmer s Guide ...