0 Replies Latest reply on Oct 22, 2017 9:58 AM by Lesny Gom

    RFD8500 Reading the bar code does not work

    Lesny Gom

      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-scanners/scannersdkforandroid-dg-en.pdf

       

      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 events
      notifications_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 events
      notifications_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 events
      notifications_mask |= DCSSDKDefs.DCSSDK_EVENT.DCSSDK_EVENT_BARCODE.value;
      // subscribe to events set in notification mask
      sdkHandler.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?