Chapter 5 - Smart-Frame Protocol II
CARROLL TOUCH
5-14
Touch System Programmer’s Guide
66 04 20 01 02 02 FF
If the particular firmware implementation in the touch system does not
support the MultiTouchState value of the TouchStateReportType
parameter (the first
02H
byte in the command), the touch system
responds with the following report:
E0 05 02 20 01 02 02 FF
The
02
byte is Cmderr and indicates that the second parameter is in
error. This parameter is the TouchStateReportType parameter. The
value of 02H is a valid value for this parameter and represents a request
by the host that the touch data be returned using the Multi Touch State
Report. However, since this particular firmware does not support the
MultiTouchState reporting method, the touch system returns the error
in Cmderr to indicate this to the host.
Invalid Byte Count
The touch system reports an invalid byte count if it reads the number of
bytes specified by the byte count and the next byte received is not a
command packet trailer byte.
Note that this means that if the number of bytes received after the byte
count is less than the byte count, no error is generated until enough
additional bytes are received to match the byte count or the touch
system’s input buffer overflows. The touch system does not use any
sort of timeout technique if it receives fewer bytes than expected.
This error also occurs if the touch system’s input buffer overflows
while it is attempting to read the number of bytes specified by the byte
count.
When an invalid byte count is detected, an SFP-II report packet is sent
with the Cmderr parameter set to FEH and the SFP-II report number set
to the command number.
For example, suppose the host sends the following command:
66 04 20 01 04 03 FF
Due to noise on the serial line, the touch system actually receives an
extra byte after the first parameter as follows:
66 04 20 01 86 04 03 FF
Содержание 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 ...