Gen2 standard tagops, Gen2.writetag, Gen2.readdata – ThingMagic Mercury API v1.23.0 User Manual

Page 44: Gen2.writetag 44 gen2.readdata 44, For writing to gen2 tags, the

Advertising
background image

Advanced Tag Operations

44

Level 2 API



Reader.read()

-Counters resets to 0 at beginning of call and accumulates values until

call completes.



Reader.startReading()

-Counters reset to 0 when Reader.StartReading is called and

accumulate values until StartReading() is called again. Counter values can be
retrieved while the read is still active. Reader.StopReading has no effect on
counters.

Gen2 Standard TagOps

The following tag operations are supported by ALL Gen2 tags and all Reader Types.

Gen2.WriteTag

Writes the specified EPC ID value to the tag. It is preferred over using Gen2.WriteData
because WriteTag will automatically lengthen or shorten the EPC ID, by modifying the PC
bits, according to the Tag EPC specified. If WriteData is used, the specified data will be
modified but the EPC ID length will not be modified.

Note

Gen2.WriteTag will always use

/reader/gen2/q

=0 if set to Gen2.DynamicQ.

For use with large tag populations a StaticQ appropriate for the population
size should be used to avoid collisions.

Gen2.ReadData

Reads the specified number of memory words (1 word = 2 bytes) of tag memory from the
specified Memory Bank and location.

Note

Currently limited to returning 123 words of data per standalone ReadData
invocation or 32 words when performed as an

Embedded TagOp Invocation

.

When used as an

Embedded TagOp Invocation

the data read can be used an a unique

identifier of the tag by setting

/reader/tagReadData/uniqueByData

= true. This allows tags

with the same EPC ID but different values in the specified Gen2.ReadData memory
location to be treated as unique tags during inventories.

Note

Specifying 0 (zero) as the data size to read will result in the entire contents of
the specified memory bank (up to the maximums specified above) being
returned.

Advertising