public abstract class BaseReader extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ActionState |
_actionState |
protected BaseDevice |
_baseDevice |
protected BaseEngine |
_baseEngine |
protected BaseTransport |
_baseTransport |
protected BaseUHF |
_baseUHF |
protected int |
_checkInterval |
protected int |
_failCount |
protected String |
_fwVersion |
protected boolean |
_isDisconnecting |
protected ResultCode |
_lastError |
protected String |
_serialNo |
protected static int |
DEFAULT_BATTERY_CHECK_INTERVAL |
protected long |
mLastTime |
protected static int |
RETRY_COUNT |
protected String |
TAG |
| Constructor and Description |
|---|
BaseReader(BaseTransport baseTransport)
Creates an instance of BaseReader.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abortFirmwareUpdate()
Aborts the ongoing firmware update process.
|
void |
addListener(IReaderEventListener listener)
Adds a Listener to receive events on an instance of the BaseReader class.
|
protected void |
allocateEngine(int value)
Allocates an engine based on the specified engine model.
|
protected void |
allocateUHF(int value)
Allocates a UHF module of the device associated with the BaseReader instance.
|
protected void |
allocateUHF(int moduleType,
int handle)
Allocates a UHF module based on the specified module type and handle.
|
protected void |
assertAction()
Check the device and action state is ready, if not, it will throw ReaderException
|
void |
checkError()
Use only within the SDK.
|
void |
clearListener()
Removes all listeners registered on an instance of the BaseReader class.
|
boolean |
connect()
An instance of the BaseReader class tries to connect to the configured address
|
void |
destroy()
Destroys an instance of the BaseReader class and cleans up resources.
|
void |
disconnect()
Causes an instance of the BaseReader class to disconnect from the connected device.
|
void |
eventNotify(EventNotifyId eventNotifyId,
boolean enable)
Enables or disables event notifications for the specified event.
|
ResultCode |
factoryReset()
Reset the device to factory default.
|
void |
firmwareUpdate(String fileName,
byte[] fileData)
Performs a firmware update on the device.
|
ActionState |
getAction()
Returns the current behavior of the device associated with an instance of the BaseReader class.
|
String |
getAddress()
Returns the address of the device associated with an instance of the BaseReader class.
|
double |
getAmbientTemperature()
Returns the ambient temperature of the equipment.
|
int |
getAmbientTemperatureProtection()
Returns the ambient temperature protection setting of the equipment.
|
int |
getAutoOffTime()
Returns the time which the instrument automatically turns off.
|
int[] |
getAutoOffTimeList()
Returns the equipment supports auto off time list, the unit is minutes
|
BaseEngine |
getBaseEngine()
If the BaseReader instance supports the Scanner module, it returns an interface object that
can control the Scanner module.
|
int |
getBatteryState()
Returns the battery state of the equipment.
|
BatteryStatus |
getBatteryStatus()
Returns the battery status of the equipment.
|
BatteryStatusExtended |
getBatteryStatusExtended(BatteryStatusExtendedType[] types)
Retrieves the battery status of the device.
|
BeeperState |
getBeeper()
Returns the beeper operation status of the equipment.
|
String |
getBluetoothAddress()
Returns the Bluetooth address of the device.
|
String |
getBluetoothName()
Returns the Bluetooth name of the device.
|
boolean |
getBluetoothSecuritySimplePairing()
Returns whether Bluetooth Security Simple Pairing is enabled.
|
int |
getCheckInterval()
Returns the time period for checking the battery status of the device associated with an
instance of the BaseReader class.
|
ConnectionMode |
getConnectionMode()
Returns the connection mode of the device.
|
ConnectType |
getConnectType()
Returns the instance of BaseReader associated with device.
|
ControlCharacterFilter |
getControlCharacterFilter()
Returns the Control Character Filter setting of the device.
|
DataCollectionMode |
getDataCollectionMode()
Returns the data collection mode of the device.
|
DataDisplayMode |
getDataDisplayMode()
Returns the data display mode of the device.
|
int |
getDataDisplayTime()
Returns the data display time of the device.
|
DataFormat |
getDataFormat()
Returns the data format setting of the equipment.
|
DataInfo |
getDataInfo()
Returns the data info setting of the equipment.
|
DataRange |
getDataRange()
Returns the data range setting of the equipment.
|
DataTerminator |
getDataTerminator()
Returns the data terminator setting of the equipment.
|
String |
getDeviceName()
Returns the name of the Device associated with an instance of the BaseReader class.
|
DeviceType |
getDeviceType()
Returns the type of Device to which the instance is connected.
|
EngineModel |
getEngineModel()
Returns the engine model of the device.
|
String |
getEngineVersion()
Returns the engine version of the device.
|
FindReplace |
getFindReplace()
Returns the FindReplace object that contains find and replace settings.
|
GS1AI |
getGs1Ai()
Returns the GS1 Application Identifier (AI) setting of the device.
|
HIDInterCharacterDelay |
getHidInterCharacterDelay()
Returns the HID Inter Character Delay setting of the device.
|
HIDKeyboardCase |
getHidKeyboardCase()
Returns the HID Keyboard Case setting of the device.
|
HIDKeyboardLanguage |
getHidKeyboardLanguage()
Returns the HID Keyboard Language setting of the device.
|
InventoryDataFormat[] |
getInventoryDataFormat()
Returns the inventory data format of the device.
|
KeyFunction |
getKeyFunction(KeyType keyType)
Returns the key function for the specified key type.
|
ResultCode |
getLastError()
Returns the result code for the last action.
|
boolean |
getLedControl()
Returns the LED control setting of the device.
|
OperatingMode |
getOperatingMode()
Returns the operating mode of the device.
|
void |
getParameter(DeviceParamID deviceParamID,
IParameterEventListener listener)
Get a specific device parameter setting.
|
void |
getParameter(int id,
DeviceParamID deviceParamID,
IParameterEventListener listener)
Get a specific device parameter setting.
|
void |
getParameters(DeviceParamID[] deviceParamIDs,
IParameterEventListener delegate)
Get multiple device parameter settings.
|
void |
getParameters(int id,
DeviceParamID[] deviceParamIDs,
IParameterEventListener delegate)
Get multiple device parameter settings.
|
double |
getPATemperature()
Returns the PA temperature of the equipment.
|
int |
getPATemperatureProtection()
Returns the PA temperature protection setting of the equipment.
|
IProtocol |
getProtocol()
Use only within the SDK.
|
ReadMode |
getReadMode()
Returns the read mode status of the equipment.
|
String |
getRfidModuleFirmware()
Returns the firmware version of the RFID module.
|
SKUType |
getRfidModuleSkuType()
Returns the SKU type of the RFID module used in the device.
|
ModuleUHFType |
getRfidModuleType()
Returns the type of RFID module used in the device.
|
BaseUHF |
getRfidUhf()
If the BaseReader instance supports the RFID UHF module, it returns an interface object that
can control the RFID UHF module.
|
ScannerDataFormat[] |
getScannerDataFormat()
Returns the scanner data format of the device.
|
ScannerIndicator |
getScannerIndicator()
Returns the scanner indicator setting of the device.
|
ScreenOffTime |
getScreenOffTime()
Returns the time which the instrument automatically screen off.
|
String |
getSerialNo()
Returns the serial number of the device.
|
boolean |
getSettingByLabel()
Returns whether the device settings are applied by label.
|
SKUType |
getSKU()
Returns the SKU type of the equipment.
|
ConnectState |
getState()
Returns the connection status of the device with the instance of the BaseReader class.
|
DeviceParamID[] |
getSupportedParameterIds()
Gets the supported parameter IDs of the device.
|
static DeviceParamID[] |
getSupportedParameterIds(DeviceType deviceType)
Gets the supported parameter IDs of the device based on the specified device type.
|
DeviceParam[] |
getSupportedParameters()
Gets the supported parameters of the device.
|
static DeviceParam[] |
getSupportedParameters(DeviceType deviceType)
Gets the supported parameters of the device based on the specified device type.
|
TagUnique |
getTagUnique()
Returns the Tag Unique setting of the device.
|
double |
getTemperature()
Returns the temperature of the equipment.
|
TemperatureProtectionMode |
getTemperatureProtectionMode()
Returns the temperature protection mode of the equipment.
|
Date |
getTime()
Returns the system time of the device.
|
BaseTransport |
getTransport()
Returns an instance of the BaseTransport class that connects an instance of the BaseReader class
to the Device.
|
byte[] |
getUserData()
Returns the user data stored on the device.
|
String |
getVersion()
Returns the firmware version of the device associated with the instance of the BaseReader class.
|
VibratorState |
getVibrator()
Returns the vibrator operation status of the equipment.
|
abstract boolean |
initReader()
Initializes an BaseReader instance after the BaseReader instance is associated with the device.
|
void |
listen()
Allows the BaseReader class to wait for connection until the connection is made from the device.
|
abstract void |
onStateChanged(ConnectState state,
Object params)
Called when the connection state of the BaseTransport instance and the device changes.
|
ResultCode |
reboot()
Reboots the device.
|
void |
removeListener(IReaderEventListener listener)
Removes the Listener that is listening for events on an instance of the BaseReader class.
|
void |
resetError()
Use only within the SDK.
|
void |
retrieveBatchedData()
Retrieves batched data from the device.
|
void |
setAction(ActionState state)
Sets the operational state of the device associated with the instance.
|
void |
setAddress(String address)
Sets the address of the device to which the instance of BaseReader is connected.
|
void |
setAmbientTemperatureProtection(int protection)
Sets the ambient temperature protection setting of the equipment.
|
void |
setAutoOffTime(int time)
Sets the time which the equipment automatically turns off.
|
void |
setBarcodeEventListener(IBarcodeEventListener barcodeEventListener)
Sets the barcode event listener for the BaseReader instance.
|
void |
setBeeper(BeeperState state)
Sets the beeper operation status of the equipment.
|
void |
setBluetoothSecuritySimplePairing(boolean enable)
Sets whether Bluetooth Security Simple Pairing is enabled.
|
void |
setCheckInterval(int interval)
Sets the time period for checking the battery status of the device associated with the
BaseReader class instance.
|
void |
setConnectionMode(ConnectionMode connectionMode)
Sets the connection mode of the device.
|
void |
setControlCharacterFilter(ControlCharacterFilter controlCharacterFilter)
Sets the Control Character Filter setting of the device.
|
void |
setDataCollectionMode(DataCollectionMode dataCollectionMode)
Sets the data collection mode of the device.
|
void |
setDataDisplayMode(DataDisplayMode displayMode)
Sets the data display mode of the device.
|
void |
setDataDisplayTime(int displayTime)
Sets the data display time of the device.
|
void |
setDataFormat(DataFormat dataFormat)
Sets the data format setting of the equipment.
|
void |
setDataInfo(DataInfo dataInfo)
Sets the data info setting of the equipment.
|
void |
setDataRange(DataRange dataRange)
Sets the data range setting of the equipment.
|
void |
setDataTerminator(DataTerminator dataTerminator)
Sets the data terminator setting of the equipment.
|
void |
setDeviceIndicator(DeviceIndicator deviceIndicator)
Sets the device indicator for the device.
|
void |
setDeviceName(String name)
Sets the name of the device to which the instance of BaseReader is connected.
|
void |
setDeviceType(DeviceType type)
Sets the type of device to which instance of BaseReader will be connected.
|
void |
setDisplayOutput(DisplayOutput displayOut)
Sets the display output setting of the equipment.
|
void |
setDisplayTags(DisplayTags displayTags)
Returns the display tags of the device.
|
void |
setFindDevice(FindDevice mode)
Sets the find device status of the equipment.
|
void |
setFindReplace(FindReplace findReplace)
Sets the FindReplace object that contains find and replace settings.
|
void |
setGs1Ai(GS1AI gs1Ai)
Sets the GS1 Application Identifier (AI) setting of the device.
|
void |
setHidInterCharacterDelay(HIDInterCharacterDelay hidInterCharacterDelay)
Sets the HID Inter Character Delay setting of the device.
|
void |
setHidKeyboardCase(HIDKeyboardCase hidKeyboardCase)
Sets the HID Keyboard Case setting of the device.
|
void |
setHidKeyboardLanguage(HIDKeyboardLanguage hidKeyboardLanguage)
Sets the HID Keyboard Language setting of the device.
|
void |
setInventoryDataFormat(InventoryDataFormat[] formats)
Sets the inventory data format of the device.
|
void |
setKeyFunction(TriggerKeyStatus triggerKeyStatus)
Sets the key function for the specified trigger key status.
|
void |
setLastError(ResultCode code)
Use only within the SDK.
|
void |
setLedControl(boolean enable)
Sets the LED control setting of the device.
|
void |
setOperatingMode(OperatingMode operatingMode)
Sets the operating mode of the device.
|
void |
setParameter(DeviceParam deviceParam,
IParameterEventListener listener)
Set a device parameter setting.
|
void |
setParameter(int id,
DeviceParam deviceParam,
IParameterEventListener listener)
Set a device parameter setting.
|
void |
setParameters(DeviceParam[] deviceParams,
IParameterEventListener delegate)
Set multiple device parameter settings.
|
void |
setParameters(int id,
DeviceParam[] deviceParams,
IParameterEventListener delegate)
Set multiple device parameter settings.
|
void |
setPATemperatureProtection(int protection)
Sets the PA temperature protection setting of the equipment.
|
void |
setReadMode(ReadMode mode)
Sets the read mode status of the equipment.
|
void |
setRfidEventListener(IRfidEventListener rfidEventListener)
Sets the RFID event listener for the BaseReader instance.
|
void |
setScannerDataFormat(ScannerDataFormat[] formats)
Sets the scanner data format of the device.
|
void |
setScannerIndicator(ScannerIndicator scannerIndicator)
Sets the scanner indicator setting of the device.
|
void |
setScreenOffTime(ScreenOffTime time)
Sets the time which the equipment automatically screen off.
|
void |
setSettingByLabel(boolean settingByLabel)
Sets whether the device settings are applied by label.
|
void |
setTagUnique(TagUnique tagUnique)
Sets the Tag Unique setting of the device.
|
void |
setTemperatureProtectionMode(TemperatureProtectionMode mode)
Sets the temperature protection mode of the equipment.
|
void |
setTime(Date time)
Sets the system time of the instrument.
|
void |
setUserData(byte[] userData)
Sets the user data on the device.
|
void |
setVibrator(VibratorState state)
Sets the vibrator operation status of the equipment.
|
ResultCode |
shutDown()
Shuts down the device.
|
void |
stagingReset()
Resets the staging area of the device.
|
void |
startDecode()
Starts the decoding process on the device.
|
void |
stopDecode()
Stops the decoding process on the device.
|
String |
toString() |
protected void |
triggerAccessResultEvent(BaseUHF baseUhf,
TagAccessResult tagAccessResult) |
protected void |
triggerActionChangedEvent(ResultCode code,
ActionState action,
Object params) |
protected void |
triggerAntennaStatusEvent(AntennaStatusEventArgs eventArgs,
Object params) |
protected void |
triggerBarcodeDataEvent(BarcodeEventArgs barcodeEventArgs) |
protected void |
triggerBatchDataEvent(BatchDataStatus status,
Object params) |
protected void |
triggerBatteryStateEvent(int batteryState,
Object params) |
protected void |
triggerConnectStateChangedEvent(ConnectState state,
Object params) |
protected void |
triggerFirmwareUpdateEvent(FirmwareUpdateState state,
int percentage,
Object params) |
protected void |
triggerKeyChangedEvent(KeyType type,
KeyState state,
Object params) |
protected void |
triggerLBTStatusEvent(LBTStatusEventArgs eventArgs,
Object params) |
protected void |
triggerNotificationStateEvent(NotificationState state,
Object params) |
protected void |
triggerReadTagEvent(BaseUHF baseUhf,
TagExtParam tagExtParam) |
protected void |
triggerTemperatureStateEvent(double temperature,
Object params) |
void |
unpairBluetooth()
Unpairs the Bluetooth connection of the device.
|
protected static final int DEFAULT_BATTERY_CHECK_INTERVAL
protected static final int RETRY_COUNT
protected String TAG
protected BaseTransport _baseTransport
protected BaseDevice _baseDevice
protected BaseUHF _baseUHF
protected BaseEngine _baseEngine
protected volatile ActionState _actionState
protected String _serialNo
protected String _fwVersion
protected ResultCode _lastError
protected int _checkInterval
protected int _failCount
protected boolean _isDisconnecting
protected long mLastTime
public BaseReader(BaseTransport baseTransport)
baseTransport - An instance of an inherited class of the BaseTransport class that defines
how an instance is associated with a Device.public DeviceParamID[] getSupportedParameterIds()
public static DeviceParamID[] getSupportedParameterIds(DeviceType deviceType)
deviceType - The DeviceType enumeration indicating the type of device.public DeviceParam[] getSupportedParameters()
public static DeviceParam[] getSupportedParameters(DeviceType deviceType)
deviceType - The DeviceType enumeration indicating the type of device.public boolean connect()
public void listen()
public void disconnect()
public DeviceType getDeviceType()
public void setDeviceType(DeviceType type)
type - The DeviceType enumeration indicating the type of device.public String getDeviceName()
public void setDeviceName(String name)
name - A string representing the name of the Device.public void addListener(IReaderEventListener listener)
listener - An instance of IReaderEventListener to receive events fired by instances of
the BaseReader class.public void removeListener(IReaderEventListener listener)
listener - An instance of IReaderEventListener that is receiving events fired by
instances of the BaseReader class.public void clearListener()
public String getSerialNo()
public BaseTransport getTransport()
public String getAddress()
public void setAddress(String address)
address - A string representing the address of the Device.public ConnectType getConnectType()
public ConnectState getState()
public BaseUHF getRfidUhf()
public BaseEngine getBaseEngine()
public void destroy()
public ResultCode getLastError()
public String getVersion()
public ActionState getAction()
public void setAction(ActionState state)
state - ActionState enumeration indicating the state of the action.public int getCheckInterval()
public void setCheckInterval(int interval)
interval - Integer type indicating the battery check cycle time of the equipment. The unit is ms.public void setRfidEventListener(IRfidEventListener rfidEventListener)
rfidEventListener - An instance of IRfidEventListener to receive RFID events.public void setBarcodeEventListener(IBarcodeEventListener barcodeEventListener)
barcodeEventListener - An instance of IBarcodeEventListener to receive barcode events.protected void allocateUHF(int value)
protected void allocateUHF(int moduleType,
int handle)
moduleType - The type of the UHF module to allocate.handle - The handle for the UHF module.protected void allocateEngine(int value)
value - The value representing the engine model.protected void triggerConnectStateChangedEvent(ConnectState state, Object params)
protected void triggerActionChangedEvent(ResultCode code, ActionState action, Object params)
protected void triggerBatteryStateEvent(int batteryState,
Object params)
protected void triggerKeyChangedEvent(KeyType type, KeyState state, Object params)
protected void triggerNotificationStateEvent(NotificationState state, Object params)
protected void triggerTemperatureStateEvent(double temperature,
Object params)
protected void triggerAntennaStatusEvent(AntennaStatusEventArgs eventArgs, Object params)
protected void triggerLBTStatusEvent(LBTStatusEventArgs eventArgs, Object params)
protected void triggerFirmwareUpdateEvent(FirmwareUpdateState state, int percentage, Object params)
protected void triggerBatchDataEvent(BatchDataStatus status, Object params)
protected void triggerReadTagEvent(BaseUHF baseUhf, TagExtParam tagExtParam)
protected void triggerAccessResultEvent(BaseUHF baseUhf, TagAccessResult tagAccessResult)
protected void triggerBarcodeDataEvent(BarcodeEventArgs barcodeEventArgs)
public abstract boolean initReader()
public BeeperState getBeeper() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setBeeper(BeeperState state) throws ReaderException
state - To specify the status of the beeper BeeperState enumeration.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public VibratorState getVibrator() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setVibrator(VibratorState state) throws ReaderException
state - To specify the status of the vibrator VibratorState enumeration.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public int getBatteryState()
throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public BatteryStatus getBatteryStatus() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public Date getTime() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setTime(Date time) throws ReaderException
time - An instance of Date representing the current date and time on the device.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public abstract void onStateChanged(ConnectState state, Object params)
state - A ConnectState enumeration that indicates the device and its connection status.params - This parameter is used to transmit additional information that is generatedpublic int[] getAutoOffTimeList()
public int getAutoOffTime()
throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setAutoOffTime(int time)
throws ReaderException
time - An integer that indicates how long the device will automatically turn itself off.
The time unit is specified in minutes. If you set the time to 0, the instrument
will not turn off automatically.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public ResultCode factoryReset() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public ResultCode reboot() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public SKUType getSKU() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public double getTemperature()
throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public double getAmbientTemperature()
throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public double getPATemperature()
throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public int getAmbientTemperatureProtection()
throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setAmbientTemperatureProtection(int protection)
throws ReaderException
protection - An integer representing the ambient temperature protection setting.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public int getPATemperatureProtection()
throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setPATemperatureProtection(int protection)
throws ReaderException
protection - An integer representing the PA temperature protection setting.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public TemperatureProtectionMode getTemperatureProtectionMode() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setTemperatureProtectionMode(TemperatureProtectionMode mode) throws ReaderException
mode - To specify the status of the temperature protection mode TemperatureProtectionMode enumeration.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public ReadMode getReadMode() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setReadMode(ReadMode mode) throws ReaderException
mode - To specify the status of the read mode ReadMode enumeration.ReaderExceptionpublic void setFindDevice(FindDevice mode) throws ReaderException
mode - To specify the status of the find device FindDevice class.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public DataFormat getDataFormat() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setDataFormat(DataFormat dataFormat) throws ReaderException
dataFormat - To specify the setting of the data format DataFormat enumeration.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public DataInfo getDataInfo() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setDataInfo(DataInfo dataInfo) throws ReaderException
dataInfo - To specify the setting of the data info DataInfo enumeration.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public DataRange getDataRange() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setDataRange(DataRange dataRange) throws ReaderException
dataRange - To specify the setting of the data range DataRange enumeration.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public DataTerminator getDataTerminator() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setDataTerminator(DataTerminator dataTerminator) throws ReaderException
dataTerminator - To specify the setting of the data terminator DataTerminator enumeration.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setDisplayOutput(DisplayOutput displayOut) throws ReaderException
displayOut - To specify the setting of the display output DisplayOutput enumeration.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public ScreenOffTime getScreenOffTime() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setScreenOffTime(ScreenOffTime time) throws ReaderException
time - It indicates how long the device will automatically screen off.
The time is specified in minutes and seconds. If you set the minutes to 0
and seconds to 0, the instrument will not screen off automatically.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void eventNotify(EventNotifyId eventNotifyId, boolean enable) throws ReaderException
eventNotifyId - An EventNotifyId enumeration that specifies the event for which notificationsenable - A boolean value indicating whether to enable (true) or disable (false) notifications for the specified event.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public InventoryDataFormat[] getInventoryDataFormat() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setInventoryDataFormat(InventoryDataFormat[] formats) throws ReaderException
formats - An array of InventoryDataFormat that indicates the inventory data format.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public ScannerDataFormat[] getScannerDataFormat() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setScannerDataFormat(ScannerDataFormat[] formats) throws ReaderException
formats - An array of ScannerDataFormat that indicates the scanner data format.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void firmwareUpdate(String fileName, byte[] fileData) throws ReaderException
fileName - A String representing the name of the firmware file.fileData - A byte array containing the firmware data.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void abortFirmwareUpdate()
public String getRfidModuleFirmware() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public ModuleUHFType getRfidModuleType() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public SKUType getRfidModuleSkuType() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public EngineModel getEngineModel() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public String getEngineVersion() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public String getBluetoothAddress() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public String getBluetoothName() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public FindReplace getFindReplace() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setFindReplace(FindReplace findReplace) throws ReaderException
findReplace - A FindReplace object containing the find and replace settings.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public KeyFunction getKeyFunction(KeyType keyType) throws ReaderException
keyType - The KeyType enumeration representing the type of key.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setKeyFunction(TriggerKeyStatus triggerKeyStatus) throws ReaderException
triggerKeyStatus - The TriggerKeyStatus enumeration representing the status of the trigger key.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public boolean getSettingByLabel()
throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setSettingByLabel(boolean settingByLabel)
throws ReaderException
settingByLabel - A boolean value indicating whether to set the device settings by label.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public DataCollectionMode getDataCollectionMode() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setDataCollectionMode(DataCollectionMode dataCollectionMode) throws ReaderException
dataCollectionMode - A DataCollectionMode enumeration indicating the data collection mode to set.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public GS1AI getGs1Ai() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setGs1Ai(GS1AI gs1Ai) throws ReaderException
gs1Ai - A GS1AI object representing the GS1 Application Identifier to set.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public HIDInterCharacterDelay getHidInterCharacterDelay() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setHidInterCharacterDelay(HIDInterCharacterDelay hidInterCharacterDelay) throws ReaderException
hidInterCharacterDelay - A HIDInterCharacterDelay object representing the HID Inter Character Delay to set.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public HIDKeyboardLanguage getHidKeyboardLanguage() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setHidKeyboardLanguage(HIDKeyboardLanguage hidKeyboardLanguage) throws ReaderException
hidKeyboardLanguage - A HIDKeyboardLanguage object representing the HID Keyboard Language to set.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public HIDKeyboardCase getHidKeyboardCase() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setHidKeyboardCase(HIDKeyboardCase hidKeyboardCase) throws ReaderException
hidKeyboardCase - A HIDKeyboardCase object representing the HID Keyboard Case to set.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public ControlCharacterFilter getControlCharacterFilter() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setControlCharacterFilter(ControlCharacterFilter controlCharacterFilter) throws ReaderException
controlCharacterFilter - A ControlCharacterFilter object representing the control character filter to set.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public boolean getLedControl()
throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setLedControl(boolean enable)
throws ReaderException
enable - A boolean value indicating whether to enable (true) or disable (false) LED control.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public ScannerIndicator getScannerIndicator() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setScannerIndicator(ScannerIndicator scannerIndicator) throws ReaderException
scannerIndicator - A ScannerIndicator object representing the scanner indicator to set.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void unpairBluetooth()
throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
unpairing Bluetooth or resetting the device.public void setDeviceIndicator(DeviceIndicator deviceIndicator) throws ReaderException
deviceIndicator - A DeviceIndicator object representing the device indicator to set.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void startDecode()
throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
starting the decoding process.public void stopDecode()
throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
stopping the decoding process.public void stagingReset()
throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
resetting the staging area.public ConnectionMode getConnectionMode() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setConnectionMode(ConnectionMode connectionMode) throws ReaderException
connectionMode - A ConnectionMode enumeration indicating the connection mode to set.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void retrieveBatchedData()
throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
retrieving batched data.public BatteryStatusExtended getBatteryStatusExtended(BatteryStatusExtendedType[] types) throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
retrieving the battery status.public boolean getBluetoothSecuritySimplePairing()
throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setBluetoothSecuritySimplePairing(boolean enable)
throws ReaderException
enable - A boolean value indicating whether to enable Bluetooth Security Simple Pairing.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public DataDisplayMode getDataDisplayMode()
throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs whilepublic void setDataDisplayMode(DataDisplayMode displayMode)
throws ReaderException
displayMode - A DataDisplayMode enumeration indicating the data display mode to set.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public int getDataDisplayTime()
throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setDataDisplayTime(int displayTime)
throws ReaderException
displayTime - An integer representing the data display time in seconds to set.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public ResultCode shutDown() throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
shutting down the device.public TagUnique getTagUnique()
throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setTagUnique(TagUnique tagUnique)
throws ReaderException
tagUnique - A TagUnique object representing the Tag Unique setting to set.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public byte[] getUserData()
throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setUserData(byte[] userData)
throws ReaderException
userData - A byte array representing the user data to set.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void resetError()
public void setLastError(ResultCode code)
code - public IProtocol getProtocol()
public void checkError()
protected void assertAction()
throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void getParameter(int id,
DeviceParamID deviceParamID,
IParameterEventListener listener)
id - The request ID. Default is 0.deviceParamID - The parameter ID.listener - The listener to receive the result.public void getParameter(DeviceParamID deviceParamID, IParameterEventListener listener)
deviceParamID - The parameter ID.listener - The listener to receive the result.public void setParameter(int id,
DeviceParam deviceParam,
IParameterEventListener listener)
id - The request ID. Default is 1.deviceParam - The parameter setting.listener - The listener to receive the result.public void setParameter(DeviceParam deviceParam, IParameterEventListener listener)
deviceParam - The parameter setting.listener - The listener to receive the result.public void getParameters(int id,
DeviceParamID[] deviceParamIDs,
IParameterEventListener delegate)
id - The request ID. Default is 0.deviceParamIDs - The parameter IDs.delegate - The listener to receive the result.public void getParameters(DeviceParamID[] deviceParamIDs, IParameterEventListener delegate)
deviceParamIDs - The parameter IDs.delegate - The listener to receive the result.public void setParameters(int id,
DeviceParam[] deviceParams,
IParameterEventListener delegate)
id - The request ID. Default is 1.deviceParams - The parameter settings.delegate - The listener to receive the result.public void setParameters(DeviceParam[] deviceParams, IParameterEventListener delegate)
deviceParams - The parameter settings.delegate - The listener to receive the result.public OperatingMode getOperatingMode()
throws ReaderException
ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setOperatingMode(OperatingMode operatingMode)
throws ReaderException
operatingMode - An OperatingMode enumeration representing the operating mode to set.ReaderException - An ReaderException exception is thrown if a failure occurs while
setting data on the instrument or returning data.public void setDisplayTags(DisplayTags displayTags)