|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.thingmagic.Reader
com.thingmagic.RqlReader
public class RqlReader
The RqlReader class is an implementation of a Reader object that communicates with a ThingMagic fixed RFID reader via the RQL network protocol.
Instances of the RQL class are created with the Reader.create() method with a 'rql' URI or a generic 'tmr' URI that references a network device.
Nested Class Summary | |
---|---|
static class |
RqlReader.AntennaMode
The device antenna mode, for use in the /reader/antennaMode |
static class |
RqlReader.PowerMode
The device power mode, for use in the /reader/powerMode parameter. |
Nested classes/interfaces inherited from class com.thingmagic.Reader |
---|
Reader.GpioPin, Reader.LicenseOperation, Reader.LicenseOption, Reader.ReaderFeaturesFlag, Reader.Region, Reader.RegulatoryMode, Reader.RegulatoryModulation |
Field Summary |
---|
Fields inherited from class com.thingmagic.Reader |
---|
featuresFlag, fetchTagReads, hasContinuousReadStarted, isOffTimeAdded, probeSettingPassed, simpleTransportListener, subOffTime, tagFetchTime |
Method Summary | |
---|---|
void |
addStatsListener(StatsListener listener)
Register a listener to be notified about the read stats |
void |
addStatusListener(StatusListener listener)
Register a listener to be notified about the read statistics |
void |
addTransportListener(TransportListener listener)
Register a listener to be notified of message packets. |
java.lang.String |
cmdGetParam(java.lang.String field)
Get a value from the underlying RQL/device configuration table. |
void |
cmdSetParam(java.lang.String field,
java.lang.String value)
Set a value in the underlying RQL/device configuration table. |
void |
connect()
Open the communication channel and initialize the session with the reader. |
void |
destroy()
Shuts down the connection with the reader device. |
java.lang.Object |
executeTagOp(TagOp tagOP,
TagFilter target)
execute a TagOp |
void |
firmwareLoad(java.io.InputStream firmware)
Load a new firmware image into the device's nonvolatile memory. |
void |
firmwareLoad(java.io.InputStream firmware,
FirmwareLoadOptions loadOptions)
Load a new firmware image into the device's nonvolatile memory. |
Reader.GpioPin[] |
gpiGet()
Get the state of all of the reader's GPI pins. |
void |
gpoSet(Reader.GpioPin[] state)
Set the state of some GPO pins. |
void |
killTag(TagFilter target,
TagAuthentication auth)
Kill a tag. |
void |
lockTag(TagFilter target,
TagLockAction lock)
Perform a lock or unlock operation on a tag. |
TagReadData[] |
read(long duration)
Read RFID tags for a fixed duration. |
byte[] |
readTagMemBytes(TagFilter target,
int bank,
int address,
int count)
Read data from the memory bank of a tag. |
short[] |
readTagMemWords(TagFilter target,
int bank,
int address,
int count)
Read data from the memory bank of a tag. |
void |
reboot()
reboots the reader device. |
void |
receiveAutonomousReading()
|
void |
regionConfiguration(boolean lbtEnable,
int lbtThreshold,
boolean dwellTimeEnable,
int dwellTime)
|
void |
removeStatsListener(StatsListener listener)
remove a listener from the list of listeners to be notified of read stats |
void |
removeStatusListener(StatusListener listener)
remove a listener from the list of listeners to be notified of read statistics |
void |
removeTransportListener(TransportListener l)
Remove a listener from the list of listeners to be notified of message packets. |
void |
startReading()
Start reading RFID tags in the background. |
boolean |
stopReading()
Stop reading RFID tags in the background. |
void |
webRequest(java.io.InputStream fwStr,
FirmwareLoadOptions loadOptions)
|
void |
writeTag(TagFilter oldID,
TagData newID)
Write a new ID to a tag. |
void |
writeTagMemBytes(TagFilter target,
int bank,
int address,
byte[] data)
Write data to the memory bank of a tag. |
void |
writeTagMemWords(TagFilter target,
int bank,
int address,
short[] data)
Write data to the memory bank of a tag. |
Methods inherited from class com.thingmagic.Reader |
---|
addReadAuthenticationListener, addReadExceptionListener, addReadListener, create, isAntDetectEnabled, loadConfig, paramGet, paramList, paramSet, removeReadAuthenticationListener, removeReadExceptionListener, removeReadListener, saveConfig, setSerialTransport, versionCompare |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void reboot()
Reader
reboot
in class Reader
public void receiveAutonomousReading()
receiveAutonomousReading
in class Reader
public void regionConfiguration(boolean lbtEnable, int lbtThreshold, boolean dwellTimeEnable, int dwellTime) throws ReaderException
regionConfiguration
in class Reader
ReaderException
public void connect() throws ReaderException
Reader
connect
in class Reader
ReaderException
public void startReading()
startReading
in class Reader
Reader.addReadListener(com.thingmagic.ReadListener)
,
Reader.addReadExceptionListener(com.thingmagic.ReadExceptionListener)
public boolean stopReading()
Reader
stopReading
in class Reader
public void addTransportListener(TransportListener listener)
Reader
addTransportListener
in class Reader
listener
- the TransportListener to addpublic void removeTransportListener(TransportListener l)
Reader
removeTransportListener
in class Reader
l
- the TransportListener to addpublic void addStatusListener(StatusListener listener)
Reader
addStatusListener
in class Reader
listener
- - StatusLisenter to addpublic void removeStatusListener(StatusListener listener)
Reader
removeStatusListener
in class Reader
listener
- - StatusListener to removepublic void addStatsListener(StatsListener listener)
Reader
addStatsListener
in class Reader
listener
- - StatsLisenter to addpublic void removeStatsListener(StatsListener listener)
Reader
removeStatsListener
in class Reader
listener
- - StatsListener to removepublic java.lang.String cmdGetParam(java.lang.String field) throws ReaderException
field
- the name of configuration field to look up
ReaderException
public void cmdSetParam(java.lang.String field, java.lang.String value) throws ReaderException
field
- The name of configuration field to setvalue
- The value of the configuration parameter.
ReaderException
public java.lang.Object executeTagOp(TagOp tagOP, TagFilter target) throws ReaderException
Reader
executeTagOp
in class Reader
ReaderException
public void destroy()
Reader
destroy
in class Reader
public TagReadData[] read(long duration) throws ReaderException
Reader
read
in class Reader
duration
- the time to spend reading tags, in milliseconds
ReaderException
TagReadData
public void writeTag(TagFilter oldID, TagData newID) throws ReaderException
Reader
writeTag
in class Reader
oldID
- the tag to write to, or nullnewID
- the new tag ID to write
ReaderException
public void killTag(TagFilter target, TagAuthentication auth) throws ReaderException
Reader
killTag
in class Reader
target
- the tag kill, or nullauth
- the authentication needed to kill the tag
ReaderException
public byte[] readTagMemBytes(TagFilter target, int bank, int address, int count) throws ReaderException
Reader
readTagMemBytes
in class Reader
target
- the tag to read from, or nullbank
- the tag memory bank to read fromaddress
- the byte address to start reading atcount
- the number of bytes to read
ReaderException
public short[] readTagMemWords(TagFilter target, int bank, int address, int count) throws ReaderException
Reader
readTagMemWords
in class Reader
target
- the tag to read from, or nullbank
- the tag memory bank to read fromaddress
- the word address to start reading fromcount
- the number of words to read
ReaderException
public void writeTagMemBytes(TagFilter target, int bank, int address, byte[] data) throws ReaderException
Reader
writeTagMemBytes
in class Reader
target
- the tag to write to, or nullbank
- the tag memory bank to write toaddress
- the byte address to start writing todata
- the bytes to write
ReaderException
public void writeTagMemWords(TagFilter target, int bank, int address, short[] data) throws ReaderException
Reader
writeTagMemWords
in class Reader
target
- the tag to read from, or nullbank
- the tag memory bank to write toaddress
- the word address to start writing todata
- the words to write
ReaderException
public void lockTag(TagFilter target, TagLockAction lock) throws ReaderException
Reader
lockTag
in class Reader
target
- the tag to lock, or nulllock
- the locking action to take.
ReaderException
public void firmwareLoad(java.io.InputStream firmware, FirmwareLoadOptions loadOptions) throws ReaderException, java.io.IOException
Reader
firmwareLoad
in class Reader
firmware
- a data stream of the firmware contents
ReaderException
java.io.IOException
public void firmwareLoad(java.io.InputStream firmware) throws java.io.IOException, ReaderException
Reader
firmwareLoad
in class Reader
firmware
- a data stream of the firmware contents
java.io.IOException
ReaderException
public void webRequest(java.io.InputStream fwStr, FirmwareLoadOptions loadOptions) throws ReaderException, java.io.IOException
ReaderException
java.io.IOException
public Reader.GpioPin[] gpiGet() throws ReaderException
Reader
gpiGet
in class Reader
ReaderException
public void gpoSet(Reader.GpioPin[] state) throws ReaderException
Reader
gpoSet
in class Reader
state
- Array of GpioPin objects
ReaderException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |