I am building an Android application for capturing the scanning event using DS3678 Scanners. I am building the application based on the sample application: https://github.com/zebra-technologies/Scanner-SDK-for-Android.
However, the STC barcode that is being generated by the SDK does not prompt a bluetooth connection when scanned. Any help would be really appreciated.
7 Replies
Can you attach good picture of the generated barcode ?
Could you clarify what you mean by " SDK does not prompt a bluetooth connection"
whats the scanner behavior when you scan the barcode
Hello Riad, thank you for your reply. The scanner goes into a pairing mode with the bluetooth icon flashing for few seconds and then there is a high-low beep with red light after a while. What I mean by the connection prompt is that when I use the scanner control app, it goes into the pairing mode after I scan the barcode and then there is a prompt on the android device asking whether or not to allow the connection. I hope that gives you a little more insight into the issue.
Thanks for the update , yes im clear now .
Could you go to settings menu and under communictaion protocol select SSI over Bluetooth Classic - you will need to enter the BT mac address of the unit but try to see if using that mode will behave different .
For some reason the Scanner Control application keeps crashing when I try to do that, I'm not sure why. In my application however, I do not have the option to connect using the Bluetooth address manually. I am using the latest version of the android SDK and here is how the barcode is being generated:
f (SdkHandler.GetInstance() != null)
{
SdkHandler.SetSTCEnabledState(true);
var barcode = SdkHandler.GetBluetoothParingBarcode(PairingBarcodeType.BARCODE_TYPE_STC, BluetoothProtocol.SSI_BT_LE, ScannerConfiguration.KEEP_CURRENT);
barcode = ImageResizer.ResizeImage(barcode, 500, 200);
stcImage.Source = ImageSource.FromStream(() => new MemoryStream(barcode));
}
SSI classic mode non discoverable would be BluetoothProtocol.SSI_BT_CRADLE_HOST instead BluetoothProtocol.SSI_BT_LE
whats mobile phone you are using ?
Could you share apk you have compiled ?
one test on your device to check is to install scanner control app from play store and see if you do face same issue
Let me try that protocol then.
The device that I am using is Samsung galaxy s9 and unfortunately I cannot provide you the apk.
The scanner control application did work for me and the scan to connect barcode let me connect the scanner to the device. It is just not working in my application.