Label mode printing for Sunmi devices with integrated printer #66
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: