
8
6. Protocol
Command symbols definitions are as below:
STX
02H
CR
0DH
ACK
41H
NACK
4EH
m
1 byte parameter
n
1 byte parameter
<Data…>
contents of data
6-A. Get device firmware version
HOST to DEVICE (4 bytes)
STX
G
R
CR
02H
47H
52H
0DH
DEVICE to HOST (11 bytes)
STX
“ROMXXXXVY”
CR
You can get device information and status by this command.
XXXX: Firmware Number
V:
Version
Y:
Revision
For example: STX-
“ROM0722A7”-CR
6-B. Get service code
HOST to DEVICE (4 bytes)
STX
G
S
CR
02H
47H
53H
0DH
DEVICE to HOST (12 bytes)
STX
“XXXXXXXXXX”
CR
You can get the unique service code by this command.
XXXX: service code
For example: STX-
“0000000000”-CR
6-C. Get input status
HOST to DEVICE (4 bytes)
STX
G
I
CR
02H
47H
49H
0DH
DEVICE to HOST (4 bytes)
STX
“XY”
CR
You can get the 2 input data with this command.
X: INPUT1 status (0: Low/1:High)
Y: INPUT2 status (0: Low/1:High)
For example: STX-
“11”-CR. that means input 1&2 all high.