Class RFIDReader


  • public class RFIDReader
    extends java.lang.Object
    Provides the RFIDReader object.
    • Constructor Summary

      Constructors 
      Constructor Description
      RFIDReader()
      The constructor
      RFIDReader​(java.lang.String hostName, int port, int timeoutMilliseconds)
      Constructor takes host name or IP address, port and timeout as parameter
      RFIDReader​(java.lang.String hostName, int port, int timeoutMilliseconds, java.lang.String Protocol, java.lang.String Transport)
      Constructor takes host name or IP address, port and timeout as parameter
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void AcceptConnection​(long readerSocket)  
      void connect()
      Connects to the reader
      void disconnect()
      Disconnect from the reader
      void Dispose()
      Disposes the RFIDReader
      protected void finalize()  
      java.lang.String getHostName()
      Gets the host name or IP Address of the reader
      java.lang.String getPassword()  
      int getPort()
      Gets the port number which is used for establishing connection with the reader
      int getTimeout()
      Gets the timeout of the reader connection
      java.lang.String getTransport()  
      boolean isCapabilitiesReceived()
      Returns the current reader capabilities status
      boolean isConnected()
      Returns the current reader connection status
      void PostConnectReaderUpdate()
      Update reader caps and init again in case of region and batch mode and password scenarios
      void reconnect()
      Reconnects to the reader, if the connection is lost.
      void reinitTransport()  
      void secureConnection​(boolean isEnabled)  
      void setHostName​(java.lang.String hostName)
      Sets the host name or IP Address of the reader
      void setPassword​(java.lang.String password)  
      void setPort​(int port)
      Sets the port number which is used for establishing connection with the reader.
      void setTimeout​(int timeout)
      Sets the Time out for the response from the Reader, if specified zero(0), the default time out 5000 (5sec) will be used.
      void switchMode()  
      VersionInfo versionInfo()
      Gets the RFID class library version information
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SecureConnectionInfo

        public com.zebra.rfid.api3.SecureConnectionInfo SecureConnectionInfo
      • Config

        public Config Config
        Instance of Config Class for all Config related Operations
      • Actions

        public Actions Actions
        Instance of Actions Class for all Actions related Operation like Inventory,Access.
      • Events

        public Events Events
        Instance of Event Class for all Event related Operations
      • ReaderCapabilities

        public ReaderCapabilities ReaderCapabilities
        Access the Reader Capabilities
      • m_defaultLLRPTransactReceiveRespTime

        public static int m_defaultLLRPTransactReceiveRespTime
      • DEFAULT_LLRP_TXN_RSP_TIMEOUT

        public static final int DEFAULT_LLRP_TXN_RSP_TIMEOUT
        See Also:
        Constant Field Values
    • Constructor Detail

      • RFIDReader

        public RFIDReader()
        The constructor
      • RFIDReader

        public RFIDReader​(java.lang.String hostName,
                          int port,
                          int timeoutMilliseconds)
        Constructor takes host name or IP address, port and timeout as parameter
        Parameters:
        hostName - String containing the reader's Host name or IP Address of the Reader.
        port - Reader Port number, if specified as Zero (0), the default port 5084 will be used
        timeoutMilliseconds - Time out for the response from the Reader, if specified zero(0), the default time out 5000 (5sec) will be used. The lowest possible value could be 2sec. This value also translates to keep-alive timeout. If the connection to the reader was inactive (no keep-alive message from the Reader) for a time greater than 10 times the timeout, DISCONNECTION_EVENT will be triggered to the application, if the application has registered for the same.
      • RFIDReader

        public RFIDReader​(java.lang.String hostName,
                          int port,
                          int timeoutMilliseconds,
                          java.lang.String Protocol,
                          java.lang.String Transport)
        Constructor takes host name or IP address, port and timeout as parameter
        Parameters:
        hostName - String containing the reader's Host name or IP Address of the Reader.
        port - Reader Port number, if specified as Zero (0), the default port 5084 will be used
        timeoutMilliseconds - Time out for the response from the Reader, if specified zero(0), the default time out 5000 (5sec) will be used. The lowest possible value could be 2sec. This value also translates to keep-alive timeout. If the connection to the reader was inactive (no keep-alive message from the Reader) for a time greater than 10 times the timeout, DISCONNECTION_EVENT will be triggered to the application, if the application has registered for the same.
        Protocol - Reader
        Transport - Reader