Example with embedded write tag data – ThingMagic M5e-Compact User Manual

Page 94

Advertising
background image

Application Tag Commands

94

Command Set

Example with Embedded Write Tag Data

Here is an example request and response showing the use of

Tag Singulation/Select

Functionality

to inventory tags which meet a specific criteria and then setting the Access

password on each using

Write Tag Data (24h)

as an embedded command:

This command will inventory all tags with an EPC value ending in 0x34, which requires
adding the appropriate

Tag Singulation Fields

to the

Basic Tag Inventory

syntax then will use

Read Tag Multiple Embedded Response Fields

Field

Value

Description

Status

[2 bytes]

Error Code if command failed, otherwise 0x0000 for Success

Select Options

[1 byte]

Options set in the Request Command

Search Flags

[2 bytes]

Search Flags set in the Request Command

Tags Found

[1 byte]

Number of tags found and added to the

Tag Buffer

matching Select

criteria. Follows the standard criteria of adding tags the Tag Buffer. if
the Tag Buffer already has tags in it they will not be counted towards
Tags Found. However, if they match the Select Criteria they will have
the operation performed on them. For this reason it is important to
always make sure the Tag Buffer is clear before any Read Tag Multi-
ple execution to insure accurate response information.

Embedded Command Count

[1 byte]

The number of embedded commands to follow. [Currently only sup-
ports one]

Embedded Command OpCode

[1 byte]

The OpCode of the embedded command as specified in the request
command.

Operations Succeeded

[2 bytes]

Number of Embedded command operations which succeeded.

Note:

Depending on the Gen2 Session/User Mode used the

Operations Succeeded/Failed counts can be misleading since
in Session 0, for example, the tag may respond many times
during an inventory round and the command may be
attempted many times. This would result in counts higher than
the actual number of tags the operation succeeded or failed
on.

Operations Failed

[2 bytes]

Number of Embedded command operations which failed.

Note:

As noted above this number can be indicating the command

failed multiple times on the same tag. These values should be
used in combination with Tag Found and checking the Tag
Buffer to insure the operation was completed on the desired
tags.

The fields and values returned by the embedded command.

Advertising
This manual is related to the following products: