http://www.woosim.com
76
7
7
.
.
I
I
n
n
t
t
r
r
o
o
d
d
u
u
c
c
t
t
i
i
o
o
n
n
o
o
f
f
P
P
r
r
o
o
t
t
o
o
c
c
o
o
l
l
I
I
r
r
D
D
A
A
(
(
o
o
r
r
B
B
l
l
u
u
e
e
t
t
o
o
o
o
t
t
h
h
)
)
7
7
.
.
1
1
.
.
F
F
r
r
a
a
m
m
e
e
S
S
t
t
r
r
u
u
c
c
t
t
u
u
r
r
e
e
S
S
O
O
F
F
(Start Of Frame)
T
T
O
O
F
F
(Type Of Frame)
D
D
A
A
T
T
A
A
E
E
O
O
F
F
(End Of Frame)
1 Byte
1 Byte
Variable
1 Byte
-
Type of frame
T
T
y
y
p
p
e
e
o
o
f
f
f
f
r
r
a
a
m
m
e
e
V
V
a
a
l
l
u
u
e
e
D
D
A
A
T
T
A
A
F
F
i
i
e
e
l
l
d
d
ACK 0x06
X
NACK
0x15 X
ENQ 0x05
X
PRINT Data
‘D’ (0x44)
O
Response of Printer Status
‘S’ (0x53)
O
Inquiry of Printer Status
‘Q’ (0x51)
X
EOT 0x04
X
ETX 0x03
X
During transmission, if C0H, C1H, and/or 7DH are contained in data field, 7DH
should be inserted before the data and the data should be XORed with 20H and sent.
During reception, if 7DH is encountered, 7DH should be ignored and the next byte
should be XORed with 20H and stored.