Mifare ultralight tags, 2 reading tag data – Baracoda Barcode Reader User Manual

Page 55

Advertising
background image

DualRunners – Communication Protocol v1.3

- 55 -

Data Capture

for Workforce

in Motion

2.

2.

2.

2.

Mifare Ultralight tags

2.1 Tag memory structure

2.1 Tag memory structure

2.1 Tag memory structure

2.1 Tag memory structure

Mifare Ultralight tags have 64 bytes of memory divided into 16 (sixteen) 4-bytes long pages.

2.2 Reading tag data

2.2 Reading tag data

2.2 Reading tag data

2.2 Reading tag data

a)

Communication diagram

The following diagram shows what needs to be done in order to read the contents of a Mifare Ultralight tag:

Terminal

BRRT or BDR Reader

b)

Data sent from the terminal to the reader

First of all, the terminal needs to send to the reader a Read data command to the reader. This command is

described in the communication protocol guide of the reader; its code ID is 0x81. In this case, the format of the

command will be as follows (in hexadecimal):

DE 00 07 81 00 00 1E 01 00 FF

where:

-

DE: prefix

-

00 07: data length (7 bytes will follow)

-

81: command ID

-

00 00: protocol mask (it’s best to specify 00 00 for Mifare cards)

-

1E: timeout for the response (30s)

-

01: card type (Mifare Ultralight)

-

00 FF: start/stop sectors/pages (00 FF means read the whole memory)

Send read command to

reader

Send tag data that has been

read

Send end of data packet

Advertising