RFD8500 Reading the bar code does not work

L Lesny Gom 3 years 6 months ago
14 0 0

I`m using "Zebra_RFID_Mobile_API-1.0.3.22" example with RFD8500  but i need to add posibility to read barcode inside "Inventory view" .
 
I follow instructions inside  Zebra Scanner SDK for Android: Programming Basics - YouTube  and https://www.zebra.com/content/dam/zebra_new_ia/en-us/manuals/barcode-sc…
 
At this moment I have modified InventoryFragment:
implement IDcsSdkApiDelegate.
add instance of SDKHandler
and add folowing code into onCreate:
sdkHandler = new SDKHandler(getActivity().getApplicationContext());sdkHandler.dcssdkSetDelegate(this);sdkHandler.dcssdkSetOperationalMode(DCSSDKDefs.DCSSDK_MODE.DCSSDK_OPMODE_BT_NORMAL);sdkHandler.dcssdkSetOperationalMode(DCSSDKDefs.DCSSDK_MODE.DCSSDK_OPMODE_SNAPI);int notifications_mask = 0;// We would like to subscribe to all scanner available/not-available eventsnotifications_mask |=
  DCSSDKDefs.DCSSDK_EVENT.DCSSDK_EVENT_SCANNER_APPEARANCE.value |
  DCSSDKDefs.DCSSDK_EVENT.DCSSDK_EVENT_SCANNER_DISAPPEARANCE.value;// We would like to subscribe to all scanner connection eventsnotifications_mask |=
  DCSSDKDefs.DCSSDK_EVENT.DCSSDK_EVENT_SESSION_ESTABLISHMENT.value |
  DCSSDKDefs.DCSSDK_EVENT.DCSSDK_EVENT_SESSION_TERMINATION.value;// We would like to subscribe to all barcode eventsnotifications_mask |= DCSSDKDefs.DCSSDK_EVENT.DCSSDK_EVENT_BARCODE.value;// subscribe to events set in notification masksdkHandler.dcssdkSubsribeForEvents(notifications_mask);sdkHandler.dcssdkEnableAvailableScannersDetection(true);sdkHandler.dcssdkGetAvailableScannersList(mScannerInfoList);sdkHandler.dcssdkGetActiveScannersList(mScannerInfoList);sdkHandler.dcssdkEstablishCommunicationSession(0);
 
But when I scanning barcode nothing happening. RFD8500 turn on orange led and play sound  (short beep long beep long beep long beep long beep)
 
How to scan barcode inside InventoryFragment?

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