pretix / pretixprint-android

Android printing driver app for pretixPOS and pretixSCAN
Other
6 stars 9 forks source link

Label mode printing for Sunmi devices with integrated printer #66

Open thvranken opened 1 year ago

thvranken commented 1 year ago

This implementation extends and improves the support for printing on Sunmi devices, more specifically for badge printing.

It implements support for "label mode" (and should also work for "black mark mode") printing on compatible Sunmi devices for printing badges, where the device makes sure that the print is well aligned/synchronised to the start of a label. After printing the label, it also feeds the roll to the correct position in a gap between 2 labels to tear off the printed label(s). The device will retreat the fed paper again a bit, when necessary, at the start of the next print job so that also subsequent prints are aligned correctly with respect to their labels.

It supports devices with both a 58mm printer and an 80mm printer. It is flexible towards all device-compatible label sizes.

This implementation was tested on a Sunmi V2s Plus device (P06050006). The combination of a built-in 2D scanner engine and an 80mm printer makes it a very interesting mobile all-in-one device for validating pretix tickets as well as badge printing.

Sources:

raphaelm commented 1 year ago

Hey, thanks a lot! Please have some patience with the review, we need to schedule it between some other things, and I'm not yet sure if we have a compatible device for testing around yet.