1. USI Communication ................................................................................................................................................... 2
1.7. Close scan service .............................................................................................................................................. 4
1.8. Enable Scan Service .......................................................................................................................................... 4
1.9. Set Preamble ...................................................................................................................................................... 4
1.10. Set Postamble .................................................................................................................................................... 4
1.11. Set Terminator .................................................................................................................................................... 4
1.12. Set Vibration ....................................................................................................................................................... 5
1.13. Set Sound ........................................................................................................................................................... 5
1.14. Set EAN128 Field Separator .............................................................................................................................. 5
1.15. Set Intercharacter Delay ..................................................................................................................................... 5
1.16. Set Keep Scan Timeout ...................................................................................................................................... 5
1.17. Set Intercharacter Delay ..................................................................................................................................... 5
2.2. Receive scanned data ...................................................................................................................................... 26
2.3. Programming example ...................................................................................................................................... 26
3. Tips using Scan2Key ............................................................................................................................................... 26
3.1. Want to know the barcode symbology ? ........................................................................................................... 26
3.2. The received data is longer the barcode data .................................................................................................. 26
3.3. Enable/Disable barcode scanning through HTML5 .......................................................................................... 26
4. Simple Data Editing ................................................................................................................................................. 26
4.1. Enable data editing ........................................................................................................................................... 26
All USI cross application communications are done by broadcast intent between USI and user applications.
The below schematic sketches the scanner integration.
ScanServer V1.95 and above (as integrated in OS Built 3230 and above)
unitech.scanservice.start
unitech.scanservice.close
unitech.scanservice.init
Barcode Scanner
&
Decoder
Data
Unitech
Scan
Service
(V1.95 and above)
Data
Settings
Trigger keys left/right
unitech.scanservice.
software_scankey
unitech.scanservice.save_setting
unitech.scanservice.load_setting
com.unitech.scanservice.adapter
unitech.scanservice.scan
Unitech
Scan2Key
unitech.scanservice.datatype
unitech.scanservice.data
Keyboard buffer
1.1. Enable/disable Scan2Key
Description: Enable/Disable the Scan2Key which supports keyboard emulation features.
Action: “unitech.scanservice.scan2key_setting”
Extended data: Name: “scan2key”
Note: PA700 1D engine INDEX = 1; 2D engine INDEX = 2.
If parameter number is bigger than 0xEF, set EXTEND to true; else set EXTEND to false.
If EXTEND is true, set EXT to extended parameter code. And NUM to param_num offset.
If EXTEND is false, set NUM to param_num.
And for each parameter, please check out the following JSON data.
“Parameter” is human readable name of the parameter.
“Hex” is the <param_num> or <extended parameter code><param_num offset>.
To get the <value>, please check the “Type”.
If type is 1, that means this parameter only has enable(1)/disable(0) or true(1)/false(0) option.
If type is 2, that means this parameter has multiple options, and the values are listed in “Tag”.
If type is 3, that means this parameter has a range of options, and the range values are between “Min” and “Max”.