Package com.zebra.rfid.api3
Class Config
- java.lang.Object
-
- com.zebra.rfid.api3.Config
-
public class Config extends java.lang.ObjectThis class allows to perform reader configuration GPI and GPO not supported in Android RFID SDK
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeInfogetAttribute(int attributeNumber, AttributeInfo attributeInfo)Gets the attribute type and valueBATCH_MODEgetBatchModeConfig()Gets the Batch Mode Configjava.lang.IntegergetBatteryHealth()Gets the Battery health of reader (either overall health in 0-100% or number of charge cycles)BatteryStatisticsgetBatteryStats()method to get battery informations This method helps to get battery related information and statisticsBEEPER_VOLUMEgetBeeperVolume()Gets the Beeper ConfigENUM_BLUETOOTH_MODEgetBluetoothMode()method to get the bluetooth mode from the connected sled device This method helps to get the bluetooth mode(CDC Mode or HID mode)CableLossCompensationgetCableLossCompensation(int antennaID)Gets Cable Loss Compensation Info for the given Antenna IDbooleangetChargeTerminalState()Gets the Charge Terminal statebooleangetCradleStatus()java.lang.StringgetDefaultProfile()Gets the default Profilejava.lang.StringgetDeviceProperty(ENUM_DEVICE_PROPERTY deviceProperty)Gets the Device PropertyvoidgetDeviceStatus(boolean battery, boolean power, boolean temperature)API to fetch the device status in terms of battery, power and temperaturevoidgetDeviceStatus(boolean battery, boolean power, boolean temperature, boolean onCradle)API to fetch the device status in terms of battery, power, temperature and cradle status for Stryker deviceRFIDResultsgetDeviceStatus(DeviceStatus deviceStatus)voidgetDeviceVersionInfo(java.util.HashMap<java.lang.String,java.lang.String> deviceVersion)API to get the device version informationDYNAMIC_POWER_OPTIMIZATIONgetDPOState()Gets the DPO stateshortgetDutyCycleIndex()java.lang.StringgetFriendlyName()java.lang.StringgetKeylayoutType()method to get Keymapjava.lang.StringGetLogBuffer()Gets the log buffer from SDK as StringENUM_NEW_KEYLAYOUT_TYPEgetLowerTriggerValue()ENUM_NEW_KEYLAYOUT_TYPEgetLowerTriggerValue(java.lang.String klType)JSONObjectgetMode()getModeRADIO_POWER_STATEgetRadioPowerState()Gets the Radio power state to on or off statevoidgetreaderlog(java.lang.String logtype, boolean state)READER_POWER_STATEgetReaderPowerState()Gets the Reader power stateRegionInfogetRegionInfo(RegionInfo regionInfo)method to get region information (hopping, default channels) for given regionRegulatoryConfiggetRegulatoryConfig()method to get current regulatory configuration set on the readerjava.lang.StringgetRFIDProfile()Method to get all supported profilesvoidGetSaveLlrpConfigStatus(boolean pSaveStatus)SCAN_BATCH_MODEgetScanBatchModeConfig()Gets the Scan Batch Mode ConfigStartTriggergetStartTrigger()method to get current start trigger settings from readerStopTriggergetStopTrigger()method to get current stop trigger settings from readerTagStorageSettingsgetTagStorageSettings()Get TagStorageSettings.TRACE_LEVEL[]getTraceLevel()Gets the trace levelvoidgetTriggerStatus()method to getTriggerStatusUNIQUE_TAG_REPORT_SETTINGgetUniqueTagReport()method to fetch Unique tag reporting settings from the readerENUM_NEW_KEYLAYOUT_TYPEgetUpperTriggerValue()method to get UpperTriggerValueENUM_NEW_KEYLAYOUT_TYPEgetUpperTriggerValue(java.lang.String klType)method to get UpperTriggerValueUSB_BATCH_MODEgetUsbBatchModeConfig()Gets the Usb Batch Mode ConfigENUM_WIFI_STATEgetWifiState(java.lang.String state)java.lang.BooleanisUsbMiFiEnabled()method to get USB MiFi statusbooleanNw_getDhcpStatus()method to get the dhcp status This method returns whether dhcp is enabled or disabledRFIDResultsNw_getNetworkStatus(Network_IPConfig networkconfig)method to get the current network status This method fetches the configured network data.RFIDResultsNw_setDhcpEnable()method to Enable DHCP This method enables DHCPRFIDResultsNw_setStaticIP(Network_IPConfig networkconfig)method to set the static ip.voidresetFactoryDefaults()Restores to factory default settings in the reader.voidsaveConfig()method to save configuration permanently to the readervoidSaveLlrpConfig()voidsetAccessOperationWaitTimeout(int timeout)method to set access operation timeout for all synchronous tag access operations APIs e.g.voidsetAttribute(SetAttribute setAttributeInfo)method to Set attributevoidsetBatchMode(BATCH_MODE batchMode)method to Set Batch ModevoidsetBeeperVolume(BEEPER_VOLUME beeperVolume)method to Set Beeper VolumeRFIDResultssetBluetoothMode(ENUM_BLUETOOTH_MODE mode)method to configure the bluetooth mode on the connected sled device This method helps to set the bluetooth mode(CDC Mode or HID mode)RFIDResultssetCableLossCompensation(CableLossCompensation[] cableLossCompensationInfo)Sets the cable Loss Compensation for antennasRFIDResultssetChargeTerminalEnable(boolean enable)method to set charge terminal enable and disable on sled devicebooleansetDefaultConfigurations(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 nullvoidsetDeviceProperty(ENUM_DEVICE_PROPERTY deviceProperty, java.lang.String value)method to setDevicePropertyvoidsetDPOState(DYNAMIC_POWER_OPTIMIZATION dpoState)method to enable or disable DPOvoidsetDutyCycleIndex(short dutyCycleIndex)RFIDResultssetFriendlyName(java.lang.String friendlyName)Sets the Reader Friendly NamevoidsetInventoryModeSettings(java.lang.String unit, int value)setInventoryModeSettingsRFIDResultssetKeylayoutType(ENUM_KEYLAYOUT_TYPE keylayoutType)method to set Keymap for triggersRFIDResultssetKeylayoutType(ENUM_NEW_KEYLAYOUT_TYPE upperTriggerval, ENUM_NEW_KEYLAYOUT_TYPE lowerTriggerval)voidsetLedBlinkEnable(boolean enable)method to set host LED mode to blink LED on tag datavoidsetLogLevel(java.util.logging.Level logLevel)Setting the Log level up to which logging will be honouredvoidsetOperatingMode(ENUM_OPERATING_MODE operatingMode)setOperatingModevoidsetportalModeSettings(int port, java.lang.String signal, int stopInterval)setportalModeSettingsvoidsetRadioPowerState(RADIO_POWER_STATE radioPowerState)Sets the Radio power state to on or off statevoidsetreaderlog(java.lang.String logtype, boolean state)voidsetReaderPowerState(READER_POWER_STATE readerPowerState)Sets the Reader power statevoidsetRegulatoryConfig(RegulatoryConfig regulatoryConfig)method to set regulatory configuration on the readerbooleansetRFIDProfile(java.lang.String profileName)method to set ProfileRFIDResultssetScanBatchMode(SCAN_BATCH_MODE scanBatchMode)method to Set Scan Batch ModevoidsetStartTrigger(StartTrigger startTrigger)method to set start trigger settings - reader require exclusive call for triggersvoidsetStopTrigger(StopTrigger stopTrigger)method to set stop trigger settings - reader require exclusive call for triggersvoidsetTagStorageSettings(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).voidsetTraceLevel(TRACE_LEVEL traceLevel)Sets the trace levelvoidsetTraceLevel(TRACE_LEVEL[] arrTraceLevel)booleansetTriggerMode(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 triggersbooleansetUniqueTagReport(boolean uniqueTagReport)method to disable/enable Reporting Unique TagsvoidsetUsbBatchMode(USB_BATCH_MODE usbBatchMode)method to Set Batch Mode for USBvoidsetUsbMiFiEnable(boolean enable)method to Enable USB MiFi supportvoidsetUserFeedback(java.lang.Integer profile)method to Set user feedback profile to generate custom LED and BEEPRFIDResultsupdateFirmware(java.lang.String path, java.lang.String ip)Update Firmware User needs to make sure that path is obtained using the Android Storage Access Framework.RFIDResultswifi_addProfile(WifiProfile wifiprofile)method to add a new wifi profile This method adds a new bss entryRFIDResultswifi_connectNonroaming(java.lang.String ssid)method to connect to specified ssid in nonroam mode This method makes a connection to the specified ssid in non road modeRFIDResultswifi_connectRoaming()method to connect in roaming mode This method enables roaming among the configured SSID list and connects to it.RFIDResultswifi_deleteProfile(java.lang.String ssid)method to deletes a wifi profile This method deletes a specified bss entry.If no ssid is provided deletes all the bss entries.RFIDResultswifi_disable()method to disable the wifi on the connected sled device This method disables wifi on the sled device.RFIDResultswifi_disconnect()method to disconnect the connected ssid.RFIDResultswifi_enable()method to enable the wifi on the connected sled device This method helps to enable wifi on the sled device.RFIDResultswifi_getStatus(RFIDWifi rfidwifiobj)method to dump all the bss entries.java.util.ArrayList<WifiProfile>wifi_listProfile()method to dump all the bss entries.RFIDResultswifi_poweron(boolean poweron)method to power on/off wifi on sled device This method helps to power on wifiRFIDResultswifi_saveProfile()method to save all the user configured wifi profiles to flash This method saves all the created bss entries to flashRFIDResultswifi_scan()method to request a new bss scan This method requests a new bss scan
-
-
-
Field Detail
-
Antennas
public Antennas Antennas
-
GPI
public GPIs GPI
-
GPO
public GPOs GPO
-
LOGGER
public static final IRFIDLogger LOGGER
-
-
Method Detail
-
getDutyCycleIndex
public short getDutyCycleIndex() throws InvalidUsageException, OperationFailureException
-
setDutyCycleIndex
public void setDutyCycleIndex(short dutyCycleIndex) throws InvalidUsageException, OperationFailureException
-
getRadioPowerState
public RADIO_POWER_STATE getRadioPowerState() throws InvalidUsageException, OperationFailureException
Gets the Radio power state to on or off state
-
setRadioPowerState
public void setRadioPowerState(RADIO_POWER_STATE radioPowerState) throws InvalidUsageException, OperationFailureException
Sets the Radio power state to on or off state
-
getTraceLevel
public TRACE_LEVEL[] getTraceLevel()
Gets the trace level
-
setTraceLevel
public void setTraceLevel(TRACE_LEVEL[] arrTraceLevel)
-
setLogLevel
public void setLogLevel(java.util.logging.Level logLevel)
Setting the Log level up to which logging will be honoured- Parameters:
logLevel-
-
setreaderlog
public void setreaderlog(java.lang.String logtype, boolean state) throws InvalidUsageException, OperationFailureException
-
getreaderlog
public void getreaderlog(java.lang.String logtype, boolean state) throws InvalidUsageException, OperationFailureException
-
GetLogBuffer
public java.lang.String GetLogBuffer() throws InvalidUsageExceptionGets the log buffer from SDK as String- Returns:
- logBuffer as String
- Throws:
InvalidUsageException
-
getDeviceVersionInfo
public void getDeviceVersionInfo(java.util.HashMap<java.lang.String,java.lang.String> deviceVersion) throws InvalidUsageException, OperationFailureExceptionAPI to get the device version information- Parameters:
deviceVersion-- Throws:
InvalidUsageExceptionOperationFailureException
-
getDeviceStatus
public void getDeviceStatus(boolean battery, boolean power, boolean temperature) throws InvalidUsageException, OperationFailureExceptionAPI to fetch the device status in terms of battery, power and temperature- Parameters:
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 retrieved- Throws:
InvalidUsageExceptionOperationFailureException
-
getDeviceStatus
public RFIDResults getDeviceStatus(DeviceStatus deviceStatus) throws InvalidUsageException, OperationFailureException
-
getDeviceStatus
public void getDeviceStatus(boolean battery, boolean power, boolean temperature, boolean onCradle) throws InvalidUsageException, OperationFailureExceptionAPI to fetch the device status in terms of battery, power, temperature and cradle status for Stryker device
-
setDeviceProperty
public void setDeviceProperty(ENUM_DEVICE_PROPERTY deviceProperty, java.lang.String value) throws OperationFailureException, InvalidUsageException
method to setDeviceProperty- Parameters:
deviceProperty- - Enum value to set device propertyvalue- - set property value- Throws:
InvalidUsageExceptionOperationFailureException
-
getDeviceProperty
public java.lang.String getDeviceProperty(ENUM_DEVICE_PROPERTY deviceProperty) throws OperationFailureException, InvalidUsageException
Gets the Device Property- Parameters:
deviceProperty- - Enum value to get device property- Returns:
- value
- Throws:
InvalidUsageExceptionOperationFailureException
-
setTraceLevel
public void setTraceLevel(TRACE_LEVEL traceLevel)
Sets the trace level
-
getTagStorageSettings
public TagStorageSettings getTagStorageSettings() throws InvalidUsageException, OperationFailureException
Get TagStorageSettings.- Returns:
- Throws:
InvalidUsageExceptionOperationFailureException
-
setTagStorageSettings
public void setTagStorageSettings(TagStorageSettings tagStorageSettings) throws InvalidUsageException, OperationFailureException
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). Also, it allows to set the number of tags to be queued in side the Library. The application can use this method to customize the tag data size(EPC and Memory Bank) based on the requirements. Also, this method allows to configure the queue size of the Library maintained. Tags reported from the reader as part of inventory or read-access operation will be queued internally in the library till it is called using GetReadTag. When the number of tags queued in the library exceeds the max tag count, the event enabled for BUFFER_FULL_WARNING_EVENT will be signalled. This event also be signalled when reader internal buffers are full. It is recommended to use the default settings unless it is explicitly required for advanced user to optimize the performance or necessary to adjust the EPC or memory bank size- Parameters:
tagStorageSettings- Settings like MaxTagCount, MaxMemoryBankSize, MaxEPCID, selection of tag fields- Throws:
InvalidUsageExceptionOperationFailureException- This exception is thown when the parameters are invalid
-
resetFactoryDefaults
public void resetFactoryDefaults() throws InvalidUsageException, OperationFailureExceptionRestores to factory default settings in the reader. Once this method is called, all the settings will be lost. For eg. events, singulation control. The application is required to redo the basic steps for initializing the reader.
-
SaveLlrpConfig
public void SaveLlrpConfig() throws InvalidUsageException, OperationFailureException
-
GetSaveLlrpConfigStatus
public void GetSaveLlrpConfigStatus(boolean pSaveStatus) throws InvalidUsageException, OperationFailureException
-
getStartTrigger
public StartTrigger getStartTrigger() throws InvalidUsageException, OperationFailureException
method to get current start trigger settings from reader- Returns:
- StartTrigger
- Throws:
InvalidUsageExceptionOperationFailureException
-
setStartTrigger
public void setStartTrigger(StartTrigger startTrigger) throws InvalidUsageException, OperationFailureException
method to set start trigger settings - reader require exclusive call for triggers- Parameters:
startTrigger-- Throws:
InvalidUsageExceptionOperationFailureException
-
setKeylayoutType
public RFIDResults setKeylayoutType(ENUM_KEYLAYOUT_TYPE keylayoutType) throws InvalidUsageException, OperationFailureException
method to set Keymap for triggers- Parameters:
upperTriggerval- ,lowerTriggerval- Throws:
InvalidUsageExceptionOperationFailureException
-
setKeylayoutType
public RFIDResults setKeylayoutType(ENUM_NEW_KEYLAYOUT_TYPE upperTriggerval, ENUM_NEW_KEYLAYOUT_TYPE lowerTriggerval) throws InvalidUsageException, OperationFailureException
-
getKeylayoutType
public java.lang.String getKeylayoutType() throws InvalidUsageException, OperationFailureExceptionmethod to get Keymap
-
getUpperTriggerValue
public ENUM_NEW_KEYLAYOUT_TYPE getUpperTriggerValue(java.lang.String klType) throws InvalidUsageException, OperationFailureException
method to get UpperTriggerValue
-
getUpperTriggerValue
public ENUM_NEW_KEYLAYOUT_TYPE getUpperTriggerValue() throws InvalidUsageException, OperationFailureException
method to get UpperTriggerValue
-
getLowerTriggerValue
public ENUM_NEW_KEYLAYOUT_TYPE getLowerTriggerValue(java.lang.String klType) throws InvalidUsageException, OperationFailureException
-
getLowerTriggerValue
public ENUM_NEW_KEYLAYOUT_TYPE getLowerTriggerValue() throws InvalidUsageException, OperationFailureException
-
getStopTrigger
public StopTrigger getStopTrigger() throws InvalidUsageException, OperationFailureException
method to get current stop trigger settings from reader- Returns:
- Throws:
InvalidUsageExceptionOperationFailureException
-
setStopTrigger
public void setStopTrigger(StopTrigger stopTrigger) throws InvalidUsageException, OperationFailureException
method to set stop trigger settings - reader require exclusive call for triggers- Parameters:
stopTrigger-- Throws:
InvalidUsageExceptionOperationFailureException
-
getTriggerStatus
public void getTriggerStatus() throws OperationFailureException, InvalidUsageExceptionmethod to getTriggerStatus
-
setAccessOperationWaitTimeout
public void setAccessOperationWaitTimeout(int timeout) throws InvalidUsageException, OperationFailureExceptionmethod to set access operation timeout for all synchronous tag access operations APIs e.g. readWait,writeWait,lockWait,blockWriteWait Note: This timeout is not applicable for asynchronous APIs e.g. readEvent,writeEvent etc.- Parameters:
timeout-- Throws:
InvalidUsageExceptionOperationFailureException
-
getDPOState
public DYNAMIC_POWER_OPTIMIZATION getDPOState() throws InvalidUsageException, OperationFailureException
Gets the DPO state- Returns:
- DYNAMIC_POWER_OPTIMIZATION ENABLE / DISABLE
- Throws:
InvalidUsageExceptionOperationFailureException
-
setDPOState
public void setDPOState(DYNAMIC_POWER_OPTIMIZATION dpoState) throws InvalidUsageException, OperationFailureException
method to enable or disable DPO- Parameters:
dpoState-- Throws:
InvalidUsageExceptionOperationFailureException
-
getBatchModeConfig
public BATCH_MODE getBatchModeConfig() throws InvalidUsageException, OperationFailureException
Gets the Batch Mode Config- Returns:
- BATCH_MODE configurations
- Throws:
InvalidUsageExceptionOperationFailureException
-
setBatchMode
public void setBatchMode(BATCH_MODE batchMode) throws InvalidUsageException, OperationFailureException
method to Set Batch Mode- Parameters:
batchMode-- Throws:
InvalidUsageExceptionOperationFailureException
-
getUsbBatchModeConfig
public USB_BATCH_MODE getUsbBatchModeConfig() throws InvalidUsageException, OperationFailureException
Gets the Usb Batch Mode Config- Returns:
- USB_BATCH_MODE configurations
- Throws:
InvalidUsageExceptionOperationFailureException
-
setUsbBatchMode
public void setUsbBatchMode(USB_BATCH_MODE usbBatchMode) throws InvalidUsageException, OperationFailureException
method to Set Batch Mode for USB- Parameters:
usbBatchMode-- Throws:
InvalidUsageExceptionOperationFailureException
-
getScanBatchModeConfig
public SCAN_BATCH_MODE getScanBatchModeConfig() throws InvalidUsageException, OperationFailureException
Gets the Scan Batch Mode Config- Returns:
- SCAN_BATCH_MODE configurations
- Throws:
InvalidUsageExceptionOperationFailureException
-
setScanBatchMode
public RFIDResults setScanBatchMode(SCAN_BATCH_MODE scanBatchMode) throws InvalidUsageException, OperationFailureException
method to Set Scan Batch Mode- Parameters:
scanBatchMode-- Returns:
- RFIDResults
- Throws:
InvalidUsageExceptionOperationFailureException
-
getBeeperVolume
public BEEPER_VOLUME getBeeperVolume() throws InvalidUsageException, OperationFailureException
Gets the Beeper Config- Returns:
- BEEPER_VOLUME
- Throws:
InvalidUsageExceptionOperationFailureException
-
setBeeperVolume
public void setBeeperVolume(BEEPER_VOLUME beeperVolume) throws InvalidUsageException, OperationFailureException
method to Set Beeper Volume- Parameters:
beeperVolume-- Throws:
InvalidUsageExceptionOperationFailureException
-
getAttribute
public AttributeInfo getAttribute(int attributeNumber, AttributeInfo attributeInfo) throws InvalidUsageException, OperationFailureException
Gets the attribute type and value- Parameters:
attributeNumber-- Returns:
- AttributeInfo
- Throws:
InvalidUsageExceptionOperationFailureException
-
setAttribute
public void setAttribute(SetAttribute setAttributeInfo) throws InvalidUsageException, OperationFailureExceptionmethod to Set attribute- Parameters:
setAttributeInfo-- Throws:
InvalidUsageExceptionOperationFailureException
-
saveConfig
public void saveConfig() throws InvalidUsageException, OperationFailureExceptionmethod to save configuration permanently to the reader
-
getRegulatoryConfig
public RegulatoryConfig getRegulatoryConfig() throws InvalidUsageException, OperationFailureException
method to get current regulatory configuration set on the reader- Returns:
- Throws:
InvalidUsageExceptionOperationFailureException
-
setRegulatoryConfig
public void setRegulatoryConfig(RegulatoryConfig regulatoryConfig) throws InvalidUsageException, OperationFailureException
method to set regulatory configuration on the reader- Parameters:
regulatoryConfig-- Throws:
InvalidUsageExceptionOperationFailureException
-
getRegionInfo
public RegionInfo getRegionInfo(RegionInfo regionInfo) throws InvalidUsageException, OperationFailureException
method to get region information (hopping, default channels) for given region- Parameters:
regionInfo-- Returns:
- Throws:
InvalidUsageExceptionOperationFailureException
-
setUniqueTagReport
public boolean setUniqueTagReport(boolean uniqueTagReport) throws InvalidUsageException, OperationFailureExceptionmethod to disable/enable Reporting Unique Tags- Parameters:
uniqueTagReport-- Returns:
- Throws:
InvalidUsageExceptionOperationFailureException
-
getUniqueTagReport
public UNIQUE_TAG_REPORT_SETTING getUniqueTagReport() throws InvalidUsageException, OperationFailureException
method to fetch Unique tag reporting settings from the reader- Returns:
- m_eUniqueTagReport
- Throws:
InvalidUsageExceptionOperationFailureException
-
setLedBlinkEnable
public void setLedBlinkEnable(boolean enable) throws InvalidUsageException, OperationFailureExceptionmethod to set host LED mode to blink LED on tag data- Parameters:
enable- when enabled LED will blink on each tag data read through inventory or access operation- Throws:
InvalidUsageExceptionOperationFailureException
-
setTriggerMode
public boolean setTriggerMode(ENUM_TRIGGER_MODE trigger_mode, boolean updateScannerPlugin) throws InvalidUsageException, OperationFailureException
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- Parameters:
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 selected- Returns:
- Throws:
InvalidUsageExceptionOperationFailureException
-
setDefaultConfigurations
public boolean setDefaultConfigurations(Antennas.AntennaRfConfig antennaRfConfig, Antennas.SingulationControl singulationControl, TagStorageSettings tagStorageSettings, boolean deleteAllPrefilters, boolean dpoEnable, SetAttribute[] setAttributes) throws InvalidUsageException, OperationFailureException
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- Parameters:
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 attributes- Returns:
- Throws:
InvalidUsageExceptionOperationFailureException
-
getBatteryStats
public BatteryStatistics getBatteryStats() throws OperationFailureException, InvalidUsageException
method to get battery informations This method helps to get battery related information and statistics- Returns:
- Throws:
InvalidUsageExceptionOperationFailureException
-
setBluetoothMode
public RFIDResults setBluetoothMode(ENUM_BLUETOOTH_MODE mode) throws InvalidUsageException, OperationFailureException
method to configure the bluetooth mode on the connected sled device This method helps to set the bluetooth mode(CDC Mode or HID mode)- Returns:
- RFIDResults (RFID_API_SUCCESS or other)
- Throws:
InvalidUsageExceptionOperationFailureException
-
getBluetoothMode
public ENUM_BLUETOOTH_MODE getBluetoothMode() throws InvalidUsageException, OperationFailureException
method to get the bluetooth mode from the connected sled device This method helps to get the bluetooth mode(CDC Mode or HID mode)- Returns:
- RFIDResults (RFID_API_SUCCESS or other)
- Throws:
InvalidUsageExceptionOperationFailureException
-
wifi_poweron
public RFIDResults wifi_poweron(boolean poweron) throws InvalidUsageException, OperationFailureException
method to power on/off wifi on sled device This method helps to power on wifi- Parameters:
poweron- -true indicates power on and false indicates power off- Returns:
- RFIDResults (RFID_API_SUCCESS or other)
- Throws:
InvalidUsageExceptionOperationFailureException
-
getWifiState
public ENUM_WIFI_STATE getWifiState(java.lang.String state)
-
wifi_enable
public RFIDResults wifi_enable() throws InvalidUsageException, OperationFailureException
method to enable the wifi on the connected sled device This method helps to enable wifi on the sled device.- Returns:
- RFIDResults (RFID_API_SUCCESS or other)
- Throws:
InvalidUsageExceptionOperationFailureException
-
wifi_disable
public RFIDResults wifi_disable() throws InvalidUsageException, OperationFailureException
method to disable the wifi on the connected sled device This method disables wifi on the sled device.- Returns:
- RFIDResults (RFID_API_SUCCESS or other)
- Throws:
InvalidUsageExceptionOperationFailureException
-
wifi_addProfile
public RFIDResults wifi_addProfile(WifiProfile wifiprofile) throws InvalidUsageException, OperationFailureException
method to add a new wifi profile This method adds a new bss entry- Returns:
- RFIDResults (RFID_API_SUCCESS or other)
- Throws:
InvalidUsageExceptionOperationFailureException
-
wifi_deleteProfile
public RFIDResults wifi_deleteProfile(java.lang.String ssid) throws InvalidUsageException, OperationFailureException
method to deletes a wifi profile This method deletes a specified bss entry.If no ssid is provided deletes all the bss entries.- Returns:
- RFIDResults (RFID_API_SUCCESS or other)
- Throws:
InvalidUsageExceptionOperationFailureException
-
wifi_saveProfile
public RFIDResults wifi_saveProfile() throws InvalidUsageException, OperationFailureException
method to save all the user configured wifi profiles to flash This method saves all the created bss entries to flash- Returns:
- RFIDResults (RFID_API_SUCCESS or other)
- Throws:
InvalidUsageExceptionOperationFailureException
-
wifi_connectNonroaming
public RFIDResults wifi_connectNonroaming(java.lang.String ssid) throws InvalidUsageException, OperationFailureException
method to connect to specified ssid in nonroam mode This method makes a connection to the specified ssid in non road mode- Returns:
- RFIDResults (RFID_API_SUCCESS or other)
- Throws:
InvalidUsageExceptionOperationFailureException
-
wifi_connectRoaming
public RFIDResults wifi_connectRoaming() throws InvalidUsageException, OperationFailureException
method to connect in roaming mode This method enables roaming among the configured SSID list and connects to it.- Returns:
- RFIDResults (RFID_API_SUCCESS or other)
- Throws:
InvalidUsageExceptionOperationFailureException
-
wifi_disconnect
public RFIDResults wifi_disconnect() throws InvalidUsageException, OperationFailureException
method to disconnect the connected ssid. This method shuts down the connection to the connected ssid.- Returns:
- RFIDResults (RFID_API_SUCCESS or other)
- Throws:
InvalidUsageExceptionOperationFailureException
-
wifi_scan
public RFIDResults wifi_scan() throws InvalidUsageException, OperationFailureException
method to request a new bss scan This method requests a new bss scan- Returns:
- RFIDResults (RFID_API_SUCCESS or other)
- Throws:
InvalidUsageExceptionOperationFailureException
-
wifi_listProfile
public java.util.ArrayList<WifiProfile> wifi_listProfile() throws InvalidUsageException, OperationFailureException
method to dump all the bss entries. This method lists all the configured wifi profiles- Returns:
- WifiProfile wifiprofile[] :Array of WifiProfile class objects
- Throws:
InvalidUsageExceptionOperationFailureException
-
wifi_getStatus
public RFIDResults wifi_getStatus(RFIDWifi rfidwifiobj) throws InvalidUsageException, OperationFailureException
method to dump all the bss entries. This method lists all the configured wifi profiles- Returns:
- RFIDResults (RFID_API_SUCCESS or other)
- Throws:
InvalidUsageExceptionOperationFailureException
-
Nw_setDhcpEnable
public RFIDResults Nw_setDhcpEnable() throws InvalidUsageException, OperationFailureException
method to Enable DHCP This method enables DHCP- Returns:
- RFIDResults (RFID_API_SUCCESS or other)
- Throws:
InvalidUsageExceptionOperationFailureException
-
Nw_setStaticIP
public RFIDResults Nw_setStaticIP(Network_IPConfig networkconfig) throws InvalidUsageException, OperationFailureException
method to set the static ip. This method sets up a static ip for the sled device.- Returns:
- RFIDResults (RFID_API_SUCCESS or other)
- Throws:
InvalidUsageExceptionOperationFailureException
-
Nw_getNetworkStatus
public RFIDResults Nw_getNetworkStatus(Network_IPConfig networkconfig) throws InvalidUsageException, OperationFailureException
method to get the current network status This method fetches the configured network data.- Returns:
- RFIDResults (RFID_API_SUCCESS or other)
- Throws:
InvalidUsageExceptionOperationFailureException
-
Nw_getDhcpStatus
public boolean Nw_getDhcpStatus() throws InvalidUsageException, OperationFailureExceptionmethod to get the dhcp status This method returns whether dhcp is enabled or disabled- Returns:
- boolean True:Dhcp is enabled, False:Dhcp is disabled
- Throws:
InvalidUsageExceptionOperationFailureException
-
setChargeTerminalEnable
public RFIDResults setChargeTerminalEnable(boolean enable) throws InvalidUsageException, OperationFailureException
method to set charge terminal enable and disable on sled device- Parameters:
enable- -true indicates enable and false indicates disable charge terminal- Returns:
- RFIDResults (RFID_API_SUCCESS or other)
- Throws:
InvalidUsageExceptionOperationFailureException
-
getChargeTerminalState
public boolean getChargeTerminalState()
Gets the Charge Terminal state
-
setFriendlyName
public RFIDResults setFriendlyName(java.lang.String friendlyName) throws InvalidUsageException, OperationFailureException
Sets the Reader Friendly Name- Parameters:
friendlyName- Required- Throws:
InvalidUsageExceptionOperationFailureException
-
getFriendlyName
public java.lang.String getFriendlyName() throws InvalidUsageException, OperationFailureException
-
getCradleStatus
public boolean getCradleStatus() throws InvalidUsageException, OperationFailureException
-
getDefaultProfile
public java.lang.String getDefaultProfile() throws OperationFailureException, InvalidUsageExceptionGets the Default Profile-
- Returns:
- ProfileName
- Throws:
InvalidUsageExceptionOperationFailureException
-
-
getRFIDProfile
public java.lang.String getRFIDProfile() throws OperationFailureException, InvalidUsageExceptionGets the All Supported Porfile Names-
- Returns:
- ProfileNames
- Throws:
InvalidUsageExceptionOperationFailureException
-
-
setRFIDProfile
public Boolean setRFIDProfile(java.lang.String profileName) throws InvalidUsageException, OperationFailureException
Sets the Profile- Parameters:
profileName- Required- Throws:
InvalidUsageExceptionOperationFailureException
-
getReaderPowerState
public READER_POWER_STATE getReaderPowerState() throws InvalidUsageException, OperationFailureException
Gets the Reader power state- Returns:
- READER_POWER_STATE
- Throws:
InvalidUsageExceptionOperationFailureException
-
setReaderPowerState
public void setReaderPowerState(READER_POWER_STATE readerPowerState) throws InvalidUsageException, OperationFailureException
Sets the Reader power state- Parameters:
readerPowerState- Required power state- Throws:
InvalidUsageExceptionOperationFailureException
-
setUserFeedback
public void setUserFeedback(java.lang.Integer profile) throws InvalidUsageException, OperationFailureExceptionmethod to Set user feedback profile to generate custom LED and BEEP- Parameters:
profile-- Throws:
InvalidUsageExceptionOperationFailureException
-
getBatteryHealth
public java.lang.Integer getBatteryHealth() throws InvalidUsageException, OperationFailureExceptionGets the Battery health of reader (either overall health in 0-100% or number of charge cycles)- Returns:
- Battery health as Integer
- Throws:
InvalidUsageExceptionOperationFailureException
-
setUsbMiFiEnable
public void setUsbMiFiEnable(boolean enable) throws OperationFailureException, InvalidUsageExceptionmethod to Enable USB MiFi support- Parameters:
enable- - boolean value to enable and disable- Throws:
InvalidUsageExceptionOperationFailureException
-
isUsbMiFiEnabled
public java.lang.Boolean isUsbMiFiEnabled() throws OperationFailureException, InvalidUsageExceptionmethod to get USB MiFi status- Returns:
- Boolean - indicates MiFi status
- Throws:
InvalidUsageExceptionOperationFailureException
-
getMode
public JSONObject getMode()
getMode- Returns:
- Boolean - indicates current operating mode
- Throws:
InvalidUsageExceptionOperationFailureException
-
setOperatingMode
public void setOperatingMode(ENUM_OPERATING_MODE operatingMode)
setOperatingMode- Parameters:
operatingMode- operating modes can be 1. Simple 2. Inventory 3. Portal 4. Conveyor 5. Custom- Throws:
InvalidUsageExceptionOperationFailureException
-
setInventoryModeSettings
public void setInventoryModeSettings(java.lang.String unit, int value)setInventoryModeSettings- Parameters:
unit- unit can be hours, seconds , minutes , daysvalue- unit value- Throws:
InvalidUsageExceptionOperationFailureException
-
setportalModeSettings
public void setportalModeSettings(int port, java.lang.String signal, int stopInterval)setportalModeSettings- Parameters:
port- denotes port numbersignal- signal can be HIGH or LOWstopInterval- stopInterval is the interval at which to stop reads after the last unique tag is read (seconds).- Throws:
InvalidUsageExceptionOperationFailureException
-
updateFirmware
public RFIDResults updateFirmware(java.lang.String path, java.lang.String ip) throws InvalidUsageException, OperationFailureException
Update Firmware User needs to make sure that path is obtained using the Android Storage Access Framework. IP address of the interface from where reader reach your android device hosting the firmware files.- Parameters:
path- path of the new firmware file on the terminal/hostdeviceip- Local terminal IP address- Returns:
- RFIDResults (RFID_API_SUCCESS or other)
- Throws:
InvalidUsageExceptionOperationFailureException
-
setCableLossCompensation
public RFIDResults setCableLossCompensation(CableLossCompensation[] cableLossCompensationInfo) throws InvalidUsageException, OperationFailureException
Sets the cable Loss Compensation for antennas- Parameters:
cableLossCompensationInfo- Array of Cable Length Details for each Antenna ID to be configured. If Antenna ID specified as 0, settings will be applied to all the antennas- Throws:
InvalidUsageExceptionOperationFailureException
-
getCableLossCompensation
public CableLossCompensation getCableLossCompensation(int antennaID) throws InvalidUsageException, OperationFailureException
Gets Cable Loss Compensation Info for the given Antenna ID- Parameters:
antennaID- Antenna ID- Returns:
- CableLossCompensation Object
- Throws:
InvalidUsageExceptionOperationFailureException
-
-