question

Robin Walmsley avatar image
Robin Walmsley asked parag edited

Using a USB Keyboard and Barcode Scanner on a Mini .. not working.

I have tried multiple keyboards, and Im using a Zebra DS22 hand scanner. Whenever I connect both these devices to a Clover Mini, the android soft keyboard always appears. The mini is not tethered to a station it's in standalone mode.
Here's what I've tried so far.
If I disconnect the scanner the usb keyboard will work fine.
I have 2 Clover Stations, and the problem does not occur with these, I also have a Station 2018 and both devices work simultaneously with this device also.
It doesn't matter which USB ports I connect to, nor does the order in which I connect them.
I've rebooted several times, at various stages of the above attempts to get this working.
If I have the Android Settings > Language & input settings, without the scanner attached I can select USB keyboard. If I then connect the scanner, the option to select/deselect the keyboard remains available, however as soon as I close this option screen, and go back into it, I can no longer select USB keyboard.
Any ideas?
Thanks
Clover Mini
1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Robin Walmsley avatar image Robin Walmsley commented ·

BTW even though the soft keyboard always appears, I CAN still use the USB keyboard. So neither device is disabled by having them both connected, but the soft keyboard appears anytime there is an input field, so of course has to be closed.

0 Likes 0 ·

1 Answer

Jeffrey Blattman avatar image
Jeffrey Blattman answered parag edited
I don't know if the Zebra DS22 is a supported Clover scanner. It's not listed but sometimes it's a submodel of something that is. I can't tell for sure until you give me the USB vendor, product ID.
https://www.clover.com/us/en/help/barcode-scanner-troubleshooting/

I was able to reproduce I think what you see. I connected a hard keyboard and this will prevent the soft keyboard. I then connected a supported scanner (IDTECH) and the soft keyboard is no longer suppressed. Worse it looks like connecting the scanner causes the settings for the hard keyboard to not be accessible.

I'll file an internal issue to fix this. I can't give an ETA though.


2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Robin Walmsley avatar image Robin Walmsley commented ·
Hi Jeffrey, what you experience is exactly what I'm seeing too. Thanks
0 Likes 0 ·
parag avatar image parag commented ·

I am getting barcode scanned value using dispatchKeyEvent with below source code and devices

Honeywell IHS320X (https://www.amazon.in/IMPACT-Honeywell-IHS320X-Barcode-Scanner/dp/B0C1VSH8GX)

Tvs BS-L100 (https://www.amazon.in/Tvs-BS-I100N-Barcode-Scanner-creators/dp/B07CNFB7N3)


@Override
public boolean dispatchKeyEvent(KeyEvent event) {
                    
super.dispatchKeyEvent(event);
if ( event.getAction() == KeyEvent.ACTION_DOWN) {
                    
if(event.getKeyCode() == KeyEvent.KEYCODE_ENTER){
                    
handleBarcodeScan(scannedBarcode.toString());
scannedBarcode.setLength(0);
return true;
} else{
                    
scannedBarcode.append(event.getDisplayLabel());
}
}
return true;
}

But facing issue client's barcode scanner, Client is using Zebra DS2200 (https://www.zebra.com/us/en/products/scanners/general-purpose-handheld-scanners/ds2200-series.html)

Zebra DS2200 is able to scan with Clover Register app


Also added Broadcast receiver

<receiver
android:name=".services.BarcodeScannerReceiver"
android:enabled="true"
android:exported="false">
<intent-filter>
<action android:name="com.clover.sdk.action.CODE_SCAN" />
</intent-filter>
</receiver>

Also tried below clover SDK example


https://github.com/clover/android-examples/tree/master/barcodereceiver/app/src/main/java/com/clover/example/barcodereceiver/app

Please let us know if missing anything else from my end


0 Likes 0 ·

Welcome to the
Clover Developer Community