Page 1
Shanghai Sunmi Technology Co., Ltd. Sweeping Development Sunmi Scanner User Guide...
Page 2
Shanghai Sunmi Technology Co., Ltd. Sweeping Development Document Update Description Number Update date Version Update content Author 1.0.0 2018/04/24 v1.1.6 Darren、Arthur Original Version. Increase access to sweep dock 1.0.1 2018/06/07 v1.1.19 Darren、Arthur type interface. Add code system detail settings. Increase suffix settings.
Page 3
Shanghai Sunmi Technology Co., Ltd. Sweeping Development 1. Introduction Sunmi L2, P2Lite and other scan code special equipment, can be used for commercial super, industrial, medical, agricultural trade, law enforcement, etc., L2 has two kinds of scan specs: NewLand:New NewLand Sweeping Pier, support code see Schedule 1;...
Page 4
Shanghai Sunmi Technology Co., Ltd. Sweeping Development 2. Connect Service(AIDL) 2.1. AIDL AIDL is the abbreviation of Android Interface Definition language. It is a description language of Android's internal process communication interface. Through it, we can define the communication interface between processes.
Page 6
Shanghai Sunmi Technology Co., Ltd. Sweeping Development 2.3. AIDL Interface Fuction void sendKeyEvent(KeyEvent key) Custom the trigger key void scan() start scan void stop() stop scan int getScannerModel() Get scanner type Custom the trigger key fuction:void sendKeyEvent(KeyEvent key) parameter: key → KeyEvent action=KeyEvent.ACTION_UP:start scan...
Page 7
Shanghai Sunmi Technology Co., Ltd. Sweeping Development Stop scan fuction:void stop( ) Note:Need to work with the scan() method to stop identifying scan codes. Example: scanInterface.stop(); Get scan type fuction:int getScannerModel( ) Return:Type: 100 → NONE 101 → P2Lite/V2Pro/P2Pro(em1365/BSM1825) 102 → L2-newland(EM2096) 103 →...
Page 8
Shanghai Sunmi Technology Co., Ltd. Sweeping Development 3. Setting 3.1. Clear configuration Click the menu icon in the top right corner, then click "Clear Config", as shown below: - 7 -...
Page 9
Shanghai Sunmi Technology Co., Ltd. Sweeping Development 3.2. Character set selection Default:UTF-8 Options:UTF-8,GBK,ISO-8859-1,SHITF-JIS 3.3. Prompt mode Acoustic and vibration alerts are turned on by default. 3.4. Data Output mode 1. Setting Simulated keyboard output is selected by default. Broadcast output is turned on by default.
Page 10
Shanghai Sunmi Technology Co., Ltd. Sweeping Development Fill in EditText directly, select the “character to button” (output the end character as an analog button) - 9 -...
Page 11
Shanghai Sunmi Technology Co., Ltd. Sweeping Development 2. Brocadcast introduce Listening broadcast:"com.sunmi.scanner.ACTION_DATA_CODE_RECEIVED" Field description: data: character data; source_byte: Byte array raw data (Excluding the basic settings such as End Character, CodeID, suffix and advanced settings, etc., requires version 2.3.1 or higher);...
Shanghai Sunmi Technology Co., Ltd. Sweeping Development 3.6. Scan mode Default:trigger mode 3.7. Prefix and suffix settings The suffix and suffix function is disabled by default. It supports "\n", "\t", "\xxx" (three-digit ASCII decimal value 0-255, requires version 2.2.2 or higher) special characters, if you need to add "\"...
Page 13
Shanghai Sunmi Technology Co., Ltd. Sweeping Development 3.8. Decoders The user can choose to enable or disable the identification code in setting . Default :fully enabled. 3.9. Doceder Parameterx Find "Scanner Setting -> Decoder Parameters" from the sweep dock settings to enter the...
Page 14
Shanghai Sunmi Technology Co., Ltd. Sweeping Development Click on one of the code systems, such as "Code 39", as shown below: - 13 -...
Page 15
Shanghai Sunmi Technology Co., Ltd. Sweeping Development 3.10. Advanced Data Formatting Advanced Data Formatting – Character Replacement, as shown below: Advanced Data Formatting, default is off, It is turned off by default and can be manually turned on. It can support up to 10 rules. You can edit and delete the rules. Click “Add” to add, as shown below: Supports up to 20 characters, supports "\n", "\t", "\xxx"...
Need help?
Do you have a question about the L2 and is the answer not in the manual?
Questions and answers
it don t work and give greenlight