This manual covers the development and usage of Sunmi L2 and P2Lite scanners, including AIDL connection methods, interface definitions, and scanner settings.
This document serves as a development and user guide for Sunmi L2, P2Lite, V2Pro, and P2Pro dedicated scanning devices. It details how to connect to the scanner service using Android Interface Definition Language (AIDL) to control scanning operations programmatically. This manual is written in Chinese.
| Default Output Mode | Simulated Keyboard |
|---|---|
| Supported Code Types | Code128, EAN13, QR Code, DataMatrix, and others |
| Output Encoding | UTF-8, GBK, ISO-8859-1, SHIFT-JIS |
Call the scan() method defined in the IScanInterface.
The action is com.sunmi.scanner.ACTION_DATA_CODE_RECEIVED.
Call the getScannerModel() method which returns an integer ID.