CNI proprietary protocol commands
05-10-2007
CNI Engineering S.r.l.
27
4.1.5 Read I/O command
This command requests the terminal to return data on the states of its I/O devices: knob, override/s,
and keys.
Byte
Command
Response
01
STX
STX
02
Node
Node
03
CmdDefault
CmdDefault
StatusBit
04
0x00
D1
05
CRC
D0
06
ETX
D3
07
D2
08
CRC
09
ETX
Meaning of returned data
The meaning is determined by the first
StatusBit
bit according to the following table.
First
StatusBit
Meaning D0
Meaning D1
Meaning D2
Meaning D3
0
Bit by bit status for
keys 1 to 8
Bit by bit status for keys
9 to 16
Bit by bit status for
keys 17 to 24
Bit by bit status for
keys 25 to 32
1
1
st
override status
2
nd
override status
High byte of knob
status
Low byte of knob
status
Example:
To send the read I/O command to the terminal at node address 0 twice, receiving in
response an I/O status showing that key 18 is pressed, override 1 is set to 1, override 2 to 5 and the
knob has been turned to a value of 1063 (0x0427).
First send:
Byte
Command
Response
01
0x02
(STX)
0x02
(STX)
02
0x00
(Node)
0x00
(Node)
03
0x00
(CmdDefault) 0xc
(CmdDefault) 0x0 (StatusBit)
04
0x00
0x00
(D1)
05
0x00
(CRC)
0x00
(D0)
06
0x03
(ETX)
0x00
(D3)
07
0x02
(D2; [0x1b 0xfd]=0x02)
08
0x3d
(CRC)
09
0x03
(ETX)
Second send:
Byte
Command
Response
01
0x02
(STX)
0x02
(STX)
02
0x00
(Node)
0x00
(Node)
03
0x00
(CmdDefault) 0xc
(CmdDefault) 0x1 (StatusBit)
04
0x00
0x05
(D1)
05
0x00
(CRC)
0x01
(D0)
06
0x03
(ETX)
0x04
(D3)
07
0x27
(D2)
08
0x19
(CRC)
09
0x03
(ETX)
Summary of Contents for RM85x
Page 4: ......
Page 8: ...TABLE OF CONTENTS 05 10 2007 CNI Engineering S r l iv...