Package com.metratec.lib.rfidreader.uhf
Class DwarfG2Mini
- java.lang.Object
-
- com.metratec.lib.rfidreader.MetratecReader<T>
-
- com.metratec.lib.rfidreader.MetratecReaderGen1<UhfTag>
-
- com.metratec.lib.rfidreader.uhf.UHFReader
-
- com.metratec.lib.rfidreader.uhf.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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.metratec.lib.rfidreader.uhf.UHFReader
UHFReader.MEMBANK, UHFReader.PROFILE_PARAMETER, UHFReader.READER_MODE
-
-
Field Summary
-
Fields inherited from class com.metratec.lib.rfidreader.uhf.UHFReader
RESPONSE_ERROR_FLE, RESPONSE_ERROR_HBE
-
Fields inherited from class com.metratec.lib.rfidreader.MetratecReader
STATE_CONFIGURING, STATE_CONNECTING, STATE_RUNNING, STATE_STOPPED, STATE_WAITING_FOR_RECONNECT
-
-
Constructor Summary
Constructors Constructor Description DwarfG2Mini(java.lang.String identifier, ICommConnection connection)
Creates a new DwarfG2 with the specified connectionDwarfG2Mini(java.lang.String identifier, ICommConnection connection, UHFReader.READER_MODE mode)
Creates a new DwarfG2 with the specified connection and reader modeDwarfG2Mini(java.lang.String identifier, java.lang.String usbDeviceSerialNumber)
Creates a new DwarfG2 class for communicate with the specified metraTec usb DwarfG2DwarfG2Mini(java.lang.String identifier, java.lang.String ipAddress, int port)
Creates a new DwarfG2 class for communicate with the specified metraTec ethernet DwarfG2DwarfG2Mini(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 DwarfG2DwarfG2Mini(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 DwarfG2DwarfG2Mini(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 DwarfG2DwarfG2Mini(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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enableAdditionalTRS(boolean state)
Sometimes you want to know the received signal strength when communicating with a transponder.int
getAntennaPort()
Set the antenna port.-
Methods inherited from class com.metratec.lib.rfidreader.uhf.UHFReader
addEPC, addTRS, checkCRC16FromDirectCommand, close, directCommand, directCommand, directCommand, disableAccessPassword, disableExecuteCommandsOnInput, disableHighOnTag, disableStartUpCommands, enableExecuteCommandsOnInput, enableHighOnTag, enableStartUpCommands, getExecuteCommandsOnInput, getHardwareCommunicationParameter, getInventory, getInventory, getInventoryRetry, getInventorySingleSlot, getPower, getProfileParameter, getProfilParameter, getQValue, getStartUpCommands, getTagData, getTagData, getTagTIDs, getTagTIDs, killTag, loadAccessPassword, loadKillPassword, lockTag, readReflectedPower, resetMask, resetRFInterface, saveAccessPassword, saveKillPassword, scanInventory, scanInventory, scanTagData, setAccessPassword, setAntennaPort, setCommunicationChannel, setEPCMask, setExecuteCommandsOnInput, setGlobalTimeOut, setInventoryRetry, setKillPassword, setMask, setMask, setMask, setMode, setMultiplexAntennas, setNoMask, setPower, setProfileParameter, setQValue, setRFInterface, setSavePowerMode, setStartUpCommands, setTagData, setTagData, setTagEPC, setTagEPC, stopInventory
-
Methods inherited from class com.metratec.lib.rfidreader.MetratecReaderGen1
getCRCState, getEndOfFrameState, getFirmwareRevision, getHardwareRevision, getInput, getReaderType, getRevision, getSerialNumber, ping, reset, scanInventory, setOutput, standby, startInventory, stop, wakeUp
-
Methods inherited from class com.metratec.lib.rfidreader.MetratecReader
connect, connect, disconnect, getIdentifier, getInputDebounceTime, getReceiveTimeout, isConnected, setIdentifier, setInputDebounceTime, setMaxReconnectWaitTime, setMinReconnectWaitTime, setReaderEventListener, setReceiveTimeout, setTagEventListener, start, start, startAndWait, startAndWait, startInventory
-
-
-
-
Constructor Detail
-
DwarfG2Mini
public DwarfG2Mini(java.lang.String identifier, ICommConnection connection)
Creates a new DwarfG2 with the specified connection- Parameters:
identifier
- reader identifierconnection
- the communication interface (instance ofICommConnection
)
-
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 identifierconnection
- the communication interface (instance ofICommConnection
)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 identifierusbDeviceSerialNumber
- 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 identifieripAddress
- ip address of the ethernet readerport
- 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 identifierportName
- port on which the rs232 reader is connectedbaudrate
- baudrate of the rs232 readerdataBit
- rs232 databitsstopBit
- rs232 stopbitparity
- rs232 parityflowControl
- 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 identifierusbDeviceSerialNumber
- serial number of the usb readermode
- 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 identifieripAddress
- ip address of the ethernet readerport
- port of the ethernet readermode
- 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 identifierportName
- port on which the rs232 reader is connectedbaudrate
- baudrate of the rs232 readerdataBit
- rs232 databitsstopBit
- rs232 stopbitparity
- rs232 parityflowControl
- rs232 flowcontrolmode
- the used RFID communication standart. (READER_MODE
)
-
-
Method Detail
-
getAntennaPort
public int getAntennaPort() throws CommConnectionException, RFIDReaderException
Description copied from class:UHFReader
Set the antenna port.- Overrides:
getAntennaPort
in classUHFReader
- Returns:
- the current set antenna port
- Throws:
CommConnectionException
- if an communication exception occursRFIDReaderException
- if an protocol exception occurs (e.g. CRC error, value out of range, ..)
-
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 classUHFReader
- Parameters:
state
- true for activate, false deactivate- Throws:
CommConnectionException
- if an communication exception occursRFIDReaderException
- if an protocol exception occurs (e.g. CRC error, value out of range, ..)
-
-