13.56MHz MIFARE Reader Module

Protocol Configuration Register

Protocol Configuration Register (05h)        
Bit 8 (MSB) Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 (LSB)
reserved reserved reserved Cont. Mode BinaryTim eout ExtendID Binary AutoStart

Extend ID: Extend TAG ID (serial number)

0 (factory default) The TAG ID Byte is not transmitted before the serial number 1 TAG ID Byte is transmitted before the serial number

This setting does only affect the commands continuos reading (‘c’), select (‘s’) and MultiTagSelect (‘m’).

If set a the unique serial number (4 bytes) of the transponder is extended by a single prefix byte. The values for the prefix byte are:

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

Binary: binary mode flag

0 (factory default) reader operates in ASCII protocol mode 1 reader operates in binary protocol mode

AutoStart:

0 reader is in command mode at start up 1(factory default) reader executes the command ‘c’ (read serial numbers continuously) at start up automatically. In binary protocol mode this bit is ignored (The binary protocol does not support continuos reading).

BinaryTimeout

0 (factory default) Binary Time-out disabled. 1 Binary Time-out enabled.

This flag is only interpreted if the reader operates in binary mode. If the serial bus stays idle for more than 96 ms (no data is transmitted), the reader will clear its command buffer ant enter “Command Read” mode. “Command Read” mode means that the reader is waiting for valid data frames (beginning with the STX code).

Example: You transmit the sequence “02h 00h FFh “ to a third party module (a door opener, turnstile control unit, …). Since this sequence starts with a valid Mifare reader protocol but does not terminate properly, the Mifare reader would wait infinitely. Termination can be enforced using the binary timeout.  

Cont. Mode (continuous read mode)

0 (factory default) continuous reading does only support single tags continuous reading does support multiple tags

Using single tag reading is much faster than using multiple tag reading. If in single mode more than one card is in the field the reader does transmit none or only one of the serial numbers (depending on reading conditions and transponder positioning).

Baud Rate

Baud Rate Selection (06h)          
Bit 8 (MSB) Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 (LSB)
reserved reserved reserved reserved reserved reserved BS1 BS0

BS1, BS0:

BS1 BS0 Baudrate

0 0 9600 baud (factory default)

0 1 19200 baud

1 0 38400 baud

1 1 57600 baud

Communication is always 8 data bits, no parity, 1 stop bit. At delivery the Communication speed is set to 9600 baud.

To take over changes in any of these register the reader must be reset. It is recommended to clear reserved bits for ensure compatibility with further firmware versions.

Examples:

r05 reads block 4 (sector 1)
00112233445566778899AABBCCEEDD FF reply from reader if Mifare® Standard block 5 contains “001122…”
r00 reads Manufacturer Code (sector 0)
rv04 reads value of block 4
00112233 reply from reader if Mifare® Standard value block 4 contains “00112233”
re04 reads register 4 (Station ID)
01 reply if Station ID is set to 01
re05 reads register 5 (Protocol Configuration)
01 reply if Protocol Configuration register is set to 01
re06 reads register 6 (Baud Rate Selection)
03 reply if baudrate is set to 57600 baud