beautypg.com

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

Page 63

background image

DualRunners – Communication Protocol v1.3

- 63 -

Data Capture

for Workforce

in Motion

4.

4.

4.

4.

Mifare 4K tags

4.1 Tag memory structure

4.1 Tag memory structure

4.1 Tag memory structure

4.1 Tag memory structure

Mifare 4K tags have 3456 bytes of memory divided into:

-

32 (thirty-two) 48-bytes long sectors. Every such sector is divided into 3 (three) 16-bytes long blocks

-

8 (eight) 240-bytes long sectors. Every such sector is divided into 15 (fifteen) 16-bytes long blocks.

4.2 Reading tag data

4.2 Reading tag data

4.2 Reading tag data

4.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 4K 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 03 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)

-

03: card type (03 means Mifare 4K)

-

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

c)

Reader’s response (successful read)

Send read command to

reader

Send tag data that has been

read

Send end of data packet