Instructions

QU-CD-720M/820M Manual Ver3.19
5
3
.5 Protocol of the RS232
This protocol is asynchronous data transfer. After the host send one frame command, the
card dispenser machine will return back ACK (0x06) or NAK (0x15). If get ACK(0x06)
signal, the host will send 1 byte ENQ (0x05). And then the dispenser execute the
command after the "ENG" signal is received.
Host:
Command
ENQ
Card Machine:
ACK/NAK
<execute command or response >
3
.5.1 RS232 Format
Code: NRZ
Baud rate: 9600
Parity bit: no
Duplex: semi duplex
Stop bit: 1
Data bit: 8bits
3
3
.5.2 Command
.5.2.1 Command frame format
<
STX>C1 C2<ETX> <BCC>
STX> 02HEX,start byte
C1 C2 Command code ( two bytes of ASCII)
<
<
ETX> 03HEX),end byte
BCC> Exclusive or check code (1 byte), calculated by this expressions:
STX>C1 C2 <ETX>(is Xor operator)
<
<
3
.5.2.2 Commands content
The host computer sends the following command to the card dispenser for expected operates.
Command
C1,C2
Description
Response(R1,R2)
-------
If a card is Ready-place or Reading-place, the card
will be drived (issued) to the taken-place by this
command.
Dispense Card
(DC)
4
4H,43H
If a card is reading-place or Taken-place, the card
Callback (CP)
43H,50H
2H,46H
53H,54H
4H,48H
45H,53H
-------
will be called back to the recycle bin.
Request working
state (RF)
Get the current status of the card dispenserSee the S F , 3 bytes
section 3.5.5.2 for detailed information
5
status ASCII code
Reset (ST)
Reset the card dispenser.
-------
If a card is Ready-Site , the card will be drived
(issued) to the Reading-place for reading the
card.( DIP1 must be set toON)
Single step 1
4
-------
-------
DH
Single step 2
The card is drived(issued) to the taken-place.