|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.thingmagic.Reader
com.thingmagic.LLRPReader
public class LLRPReader
Nested Class Summary | |
---|---|
class |
LLRPReader.MonitorKeepAlives
MonitorKeepAlives task monitors keep-alive messages received from tmmpd Would throw connection lost exception if keep-alive is not received within 20 seconds. |
static class |
LLRPReader.ReaderConfigParams
|
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 | |
---|---|
boolean |
addAccessSpec(org.llrp.ltk.generated.parameters.AccessSpec accessSpec)
|
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. |
void |
checkForAvailableReaderFeatures()
This method will check whether the below features are supported by the reader or not. |
static void |
configureLogging()
|
void |
connect()
Open the communication channel and initialize the session with the reader. |
void |
deleteROSpecs()
Deleting all ROSpecs from the reader |
void |
destroy()
Shuts down the connection with the reader device. |
void |
destroyConnection()
This method is only for Query Application in Web UI. |
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. |
int |
getNumPlans()
|
Gen2.Target |
getTarget(int targetValue)
|
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. |
org.llrp.ltk.generated.custom.parameters.ThingMagicDenatranIAVCommandRequest |
initIAVCommandRequest(Gen2.Denatran.IAV tagOp)
|
org.llrp.ltk.generated.custom.parameters.ThingMagicNXPCommandRequest |
initNXPCommandRequest()
|
void |
initRadioPower()
Initializing PowerMaximum & PowerMinimum |
void |
killTag(TagFilter target,
TagAuthentication auth)
Kill a tag. |
void |
lockTag(TagFilter target,
TagLockAction lock)
Perform a lock or unlock operation on a tag. |
void |
log(java.lang.String message)
|
static int[] |
parseValue(java.lang.String value)
|
SerialReader.ReaderStats |
processCustomStats(SerialReader.ReaderStats statValues,
org.llrp.ltk.generated.custom.parameters.CustomStatsValue customStats,
boolean allStats)
|
void |
queryStopReading()
This method is only for Query Application in Web UI. |
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 listener)
Remove a listener from the list of listeners to be notified of message packets. |
void |
setNumPlans(int numPlans)
|
void |
startReading()
Start reading RFID tags in the background. |
boolean |
stopReading()
Stop reading RFID tags in the background. |
void |
stopROSpec(int ROSPEC_ID)
stopping RO Spec |
static int |
toSL900aTime(java.util.Calendar calendar)
|
void |
webRequest(java.io.InputStream fwStr,
FirmwareLoadOptions loadOptions)
|
void |
writeTag(TagFilter target,
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 static void configureLogging()
public void checkForAvailableReaderFeatures()
public void connect() throws ReaderException
Reader
connect
in class Reader
ReaderException
public void reboot() throws ReaderException
Reader
reboot
in class Reader
ReaderException
public Gen2.Target getTarget(int targetValue)
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 initRadioPower() throws ReaderException
ReaderException
public void destroy()
Reader
destroy
in class Reader
public void destroyConnection()
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 deleteROSpecs() throws ReaderException
ReaderException
public int getNumPlans()
public void setNumPlans(int numPlans)
public org.llrp.ltk.generated.custom.parameters.ThingMagicDenatranIAVCommandRequest initIAVCommandRequest(Gen2.Denatran.IAV tagOp) throws ReaderException
ReaderException
public org.llrp.ltk.generated.custom.parameters.ThingMagicNXPCommandRequest initNXPCommandRequest() throws ReaderException
ReaderException
public static int toSL900aTime(java.util.Calendar calendar) throws ReaderException
ReaderException
public static int[] parseValue(java.lang.String value)
public boolean addAccessSpec(org.llrp.ltk.generated.parameters.AccessSpec accessSpec) throws ReaderException
ReaderException
public void stopROSpec(int ROSPEC_ID) throws ReaderException
ROSPEC_ID
-
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 writeTag(TagFilter target, TagData newID) throws ReaderException
Reader
writeTag
in class Reader
target
- the tag to write to, or nullnewID
- the new tag ID 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 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 void startReading()
Reader
startReading
in class Reader
Reader.addReadListener(com.thingmagic.ReadListener)
,
Reader.addReadExceptionListener(com.thingmagic.ReadExceptionListener)
public boolean stopReading()
Reader
stopReading
in class Reader
public void queryStopReading()
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
public java.lang.Object executeTagOp(TagOp tagOp, TagFilter target) throws ReaderException
Reader
executeTagOp
in class Reader
ReaderException
public void firmwareLoad(java.io.InputStream firmware) 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, 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 webRequest(java.io.InputStream fwStr, FirmwareLoadOptions loadOptions) throws ReaderException, java.io.IOException
ReaderException
java.io.IOException
public void addTransportListener(TransportListener listener)
Reader
addTransportListener
in class Reader
listener
- the TransportListener to addpublic void removeTransportListener(TransportListener listener)
Reader
removeTransportListener
in class Reader
listener
- 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 void log(java.lang.String message)
log
in interface Logger
public SerialReader.ReaderStats processCustomStats(SerialReader.ReaderStats statValues, org.llrp.ltk.generated.custom.parameters.CustomStatsValue customStats, boolean allStats)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |