Sunmi L2/P2Lite Scanner Development and User Manual

This manual covers the development and usage of Sunmi L2 and P2Lite scanners, including AIDL connection methods, interface definitions, and scanner settings.


Sunmi L2/P2Lite Scanner Development and User Manual - cover page
Brand
Sunmi
Category
Other Electronics
Document type
User Manual
Language
Chinese
Pages
18
File format
PDF
File size
967 KB
Published
18 October, 2026
Updated
18 October, 2026
MD5 checksum
C56235119EFCB400EBA463B52ACCD83E

About this manual

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.

What's inside

  • Document Update History
  • Introduction
  • Connecting to Scanner Service (AIDL)
  • AIDL Interface Definition
  • Custom Key Trigger
  • Scanner Settings
  • Barcode Symbology Support

Specifications

Default Output ModeSimulated Keyboard
Supported Code TypesCode128, EAN13, QR Code, DataMatrix, and others
Output EncodingUTF-8, GBK, ISO-8859-1, SHIFT-JIS

Frequently asked questions

How do I trigger a scan programmatically?

Call the scan() method defined in the IScanInterface.

What is the broadcast action for received data?

The action is com.sunmi.scanner.ACTION_DATA_CODE_RECEIVED.

How do I get the current scanner model type?

Call the getScannerModel() method which returns an integer ID.

Download PDF (967 KB)

More Sunmi Manuals


View all Sunmi manuals →