Package com.zebra.scannercontrol
Class USBCDCScanner
java.lang.Object
com.zebra.scannercontrol.DCSScannerInfo
com.zebra.scannercontrol.USBCDCScanner
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final short
static final short
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final char
static final char
static final String
protected int
protected int
static String
static final int
static boolean
static boolean
static String
static final int
protected int
static final int
static String
static final int
protected static SDKHandler
static final String
static final long
-
Constructor Summary
ConstructorDescriptionUSBCDCScanner
(Context context) USBCDCScanner
(Context context, USBCDCScanner parent) -
Method Summary
Modifier and TypeMethodDescriptionvoid
barcodeEvent
(byte[] barcodeData, int barcodeType) void
binaryDataEvent
(byte[] binaryData) protected boolean
void
cleanUp()
int
cmdMPAck
(int number) void
void
boolean
connect()
void
disable()
void
void
enable()
void
enumerateAuxScanners
(com.zebra.scannercontrol.Scanner scanner) protected boolean
protected DCSSDKDefs.DCSSDK_RESULT
executeCommand
(DCSSDKDefs.DCSSDK_COMMAND_OPCODE opCode, String inXML, StringBuilder outXML, boolean isSync, boolean isSSICommand) getFileName
(Uri uri) getFilePath
(Uri uri) getGUID()
protected UsbDevice
int
protected boolean
int
protected int
getTwoBytes
(byte[] buffer, int offset) int
void
imageEvent
(byte[] imageData) boolean
initialize
(SDKHandler _sdkHandler) boolean
boolean
boolean
isReady()
boolean
Purpose: Checks whether the scale functionality is available with the underlying barcode scannerboolean
void
postData
(byte[] data) void
readData
(byte[] data) protected void
readDataFromScanner
(byte[] buffer, int size) void
rsmEvent
(byte[] eventData) void
void
int
void
setBulkFirmwareUpdateAvailable
(boolean bulkFirmwareUpdateAvailable) void
setFirmwareUpdateInProgress
(boolean firmwareUpdateInProgress) void
void
setInternalName
(String internalName) protected void
setmHWDevice
(UsbDevice mHWDevice) protected void
setmUSBManager
(UsbManager mUSBManager) void
setNotificationEventsMask
(int notificationEventsMask) void
setProductID
(int productID) void
setReady
(boolean ready) Purpose: Disables the scale of the underlying barcode scannerPurpose: Enables the scale of the underlying barcode scannerstatic void
setSdkHandler
(SDKHandler sdkHandler) void
setSerialNumber
(String RMDAttrSerialNumber) void
setSsiPlusSupport
(boolean ssiPlusSupport) protected boolean
void
setVendorID
(int vendorID) void
Method to stop RSMEvent threadprotected byte[]
This command is always processed at root nodeprotected byte[]
void
void
void
videoEvent
(byte[] videoData) Methods inherited from class com.zebra.scannercontrol.DCSScannerInfo
getAuxiliaryScanners, getConnectionType, getScannerHWSerialNumber, getScannerID, getScannerModel, getScannerName, isActive, isAutoCommunicationSessionReestablishment
-
Field Details
-
USB_CDC_RESPONSE_ACTION
- See Also:
-
waitTime
public static final long waitTime- See Also:
-
ATTRIBUTE_NUMBER_DECODE_DATA_RSM_EVENT
public static final int ATTRIBUTE_NUMBER_DECODE_DATA_RSM_EVENT- See Also:
-
ATTRIBUTE_NUMBER_ENABLE_TOPOLOGY_CHANGE
public static final int ATTRIBUTE_NUMBER_ENABLE_TOPOLOGY_CHANGE- See Also:
-
ATTRIBUTE_NUMBER_CONTEXT_ADDRESS
public static final int ATTRIBUTE_NUMBER_CONTEXT_ADDRESS- See Also:
-
ATTRIBUTE_NUMBER_SUPERVISOR_MODE
public static final int ATTRIBUTE_NUMBER_SUPERVISOR_MODE- See Also:
-
ATTRIBUTE_NUMBER_MODEL
public static final int ATTRIBUTE_NUMBER_MODEL- See Also:
-
ATTRIBUTE_NUMBER_SERIAL
public static final int ATTRIBUTE_NUMBER_SERIAL- See Also:
-
ATTRIBUTE_NUMBER_SCALE_AVAILABLE
public static final int ATTRIBUTE_NUMBER_SCALE_AVAILABLE- See Also:
-
ATTRIBUTE_NUMBER_SCALE_ENABLE_DISABLE
public static final int ATTRIBUTE_NUMBER_SCALE_ENABLE_DISABLE- See Also:
-
MAX_RSM_PAYLOAD_SIZE
public static final int MAX_RSM_PAYLOAD_SIZE- See Also:
-
RSM_PAYLOAD_LENGTH_SIZE
public static final int RSM_PAYLOAD_LENGTH_SIZE- See Also:
-
ATTRIBUTE_DISABLE
public static final short ATTRIBUTE_DISABLE- See Also:
-
ATTRIBUTE_ENABLE
public static final short ATTRIBUTE_ENABLE- See Also:
-
ATTRIBUTE_TYPE_BYTE
public static final char ATTRIBUTE_TYPE_BYTE- See Also:
-
ATTRIBUTE_TYPE_ACTION
public static final char ATTRIBUTE_TYPE_ACTION- See Also:
-
ATTRIBUTE_NUMBER_READ_WEIGHT
public static final int ATTRIBUTE_NUMBER_READ_WEIGHT- See Also:
-
ATTRIBUTE_NUMBER_ZERO_SCALE
public static final int ATTRIBUTE_NUMBER_ZERO_SCALE- See Also:
-
ATTRIBUTE_NUMBER_RESET_SCALE
public static final int ATTRIBUTE_NUMBER_RESET_SCALE- See Also:
-
FASTER_FIRMWARE_DATA_INDEX
public static final int FASTER_FIRMWARE_DATA_INDEX- See Also:
-
HEXADECIMAL_RADIX
public static final int HEXADECIMAL_RADIX- See Also:
-
BASE_HEX_FORMAT
- See Also:
-
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
-
firmwareFolderName
-
ContentUriIdentifierSubString
-
sdkHandler
-
-
Constructor Details
-
USBCDCScanner
public USBCDCScanner(Context context) -
USBCDCScanner
-
-
Method Details
-
getInternalName
-
setInternalName
-
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
-
setGUID
-
isSsiPlusSupport
public boolean isSsiPlusSupport() -
setSsiPlusSupport
public void setSsiPlusSupport(boolean ssiPlusSupport) -
initialize
-
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
-
getNotificationEventsMask
public int getNotificationEventsMask() -
setNotificationEventsMask
public void setNotificationEventsMask(int notificationEventsMask) -
setSdkHandler
-
isFirmwareUpdateInProgress
public boolean isFirmwareUpdateInProgress() -
setFirmwareUpdateInProgress
public void setFirmwareUpdateInProgress(boolean firmwareUpdateInProgress) -
getSerialNumber
-
setSerialNumber
-
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:
-
executeCommand
protected DCSSDKDefs.DCSSDK_RESULT executeCommand(DCSSDKDefs.DCSSDK_COMMAND_OPCODE opCode, String inXML, StringBuilder outXML, boolean isSync, boolean isSSICommand) -
getFileName
-
getFilePath
-
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
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
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()
-