Sunmi Printer programming guide detailing interfaces, AIDL usage, image printing, barcode support, black‑mark printing, and troubleshooting.
About this manual
This document provides developers with a complete guide to integrate Sunmi's built‑in thermal printers. It covers three access methods – the in‑built print service interface, virtual Bluetooth device, and H5/JS bridge – and explains how to initialize the printer, set styles, and handle callbacks.
The guide also describes specific features such as black‑mark printing, label printing, and support for 1D/2D barcodes, along with detailed FAQ sections on paper specifications, resolution, and common error handling. This manual is written in Chinese.
What's inside
- Introduction
- Inbuilt Print Service Interface
- Integration and Initialization
- AIDL Interface Definitions
- Print Style Settings
- Black Mark Printing
- Image and Barcode Printing
- Virtual Bluetooth Printing
- JS Bridge Printing
- FAQ and Paper Specifications
Specifications
| Paper width | 58 mm |
|---|
| Active print width | 48 mm |
|---|
| Active print pixels per line | 384 pixels |
|---|
| Resolution | 205 DPI |
|---|
| Image pixel limit | ≤ 2 MP, 58 mm: 384 px, 80 mm: 576 px |
Frequently asked questions
What is the printer resolution?
The printer’s resolution is 205 DPI.
What paper sizes are supported?
Sunmi printers support 58 mm and 80 mm width printing paper.