TriggerType.HARD seems never work in demo apk

Hello Zebra team
I'm testing this demo (https://techdocs.zebra.com/emdk-for-android/7-3/samples/barcode) for our WT6000 and RS6000 Bluetooth Scanner but it only works for soft scan with mode TriggerType.SOFT_ONCE. Actually i want to use hard trigger in RS6000 device therefore i made some changes by TriggerType.HARD but it seems never work

if(bSoftTriggerSelected) {
scanner.triggerType = TriggerType.HARD;
bSoftTriggerSelected = false;
} else {
scanner.triggerType = TriggerType.HARD;
}

Hope to get your response soon. Thank you Zebra support team

Darryn Campbell
Hi, so just to troubleshoot:

Hi, so just to troubleshoot:

I have not heard of a scanner only responding to a soft scan and not a hard scan before.  I don't have a device handy to check I'm afraid.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Spike Wuller
Thank you for your response

Thank you for your response
private void initBarcodeManager(){
barcodeManager = (BarcodeManager) emdkManager.getInstance(FEATURE_TYPE.BARCODE);
// Add connection listener
if (barcodeManager != null) {
barcodeManager.addConnectionListener(this);
}
}

I logged barcodeManager is not null in this code but onConnectionChanged callback is never fired. Then the strange is TriggerType.SOFT_ONCE is work fine although onConnectionChanged does not working
Please help me to figure out the problem. Thank you

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Darryn Campbell
onConnectionChange should be

onConnectionChange should be called when the BT scanner connects or disconnects - if you launch the app with the scanner already connected then this callback would not fire: https://techdocs.zebra.com/emdk-for-android/7-6/api/reference/com/symbol/emdk/barcode/BarcodeManager.ScannerConnectionListener.html

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Spike Wuller
You have selected RS6000

You have selected RS6000 scanner from the dropdown
-> Done

The RS6000 scanner is (Bluetooth) paired with the device
-> Done

The RS6000 scanner is connected via Bluetooth
-> Connected

The onConnectionChanged callback is fired: https://github.com/Zebra/samples-emdkforandroid-7_3/blob/master/BarcodeS...
-> onConnectionChanged callback is fired. I can logged it

The read is submitted: https://github.com/Zebra/samples-emdkforandroid-7_3/blob/master/BarcodeS...
-> The read is submitted without error

Currently, i'm still using soft scan, it's working perfectly (i hear a beep sound after scan any barcode). but hard scan is not responding (no beep sound and nothing log). The hard scan is only work in zebra android sdk (when pairing to any android phone) but for emdk/datawedge it does not work with hard scan (soft scan is still work normally).
Can you help to resolve this problem ? Thank you so much

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Darryn Campbell
It sounds like your RS6000

It sounds like your RS6000 might not be in SSI mode?  https://www.zebra.com/content/dam/zebra_new_ia/en-us/manuals/mobile-computers/rs6000/rs6000-ug-en.pdf (page 41)

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Spike Wuller
I tried to reset it to SSI

I tried to reset it to SSI Mode and i think it is SSI mode by default. But it still not working
You can check my demo in clip here:
https://www.youtube.com/watch?v=FnP5xV9v-uQ
-> Soft scan (work like a charm)

https://www.youtube.com/watch?v=y1jS4A2d4IE
-> Hard scan (i don't figure out what issue is)

Thank you for your watching

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Darryn Campbell
Hi Spike, I don't see that

Hi Spike, I don't see that you are doing anything wrong in the videos but I can't say why the scan is not appearing the 'Testing with Hard scan' scenario.  The next step would be to debug the application and try to understand why no data is being received (it should come in at https://github.com/ZebraDevs/samples-emdkforandroid-7_3/blob/master/BarcodeSample1/app/src/main/java/com/symbol/barcodesample1/MainActivity.java#L171).  Alternatively, you may need to contact technical support if you need more hands on help

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Spike Wuller
i make a toast in onData and

i make a toast in onData and you can see in my video. if it is soft scan then the toast will be show in screen but hard scan is blank. By the way, i will contact technical support for more detail with my device. Thank you

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments