COMPAX POS Printer
This is a programming manual for the embedded printer within COMPAX POS terminal.
Introduction
COMPAX Android POS provide a general socket IO for connection of the embedded printer.
Software developers only need to send data and printer commands to the specified socket
and port, the printer will print accordingly, without any extra SDK.
Details
Calling Interface Sample
PrinterProxy requires connection timeout
PrinterProxy DOES NOT require connection timeout
Note (Important):There are two version of PrinterProxy, which requires connection timeout and doesn't require. Please confirm which version is built-in the POS terminal before programming.
When portNum value is 9100, the bytes[] data in out.write() should be in GB2312 format
When portNum value is 9101, the bytes[] data in out.write() should be in UTF8 format
Before every new socket connection, please send DEL EOT command to do handshake with the embedded printer.
Command 1
0x10, 0x04, 0x01
Command 2
0x10, 0x04, 0x02
Suggest to send 0x10, 0x04, 0x02, which will return printer status, so that software determines if the printer is ready to work.
For more printer command details, please refer the general ESC/POS programming guide.
Last updated