|
||||||||
| 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.Region |
| Field Summary |
|---|
| Fields inherited from class com.thingmagic.Reader |
|---|
hasContinuousReadStarted, simpleTransportListener |
| 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. |
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)
|
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)
|
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 |
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, loadConfig, paramGet, paramList, paramSet, removeReadAuthenticationListener, removeReadExceptionListener, removeReadListener, saveConfig, setSerialTransport |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void configureLogging()
public void connect()
throws ReaderException
Reader
connect in class ReaderReaderException
public void reboot()
throws ReaderException
Reader
reboot in class ReaderReaderExceptionpublic Gen2.Target getTarget(int targetValue)
public void receiveAutonomousReading()
receiveAutonomousReading in class Reader
public void initRadioPower()
throws ReaderException
ReaderExceptionpublic void destroy()
Reader
destroy in class Readerpublic void destroyConnection()
public TagReadData[] read(long duration)
throws ReaderException
Reader
read in class Readerduration - the time to spend reading tags, in milliseconds
ReaderExceptionTagReadData
public void deleteROSpecs()
throws ReaderException
ReaderExceptionpublic int getNumPlans()
public void setNumPlans(int numPlans)
public org.llrp.ltk.generated.custom.parameters.ThingMagicDenatranIAVCommandRequest initIAVCommandRequest(Gen2.Denatran.IAV tagOp)
throws ReaderException
ReaderException
public static int toSL900aTime(java.util.Calendar calendar)
throws ReaderException
ReaderExceptionpublic 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 Readertarget - 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 Readertarget - 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 Readertarget - 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 Readertarget - 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 Readertarget - 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 Readertarget - 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 Readertarget - the tag kill, or nullauth - the authentication needed to kill the tag
ReaderExceptionpublic void startReading()
Reader
startReading in class ReaderReader.addReadListener(com.thingmagic.ReadListener),
Reader.addReadExceptionListener(com.thingmagic.ReadExceptionListener)public boolean stopReading()
Reader
stopReading in class Readerpublic void queryStopReading()
public Reader.GpioPin[] gpiGet()
throws ReaderException
Reader
gpiGet in class ReaderReaderException
public void gpoSet(Reader.GpioPin[] state)
throws ReaderException
Reader
gpoSet in class Readerstate - Array of GpioPin objects
ReaderException
public java.lang.Object executeTagOp(TagOp tagOp,
TagFilter target)
throws ReaderException
Reader
executeTagOp in class ReaderReaderException
public void firmwareLoad(java.io.InputStream firmware)
throws ReaderException,
java.io.IOException
Reader
firmwareLoad in class Readerfirmware - 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 Readerfirmware - 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.IOExceptionpublic void addTransportListener(TransportListener listener)
Reader
addTransportListener in class Readerlistener - the TransportListener to addpublic void removeTransportListener(TransportListener listener)
Reader
removeTransportListener in class Readerlistener - the TransportListener to addpublic void addStatusListener(StatusListener listener)
Reader
addStatusListener in class Readerlistener - - StatusLisenter to addpublic void removeStatusListener(StatusListener listener)
Reader
removeStatusListener in class Readerlistener - - StatusListener to removepublic void addStatsListener(StatsListener listener)
Reader
addStatsListener in class Readerlistener - - StatsLisenter to addpublic void removeStatsListener(StatsListener listener)
Reader
removeStatsListener in class Readerlistener - - StatsListener to removepublic void log(java.lang.String message)
log in interface Logger
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||