User's Manual

23 | P a g e www.eccel.co.uk
3.4 Mifare Ultralight commands
This set of commands should be performed on Mifare Ultralight tags.
3.4.1 Read page (0x40)
The read page command should be used to read data stored in tag pages. It takes as arguments the page
number of the first page to be read, and the number of pages to be read. The returned ACK answer contains
data read from the specified tag memory. The number of bytes of this data is Mifare Ultralight page size
(4) multiplied by the number of pages to be read.
Command description
Argument
Size
Value
Description
Command ID
1
0x40
MFU_READ_PAGE
Page number
1
X
Number of pages
1
Y
Response
description
ACK
1
0x00
Command ID
1
0x40
MFU_READ_PAGE
Read data Y*4 XXX
Bytes read
from the tag. Number of bytes is number of
requested pages multiplied by 4.
Example:
HOST=>READER: 0x40 – MFU_READ_PAGE
0x02 – page number 2
0x02 – two pages to read
READER=>HOST: 0x00 – ACK byte
0x40 – related command code MFU_READ_PAGE
0x31 0x35 0x3a 0x33 0x35 0x3a 0x30 0x33 – 8 bytes result
3.4.2 Write page (0x41)
The write page command should be used to write data to the tag. It takes as arguments the page number
of the first page to write, the number of pages to write, and the bytes to be written. The number of bytes
to be written must be exactly the number of pages to write multiplied by 4. If the host receives an ACK
without any errors means the write process was successful and the data was read back and verified as
correct by the reader.
Command description
Argument
Size
Value
Description
Command ID
1
0x41
MF
U
_
WRITE
_
PAGE
Page number
1
X
Number of pages
1
Y
Bytes to write Y*4
XXX
Bytes to write. Number of this bytes must be number of
requested pages multiplied by 4.
Response
description
ACK
1
0x00
Command ID
1
0x41
MF
U
_
WRITE
_
PAGE