Package com.zebra.rfid.api3
Class ReaderManagement
- java.lang.Object
-
- com.zebra.rfid.api3.ReaderManagement
-
public class ReaderManagement extends java.lang.ObjectThis class encapsulates the Reader Management functionality such as reboot, firmware update. Also, proprietary reader functions such as Antenna Mode (Bi-Static or Mono-static), Enable/Get Read Point status functionality can be performed using this class.
-
-
Field Summary
Fields Modifier and Type Field Description LLRPConnectionLLRPConnectionLLRP Connection Object required for LLRP Server/Client connectivity.ProfileProfileReadPointReadPointObject of Class ReadpointTimeZoneTimeZoneObject of Class TimeZoneUserAppUserApp
-
Constructor Summary
Constructors Constructor Description ReaderManagement()Reader Management constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanclearReaderStatistics()Clears the reader statistics maintained in the readervoiddeleteProfile(java.lang.String profileName)This function deletes the configuration XML file from the reader's profile list.voiddispose()Dispose Reader ManagementvoidexportToReader(java.lang.String profileName, java.lang.String profilePath, boolean activation)This function updates the reader configuration XML file.voidexportToReader(Uri uri, Context context, java.lang.String profileName, boolean activation)protected voidfinalize()DestructorCommunicationStandardInfogetActiveRegionStandardInfo()ANTENNA_MODEgetAntennaMode()Gets the antenna mode to enumerations (Mono-Static or Bi-Static)CableLossCompensationgetCableLossCompensation(int antennaID)Gets Cable Loss Compensation Info for the given Antenna IDintgetGPIDebounceTimeMilliseconds()Gets the GPI Debounce TimeHEALTH_STATUSgetHealthStatus(SERVICE_ID serviceID)This function gets the health status of the readerjava.lang.StringgetLocalTime()Reader's Local timejava.lang.String[]getNtpServer()ProfileInfogetProfileList()Gets the list of profiles available in the reader.com.zebra.rfid.api3.RadioConfigUpdategetRadioConfigUpdate()Gets the Radio Config Update objectcom.zebra.rfid.api3.RadioFirmwareUpdategetRadioFirmwareUpdate()Gets the reader firmware update objectintgetRadioIdleTimeout()Gets the Radio Idle Timeout configured in the readerReaderInfogetReaderInfo()Reader informationReaderStatisticsgetReaderStatistics(short antennaID)Gets the Reader Statistics from the readerCommunicationStandardInfo[]getRegionStandardList(java.lang.String regionName)SoftwareUpdategetSoftwareUpdate()Gets the software Update objectjava.lang.String[]getSupportedRegionList()SystemInfogetSystemInfo()This function gets the system information related to the Reader like Reader Name, Firmware version, RAM available, Flash available, Up time (how long the reader is running)TimeZoneInfogetTimeZoneList()Gets the list of time zone available in the reader.TRACE_LEVEL[]getTraceLevel()Gets the trace levelcom.zebra.rfid.api3.USBOperationModegetUSBOperationMode()USB operation mode of the Reader.voidimportFromReader(Context context, java.lang.String profileName)voidimportFromReader(java.lang.String profileName, java.lang.String profilePath)This function downloads the readerHandle configuration XML file.booleanisLoggedIn()Gets the login status whether logged in or not.voidlogin(LoginInfo loginInfo, READER_TYPE readerType)This method allows to login into the reader.voidlogout()This call performs the logout and clean-up activity in the libraryvoidrestart()This method restarts or reboot the reader.To restart the reader for any reasons, this method allows to restart the reader.voidsetActiveProfile(java.lang.String profileName)This function set the active configuration XML file to be used by the reader.voidsetActiveRegion(java.lang.String regionName, java.lang.String StandardName)voidsetAntennaMode(ANTENNA_MODE antennaMode)Sets the antenna mode to enumerations (Mono-Static or Bi-Static) value sets the specified antenna mode in the reader.voidsetCableLossCompensation(CableLossCompensation[] cableLossCompensationInfo)Sets the cable Loss Compensation for antennasvoidsetFrequencySetting(boolean enableFrequencyHopping, int[] channelIndexList)voidsetGPIDebounceTimeMilliseconds(int gpiDebounceTimeMilliseconds)Sets the GPI Debounce TimevoidsetLocalTime(SYSTEMTIME localTime)Reader's Local timevoidsetNtpServer(java.lang.String hostName)Reader's set NTP servervoidsetReaderInfo(ReaderInfo readerInfo)Reader informationvoidsetTimeZone(short timeZoneIndex)This function set the active time zone to be used by the readervoidsetTraceLevel(TRACE_LEVEL traceLevel)Sets the trace levelvoidsetTraceLevel(TRACE_LEVEL[] arrTraceLevel)voidsetUSBOperationMode(com.zebra.rfid.api3.USBOperationMode usbOperationMode)USB operation mode of the Reader.voidsetUserLED(LedInfo ledInfo)Sets the User LED informationvoidturnOffRadiowhenIdle(int idleTimeout)Turns Off Radio When Idle
-
-
-
Field Detail
-
Profile
public Profile Profile
-
UserApp
public UserApp UserApp
-
LLRPConnection
public LLRPConnection LLRPConnection
LLRP Connection Object required for LLRP Server/Client connectivity.
-
ReadPoint
public ReadPoint ReadPoint
Object of Class Readpoint
-
TimeZone
public TimeZone TimeZone
Object of Class TimeZone
-
-
Method Detail
-
finalize
protected void finalize() throws InvalidUsageException, OperationFailureExceptionDestructor- Overrides:
finalizein classjava.lang.Object- Throws:
InvalidUsageExceptionOperationFailureException
-
dispose
public void dispose() throws InvalidUsageException, OperationFailureExceptionDispose Reader Management
-
getTraceLevel
public TRACE_LEVEL[] getTraceLevel()
Gets the trace level
-
setTraceLevel
public void setTraceLevel(TRACE_LEVEL[] arrTraceLevel)
-
setTraceLevel
public void setTraceLevel(TRACE_LEVEL traceLevel)
Sets the trace level
-
getAntennaMode
public ANTENNA_MODE getAntennaMode() throws InvalidUsageException, OperationFailureException
Gets the antenna mode to enumerations (Mono-Static or Bi-Static)
-
setAntennaMode
public void setAntennaMode(ANTENNA_MODE antennaMode) throws InvalidUsageException, OperationFailureException
Sets the antenna mode to enumerations (Mono-Static or Bi-Static) value sets the specified antenna mode in the reader. Changing the antenna mode take few seconds to perform the required operation
-
isLoggedIn
public boolean isLoggedIn()
Gets the login status whether logged in or not. If logged in to the reader, it returns true, else false.
-
getRadioFirmwareUpdate
public com.zebra.rfid.api3.RadioFirmwareUpdate getRadioFirmwareUpdate() throws InvalidUsageExceptionGets the reader firmware update object- Returns:
- Throws:
InvalidUsageException
-
getSoftwareUpdate
public SoftwareUpdate getSoftwareUpdate() throws InvalidUsageException
Gets the software Update object- Throws:
InvalidUsageException
-
getRadioConfigUpdate
public com.zebra.rfid.api3.RadioConfigUpdate getRadioConfigUpdate() throws InvalidUsageExceptionGets the Radio Config Update object- Throws:
InvalidUsageException
-
login
public void login(LoginInfo loginInfo, READER_TYPE readerType) throws InvalidUsageException, OperationFailureException
This method allows to login into the reader.- Parameters:
loginInfo- Login information is required for Fixed Reader. It can be null for Hand held readers.readerType- Specifies the reader type- Throws:
InvalidUsageExceptionOperationFailureException- Operation Failure exception is thrown when the parameter is invalid
-
logout
public void logout() throws InvalidUsageException, OperationFailureExceptionThis call performs the logout and clean-up activity in the library
-
restart
public void restart() throws InvalidUsageException, OperationFailureExceptionThis method restarts or reboot the reader.To restart the reader for any reasons, this method allows to restart the reader. After calling this method, it is always necessary to call the logout method to clean up the resources in the library. To reconnect back, call login method again.- Throws:
InvalidUsageExceptionOperationFailureException- Operation Failure exception is thrown when it is not logged in
-
getSystemInfo
public SystemInfo getSystemInfo() throws InvalidUsageException, OperationFailureException
This function gets the system information related to the Reader like Reader Name, Firmware version, RAM available, Flash available, Up time (how long the reader is running)- Returns:
- Throws:
InvalidUsageExceptionOperationFailureException- Operation failure is thrown when it is not logged in
-
getHealthStatus
public HEALTH_STATUS getHealthStatus(SERVICE_ID serviceID) throws InvalidUsageException, OperationFailureException
This function gets the health status of the reader- Parameters:
serviceID-- Throws:
InvalidUsageExceptionOperationFailureException- Operation failure is thrown when it is not logged in
-
setUserLED
public void setUserLED(LedInfo ledInfo) throws InvalidUsageException, OperationFailureException
Sets the User LED information- Parameters:
ledInfo- LED information required for the Reader.- Throws:
InvalidUsageExceptionOperationFailureException- Operation failure is thrown when it is not logged in
-
getGPIDebounceTimeMilliseconds
public int getGPIDebounceTimeMilliseconds() throws InvalidUsageException, OperationFailureExceptionGets the GPI Debounce Time
-
setGPIDebounceTimeMilliseconds
public void setGPIDebounceTimeMilliseconds(int gpiDebounceTimeMilliseconds) throws InvalidUsageException, OperationFailureExceptionSets the GPI Debounce Time
-
getLocalTime
public java.lang.String getLocalTime() throws InvalidUsageException, OperationFailureExceptionReader's Local time- Returns:
- Reader Local Time
- Throws:
InvalidUsageExceptionOperationFailureException
-
setLocalTime
public void setLocalTime(SYSTEMTIME localTime) throws InvalidUsageException, OperationFailureException
Reader's Local time- Parameters:
localTime- Local Time to Set in the reader- Throws:
InvalidUsageExceptionOperationFailureException
-
getUSBOperationMode
public com.zebra.rfid.api3.USBOperationMode getUSBOperationMode() throws InvalidUsageException, OperationFailureExceptionUSB operation mode of the Reader.- Returns:
- USB operation mode used in reader
- Throws:
InvalidUsageExceptionOperationFailureException- Operation failure is thrown when it is not logged in
-
setUSBOperationMode
public void setUSBOperationMode(com.zebra.rfid.api3.USBOperationMode usbOperationMode) throws InvalidUsageException, OperationFailureExceptionUSB operation mode of the Reader.- Throws:
InvalidUsageExceptionOperationFailureException- Operation failure is thrown when it is not logged in
-
getReaderInfo
public ReaderInfo getReaderInfo() throws InvalidUsageException, OperationFailureException
Reader information- Returns:
- Throws:
InvalidUsageExceptionOperationFailureException- Operation failure is thrown when it is not logged in
-
setReaderInfo
public void setReaderInfo(ReaderInfo readerInfo) throws InvalidUsageException, OperationFailureException
Reader information- Throws:
InvalidUsageExceptionOperationFailureException- Operation failure is thrown when it is not logged in
-
getReaderStatistics
public ReaderStatistics getReaderStatistics(short antennaID) throws InvalidUsageException, OperationFailureException
Gets the Reader Statistics from the reader- Parameters:
antennaID-- Returns:
- ReaderStatistics Object for the requested Antenna ID
- Throws:
InvalidUsageExceptionOperationFailureException
-
clearReaderStatistics
public boolean clearReaderStatistics() throws InvalidUsageException, OperationFailureExceptionClears the reader statistics maintained in the reader- Returns:
- Throws:
InvalidUsageExceptionOperationFailureException
-
turnOffRadiowhenIdle
public void turnOffRadiowhenIdle(int idleTimeout) throws InvalidUsageException, OperationFailureExceptionTurns Off Radio When Idle- Parameters:
idleTimeout- Radio will be turned off after specified Timeout if Idle (no radio operation is performed), 0 - Disables the Idle mode- Throws:
InvalidUsageExceptionOperationFailureException
-
getRadioIdleTimeout
public int getRadioIdleTimeout() throws InvalidUsageException, OperationFailureExceptionGets the Radio Idle Timeout configured in the reader- Returns:
- Radio Idle Timeout
- Throws:
InvalidUsageExceptionOperationFailureException
-
setCableLossCompensation
public void 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
-
getRegionStandardList
public CommunicationStandardInfo[] getRegionStandardList(java.lang.String regionName) throws InvalidUsageException, OperationFailureException
-
getSupportedRegionList
public java.lang.String[] getSupportedRegionList() throws InvalidUsageException, OperationFailureException
-
setActiveRegion
public void setActiveRegion(java.lang.String regionName, java.lang.String StandardName) throws InvalidUsageException, OperationFailureException
-
getNtpServer
public java.lang.String[] getNtpServer() throws InvalidUsageException, OperationFailureException
-
setNtpServer
public void setNtpServer(java.lang.String hostName) throws InvalidUsageException, OperationFailureExceptionReader's set NTP server
-
getActiveRegionStandardInfo
public CommunicationStandardInfo getActiveRegionStandardInfo() throws InvalidUsageException, OperationFailureException
-
exportToReader
public void exportToReader(java.lang.String profileName, java.lang.String profilePath, boolean activation) throws InvalidUsageException, OperationFailureExceptionThis function updates the reader configuration XML file.- Parameters:
profileName- Profile to be uploaded, e.g. "Config.xml".profilePath- Local Path Of the Profile.activation- Determines whether the profile is to be activited or not. If activation is set TRUE, the profile will be uploaded and activated. If activation is set FALSE, the profile will be uploaded but not activated.This value is ignored in XR.- Throws:
InvalidUsageExceptionOperationFailureException
-
importFromReader
public void importFromReader(java.lang.String profileName, java.lang.String profilePath) throws InvalidUsageException, OperationFailureExceptionThis function downloads the readerHandle configuration XML file.- Parameters:
profileName- Profile Name to be downloaded, e.g. "Config.xml".profilePath- Local Path of the Profile to be saved.- Throws:
InvalidUsageExceptionOperationFailureException
-
getProfileList
public ProfileInfo getProfileList() throws InvalidUsageException, OperationFailureException
Gets the list of profiles available in the reader.- Returns:
- List of profile-names present in reader.
- Throws:
InvalidUsageExceptionOperationFailureException
-
setActiveProfile
public void setActiveProfile(java.lang.String profileName) throws InvalidUsageException, OperationFailureExceptionThis function set the active configuration XML file to be used by the reader.- Parameters:
profileName- Profile Name to be used, e.g. "Config.xml".- Throws:
InvalidUsageExceptionOperationFailureException
-
deleteProfile
public void deleteProfile(java.lang.String profileName) throws InvalidUsageException, OperationFailureExceptionThis function deletes the configuration XML file from the reader's profile list.- Parameters:
profileName- Profile Name to be deleted, e.g. "Config.xml".- Throws:
InvalidUsageExceptionOperationFailureException
-
getTimeZoneList
public TimeZoneInfo getTimeZoneList() throws InvalidUsageException, OperationFailureException
Gets the list of time zone available in the reader.- Returns:
- List of time zone names present in reader
- Throws:
InvalidUsageExceptionOperationFailureException
-
setTimeZone
public void setTimeZone(short timeZoneIndex) throws InvalidUsageException, OperationFailureExceptionThis function set the active time zone to be used by the reader- Parameters:
timeZoneIndex- time zone index to be used- Throws:
InvalidUsageExceptionOperationFailureException
-
setFrequencySetting
public void setFrequencySetting(boolean enableFrequencyHopping, int[] channelIndexList) throws InvalidUsageException, OperationFailureException
-
exportToReader
public void exportToReader(Uri uri, Context context, java.lang.String profileName, boolean activation) throws InvalidUsageException, OperationFailureException
-
importFromReader
public void importFromReader(Context context, java.lang.String profileName) throws InvalidUsageException, OperationFailureException
-
-