niimprint: Printing early, then throwing out an extra label

Actually kind of glad I could log an issue, I can’t find anywhere to have discussion or post my findings. I don’t really (know how to) use git.

Anyway I have a K3w running over USB to an Ubuntu 23.04 laptop, which works great, I added listings in main to k3, set it as default and gave it a max_width of 640 and it happily printed labels correctly on 60mm*40mm white labels. Wanted to mention that but I couldn’t find any place for discussion as such to post it without logging an issue, which I wasn’t having at that point.

The K3w is equivalent to the B3s but it has a USB printer cable, WiFi capability and can suck in long labels from the back (eg like boarding passes etc).

Wrote a PHP application that builds an image from my inventory system, saves it to an accessible location and prints out the label, very happy.

However, when I switched down to 40mmx20mm labels, suddenly it prints early and then chonks out two labels (second one blank). Same result when direct from the CLI (so not the application).

Tried it with 320x160 labels, 304x144 labels, 250x100 labels and the B21_30x15mm_240x120px.png example all with the same results.

Tried changing the density as I saw in another issue (I’ve read them all) that there was an issue with it not completing prints, and different densities made a difference, but no change.

Command is python3 niimprint -i /var/www/html/images/labels/standardLargeLabelSFF8643SGLANGLE1M.png -d 5

Ran it verbose for this output:

DEBUG | PngImagePlugin:call:204 - STREAM b'IHDR' 16 13
DEBUG | PngImagePlugin:call:204 - STREAM b'PLTE' 41 165
DEBUG | PngImagePlugin:call:204 - STREAM b'pHYs' 218 9
DEBUG | PngImagePlugin:call:204 - STREAM b'IDAT' 239 2667
DEBUG | printer:_log_buffer:146 - send: 55:55:21:01:05:25:aa:aa
DEBUG | printer:_log_buffer:146 - recv: 55:55:31:01:01:31:aa:aa
DEBUG | printer:_log_buffer:146 - send: 55:55:23:01:01:23:aa:aa
DEBUG | printer:_log_buffer:146 - recv: 55:55:33:01:01:33:aa:aa
DEBUG | printer:_log_buffer:146 - send: 55:55:01:01:01:01:aa:aa
DEBUG | printer:_log_buffer:146 - recv: 55:55:02:01:01:02:aa:aa
DEBUG | printer:_log_buffer:146 - send: 55:55:03:01:01:03:aa:aa
DEBUG | printer:_log_buffer:146 - recv: 55:55:04:01:01:04:aa:aa
DEBUG | printer:_log_buffer:146 - send: 55:55:13:04:00:90:01:30:b6:aa:aa
DEBUG | printer:_log_buffer:146 - recv: 55:55:14:02:01:00:17:aa:aa
DEBUG | printer:_log_buffer:146 - send: 55:55:e3:01:01:e3:aa:aa
DEBUG | printer:_log_buffer:146 - recv: 55:55:d3:03:00:8f:01:5e:aa:aa
DEBUG | printer:_log_buffer:146 - recv: 55:55:e4:01:01:e4:aa:aa
DEBUG | printer:_log_buffer:146 - send: 55:55:f3:01:01:f3:aa:aa
DEBUG | printer:_log_buffer:146 - recv: 55:55:f4:01:01:f4:aa:aa

I’ve sent a print job for these labels from Niimbot desktop to success (printed one label in the right place, to rule out the printer).

And attached images (you can see it sort of starts printing immediately which results in data sitting on the gap between and sometimes on what would have been the sticker prior).

IMG_20240706_203357301 IMG_20240706_203851578_HDR IMG_20240706_203858180_HDR IMG_20240706_204159295_HDR IMG_20240706_205340857_HDR

You can see in the last one (the 30x15) that it actually started printing on the label before it.

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 20 (6 by maintainers)

Most upvoted comments

Oh I see you mean Official App as in “Official Niimbot App”.

My primary computer is a Windows desktop, and this label printer is permanently affixed to this laptop but I liked the labels so much I have ordered another one. Once that arrives I’ll hook it up to my desktop and give it a go.