RD-EK32 Series User Development manual
5
3
RXD
Mainframe
Input
When using the ‘X-ON/X-OFF’
Handshake Protocol
,
the printer sends
control code ‘X-ON/X-OFF’ to the
computer. (RECEIVE DATA)
4
CTS
Printer
Output
When the signal is in a state of
‘MARK’, it means that the printer is
busy and can’t receive data. But when
the signal is in a state of ‘SPACE’, it
means that the printer is ready to receive
data.
5
GND
——
——
Signal ground
2.1.2 Serial port data transmission method
The receiving buffer of the printer is 2K
(1) When the number of sending data once is less than 2K, the data can be directly sent. And the
sending method is as follows:
2)
If large amounts of data once is sent, need to judge the mark ‘CTS’ when sending the data. When the mark
is ‘1’, the data can’t be sent. When the mark is ‘0’, the data can be sent. Data can be sent in the form of
packets or byte. When the data is sent in the form of packets, each data packet can’t exceed 256 bytes, and
the sending flowchart is as follows:
Use the data wire
to connect the
upper
computer
to the printer
Configure
the
communication
methods
of
the
upper computer
Power
on
the
printer and load
the printing paper
Send data +enter
Initialization: baud rate,
data mode
CTS=1
send the data packets (Less
than 256 bytes)
N
Y
Whether
to
end
sending the data
End printing
Y
N