thorrak/rpi-tspl-cups-driver

Filter failed

Opened this issue · 3 comments

I have a TSC TDP-225 printer. I tried using your filter. It throws an error. I think this is due to the fact that I have aarch64 and CUPS 2.3.3op2

Recompile please under this system. Thank you. I will be very grateful

f-o-n commented

I was facing the same issue with my Polono PL60 and a Raspberry Pi 4B. Here the steps how to get it working:

git clone https://github.com/OpenPrinting/cups/
and
Replace cups/filter/rastertolabel.c with the modified one by Proski/thorrak

or just

git clone -b 2.2.10_beeprt https://github.com/thorrak/cups/

My Polono PL60's color was inverted so I had to change line #1024 from

if (Buffer[i ++] >= 200) /* arbitrary threshold */
to
if (Buffer[i ++] <= 200) /* arbitrary threshold */

Follow the make instructions to compile everything

Or download raster-tspl-aarch64.zip containing one I compiled

Copy the newly compiled rastertolabel as raster-tspl
sudo cp cup/filter/rastertolabel /usr/lib/cups/filter/raster-tspl

Make sure the ownership/permissions are right

sudo chmod +x /usr/lib/cups/filter/raster-tspl
sudo chmod 755 /usr/lib/cups/filter/raster-tspl
sudo chown root:root /usr/lib/cups/filter/raster-tspl

Get the the old ppd for your printer or the generic one I attached above, which I got from the Rollo driver (which worked nicely with my Polono)

  • Change cupsModelNumber to 20
  • Change cupsFilter to application/vnd.cups-raster 0 raster-tspl

Restart cups
sudo systemctl restart cups

When adding the printer via http://localhost:631/ and attach the new ppd file

Thank you. Your instructions were very helpful and I was able to set up the printer on Ruspbery Pi.

hank commented

I wish I would have found this sooner. I just recreated all the steps above! I'll be submitting a pull request with the new aarch64 raster-tspl so less people have to go through all this.