Key facts
- Manuals
- 1
- Languages
- ZH
- Last added
- 2026-11-30
Featured 商米 manuals

Sunmi A4 Printer Developer Document
This document explains how to use the Sunmi A4 printer on self-service devices through the API interfaces provided by Sunmi. It covers connection methods, pseudocode examples, interface APIs and an appendix of error codes.
Connecting to the printer uses AIDL, the Android Interface Definition Language, which defines the inter-process communication interface. The document lists five steps for establishing the connection, from adding the AIDL file to unbinding the service when the application exits, and provides pseudocode for binding the service, creating a print job and releasing the connection. This manual is written in Chinese.
Covers: 简介 · 连接方式 · 伪代码示例 · 接口API · 附录 错误码表 · 打印机状态表
Latest 商米 manuals
Sunmi A4 Printer Developer Document
User Manual 7 pages · 264 KB · ZHDeveloper document for the Sunmi A4 printer, covering AIDL connection steps, pseudocode, API methods and error codes.
Which document do I need?
User Manual
Day-to-day operation, settings and troubleshooting. Start here if the product is already set up.
Questions answered in 商米 manuals
How do I establish a connection to the A4 printer?
Add the AIDL file, implement ServiceConnection, call bindService, convert the IBinder with ExtPrinterService.Stub.asInterface(service), then call the AIDL methods. Call unbindService when the application exits.
Does a successful API return mean the print job succeeded?
No. The printer executes print tasks and sends data asynchronously, so the interface return only indicates that the print service received the instruction. The printer may still be in an abnormal state such as out of paper.
