When use software flow control with XON/XOFF method, connection as follow:
Printer
Main device
TXD
RXD
RXD
TXD
GND
GND
When use flow control, host device needs to test print buffer is full or not according to RXD
data of main device itself. Detailed method as follow: Starting printing, main device send
the data to the printer, and monitor data receiving of serial interface at the same time.
When receiving XOFF (0x13), stop sending data to the printer; when receiving XON
(0x11), send the data to printer again. It recycles until finishing printing.
2.4 WiFi ( reserved)
Chapter 3 Command set
3.1 Basic Function Commands
3.1.1 ESC @
[Name] Initialize printer
[Format] ASCII ESC @
Hex 1B 40
Decimal 27 64
[Description] Initialize the printer. All settings, including character font and line spacing
settings, are canceled. The data in the print buffer is cleared and the printer mode is reset
to the mode that was in effect when the power was turned on. The DIP switch settings are
not checked again, the data in the receive buffer is not cleared, and any macro definitions
are not cleared.
[Program example] char SendStr[3];
SendStr[0] = 0x1B
SendStr[1] = 0x40;
PrtSendData(SendStr, 2);
3.1.2 FF
[Name] Print and return to standard mode (in page mode)
[Format] ASCII FF
Hex OC
Decimal 12
[Description] FF prints the data in the printer buffer collectively and returns to standard
mode.
[Note]
• The buffer data is deleted after being printed.