Reading tag memory, Readlistener, Readexceptionlistener – ThingMagic Mercury API v1.23.0 User Manual

Page 28: Reading tag memory 28, Readlistener readexceptionlistener, Interface; each

Advertising
background image

Reading Tags - The Basics

28

Level 1 API

N <= 2

Q

For example, if return on N tags is 3, then optimal Q is 2, but there is a chance that
module may find and report 4 tags.

See sample codelets in the SDK.

Note

Not currently supported with

Continuous Reading

.

Reading Tag Memory

Additional methods for reading individual tags are available in the

Level 2 API

.

ReadListener

Classes that implement the

ReadListener interface may be used as listeners

(callbacks) for background reads. The interface has one method:

void tagRead(Reader r, TagReadData t)

This method is called for each tag read in the background after

Reader.startReading()

has

been invoked.

See the example applications, i.e. readasync.java, for typical implementations.

C A U T I O N !

!

!

When performing asynchronous read operations the reader is operating
in a continuous or pseudo-continuous read mode. During this mode per-
forming other tag or reader operations, including GPIO operations, are
not supported. As such, other tag and reader operations MUST NOT be
performed within the tagRead() ReadListener method. Doing so can
have unexpected results.
Use

Embedded TagOp Invocation

in order to perform an operation on every tag

found, or perform

Reader.read()

and iterate through the tags found, perform-

ing the desired tag operations on each.

ReadExceptionListener

Classes that implement the

ReadExceptionListener interface may be used as

listeners (callbacks) for background reads. The interface has one method:

Advertising