Package com.metratec.lib.rfidreader.iso
Class QuasarLR
- java.lang.Object
-
- com.metratec.lib.rfidreader.ConnectableDevice
-
- com.metratec.lib.rfidreader.StandardReader
-
- com.metratec.lib.rfidreader.iso.ISOReader
-
- com.metratec.lib.rfidreader.iso.QuasarLR
-
public class QuasarLR extends ISOReader
Quasar Long Range Industrial HF Reader/Writer
An industrial short range RFID reader for 13.56 MHz with PLC compatible inputs/outputs and a fast read/write rate- Author:
- mn
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.metratec.lib.rfidreader.iso.ISOReader
ISOReader.MODE, ISOReader.SRI
-
-
Field Summary
-
Fields inherited from class com.metratec.lib.rfidreader.StandardReader
RESPONSE_ERROR_CER, RESPONSE_ERROR_LENGHT, RESPONSE_ERROR_NSS, RESPONSE_ERROR_TCE, RESPONSE_ERROR_TOE, RESPONSE_ERROR_TOR, RESPONSE_OK
-
Fields inherited from class com.metratec.lib.rfidreader.ConnectableDevice
STATE_CONFIGURING, STATE_CONNECTING, STATE_RUNNING, STATE_STOPPED, STATE_WAITING_FOR_RECONNECT
-
-
Constructor Summary
Constructors Constructor Description QuasarLR(String identifier, ICommConnection connection, ISOReader.MODE mode, ISOReader.SRI sri)
Creates a new UHFReader with the specified connection and reader modeQuasarLR(String identifier, String portName, int baudrate, int dataBit, int stopBit, int parity, int flowControl, ISOReader.MODE mode, ISOReader.SRI sri)
Creates a new UHFReader class for communicate with the specified metraTec ethernet uhf readerQuasarLR(String identifier, String ipAddress, int port, ISOReader.MODE mode, ISOReader.SRI sri)
Creates a new UHFReader class for communicate with the specified metraTec ethernet uhf readerQuasarLR(String identifier, String usbDeviceSerialNumber, ISOReader.MODE mode, ISOReader.SRI sri)
Creates a new UHFReader class for communicate with the specified metraTec usb uhf reader
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QuasarLRNoiseMeasure
getNoiseMeasure()
QuasarLRStatus
getStatus()
void
setAntennaPort(int port)
Set the antenna port.void
setPower(int value)
The QuasarLR allows different output power levels to match antenna size, tag size or tag po- sition.-
Methods inherited from class com.metratec.lib.rfidreader.iso.ISOReader
close, getInventory, getInventorySingleSlot, getInventoryUnique, getInventoryUniqueSingleSlot, getMODE, getSRI, getTagData, getTagData, getTagData, getTagSystemInformation, getUseAFI, lockTagAFI, lockTagDSFID, setMode, setSRI, setTagAFI, setTagData, setTagData, setTagData, setTagData, setTagDSFID, setTagQuiet, setUseAFI
-
Methods inherited from class com.metratec.lib.rfidreader.StandardReader
disconnect, getCRCState, getEndOfFrameState, getFirmwareRevision, getHardwareRevision, getInput, getInputDebounceTime, getReaderType, getRevision, getSerialNumber, ping, reset, setEventListener, setInputDebounceTime, setOutput, standby, switchAntennas, wakeUp
-
Methods inherited from class com.metratec.lib.rfidreader.ConnectableDevice
connect, connect, getIdentifier, getReceiveTimeout, isConnected, setIdentifier, setMaxReconnectWaitTime, setMinReconnectWaitTime, setReceiveTimeout, start, start, stop
-
-
-
-
Constructor Detail
-
QuasarLR
public QuasarLR(String identifier, ICommConnection connection, ISOReader.MODE mode, ISOReader.SRI sri)
Creates a new UHFReader with the specified connection and reader mode- Parameters:
identifier
- reader identifierconnection
- connectionmode
- modesri
- sri
-
QuasarLR
public QuasarLR(String identifier, String usbDeviceSerialNumber, ISOReader.MODE mode, ISOReader.SRI sri)
Creates a new UHFReader class for communicate with the specified metraTec usb uhf reader- Parameters:
identifier
- reader identifierusbDeviceSerialNumber
- serial number of the usb uhf readermode
- modesri
- sri
-
QuasarLR
public QuasarLR(String identifier, String ipAddress, int port, ISOReader.MODE mode, ISOReader.SRI sri)
Creates a new UHFReader class for communicate with the specified metraTec ethernet uhf reader- Parameters:
identifier
- reader identifieripAddress
- ip address of the ethernet uhf readerport
- port of the ethernet uhf readermode
- modesri
- sri
-
QuasarLR
public QuasarLR(String identifier, String portName, int baudrate, int dataBit, int stopBit, int parity, int flowControl, ISOReader.MODE mode, ISOReader.SRI sri)
Creates a new UHFReader class for communicate with the specified metraTec ethernet uhf reader- Parameters:
identifier
- reader identifierportName
- port on which the rs232 uhf reader is connectedbaudrate
- baudrate of the rs232 uhf readerdataBit
- rs232 databitsstopBit
- rs232 stopbitparity
- rs232 parityflowControl
- rs232 flowcontrolmode
- modesri
- sri
-
-
Method Detail
-
setPower
public void setPower(int value) throws CommConnectionException, RFIDReaderException
The QuasarLR allows different output power levels to match antenna size, tag size or tag po- sition. The power level is given in milliwatt (mW). The minimum value is 500, the maximum is 4000 with steps of 250.- Overrides:
setPower
in classISOReader
- Parameters:
value
- power in mW from 500(mW) to 4000(mW) in 250(mW) steps- Throws:
CommConnectionException
- if an communication exception occursRFIDReaderException
- if an protocol exception occurs (e.g. CRC error, value out of range, ..)
-
getStatus
public QuasarLRStatus getStatus() throws CommConnectionException, RFIDReaderException
- Returns:
- the current
QuasarLRStatus
- Throws:
CommConnectionException
- if an communication error occursRFIDReaderException
- if an reader error occurs
-
setAntennaPort
public void setAntennaPort(int port) throws CommConnectionException, RFIDReaderException
Description copied from class:StandardReader
Set the antenna port.- Overrides:
setAntennaPort
in classStandardReader
- Parameters:
port
- antenna port for the connected multiplexer [0..15]- Throws:
CommConnectionException
- if an communication exception occursRFIDReaderException
- if an protocol exception occurs (e.g. CRC error, value out of range, ..)
-
getNoiseMeasure
public QuasarLRNoiseMeasure getNoiseMeasure() throws CommConnectionException, RFIDReaderException
- Returns:
- the current noise measure of the connected antenna
- Throws:
CommConnectionException
- if an communication error occursRFIDReaderException
- if an reader error occurs
-
-