public class Config
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
Antennas |
Antennas |
com.zebra.rfid.api3.GPIs |
GPI |
com.zebra.rfid.api3.GPOs |
GPO |
Modifier and Type | Method and Description |
---|---|
AttributeInfo |
getAttribute(int attributeNumber,
AttributeInfo attributeInfo)
Gets the attribute type and value
|
BATCH_MODE |
getBatchModeConfig()
Gets the Batch Mode Config
|
BEEPER_VOLUME |
getBeeperVolume()
Gets the Beeper Config
|
void |
getDeviceStatus(boolean battery,
boolean power,
boolean temperature)
API to fetch the device status in terms of battery, power and temperature
|
void |
getDeviceVersionInfo(java.util.HashMap<java.lang.String,java.lang.String> deviceVersion)
API to get the device version information
|
DYNAMIC_POWER_OPTIMIZATION |
getDPOState()
Gets the DPO state
|
short |
getDutyCycleIndex() |
java.lang.String |
GetLogBuffer()
Gets the log buffer from SDK as String
|
RADIO_POWER_STATE |
getRadioPowerState()
Gets the Radio power state to on or off state
|
RegionInfo |
getRegionInfo(RegionInfo regionInfo)
method to get region information (hopping, default channels) for given region
|
RegulatoryConfig |
getRegulatoryConfig()
method to get current regulatory configuration set on the reader
|
StartTrigger |
getStartTrigger()
method to get current start trigger settings from reader
|
StopTrigger |
getStopTrigger()
method to get current stop trigger settings from reader
|
TagStorageSettings |
getTagStorageSettings()
Get TagStorageSettings.
|
TRACE_LEVEL[] |
getTraceLevel()
Gets the trace level
|
UNIQUE_TAG_REPORT_SETTING |
getUniqueTagReport()
method to fetch Unique tag reporting settings from the reader
|
void |
resetFactoryDefaults()
Restores to factory default settings in the reader.
|
void |
saveConfig()
method to save configuration permanently to the reader
|
void |
setAccessOperationWaitTimeout(int timeout)
method to set access operation timeout for all synchronous tag access operations APIs
e.g.
|
void |
setAttribute(SetAttribute setAttributeInfo)
method to Set attribute
|
void |
setBatchMode(BATCH_MODE batchMode)
method to Set Batch Mode
|
void |
setBeeperVolume(BEEPER_VOLUME beeperVolume)
method to Set Beeper Volume
|
boolean |
setDefaultConfigurations(Antennas.AntennaRfConfig antennaRfConfig,
Antennas.SingulationControl singulationControl,
TagStorageSettings tagStorageSettings,
boolean deleteAllPrefilters,
boolean dpoEnable,
SetAttribute[] setAttributes)
method to set default configurations on reader
This method helps to set basic required following configuration on reader in rapid manner
- Antenna configuration
- Singulation settings
- Delete all prefitlers (select record) on device
- DPO setting
- Any five attributes passed as array of attributes
- API sets trigger type to immediate
In case any object parameter is null then API will not apply particular configurations
so that if application does not want to configure particular parameter pass parameter as null
|
void |
setDPOState(DYNAMIC_POWER_OPTIMIZATION dpoState)
method to enable or disable DPO
|
void |
setDutyCycleIndex(short dutyCycleIndex) |
void |
setLedBlinkEnable(boolean enable)
method to set host LED mode to blink LED on tag data
|
void |
setLogLevel(java.util.logging.Level logLevel)
Setting the Log level up to which logging will be honoured
|
void |
setRadioPowerState(RADIO_POWER_STATE radioPowerState)
Sets the Radio power state to on or off state
|
void |
setRegulatoryConfig(RegulatoryConfig regulatoryConfig)
method to set regulatory configuration on the reader
|
void |
setStartTrigger(StartTrigger startTrigger)
method to set start trigger settings - reader require exclusive call for triggers
|
void |
setStopTrigger(StopTrigger stopTrigger)
method to set stop trigger settings - reader require exclusive call for triggers
|
void |
setTagStorageSettings(TagStorageSettings tagStorageSettings)
This method allows configuring the maximum tag-storage capacity and
storage to be allocated in the Tag Data object for the memory bank data and Tag ID (EPC).
|
void |
setTraceLevel(TRACE_LEVEL traceLevel)
Sets the trace level
|
void |
setTraceLevel(TRACE_LEVEL[] arrTraceLevel) |
boolean |
setTriggerMode(ENUM_TRIGGER_MODE trigger_mode,
boolean updateScannerPlugin)
method to set trigger mode to Barcode or RFID
Application can work with either Phone device (left and right) triggers and reader handheld trigger
This trigger should be mapped to either invoke Barcode or RFID functionality
when trigger is configured for RFID mode, barcode scanner input plugin should be disabled to ignore hardware triggers
when trigger is configured for barcode mode, rfid functionality will be disabled to ignore hardware triggers
|
boolean |
setUniqueTagReport(boolean uniqueTagReport)
method to disable/enable Reporting Unique Tags
|
public Antennas Antennas
public com.zebra.rfid.api3.GPIs GPI
public com.zebra.rfid.api3.GPOs GPO
public short getDutyCycleIndex() throws InvalidUsageException, OperationFailureException
public void setDutyCycleIndex(short dutyCycleIndex) throws InvalidUsageException, OperationFailureException
public RADIO_POWER_STATE getRadioPowerState() throws InvalidUsageException, OperationFailureException
public void setRadioPowerState(RADIO_POWER_STATE radioPowerState) throws InvalidUsageException, OperationFailureException
public TRACE_LEVEL[] getTraceLevel()
public void setTraceLevel(TRACE_LEVEL[] arrTraceLevel)
public void setLogLevel(java.util.logging.Level logLevel)
logLevel
- public java.lang.String GetLogBuffer() throws InvalidUsageException
InvalidUsageException
public void getDeviceVersionInfo(java.util.HashMap<java.lang.String,java.lang.String> deviceVersion) throws InvalidUsageException, OperationFailureException
deviceVersion
- InvalidUsageException
OperationFailureException
public void getDeviceStatus(boolean battery, boolean power, boolean temperature) throws InvalidUsageException, OperationFailureException
battery
- If set to true battery information will be retrievedpower
- If set to true power information will be retrievedtemperature
- If set to true temperature information will be retrievedInvalidUsageException
OperationFailureException
public void setTraceLevel(TRACE_LEVEL traceLevel)
public TagStorageSettings getTagStorageSettings() throws InvalidUsageException, OperationFailureException
InvalidUsageException
OperationFailureException
public void setTagStorageSettings(TagStorageSettings tagStorageSettings) throws InvalidUsageException, OperationFailureException
tagStorageSettings
- Settings like MaxTagCount, MaxMemoryBankSize, MaxEPCID, selection of tag fieldsInvalidUsageException
OperationFailureException
- This exception is thown when the parameters are invalidpublic void resetFactoryDefaults() throws InvalidUsageException, OperationFailureException
public StartTrigger getStartTrigger() throws InvalidUsageException, OperationFailureException
InvalidUsageException
OperationFailureException
public void setStartTrigger(StartTrigger startTrigger) throws InvalidUsageException, OperationFailureException
startTrigger
- InvalidUsageException
OperationFailureException
public StopTrigger getStopTrigger() throws InvalidUsageException, OperationFailureException
InvalidUsageException
OperationFailureException
public void setStopTrigger(StopTrigger stopTrigger) throws InvalidUsageException, OperationFailureException
stopTrigger
- InvalidUsageException
OperationFailureException
public void setAccessOperationWaitTimeout(int timeout) throws InvalidUsageException, OperationFailureException
timeout
- InvalidUsageException
OperationFailureException
public DYNAMIC_POWER_OPTIMIZATION getDPOState() throws InvalidUsageException, OperationFailureException
InvalidUsageException
OperationFailureException
public void setDPOState(DYNAMIC_POWER_OPTIMIZATION dpoState) throws InvalidUsageException, OperationFailureException
dpoState
- InvalidUsageException
OperationFailureException
public BATCH_MODE getBatchModeConfig() throws InvalidUsageException, OperationFailureException
InvalidUsageException
OperationFailureException
public void setBatchMode(BATCH_MODE batchMode) throws InvalidUsageException, OperationFailureException
batchMode
- InvalidUsageException
OperationFailureException
public BEEPER_VOLUME getBeeperVolume() throws InvalidUsageException, OperationFailureException
InvalidUsageException
OperationFailureException
public void setBeeperVolume(BEEPER_VOLUME beeperVolume) throws InvalidUsageException, OperationFailureException
beeperVolume
- InvalidUsageException
OperationFailureException
public AttributeInfo getAttribute(int attributeNumber, AttributeInfo attributeInfo) throws InvalidUsageException, OperationFailureException
attributeNumber
- InvalidUsageException
OperationFailureException
public void setAttribute(SetAttribute setAttributeInfo) throws InvalidUsageException, OperationFailureException
setAttributeInfo
- InvalidUsageException
OperationFailureException
public void saveConfig() throws InvalidUsageException, OperationFailureException
public RegulatoryConfig getRegulatoryConfig() throws InvalidUsageException, OperationFailureException
InvalidUsageException
OperationFailureException
public void setRegulatoryConfig(RegulatoryConfig regulatoryConfig) throws InvalidUsageException, OperationFailureException
regulatoryConfig
- InvalidUsageException
OperationFailureException
public RegionInfo getRegionInfo(RegionInfo regionInfo) throws InvalidUsageException, OperationFailureException
regionInfo
- InvalidUsageException
OperationFailureException
public boolean setUniqueTagReport(boolean uniqueTagReport) throws InvalidUsageException, OperationFailureException
uniqueTagReport
- InvalidUsageException
OperationFailureException
public UNIQUE_TAG_REPORT_SETTING getUniqueTagReport() throws InvalidUsageException, OperationFailureException
InvalidUsageException
OperationFailureException
public void setLedBlinkEnable(boolean enable) throws InvalidUsageException, OperationFailureException
enable
- when enabled LED will blink on each tag data read through inventory or access operationInvalidUsageException
OperationFailureException
public boolean setTriggerMode(ENUM_TRIGGER_MODE trigger_mode, boolean updateScannerPlugin) throws InvalidUsageException, OperationFailureException
trigger_mode
- ENUM selection between BARCODE or RFID modeupdateScannerPlugin
- SDK tries to disable scanner input plugin if RFID mode is selected and enable if BARCODE mode is selectedInvalidUsageException
OperationFailureException
public boolean setDefaultConfigurations(Antennas.AntennaRfConfig antennaRfConfig, Antennas.SingulationControl singulationControl, TagStorageSettings tagStorageSettings, boolean deleteAllPrefilters, boolean dpoEnable, SetAttribute[] setAttributes) throws InvalidUsageException, OperationFailureException
antennaRfConfig
- anteanna configurations like power, link profile and tarsingulationControl
- Query parameterstagStorageSettings
- Tag reporting fieldsdeleteAllPrefilters
- boolean true clear selectrecord on reader, false doesn't alterdpoEnable
- boolean enable disable DPOsetAttributes
- array of attributesInvalidUsageException
OperationFailureException