Class DwarfG2Mini


  • public class DwarfG2Mini
    extends UHFReader
    DwarfG2 UHF SMD Module
    A compact but powerful short-range UFH module for direct SMD soldering and external antenna connector
    Author:
    mn
    • Constructor Detail

      • DwarfG2Mini

        public DwarfG2Mini​(java.lang.String identifier,
                           ICommConnection connection)
        Creates a new DwarfG2 with the specified connection
        Parameters:
        identifier - reader identifier
        connection - the communication interface (instance of ICommConnection)
      • DwarfG2Mini

        public DwarfG2Mini​(java.lang.String identifier,
                           ICommConnection connection,
                           UHFReader.READER_MODE mode)
        Creates a new DwarfG2 with the specified connection and reader mode
        Parameters:
        identifier - reader identifier
        connection - the communication interface (instance of ICommConnection)
        mode - the used RFID communication standart. (READER_MODE)
      • DwarfG2Mini

        public DwarfG2Mini​(java.lang.String identifier,
                           java.lang.String usbDeviceSerialNumber)
        Creates a new DwarfG2 class for communicate with the specified metraTec usb DwarfG2
        Parameters:
        identifier - reader identifier
        usbDeviceSerialNumber - serial number of the usb reader
      • DwarfG2Mini

        public DwarfG2Mini​(java.lang.String identifier,
                           java.lang.String ipAddress,
                           int port)
        Creates a new DwarfG2 class for communicate with the specified metraTec ethernet DwarfG2
        Parameters:
        identifier - reader identifier
        ipAddress - ip address of the ethernet reader
        port - port of the ethernet reader
      • DwarfG2Mini

        public DwarfG2Mini​(java.lang.String identifier,
                           java.lang.String portName,
                           int baudrate,
                           int dataBit,
                           int stopBit,
                           int parity,
                           int flowControl)
        Creates a new DwarfG2 class for communicate with the specified metraTec serial DwarfG2
        Parameters:
        identifier - reader identifier
        portName - port on which the rs232 reader is connected
        baudrate - baudrate of the rs232 reader
        dataBit - rs232 databits
        stopBit - rs232 stopbit
        parity - rs232 parity
        flowControl - rs232 flowcontrol
      • DwarfG2Mini

        public DwarfG2Mini​(java.lang.String identifier,
                           java.lang.String usbDeviceSerialNumber,
                           UHFReader.READER_MODE mode)
        Creates a new DwarfG2 class for communicate with the specified metraTec usb DwarfG2
        Parameters:
        identifier - reader identifier
        usbDeviceSerialNumber - serial number of the usb reader
        mode - the used RFID communication standart. (READER_MODE)
      • DwarfG2Mini

        public DwarfG2Mini​(java.lang.String identifier,
                           java.lang.String ipAddress,
                           int port,
                           UHFReader.READER_MODE mode)
        Creates a new DwarfG2 class for communicate with the specified metraTec ethernet DwarfG2
        Parameters:
        identifier - reader identifier
        ipAddress - ip address of the ethernet reader
        port - port of the ethernet reader
        mode - the used RFID communication standart. (READER_MODE)
      • DwarfG2Mini

        public DwarfG2Mini​(java.lang.String identifier,
                           java.lang.String portName,
                           int baudrate,
                           int dataBit,
                           int stopBit,
                           int parity,
                           int flowControl,
                           UHFReader.READER_MODE mode)
        Creates a new DwarfG2 class for communicate with the specified metraTec serial DwarfG2
        Parameters:
        identifier - reader identifier
        portName - port on which the rs232 reader is connected
        baudrate - baudrate of the rs232 reader
        dataBit - rs232 databits
        stopBit - rs232 stopbit
        parity - rs232 parity
        flowControl - rs232 flowcontrol
        mode - the used RFID communication standart. (READER_MODE)
    • Method Detail

      • enableAdditionalTRS

        public void enableAdditionalTRS​(boolean state)
                                 throws CommConnectionException,
                                        RFIDReaderException
        Description copied from class: UHFReader
        Sometimes you want to know the received signal strength when communicating with a transponder. With the TRS setting the reader will automatically add the RSSI to responses from a tag. The value is always negative in a range from -25 to -70 with -25 being the best case. The value will be printed in a new line following the answer of the tag operation and following the EPC if "SET EPC ON" ommand is used.
        Overrides:
        enableAdditionalTRS in class UHFReader
        Parameters:
        state - true for activate, false deactivate
        Throws:
        CommConnectionException - if an communication exception occurs
        RFIDReaderException - if an protocol exception occurs (e.g. CRC error, value out of range, ..)