Chapter 5 - Smart-Frame Protocol II
CARROLL TOUCH
5-10
Touch System Programmer’s Guide
follows the header, read the number of bytes specified by the byte count
(the report packet), and verify 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 report packet and
the command error status, report number, and parameters are forwarded
to the interpretation layer.
Interpretation Layer
The format for SFP-II reports at the interpretation layer is as follows:
commanderrorstatus reportnumber
optionalreportparameters
To interpret the report, the host should first examine the command error
status parameter. If the command error status parameter indicates an
error, the host should take the appropriate action.
The host should then examine the report number. If the report number
does not correspond to a defined SFP-II report, the host should deem
the report invalid.
Finally, the host should examine the report to determine that the
appropriate number of parameter bytes for the report is present. If the
appropriate number is not present, or one or more of the parameter
bytes are otherwise invalid for the report (parameter is out of range and
so forth), the host should deem the report invalid.
If the host determines that all information in the interpretation layer is
valid, the host should process the command.
The bytes within the report packet are indexed beginning at 0 for the
SFP-II report number, and ending at (report packet byte count - 1) for
the last parameter byte. The length of the report packet is given by the
packet byte count that was read during the validation layer.
Example
An example of a report issued in response to a valid SFP-II command,
GetProtocolVersion (command 65), is:
E0 04 00 65 02 12 FF
E0
and
FF
are the header and footer, respectively.
04
indicates the
report contains four bytes.
00
is the command error status (Cmderr)
and indicates the report is valid.
65
is the report number, which is the
Содержание 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 ...