© Quantum Research Group Ltd.
The bitfields for a global response are:
b7 b6 b5 b4 b3
e
0
X
65 - ERROR
C
ODE FOR
S
Bytes / Cmd # Bytes Rtnd
ELECTED
K
EY
Scope
n/a
Returns
n/a
0x00..0x0F
b2
b1
b0
X7Y0 X6Y0 X5Y0 X4Y0 X3Y0 X2Y0 X1Y0 X0Y0
Put
Get
n/a
1
n/a
1
byte1
byte2
byte3
byte4
byte5
byte6
byte7
byte8
1
7
6
5
4
3
2
1
0
X7Y1 X6Y1 X5Y1 X4Y1 X3Y1 X2Y1 X1Y1 X0Y1
15 14 13 12 11 10
X7Y2 X6Y2 X5Y2 X4Y2 X3Y2 X2Y2 X1Y2 X0Y2
23 22 21 20 19 18 17 16
X7Y3 X6Y3 X5Y3 X4Y3 X3Y3 X2Y3 X1Y3 X0Y3
31 30 29 28 27 26 25 24
X7Y4 X6Y4 X5Y4 X4Y4 X3Y4 X2Y4 X1Y4 X0Y4
39 38 37 36 35 34 33 32
X7Y5 X6Y5 X5Y5 X4Y5 X3Y5 X2Y5 X1Y5 X0Y5
47 46 45 44 43 42 41 40
X7Y6 X6Y6 X5Y6 X4Y6 X3Y6 X2Y6 X1Y6 X0Y6
55 54 53 52 51 50 49 48
X7Y7 X6Y7 X5Y7 X4Y7 X3Y7 X2Y7 X1Y7 X0Y7
63 62 61 60 59 58 57 56
Section 2.12, p. 8
9
8
Lowercase 'E'. Returns the error byte for a selected key
defined by the 's' command. A 4-bit pattern is returned:
b7
u
b6
u
b5
u
b4
u
b3
L
b2
H
b1
R
b0
F
F: 1= failed last full recalibration attempt
R: 1= key is in process of full recalibration
H: 1= key reference is high (above normal bounds)
L: 1= key reference is low (below normal bounds)
u: undefined
Refer also to Section 2.10.
Byte 1 is the first returned byte in the sequence.
F, Bit 0 is set if it failed to calibrate properly during a forced
recalibration. The sensor will automatically make 5 sequential
attempts at recalibration before setting this flag.
In all the above examples a '1' in a bit position indicates that
there is some type of error associated with the key. The use
of the 'e' command (or 'E' with scope set to a specific key) will
specify the nature of the error.
R, Bit 1 is set if the key is in the process of a full
recalibration. When set, bits 2 and 3 are immediately cleared.
k
0
X
6B - REPORTING OF
F
Bytes / Cmd
IRST
T
OUCHED
K
#Bytes Rtnd
EY
H, Bit 2 when set indicates either:
Scope
n/a
n/a
Returns
n/a
0x00..0xFF
- the reference has drifted above decimal 191, or,
- the total absolute reference level has become higher than
the upper window boundary described in Section 2.11
and as defined by Command ^N after a forced
recalibration.
Put
Get
n/a
1
n/a
1
Section 2.12, p. 8
Lowercase 'K'. Returns a byte that indicates which if any key
has been touched. The byte is structured as follows:
L, Bit 3 when set indicates either:
- the reference has drifted below decimal 64, or,
- the total absolute reference level has become lower than
the lower boundary described in Section 2.11, as defined
by Command ^O after a forced recalibration.
b7
m
b6
-
b5
k5
b4
k4
b3
k3
b2
k2
b1
k1
b0
k0
Bits are used as follows:
m - if '1', indicates that yet another key is active
Bits 2 and 3, if set via drift compensation, would indicate that
the key should be recalibrated by the host. If H and L bits
appear immediately after a full recalibration, it means that the
key is probably defective.
k0..k5 - indicates the key number of a first detected key,
in the range 0..63 (0x00..0x3F).
If a reported key drops out while other keys are active, 'k' will
report one of the other active keys, but there is no rule for
which of the next keys gets reported in k0..k5.
E
0x45 - Error Codes for Group
Scope
n/a
1, 8, 64
Bytes / Cmd # Bytes Rtnd
Returns
n/a
0x00..0xFF
If the byte returned has a value of 255 (0xFF), then no key
has been detected.
Put
Get
n/a
1
n/a
1 or 8
Section 2.12, p. 8
Uppercase 'E'. Returns general error codes for a range of
keys defined by scope. Returns either 1 or 8 bytes depending
on whether a single key, row, column, or entire matrix are
selected.
The bitfields for a single key are the same as for 'e' above.
The bitfields for a single row (X) are:
b7
Y7
b6
Y6
b5
Y5
b4
Y4
b3
Y3
b2
Y2
b1
Y1
b0
Y0
The bitfields for a single column (Y) are:
b7
X7
b6
X6
b5
X5
b4
X4
b3
X3
b2
X2
b1
X1
b0
X0
lQ
23
www.qprox.com QT60xx5B / R1.06