
PA700
26
UNITECH
2.
USI Examples
2.1.
Enable/Disable scanner
Intent intent =
new
Intent();
intent.setAction(
"unitech.scanservice.scan2key_setting"
);
intent.putExtra(
"scan2key"
,
true
);
sendBroadcast(intent);
2.2.
Receive scanned data
String
SSI_param_data
=
""
;
Intent sendIntent =
new
Intent(
"unitech.scanservice.data"
);
sendIntent.putExtra(
"text"
,
SSI_param_data
);
sendBroadcast(sendIntent);
2.3.
Programming example
Programming Source-code example is available as “keypad-test” at
https://portal.unitech.eu/Files/Technical/PA700Scanner(key)Test_1.0.zip
3.
Tips using Scan2Key
3.1.
Want
to know the barcode symbology ?
Open the ScanService
Select the tab “Settings”
Select “Data Options”
Select “Transmit Code ID character” and select “AIM Code ID character”
The Barcode symbology will be transmitted as in
http://mdn.morovia.com/kb/AIM-Symbology-Identifiers-SI-10639.html
so a Code128 label with data 097050214112 the barcode will have display
]C0
097050214112
3.2.
The received data is longer the barcode data
Open the ScanService, press the third h/w key
Select “Device Option”
Select “Terminator” and remove the text <LF>
Select OK
3.3.
Enable/Disable barcode scanning through HTML5
Prerequisites
ScanOff
DisableScan2Key.apk
(
https://12manage.unitech.eu/RDM/tools/DisableScan2Key.apk
)
ScanOn
EnableScan2Key.apk
(
https://12manage.unitech.eu/RDM/tools/EnableScan2Key.apk
)
For example and code visit
http://portal.unitech.eu/tools/android.aspx#