Class USBCDCScanner

    • Field Detail

      • USB_CDC_RESPONSE_ACTION

        public static final java.lang.String USB_CDC_RESPONSE_ACTION
        See Also:
        Constant Field Values
      • ATTRIBUTE_NUMBER_DECODE_DATA_RSM_EVENT

        public static final int ATTRIBUTE_NUMBER_DECODE_DATA_RSM_EVENT
        See Also:
        Constant Field Values
      • ATTRIBUTE_NUMBER_ENABLE_TOPOLOGY_CHANGE

        public static final int ATTRIBUTE_NUMBER_ENABLE_TOPOLOGY_CHANGE
        See Also:
        Constant Field Values
      • ATTRIBUTE_NUMBER_CONTEXT_ADDRESS

        public static final int ATTRIBUTE_NUMBER_CONTEXT_ADDRESS
        See Also:
        Constant Field Values
      • ATTRIBUTE_NUMBER_SUPERVISOR_MODE

        public static final int ATTRIBUTE_NUMBER_SUPERVISOR_MODE
        See Also:
        Constant Field Values
      • ATTRIBUTE_NUMBER_SERIAL

        public static final int ATTRIBUTE_NUMBER_SERIAL
        See Also:
        Constant Field Values
      • ATTRIBUTE_NUMBER_SCALE_AVAILABLE

        public static final int ATTRIBUTE_NUMBER_SCALE_AVAILABLE
        See Also:
        Constant Field Values
      • ATTRIBUTE_NUMBER_SCALE_ENABLE_DISABLE

        public static final int ATTRIBUTE_NUMBER_SCALE_ENABLE_DISABLE
        See Also:
        Constant Field Values
      • RSM_PAYLOAD_LENGTH_SIZE

        public static final int RSM_PAYLOAD_LENGTH_SIZE
        See Also:
        Constant Field Values
      • ATTRIBUTE_NUMBER_READ_WEIGHT

        public static final int ATTRIBUTE_NUMBER_READ_WEIGHT
        See Also:
        Constant Field Values
      • ATTRIBUTE_NUMBER_ZERO_SCALE

        public static final int ATTRIBUTE_NUMBER_ZERO_SCALE
        See Also:
        Constant Field Values
      • ATTRIBUTE_NUMBER_RESET_SCALE

        public static final int ATTRIBUTE_NUMBER_RESET_SCALE
        See Also:
        Constant Field Values
      • FASTER_FIRMWARE_DATA_INDEX

        public static final int FASTER_FIRMWARE_DATA_INDEX
        See Also:
        Constant Field Values
      • FASTER_FIRMWARE_THREAD_STARTED

        public static boolean FASTER_FIRMWARE_THREAD_STARTED
      • FASTER_FIRMWARE_SUPPORTED

        public static boolean FASTER_FIRMWARE_SUPPORTED
      • bytesSentOverBulk

        protected int bytesSentOverBulk
      • hostCapacity

        protected int hostCapacity
      • canSendToHost

        protected int canSendToHost
      • readWritePermission

        public static java.lang.String readWritePermission
      • firmwareFolderName

        public static java.lang.String firmwareFolderName
      • ContentUriIdentifierSubString

        public static java.lang.String ContentUriIdentifierSubString
      • sdkHandler

        protected static SDKHandler sdkHandler
    • Constructor Detail

      • USBCDCScanner

        public USBCDCScanner​(Context context)
      • USBCDCScanner

        public USBCDCScanner​(Context context,
                             USBCDCScanner parent)
    • Method Detail

      • getInternalName

        public java.lang.String getInternalName()
      • setInternalName

        public void setInternalName​(java.lang.String internalName)
      • getProductID

        public int getProductID()
      • setProductID

        public void setProductID​(int productID)
      • getVendorID

        public int getVendorID()
      • setVendorID

        public void setVendorID​(int vendorID)
      • getmHWDevice

        protected UsbDevice getmHWDevice()
      • setmHWDevice

        protected void setmHWDevice​(UsbDevice mHWDevice)
      • setmUSBManager

        protected void setmUSBManager​(UsbManager mUSBManager)
      • isBulkFirmwareUpdateAvailable

        public boolean isBulkFirmwareUpdateAvailable()
      • setBulkFirmwareUpdateAvailable

        public void setBulkFirmwareUpdateAvailable​(boolean bulkFirmwareUpdateAvailable)
      • getGUID

        public java.lang.String getGUID()
      • setGUID

        public void setGUID​(java.lang.String GUID)
      • isSsiPlusSupport

        public boolean isSsiPlusSupport()
      • setSsiPlusSupport

        public void setSsiPlusSupport​(boolean ssiPlusSupport)
      • initialize

        public boolean initialize​(SDKHandler _sdkHandler)
      • enumerateEndPointsAndStartReading

        protected boolean enumerateEndPointsAndStartReading()
      • updateScannerName

        public void updateScannerName()
      • sendHostInit

        public int sendHostInit()
      • connect

        public boolean connect()
      • disconnect

        public void disconnect()
      • postData

        public void postData​(byte[] data)
      • readData

        public void readData​(byte[] data)
      • cleanUp

        public void cleanUp()
      • readDataFromScanner

        protected void readDataFromScanner​(byte[] buffer,
                                           int size)
      • cmdMPAck

        public int cmdMPAck​(int number)
      • getTunnelAddress

        public java.lang.String getTunnelAddress()
      • getNotificationEventsMask

        public int getNotificationEventsMask()
      • setNotificationEventsMask

        public void setNotificationEventsMask​(int notificationEventsMask)
      • setSdkHandler

        public static void setSdkHandler​(SDKHandler sdkHandler)
      • isFirmwareUpdateInProgress

        public boolean isFirmwareUpdateInProgress()
      • setFirmwareUpdateInProgress

        public void setFirmwareUpdateInProgress​(boolean firmwareUpdateInProgress)
      • getSerialNumber

        public java.lang.String getSerialNumber()
      • setSerialNumber

        public void setSerialNumber​(java.lang.String RMDAttrSerialNumber)
      • communicationSessionEstablished

        public void communicationSessionEstablished()
      • scannerAppeared

        public void scannerAppeared()
      • barcodeEvent

        public void barcodeEvent​(byte[] barcodeData,
                                 int barcodeType)
      • imageEvent

        public void imageEvent​(byte[] imageData)
      • videoEvent

        public void videoEvent​(byte[] videoData)
      • binaryDataEvent

        public void binaryDataEvent​(byte[] binaryData)
      • rsmEvent

        public void rsmEvent​(byte[] eventData)
      • getPacketSize

        protected boolean getPacketSize()
      • enumerateAuxScanners

        public void enumerateAuxScanners​(com.zebra.scannercontrol.Scanner scanner)
      • tunnelReportNextHop

        protected byte[] tunnelReportNextHop()
      • setupTunnelToMe

        protected boolean setupTunnelToMe()
      • breakdownMyTunnel

        protected boolean breakdownMyTunnel()
      • tunnelReportContext

        protected byte[] tunnelReportContext()
        This command is always processed at root node
        Returns:
      • getFileName

        public java.lang.String getFileName​(Uri uri)
      • getFilePath

        public java.lang.String getFilePath​(Uri uri)
      • getTwoBytes

        protected int getTwoBytes​(byte[] buffer,
                                  int offset)
      • scannerDisAppeared

        public void scannerDisAppeared()
      • stopRSMEventThread

        public void stopRSMEventThread()
        Method to stop RSMEvent thread
      • communicationSessionTerminated

        public void communicationSessionTerminated()
      • updateAssetInfo

        public void updateAssetInfo()
      • isScaleAvailable

        public boolean isScaleAvailable()
        Purpose: Checks whether the scale functionality is available with the underlying barcode scanner
        Returns:
        true if there is a scale in the underlying barcode scanner and false , if not.
      • setScaleEnable

        public DCSSDKDefs.DCSSDK_RESULT setScaleEnable()
        Purpose: Enables the scale of the underlying barcode scanner
        Returns:
        DCSSDK_RESULT_SUCCESS if enabling is success. If there is no scale present returns : DCSSDK_RESULT_SCALE_NOT_PRESENT
      • setScaleDisable

        public DCSSDKDefs.DCSSDK_RESULT setScaleDisable()
        Purpose: Disables the scale of the underlying barcode scanner
        Returns:
        DCSSDK_RESULT_SUCCESS if disabling is success. If there is no scale present returns : DCSSDK_RESULT_SCALE_NOT_PRESENT
      • isReady

        public boolean isReady()
      • setReady

        public void setReady​(boolean ready)
      • enable

        public void enable()
      • disable

        public void disable()