Prepare
Before everything
We assume that you have a Devterm with stock os running
and a little bit of Linux compiling experience
know how to install packages by package manager like apt
WiringPi
CM3 or CM4
A06 A04
R01
Compile thermal printer driver code
Debug or run it from manually
- setup socat socket for data receving for thermal printer
- run devterm_thermal_printer.elf
now you can test the printer by cat or echo something into /tmp/DEVTERM_PRINTER_IN
eg: `echo "hello world\n\n\n\n\n\n\n\n\n\n" > /tmp/DEVTERM_PRINTER_IN
we recommend use tmux to do this job
so that you can run and see all the commands output in a single terminal window
For CUPS
just install devterm-thermal-printer-cups
sudo apt install devterm-thermal-printer-cups
this package will add a CUPS serial printer adapter,a CUPS filter for the DevTerm's thermal printer
and will let other programs to print content through image printing using DevTerm's thermal printer
source code is in https://github.com/clockworkpi/DevTerm/tree/main/Code/devterm_thermal_printer_cups
all devterm related deb packages available at
https://github.com/clockworkpi/apt