Release version 1.0.34, Read tag single (21h), Command instead – ThingMagic M5e-Compact User Manual

Page 234: Set tag protocol, Read tag multiple

Advertising
background image

Release Version 1.0.34

234

Appendix D: Deprecated and Modified Commands

Release Version 1.0.34

Read Tag Single (21h)

If a tag is read using the currently set tag protocol, its EPC is returned in the tag ID
section of the packet. If no tag is read, a fault code is reported. The Read Tag Single
command takes a 16-bit timeout value in milliseconds.

The following example shows a timeout of 1000 ms (0x03E8):

The response to this command is slightly different depending upon the number of bits in
the tag ID of the current protocol that is selected. The general response format is shown
here:

For example, the following response packet for an EPC0 64-bit tag is sent back. Notice
that the Tag CRC follows the tag ID field for all protocols:

Note

It is important to have a valid protocol selected. To select a protocol, use the

Set Tag Protocol

command. This command will not work correctly if there

are multiple tags in the RF field, use the

Read Tag Multiple

command

instead.

FF

02

21

03 E8

D5

09

SOH

Length

OpCode

Timeout (ms)

CRC

FF

M+2

21

00

00

M bytes

??

??

??

??

SOH

Length

OpCode

Status

Tag ID

TagCRC

CRC

FF

0A

21

00

00

C8

05

07

A8

00

84

C4

FF

9E

E0

F7

25

SOH

Lengt

h

OpCod

e

Status

Tag ID

1

Tag CRC

1.Tag CRC – Calculated on the tag ID field only.

2

CRC

2.CRC – Calculated on the entire message packet.

Advertising
This manual is related to the following products: