I recently picked up one of these networked thermal receipt printers.
Being Point-of-Sale equipment, these come from a different tradition of printing, and have only a few things in common with regular laser printers. This post will cover the basic steps to getting the printer up and running.
This one has the model number TM-T82II.
Setting up the printer
Firstly, this particular printer only has an ethernet interface, which comes configured with a static IP by default, rather than DHCP. Holding the button next to the network port prints out the settings:
The IP address of the printer is shown 192.168.192.168, and subnet mask 255.255.255.0. To speak to it, we need a computer on the same subnet. In this case the last number of the IP address is the only part which needs to be different.
On GNU/Linux, this is best done with ifconfig
:
|
|
If you used the correct interface, address and netmask, then you should now be able to ping the printer:
|
|
The printer has a web interface, and is open on two ports for printing:
|
|
The web interface will let you set different IP settings, so that you can get the printer on your network. If you mess up and can’t connect, then do a factory reset: Hold the button used before, and then reboot the printer.
Using the printer
Epson provides drivers for several platforms, which may fit your use case.
However, these printers do support ESC/POS (See Wikipedia). making it quite accessible without installed drivers.
The printer will immediately print any regular text it receives over Port 9100, line by line:
|
|
ESC/POS commands allow you to format the text, print barcodes, and cut the paper. A good resource for them is this PDF reference from Epson.
I’ve included a PHP script to produce the ESC/POS commands for the below receipt, showing how to use a few of the supported features:
And the script which created it:
|
|
This can again be sent to the printer using netcat:
|
|