Package com.zebra.rfid.api3
Class Config
java.lang.Object
com.zebra.rfid.api3.Config
This class allows to perform reader configuration
GPI and GPO not supported in Android RFID SDK
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionactivateEndpoint(IotConfigInfo iotConfigInfo) method to activate different types of endpoints This method helps activate different types of endpoints.addCertificate(String filePath) method to get current active management endpoint configuration of the device This method helps to get the current active management endpoint configured on the device.method to get all the active endpoint names for each type of the device This method helps to get the active endpoint names for each type on the device.getAttribute(int attributeNumber, AttributeInfo attributeInfo) Gets the attribute type and valueGets the Batch Mode ConfigGets the Battery health of reader (either overall health in 0-100% or number of charge cycles)method to get battery informations This method helps to get battery related information and statisticsGets the Beeper Configmethod to get the bluetooth mode from the connected sled device This method helps to get the bluetooth mode(CDC Mode or HID mode)getCableLossCompensation(int antennaID) Gets Cable Loss Compensation Info for the given Antenna IDmethod to get the wifi status This method get the installed certificates from the readerbooleanGets the Charge Terminal statebooleanThis method is used to check the CradleStatusRetrieves the default profile.getDeviceProperty(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 devicegetDeviceStatus(DeviceStatus deviceStatus) Retrieves the status of the device.voidgetDeviceVersionInfo(HashMap<String, String> deviceVersion) API to get the device version informationGets the DPO stateshortmethod to get DutyCycleIndexgetEndpointConfigByName(String epName) method to get endpoint configuration by name of the device This method helps to get the endpoint configured by name on the device.method to get endpoint names of the device This method helps to get the endpoint names on the device.Retrieves the friendly name of the device.method to get KeymapGets the log buffer from SDK as Stringmethod to get LowerTriggerValuegetLowerTriggerValue(String klType) method to get LowerTriggerValueJSONObjectgetMode()getModeGets the Radio power state to on or off statevoidgetreaderlog(String logtype, boolean state) Retrieves the reader log type and state.Gets the Reader power stategetRegionInfo(RegionInfo regionInfo) method to get region information (hopping, default channels) for given regionmethod to get current regulatory configuration set on the readerRetrieves the RFID profile.voidGetSaveLlrpConfigStatus(boolean pSaveStatus) This method is used for get the Llrp configuration statusGets the Scan Batch Mode Configmethod to get current start trigger settings from readermethod to get current stop trigger settings from readerGet TagStorageSettings.Gets the trace levelvoidmethod to getTriggerStatusmethod to fetch Unique tag reporting settings from the readermethod to get UpperTriggerValuegetUpperTriggerValue(String klType) method to get UpperTriggerValueGets the Usb Batch Mode ConfigGets the Duty Cycle for the device.This method is used for the getting the status of Wifimethod to get USB MiFi statusbooleanmethod to get the dhcp status This method returns whether dhcp is enabled or disabledNw_getNetworkStatus(Network_IPConfig networkconfig) method to get the current network status This method fetches the configured network data.method to Enable DHCP This method enables DHCPNw_setStaticIP(Network_IPConfig networkconfig) method to set the static ip.removeCertificate(String certName) voidRestores to factory default settings in the reader.voidmethod to save configuration permanently to the readervoidThis method is used for saveLlrp configurationvoidsetAccessOperationWaitTimeout(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 Volumemethod to configure the bluetooth mode on the connected sled device This method helps to set the bluetooth mode(CDC Mode or HID mode)setCableLossCompensation(CableLossCompensation[] cableLossCompensationInfo) Sets the cable Loss Compensation for antennassetChargeTerminalEnable(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, String value) method to setDevicePropertyvoidsetDPOState(DYNAMIC_POWER_OPTIMIZATION dpoState) method to enable or disable DPOvoidsetDutyCycleIndex(short dutyCycleIndex) method to set DutyCycleIndexsetEndpointConfiguration(EndpointConfigurationInfo endPointConfigurationInfo) method to set endpoint configuration This method helps to set endpoint configuration.setFriendlyName(String friendlyName) Sets the Reader Friendly NamevoidsetInventoryModeSettings(String unit, int value) setInventoryModeSettingssetKeylayoutType(ENUM_KEYLAYOUT_TYPE keylayoutType) method to set Keymap for triggerssetKeylayoutType(ENUM_NEW_KEYLAYOUT_TYPE upperTriggerval, ENUM_NEW_KEYLAYOUT_TYPE lowerTriggerval) method to set KeylayoutTypevoidsetLedBlinkEnable(boolean enable) method to set host LED mode to blink LED on tag datavoidsetLogLevel(Level logLevel) Setting the Log level up to which logging will be honouredvoidsetOperatingMode(ENUM_OPERATING_MODE operatingMode) setOperatingModevoidsetportalModeSettings(int port, String signal, int stopInterval) setportalModeSettingsvoidsetRadioPowerState(RADIO_POWER_STATE radioPowerState) Sets the Radio power state to on or off statevoidsetreaderlog(String logtype, boolean state) Sets the reader log type and state.voidsetReaderPowerState(READER_POWER_STATE readerPowerState) Sets the Reader power statevoidsetRegulatoryConfig(RegulatoryConfig regulatoryConfig) method to set regulatory configuration on the readerbooleansetRFIDProfile(String profileName) Sets the RFID profile for the device.setScanBatchMode(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) Sets the trace levelbooleansetTriggerMode(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 supportsetUserDutyCycle(ENUM_DUTY_CYCLE duty_cycle) Sets the Duty Cycle for the device.voidsetUserFeedback(Integer profile) method to Set user feedback profile to generate custom LED and BEEPupdateFirmware(String path, String ip) Update Firmware User needs to make sure that path is obtained using the Android Storage Access Framework.wifi_poweron(boolean poweron) method to power on/off wifi on sled device This method helps to power on wifiwifiAddProfile(WifiProfile wifiprofile, boolean isPreferred) method to add a new wifi profile This method adds a new bss entrywifiConnectNonRoaming(String ssid) method to connect to specified ssid in nonroam mode This method makes a connection to the specified ssid in non road modemethod to connect in roaming mode This method enables roaming among the configured SSID list and connects to it.wifiDeleteProfile(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.method to disable the wifi on the connected sled device This method disables wifi on the sled device.method to disconnect the connected ssid.method to enable the wifi on the connected sled device This method helps to enable wifi on the sled device.wifiGetStatus(HashMap<String, String> status) method to get the wifi status This method get the wifi status, RSSI, Address, channel, state, band, ssid name, mac, netmaskmethod to dump all the bss entries.method to save all the user configured wifi profiles to flash This method saves all the created bss entries to flashwifiScan()method to request a new bss scan This method requests a new bss scanwifiStatusMap(HashMap<String, String> status)
-
Field Details
-
Antennas
The Antenna Object -
GPI
The GPIs Object -
GPO
The GPOs Object -
LOGGER
The IRFIDLogger Object.
-
-
Method Details
-
getDutyCycleIndex
method to get DutyCycleIndex- Returns:
- m_DutyCycleIndex
- Throws:
InvalidUsageExceptionOperationFailureException
-
setDutyCycleIndex
public void setDutyCycleIndex(short dutyCycleIndex) throws InvalidUsageException, OperationFailureException method to set DutyCycleIndex -
getRadioPowerState
public RADIO_POWER_STATE getRadioPowerState() throws InvalidUsageException, OperationFailureExceptionGets the Radio power state to on or off state- Returns:
- m_eRadioPowerState if it is success
- Throws:
InvalidUsageExceptionOperationFailureException
-
setRadioPowerState
public void setRadioPowerState(RADIO_POWER_STATE radioPowerState) throws InvalidUsageException, OperationFailureException Sets the Radio power state to on or off state -
getTraceLevel
Gets the trace level -
setTraceLevel
Sets the trace level -
setLogLevel
Setting the Log level up to which logging will be honoured- Parameters:
logLevel-
-
setreaderlog
public void setreaderlog(String logtype, boolean state) throws InvalidUsageException, OperationFailureException Sets the reader log type and state.- Parameters:
logtype- The type of log to set.state- The state of the log (true to enable, false to disable).- Throws:
InvalidUsageExceptionOperationFailureException
-
getreaderlog
public void getreaderlog(String logtype, boolean state) throws InvalidUsageException, OperationFailureException Retrieves the reader log type and state.- Parameters:
logtype- The type of log to retrieve.state- The state of the log (true to enable, false to disable).- Throws:
InvalidUsageExceptionOperationFailureException
-
GetLogBuffer
Gets the log buffer from SDK as String- Returns:
- logBuffer as String
- Throws:
InvalidUsageException
-
getDeviceVersionInfo
public void getDeviceVersionInfo(HashMap<String, 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, OperationFailureException API 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 Retrieves the status of the device.- Parameters:
deviceStatus- The device status object that will be populated with the current status.- Returns:
- The result of the device status retrieval operation.
- Throws:
InvalidUsageException- If the usage of the method is invalid.OperationFailureException- If the operation to retrieve the device status fails.
-
getDeviceStatus
public void getDeviceStatus(boolean battery, boolean power, boolean temperature, boolean onCradle) throws InvalidUsageException, OperationFailureException API to fetch the device status in terms of battery, power, temperature and cradle status for Stryker device -
getDefaultProfile
Retrieves the default profile.- Returns:
- The default profile as a String.
- Throws:
OperationFailureExceptionInvalidUsageException
-
getRFIDProfile
Retrieves the RFID profile. This method retrieves the current RFID profile from the device.- Returns:
- The RFID profile as a String. This represents the profile name.
- Throws:
OperationFailureExceptionInvalidUsageException
-
setRFIDProfile
public boolean setRFIDProfile(String profileName) throws OperationFailureException, InvalidUsageException Sets the RFID profile for the device. This method configures the device to use the specified RFID profile.- Parameters:
profileName- The name of the RFID profile to set.- Returns:
- `true` if the RFID profile was set successfully, `false` otherwise.
- Throws:
OperationFailureExceptionInvalidUsageException
-
setDeviceProperty
public void setDeviceProperty(ENUM_DEVICE_PROPERTY deviceProperty, String value) throws OperationFailureException, InvalidUsageException method to setDeviceProperty- Parameters:
deviceProperty- - Enum value to set device propertyvalue- - set property value- Throws:
InvalidUsageExceptionOperationFailureException
-
getDeviceProperty
public 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
Sets the trace level -
getTagStorageSettings
public TagStorageSettings getTagStorageSettings() throws InvalidUsageException, OperationFailureExceptionGet TagStorageSettings.- Returns:
- tagStorageSettings
- 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
Restores 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
This method is used for saveLlrp configuration- Throws:
InvalidUsageException- If the usage of the method is invalid.OperationFailureException- If the operation to retrieve the device status fails.
-
GetSaveLlrpConfigStatus
public void GetSaveLlrpConfigStatus(boolean pSaveStatus) throws InvalidUsageException, OperationFailureException This method is used for get the Llrp configuration status- Throws:
InvalidUsageException- If the usage of the method is invalid.OperationFailureException- If the operation to retrieve the device status fails.
-
getStartTrigger
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:
keylayoutType-- Throws:
InvalidUsageExceptionOperationFailureException
-
setKeylayoutType
public RFIDResults setKeylayoutType(ENUM_NEW_KEYLAYOUT_TYPE upperTriggerval, ENUM_NEW_KEYLAYOUT_TYPE lowerTriggerval) throws InvalidUsageException, OperationFailureException method to set KeylayoutType- Parameters:
upperTriggerval- used for setting upperTriggervallowerTriggerval- used for setting lowerTriggerval- Throws:
InvalidUsageExceptionOperationFailureException
-
getKeylayoutType
method to get Keymap- Returns:
- keylayoutType
- Throws:
InvalidUsageExceptionOperationFailureException
-
getUpperTriggerValue
public ENUM_NEW_KEYLAYOUT_TYPE getUpperTriggerValue(String klType) throws InvalidUsageException, OperationFailureException method to get UpperTriggerValue- Returns:
- keylayoutType
- Throws:
InvalidUsageExceptionOperationFailureException
-
getUpperTriggerValue
public ENUM_NEW_KEYLAYOUT_TYPE getUpperTriggerValue() throws InvalidUsageException, OperationFailureExceptionmethod to get UpperTriggerValue- Returns:
- keylayoutType
- Throws:
InvalidUsageExceptionOperationFailureException
-
getLowerTriggerValue
public ENUM_NEW_KEYLAYOUT_TYPE getLowerTriggerValue(String klType) throws InvalidUsageException, OperationFailureException method to get LowerTriggerValue- Returns:
- keylayoutType
- Throws:
InvalidUsageExceptionOperationFailureException
-
getLowerTriggerValue
public ENUM_NEW_KEYLAYOUT_TYPE getLowerTriggerValue() throws InvalidUsageException, OperationFailureExceptionmethod to get LowerTriggerValue- Returns:
- keylayoutType
- Throws:
InvalidUsageExceptionOperationFailureException
-
getStopTrigger
method to get current stop trigger settings from reader- Returns:
- stopTrigger
- 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
method to getTriggerStatus -
setAccessOperationWaitTimeout
public void setAccessOperationWaitTimeout(int timeout) throws InvalidUsageException, OperationFailureException method 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, OperationFailureExceptionGets 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
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, OperationFailureExceptionGets 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, OperationFailureExceptionGets 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
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, OperationFailureException method to Set attribute- Parameters:
setAttributeInfo-- Throws:
InvalidUsageExceptionOperationFailureException
-
saveConfig
method to save configuration permanently to the reader -
getRegulatoryConfig
public RegulatoryConfig getRegulatoryConfig() throws InvalidUsageException, OperationFailureExceptionmethod to get current regulatory configuration set on the reader- Returns:
- regulatoryConfig
- 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:
- regionInfo
- Throws:
InvalidUsageExceptionOperationFailureException
-
setUniqueTagReport
public boolean setUniqueTagReport(boolean uniqueTagReport) throws InvalidUsageException, OperationFailureException method to disable/enable Reporting Unique Tags- Parameters:
uniqueTagReport-- Returns:
- RFIDResults
- Throws:
InvalidUsageExceptionOperationFailureException
-
getUniqueTagReport
public UNIQUE_TAG_REPORT_SETTING getUniqueTagReport() throws InvalidUsageException, OperationFailureExceptionmethod to fetch Unique tag reporting settings from the reader- Returns:
- m_eUniqueTagReport
- Throws:
InvalidUsageExceptionOperationFailureException
-
setLedBlinkEnable
public void setLedBlinkEnable(boolean enable) throws InvalidUsageException, OperationFailureException method 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:
- RFIDResults
- Throws:
InvalidUsageExceptionOperationFailureException
-
setUserDutyCycle
public RFIDResults setUserDutyCycle(ENUM_DUTY_CYCLE duty_cycle) throws OperationFailureException, InvalidUsageException Sets the Duty Cycle for the device. This method configures the device to use the specified Duty Cycle.- Parameters:
duty_cycle- To set Duty Cycle as MIN,MAX or MEDIUM.- Returns:
- RFIDResults
- Throws:
InvalidUsageExceptionOperationFailureException
-
getUserDutyCycle
Gets the Duty Cycle for the device. This method configures the device to get the specified Duty Cycle.- Returns:
- Duty Cycle as 0=MIN,1=MAX or 2=MEDIUM
- 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
method to get battery informations This method helps to get battery related information and statistics- Returns:
- batteryStatistics
- 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, OperationFailureExceptionmethod 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
This method is used for the getting the status of Wifi -
wifiEnable
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
-
wifiDisable
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
-
wifiAddProfile
public RFIDResults wifiAddProfile(WifiProfile wifiprofile, boolean isPreferred) 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
-
wifiDeleteProfile
public RFIDResults wifiDeleteProfile(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
-
wifiSaveProfile
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
-
wifiConnectNonRoaming
public RFIDResults wifiConnectNonRoaming(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
-
wifiConnectRoaming
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
-
wifiDisconnect
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
-
wifiScan
method to request a new bss scan This method requests a new bss scan- Returns:
- RFIDResults (RFID_API_SUCCESS or other)
- Throws:
InvalidUsageExceptionOperationFailureException
-
wifiListProfile
public ArrayList<WifiProfile> wifiListProfile() throws InvalidUsageException, OperationFailureExceptionmethod to dump all the bss entries. This method lists all the configured wifi profiles- Returns:
- WifiProfile wifiprofile[] :Array of WifiProfile class objects
- Throws:
InvalidUsageExceptionOperationFailureException
-
wifiGetStatus
public RFIDResults wifiGetStatus(HashMap<String, String> status) throws InvalidUsageException, OperationFailureExceptionmethod to get the wifi status This method get the wifi status, RSSI, Address, channel, state, band, ssid name, mac, netmask- Returns:
- RFIDResults (RFID_API_SUCCESS or other)
- Throws:
InvalidUsageExceptionOperationFailureException
-
getCertificates
method to get the wifi status This method get the installed certificates from the reader- Returns:
- ArrayList
- Throws:
InvalidUsageExceptionOperationFailureException
-
wifiStatusMap
public HashMap<String,String> wifiStatusMap(HashMap<String, String> status) throws InvalidUsageException, OperationFailureException -
addCertificate
public RFIDResults addCertificate(String filePath) throws InvalidUsageException, OperationFailureException -
removeCertificate
public RFIDResults removeCertificate(String certName) throws InvalidUsageException, OperationFailureException -
removeAllCertificates
-
Nw_setDhcpEnable
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
method 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(String friendlyName) throws InvalidUsageException, OperationFailureException Sets the Reader Friendly Name- Parameters:
friendlyName- Required- Returns:
- RFIDResults (RFID_API_SUCCESS or other)
- Throws:
InvalidUsageExceptionOperationFailureException
-
getFriendlyName
Retrieves the friendly name of the device.- Returns:
- The friendly name of the device as a `String`.
- Throws:
InvalidUsageExceptionOperationFailureException
-
getCradleStatus
This method is used to check the CradleStatus -
getReaderPowerState
public READER_POWER_STATE getReaderPowerState() throws InvalidUsageException, OperationFailureExceptionGets 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(Integer profile) throws InvalidUsageException, OperationFailureException method to Set user feedback profile to generate custom LED and BEEP- Parameters:
profile-- Throws:
InvalidUsageExceptionOperationFailureException
-
getBatteryHealth
Gets 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, InvalidUsageException method to Enable USB MiFi support- Parameters:
enable- - boolean value to enable and disable- Throws:
InvalidUsageExceptionOperationFailureException
-
isUsbMiFiEnabled
method 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
setOperatingMode- Parameters:
operatingMode- operating modes can be 1. Simple 2. Inventory 3. Portal 4. Conveyor 5. Custom- Throws:
InvalidUsageExceptionOperationFailureException
-
setInventoryModeSettings
setInventoryModeSettings- Parameters:
unit- unit can be hours, seconds , minutes , daysvalue- unit value- Throws:
InvalidUsageExceptionOperationFailureException
-
setportalModeSettings
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(String path, 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
-
setEndpointConfiguration
public RFIDResults setEndpointConfiguration(EndpointConfigurationInfo endPointConfigurationInfo) throws InvalidUsageException, OperationFailureException method to set endpoint configuration This method helps to set endpoint configuration.- Parameters:
endPointConfigurationInfo- parameters configured for endpoints- Returns:
- RFIDResults (RFID_API_SUCCESS or other)
- Throws:
InvalidUsageExceptionOperationFailureException
-
getActiveEndpointConfig
public EndpointConfigurationInfo getActiveEndpointConfig() throws InvalidUsageException, OperationFailureExceptionmethod to get current active management endpoint configuration of the device This method helps to get the current active management endpoint configured on the device.- Returns:
- RFIDResults (RFID_API_SUCCESS or other)
- Throws:
InvalidUsageExceptionOperationFailureException
-
getEndpointConfigByName
public EndpointConfigurationInfo getEndpointConfigByName(String epName) throws InvalidUsageException, OperationFailureException method to get endpoint configuration by name of the device This method helps to get the endpoint configured by name on the device.- Parameters:
epName- name of the endpoint- Returns:
- RFIDResults (RFID_API_SUCCESS or other)
- Throws:
InvalidUsageExceptionOperationFailureException
-
getEndpointNames
method to get endpoint names of the device This method helps to get the endpoint names on the device.- Returns:
- RFIDResults (RFID_API_SUCCESS or other)
- Throws:
InvalidUsageExceptionOperationFailureException
-
getActiveEndpoints
method to get all the active endpoint names for each type of the device This method helps to get the active endpoint names for each type on the device.- Returns:
- RFIDResults (RFID_API_SUCCESS or other)
- Throws:
InvalidUsageExceptionOperationFailureException
-
activateEndpoint
public RFIDResults activateEndpoint(IotConfigInfo iotConfigInfo) throws InvalidUsageException, OperationFailureException method to activate different types of endpoints This method helps activate different types of endpoints.- Parameters:
iotConfigInfo- endpoint to be activated for each type of endpoint- Returns:
- RFIDResults (RFID_API_SUCCESS or other)
- Throws:
InvalidUsageExceptionOperationFailureException
-