13.56MHz MIFARE Reader Module

Instruction Set

Command Byte MIFARE Application Oriented Protocol Command MIFARE Low Level Command
‘x’ Reset -
‘c’ Continuous Read Anticollision
‘s’ Select Select
‘m’ MultiTag Select / Tag list Select / Anticollision
‘l’ Login [sector, keytype, key] Authenticate
‘r’ Read [block] Read
‘rv’ Read value [block] Read
‘re’ Read register [register] -
‘w’ Write [block, data] Write
‘wv’ Write value [block, value] Write
‘we’ Write register [register, data] -
‘wm’ Write key register [register, key] -
‘+’ Increment [block, value] Increment
‘-‘ Decrement [block, value] Decrement
‘=’ Copy [block, block] Restore
‘g’ Get ID of reader module -
‘t’ Transfer data telegram [length, option, data] various
‘poff’/’pon’ Turn the antenna power on or off -
‘pr’/’pw’ Read Write the 1 bit user Port -

Reset

Command  
CMD DATA
‘x’ None

Binary Frame 02 01 01 78 78 03

Answer  
ANS DATA
none Binary Mode: None ASCII Mode: “Mifare 0.14” + CR + LF

⇒ Execute a power on (software) reset. 

Start Up configuration
This command will reset the reader module and all TAGs in the field. After reset the continuous read command may be executed automatically (depending on the Protocol Configuration register).

Firmware Version
On Start Up the reader is transmitting a string (i.e. “Mifare V 0.14”). This string indicates the firmware provided by the reader module. This string is only transmitted in ASCII mode.

Hardware Reset using PIN 15
Alternatively you may use the Reader Enable Pin (PIN 15 of the OEM module to low) to reset the reader.

Reset Timing
The power up timing depends on environmental conditions such as voltage rampup. So for portables the timing may depend on the charging state of the battery. It also may change due to future firmware version.

POWER ON Timing
1) at t=0 power is turned on
2) at t=136 msec the antenna field is activated
3) at t=155 msec the boot up message “MIFARE V014c” is finished
4) at t=178 msec the first serial number has been sent to the PC (card touches antenna)

RESET (Pin 15) Timing
1) at t=0 reset pin 15 is released 0 V -> 5V
2) at t=75 msec the antenna field is activated
3) at t=93 msec the boot up message “MIFARE V014c” is finished
4) at t=116 msec the first serial number has been sent to the PC (card touches antenna)

Continuous Read

Command  
CMD DATA
‘c’ none

Binary Frame not supported in binary mode

Answer  
ANS DATA
None TAG Type Identification (1 byte) 0×01 denotes a MIFARE® Light Transponder (not supported) 0×02 denotes a MIFARE® Standard Transponder 0×03 denotes a MIFARE® Pro Transponder 0xFF denotes a unknown Transponder SN (4 byte) serial number of TAG

The serial number is repeated continuously while one or more tags remain in the field. This command is stopped by transmitting any character to the reader module.

Continuous read mode
By changing the “Cont. Mode” Flag in the Protocol Configuration register (see register table page 21) the reader could be capable of continuously reading multiple tags.

Start Up configuration
This command is executed automatically at Start Up if the AutoStart Bit in the Protocol Configuration register is set(see register table page 21) .

TAG ID Byte
This byte is only transmitted if the Extend ID in the Protocol Configuration register is set (refer table on page 42) . Unknown Transponder types can be accessed as well if the transponder functionality is Mifare compliant.
Disabled as factory default.

Binary mode
Continuous read is supported in ASCII protocol only. Since the binary protocol is strictly master slave with readers as slaves, it is not supported there. If the continuous read command is executed the command is only performed once.

Canceling the continuous read command
This command is not stopped if all tags leave the field. If the tags are removed while executing this command the reader stops transmitting serial numbers. If another tag enters the field before this command is cancelled (by transmitting any character) the reader module starts transmitting the new serial number.

Simple access control applications
Please consider that the serial number is not encrypted during the Anticollision/Select procedure. Data encryption is activated after a successful login instruction.
For simple access control applications it is recommended to use read only blocks (see chapter 4.4 “ Sector Trailer and Access Conditions” on page 37 and datasheets of your MIFARE chip manufacturer) for the identification of the tag. Reading any block (even the manufacturer block) of the transponder will ensure a successful Authentication procedure. This will increase your security.