SDK generated STC barcode not prompting a bluetooth connection (Android 10)

// Expert user has replied.
S Sailesh Acharya 11 months 3 weeks ago
67 7 0

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.

Please Register or Login to post a reply

7 Replies

R Riad Benallou

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 

S Sailesh Acharya

STC barcode

S Sailesh Acharya

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.

R Riad Benallou

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 . 

 

S Sailesh Acharya

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));
            }

R Riad Benallou

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 

S Sailesh Acharya

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.

CONTACT
Can’t find what you’re looking for?