4-2 Programming Samples Rev. A
4.1 Method of Printing to the UB-E02
The UB-E02 has lpr protocol as its general print protocol. It is easy to print by using the lpr
protocol because the printing is also supported by the operating system.
However, the command statuses sent by the printer are ignored because the printing by lpr
applies only to the output of the printer.
The UB-E02 supports direct printing by TCP PORT9100. It is possible to control the printer
directly by an application with the ESC/POS commands through writing and reading to the
TCP PORT9100.
4.1.1 Buffer of the UB-E02
This is an image of the buffer. The buffer sent from the host computer to the TM printer is 16 KB.
The buffer sent from the TM printer to the host computer is 512 bytes.