beautypg.com

Gen2.kill, Gen2 optional tagops, Gen2.blockwrite – ThingMagic Mercury API v1.23.0 User Manual

Page 47: Gen2.kill 47, Gen2.blockwrite 47

background image

Advanced Tag Operations

Level 2 API

47

Gen2.LockAction(int mask, int action)

to create a Gen2.LockAction object with the specified mask and action.

The following symbolic constants are provided for convenience in handling Gen2 lock
mask and action bitmasks. Perform a binary OR on these to pass multiple lock/unlock
settings.



Gen2.LockBits.ACCESS



Gen2.LockBits.ACCESS_PERM



Gen2.LockBits.KILL



Gen2.LockBits.KILL_PERM



Gen2.LockBits.EPC



Gen2.LockBits.EPC_PERM



Gen2.LockBits.TID



Gen2.LockBits.TID_PERM



Gen2.LockBits.USER



Gen2.LockBits.USER_PERM

Gen2.Kill

Sends a kill command to a tag to permanently disable the tag. The tag’s Reserved
memory Kill Password must be non-zero for the kill to succeed.

Gen2 Optional TagOps

The following tag operations are optional features of the Gen2 tag specification and are
supported by many but not all Gen2 tags. These operations are supported by readers of
type

SerialReader

and the M6.

Gen2.BlockWrite

On tags which support this command, it provides faster writing of data to a tag by writing
more than one word at a time over the air, compared to

Gen2.WriteData

which sends data

to write over the air to the tag word by word.

Calls to BlockWrite can only specify data of the maximum length which the tag supports in
its BlockWrite implementation. For example, Impinj Monza tags only support 2-word