TH Mifare NFC 1.02
TH Mifare NFC 1.02
TH Mifare NFC 1.02
MIFARE® NFC
Technical Manual
Doc.-Rev. 1.02
Elatec GmbH
Content
1. INTRODUCTION ......................................................................................................................................... 5
2. INSTALLATION OF MINI READER MIFARE® NFC ........................................................................... 6
2.1 MECHANICAL OUTLINE............................................................................................................................ 6
2.2 PINNING ................................................................................................................................................... 6
2.3 ELECTRICAL CHARACTERISTICS .............................................................................................................. 7
2.4 ASYNCHRONOUS SERIAL CONNECTION (UART) ..................................................................................... 7
2.5 SYNCHRONOUS SERIAL CONNECTION (SPI) ............................................................................................. 8
2.5.1 SPI Timing..................................................................................................................................... 10
2.5.2 SPI Software Implementation ........................................................................................................ 11
2.6 USAGE OF GPIOS ................................................................................................................................... 12
2.7 ASYNCHRONOUS RESET ......................................................................................................................... 12
2.8 POWER SUPPLY ...................................................................................................................................... 12
2.9 HARD POWER DOWN ............................................................................................................................. 12
2.10 SAM ...................................................................................................................................................... 12
3. SUPPORTED TRANSPONDERS ............................................................................................................. 13
4. SETTING UP A TERMINAL PROGRAM .............................................................................................. 13
5. REGISTER SET ......................................................................................................................................... 14
5.1 EEPROM MEMORY ORGANIZATION ..................................................................................................... 14
5.2 STATION ID (0AH) ................................................................................................................................. 15
5.3 PROTOCOL CONFIGURATION REGISTER 1 (0BH) .................................................................................... 15
5.3.1 AutoStart ....................................................................................................................................... 15
5.3.2 Binary ............................................................................................................................................ 15
5.3.3 MultiTag ........................................................................................................................................ 15
5.3.4 NewSerialMode ............................................................................................................................. 15
5.3.5 ExtendID ....................................................................................................................................... 16
5.4 BAUDRATE CONTROL REGISTER (0CH).................................................................................................. 16
5.4.1 Resetting the baudrate to default................................................................................................... 16
5.5 OPERATION MODE REGISTER 1 (0EH) .................................................................................................... 17
5.6 PROTOCOL CONFIGURATION REGISTER 2 (13H) ..................................................................................... 17
5.6.1 Disable Startup Message ............................................................................................................... 17
5.6.2 Noisy Environment ........................................................................................................................ 17
5.7 RESET OFF TIME (14H) .......................................................................................................................... 18
5.8 RESET RECOVERY TIME (15H) ............................................................................................................... 19
5.9 PROTOCOL CONFIGURATION REGISTER 3 (1BH) .................................................................................... 19
5.9.1 ReqA Extended ID ......................................................................................................................... 19
5.9.2 TagInfo .......................................................................................................................................... 20
5.10 INSTALLATION IDENTIFIER (E0H … EFH) .............................................................................................. 20
5.11 OPERATION MODE REGISTER 2 (F0H) .................................................................................................... 20
5.12 STARTUP DELAY REGISTER (F2H) ......................................................................................................... 20
6. COMMUNICATION PROTOCOL .......................................................................................................... 21
6.1 ASCII PROTOCOL .................................................................................................................................. 21
6.2 BINARY PROTOCOL ................................................................................................................................ 21
6.2.1 STX ................................................................................................................................................ 21
6.2.2 Station ID ...................................................................................................................................... 21
6.2.3 Length............................................................................................................................................ 21
6.2.4 Data ............................................................................................................................................... 21
6.2.5 Block Check Character (BCC) ...................................................................................................... 21
6.2.6 ETX................................................................................................................................................ 21
6.2.7 Example ......................................................................................................................................... 22
6.2.8 Remarks ......................................................................................................................................... 22
7. INSTRUCTION SET .................................................................................................................................. 23
7.1 COMMAND OVERVIEW ........................................................................................................................... 23
7.1.1 Common Commands ..................................................................................................................... 23
7.1.2 MIFARE® Classic Specific Commands ........................................................................................ 24
Page 2 of 65
Elatec GmbH
Page 3 of 65
Elatec GmbH
Page 4 of 65
Elatec GmbH
1. Introduction
®
This document is the reference guide for the transponder reader family TWN3 MIFARE NFC and Mini
®
Reader MIFARE NFC. The readers are using the same reading technology, so this document is
applicable for both devices.
Note:
®
In order to use the functionality, which is described in this document, your MIFARE NFC
reader needs a firmware version V1.07 or above. In order to update the firmware from an elder
version, please refer to chapter 11 “Firmware Update”.
Page 5 of 65
Elatec GmbH
2.2 Pinning
Pin Name Description Pin Pin Name Description Pin
char. char.
1 RESET
¯¯¯¯¯ Asynchronous reset I / PU 9 VSAM 3.0V regulated supply for S
SAM
2 PWRDWN
¯¯¯¯¯¯¯ Hard power down I / PU 10 SAM_IO Bidirectional SAM I/O line IO / PU
3 GND Ground S 11 GPIO3 General purpose IO
input/output 3
4 VCC 3.3V – 5V S 12 GPIO2 General purpose IO
input/output 2
5 RXD/MOSI UART/SPI receiver input I / PU 13 GPIO1 General purpose IO
input/output 1
6 TXD/MISO UART/SPI transmitter O 14 GPIO0 General purpose IO
output input/output 0
7 SCK SPI serial clock I 15 SAM_CLK SAM clock O
8 SS
¯¯ SPI slave select I / PU 16 SAM_RST SAM reset O
I: Input
O: Output
IO: Input / Output
S: Supply
PU: Integrated Pull-up resistor
Page 6 of 65
Elatec GmbH
Page 7 of 65
Elatec GmbH
Page 8 of 65
Elatec GmbH
After sending the command frame, the master polls the reader for the response. This is done by
cyclically sending 0x00 frames:
Every command requires its individual processing time until a response is available. This response
time also depends on the response polling frequency of the master, so it might be useful to slow down
polling in order to increase processing speed of the reader. As soon as there is a response available,
the reader sends its response to the master, when polled:
Page 9 of 65
Elatec GmbH
The previous image shows the response of the reader, in this case it is the ASCII-representation of the
version string “MifareNFC 1.02<CR><LF>” (with leading length-byte 0x10).
1 11
SS
9 10
2
SCK
3 4 6 7 8
MISO
MSB LSB X X
1 SS
¯¯ low to start of clocking 5µs
2 SS
¯¯ low to data output 15ns
3 Data input setup time 10ns
4 Data input hold time 90ns
5 SCK to data output 15ns
6 SCK low 182ns
7 SCK high 182ns
8 SCK rise/fall time 1600ns
9 SCK period 364ns
10 SCK to SS
¯¯ high 4µs
11 SS
¯¯ inactive time 8µs
12 SS
¯¯ high to tri-state 10ns
Please note: The reader requires a boot time of at least 5ms until full SPI functionality is provided. The
boot time is adjustable by the EEPROM to higher values. It is good practice for the master, to issue a
hard reset after power-up while SS
¯¯ remains inactive and SCK / MOSI have a logic low level. After the
boot time has elapsed, SS¯¯ may be tied to low for the first time in order to read the version string.
Page 10 of 65
Elatec GmbH
int main(void)
{
byte k;
byte q;
byte LengthByteRead;
byte LengthByteWrite;
// ...
while(1)
{
LengthByteWrite = GetNumBytesInSendBuffer();
SS_LOW;
LengthByteRead = SPI_ReadWrite(LengthByteWrite);
while ((LengthByteRead > 0) || (LengthByteWrite > 0))
{
if (LengthByteWrite > 0)
{
q = GetByteFromSendBuffer();
LengthByteWrite--;
}
else
q = 0x00;
k = SPI_ReadWrite(q);
if (LengthByteRead > 0)
{
LengthByteRead--;
PushByteToReceiveBuffer(k);
}
else
LengthByteRead = k;
}
SS_HIGH;
}
// ...
}
Page 11 of 65
Elatec GmbH
2.10 SAM
The reader supports connection of ISO7816 compatible SAM cards. The lines SAM_IO, SAM_CLK,
SAM_RST, VSAM and GND have to be connected as follows:
C1 VSAM
C2 SAM_RST
C1 C5
C3 SAM_CLK
C2 C6 C4 Leave open
C3 C7 C5 GND
C4
C6 Leave open
C8
C7 SAM_IO
C8 Leave open
Page 12 of 65
Elatec GmbH
3. Supported Transponders
ISO14443A ISO14443B ISO18092
Page 13 of 65
Elatec GmbH
5. Register Set
The reader has several system flags customizing its behavior. The flags are stored non-volatile in its
EEPROM. It is recommended to keep all bits and bytes labeled RFU at their default state to guarantee
further compatibility.
Please consider that if any register is written, the reader needs a reset so that the changes may take
effect.
Page 14 of 65
Elatec GmbH
5.3.1 AutoStart
If set the reader will start up in continuous read mode.
Default value: 1
5.3.2 Binary
If set the reader uses binary protocol. Refer to binary protocol description for further information.
Default value: 0
5.3.3 MultiTag
The MultiTag flag will enable multi tag recognition in continuous read mode. All tags are detected and
displayed. Due to the more complex search algorithm detection speed is decreased in continuous
read mode.
Default value: 0
5.3.4 NewSerialMode
The NewSerialMode flag controls the addition of a leading character to the serial number of
transponders. This eases the recognition of transponder types.
This setting affects the commands continuous reading (‘c’), single tag select (‘s’) and multi tag select
(‘m’).
Default value: 0
Page 15 of 65
Elatec GmbH
5.3.5 ExtendID
If set, the unique serial number (UID) of the transponder is extended by a single prefix byte. This bit
has only effect for ISO14443A transponders.
This setting affects the commands continuous reading (‘c’), single tag select (‘s’) and multi tag select
(‘m’).
Default value: 0
Possible values for the prefix byte are:
Prefix Description
Page 16 of 65
Elatec GmbH
ISO14443B
ISO14443A
SRX
RFU
RFU
RFU
RFU
RFU
5.6 Protocol Configuration Register 2 (13h)
The Protocol Configuration Register 2 specifies the further general behavior of the reader.
Protocol Configuration Register 2
Page 17 of 65
Elatec GmbH
Page 18 of 65
Elatec GmbH
Page 19 of 65
Elatec GmbH
5.9.2 TagInfo
If set, the reader extends the UID by a single byte. The value of the byte gives information about the
tag type.
Default value: 0
Refer to the table below for tag types:
Byte value Corresponding transponder type
00 MIFARE® Mini
01 MIFARE® Classic 1K
02 MIFARE® Classic 4K
03 MIFARE® Plus S
04 MIFARE® Plus X
05 MIFARE® Ultralight / Ultralight C
06 MIFARE® DESFire
0F Unknown ISO14443A transponder
40 SRX transponder
60 FeliCa transponder
80 ISO14443B transponder
FF Unknown transponder
RFU
RFU
RFU
RFU
RFU
Page 20 of 65
Elatec GmbH
6. Communication Protocol
6.1 ASCII Protocol
The ASCII protocol has been designed for easy handling. Data is always transmitted in hexadecimal
notation, i.e. 5E.
Every time the reader is powered up, a startup message is displayed. On the terminal screen this
should look like this:
MifareNFC 1.07<CR><LF>
The reader is now ready for reception of commands. By default, the reader starts in continuous
reading mode, this means the reader is scanning for transponders and prints the present UIDs.
Please note that pseudo-tetrade values always must be submitted in capital letters, e.g. 1234ABCD
Commands must be submitted in lower-case letters, e.g. wp0C03
In binary mode, the reader only gives a response if a command is issued. This means, the reader
does not show the start-up string and also continuous read does not work.
6.2.1 STX
Start of transmission (02h)
6.2.2 Station ID
00h: Reserved for the bus master. Responses are sent with Station ID set to 00h.
FFh: Broadcast message. All devices will execute the command and send their response.
6.2.3 Length
Denotes the length of the data block in bytes.
6.2.4 Data
The data block contains the command including its arguments. The command values are the same as
in ASCII protocol mode whereas the arguments are transmitted in binary. If a command requires a
subsequent carriage return (0Dh) it also must be submitted.
6.2.6 ETX
End of Transmission (03h)
Page 21 of 65
Elatec GmbH
6.2.7 Example
This example shows how to log into sector 0 of a MIFARE® card, using transport key FFh:
STX Station ID Length Data BCC ETX
02 01 04 6C 00 FF 0D 9B 03
6.2.8 Remarks
If an invalid instruction frame is received (e.g. BCC is wrong) or if the requested Station ID does not
match the internal ID of the reader, the command is not executed.
Page 22 of 65
Elatec GmbH
7. Instruction Set
7.1 Command Overview
7.1.1 Common Commands
Command Description For details view
chapter
‘ ’ Cancel command 7.6.6
‘c’ Continuous read mode 7.3.1
‘.’ Stop continuous read mode (in noisy environment) 7.6.6
‘ei’ Init SAM card 7.5.9.1
‘et’ SAM card transport data 7.5.9.2
‘g’ Get station ID 7.6.1
‘ir’/’iw’ Read / write GPIO0…31 7.6.7 and 7.6.8
‘m’ MultiTag select / tag list 7.3.3
‘of’ Set configuration flags 7.5.3
‘og’ Set configuration registers 7.5.4
‘o+a’/‘o-a’ Include / Exclude tag type ISO14443A 7.5.6 and 7.5.7
‘o+b’/‘o-b’ Include / Exclude tag type ISO14443B 7.5.6 and 7.5.7
‘o+j’/‘o-j’ Include / Exclude tag type FeliCa 7.5.6 and 7.5.7
‘o+p’/‘o-p’ Include / Exclude tag type PicoPass / ICLASS 7.5.6 and 7.5.7
‘o+s’/‘o-s’ Include / Exclude tag type SRX 7.5.6 and 7.5.7
‘oa’ Set tag type ISO14443A 7.5.5
‘ob’ Set tag type ISO14443B 7.5.5
‘oj’ Set tag type FeliCa 7.5.5
‘op’ Set tag type PicoPass / ICLASS 7.5.5
‘os’ Set tag type SRX 7.5.5
‘ot’ Search for all supported tag types 7.5.5
‘poff’ Antenna power off 7.6.2
‘pon’ Antenna power on 7.6.3
1
‘pr’/’pw’ Read / write GPIO1 7.6.9 and 7.6.10
‘r’/‘rb’ Read data block 7.4.2
‘rp’ Read EEPROM register 7.5.1
‘s’ Select single tag 7.3.2
‘t’ Transparent ISO14443-4 transponder access 7.4.6
‘v’ Get version 7.6.4
‘w’/‘wb’ Write data block 7.4.3
‘wd’ Write AES / Triple DES key 7.5.8.2
‘wp’ Write EEPROM register 7.5.2
‘x’ Reset 7.6.5
1
No function on TWN3
Page 23 of 65
Elatec GmbH
00 Authenticate 7.4.6.1
08 Select Application 7.4.6.2
0D Select File 7.4.6.3
15 Read File 7.4.6.4
16 Write File 7.4.6.5
20 Get card UID 7.4.6.6
Page 24 of 65
Elatec GmbH
Answer Description
Answer Description
Page 25 of 65
Elatec GmbH
Command Description
Answer
Answer Description
Examples
Note:
The MultiTag selection command always requires a 7 byte UID in case of a MIFARE® card. If the UID
of the desired transponder possesses only 4 bytes (e.g. MIFARE® Classic), the passed UID must be
filled up with zeros – see the example above.
Page 26 of 65
Elatec GmbH
Parameters Description
Answer
Answer Description
UID<CR><LF> Real UID of the transponder
‘F<CR><LF>’ Error: Proximity check failed
‘R<CR><LF>’ Error: Parameter out of range
Example
Command Description
‘nvcs5051<CR>’ Perform virtual card select, using EEPROM AES keys 00 and 01
Page 27 of 65
Elatec GmbH
Parameters Description
[Sector] Sector number, valid range 00h – 3Fh
[KeyType] AAh: authenticate with key type A
FFh: authenticate with key type A, transport key FFFFFFFFFFFFh
BBh: authenticate with key type B
10h … 2Fh: authenticate with stored key type A (00h … 1Fh)
30h … 4Fh: authenticate with stored key type B (00h … 1Fh)
[Key / <CR>] Enter key manually (6 bytes) or tell the reader to login with a transport key by submitting a carriage
return <CR> (1 byte)
Answer
Answer Description
Examples
Command Description
‘l01AA<CR>’ Authenticate into sector 01 using transport key type A A0A1A2A3A4A5h
‘l02BB<CR>’ Authenticate into sector 02 using transport key type B B0B1B2B3B4B5h
‘l03FF<CR>’ Authenticate into sector 03 using transport key type A FFFFFFFFFFFFh
‘l04AA1234567890AB’ Authenticate into sector 04 using specified key type A 1234567890ABh
‘l0510’ Authenticate into sector 05 using EEPROM key 0, key type A
‘l0637’ Authenticate into sector 06 using EEPROM key 7, key type B
Page 28 of 65
Elatec GmbH
Parameters Description
[00] To maintain backward compatibility the first parameter shall be set to 00h
[KeyType] CCh: denotes Triple-DES (Ultralight C) key
50h … 5Fh: authenticate with stored Triple-DES key (00h … 0Fh)
[Key / <CR>] Enter key manually (16 bytes) or tell the reader to login with a transport key by submitting a carriage return
<CR> (1 byte)
Answer
Answer Description
‘L<CR><LF>’ Login success
‘F<CR><LF>’ Error: general failure
‘N<CR><LF>’ Error: no tag in the field or the tag does not respond
Examples
Command Description
‘l00CC<CR>’ Authenticate into transponder using Triple-DES transport key:
K1 = 49454D4B41455242h
K2 = 214E4143554F5946h
‘l00CC000102030405060708090A0B0C0D0E0F’ Authenticate into transponder using Triple-DES key:
K1 = 0001020304050607h
K2 = 08090A0B0C0D0E0Fh
‘l0055’ Authenticate into transponder using Triple-DES EEPROM key 05h
Page 29 of 65
Elatec GmbH
Parameters Description
Answer
Answer Description
‘L<CR><LF>’ Login / Authentication / Security level switch success
‘F<CR><LF>’ Error: general failure
‘N<CR><LF>’ Error: no tag in the field or the tag does not respond
Page 30 of 65
Elatec GmbH
Examples
Command Description
Page 31 of 65
Elatec GmbH
Answer Description
Example
Command Description
r08 Reads block 08 (sector 02, block 00)
Page 32 of 65
Elatec GmbH
Answer Description
Example
Command Description
w08000102030405060708090A0B0C0D0E0F Writes data 000102030405060708090A0B0C0D0E0F to block 08 (sector
02, block 00)
w1A11223344 Writes data 11223344 to block 1Ah
Example
Command Description
Page 33 of 65
Elatec GmbH
Byte 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
The value data is stored three times: twice non-inverted and once inverted. The lowest significant byte
is stored in the lowest address byte. The last four bytes are for internal use and shall not be altered.
The following diagram shows the typical command-flow in order to work with MIFARE® value blocks:
Select
Transponder
‚s’ / ‚m’
Log into
sector ‚l’/’nl’
Create value
block ‚wv’
Read value
Increment ‚+’ Decrement ‚-‚ Copy ‚=’
block ‚rv’
Page 34 of 65
Elatec GmbH
Parameters Description
Answer
Answer Description
Examples
Command Description
Parameters Description
Answer
Answer Description
Example
Command Description
Page 35 of 65
Elatec GmbH
Parameters Description
Answer
Answer Description
Data<CR><LF> Value of block
‘F<CR><LF>’ Error: read failure
‘I<CR><LF>’ Error: invalid block format
‘X<CR><LF>’ Error: Bad value operation, e.g. sign overflow
Examples
Command Description
Parameters Description
Answer
Answer Description
Examples
Command Description
Page 36 of 65
Elatec GmbH
Parameters Description
[SourceBlock] Source block address (1 byte)
[TargetBlock] Target block address (1 byte)
Answer
Answer Description
Examples
Command Description
Page 37 of 65
Elatec GmbH
Parameters Description
[DataBlock / If KeyType is present and set to AA or BB, the first parameter is interpreted as SpecialBlock. This makes it
SpecialBlock] possible to address e.g. AES keys and Configuration blocks. Every sector can hold two AES keys (type A
and type B). Otherwise the standard data blocks are accessed (00h … FFh)
00h … 27h: Parameter addresses an AES key of data sector
28h: Card master key
29h: Card configuration key
2Ah: Level 2 switch key
2Bh: Level 3 switch key
2Ch: SL1 card authentication key
2Dh: Select Virtual Card key
2Eh: Proximity Check key
2Fh: Virtual Card Polling Encryption key
30h: Virtual Card Polling MAC key
40h: MFP Configuration Block
41h: Installation Identifier
42h: ATS Information
43h: Field Configuration Block
[KeyType] AAh: indicate key type A
BBh: indicate key type B
[Data] Data to be written to the transponder (16 bytes)
Answer
Answer Description
Examples
Command Description
Page 38 of 65
Elatec GmbH
Answer
Answer Description
Key Change
Parameters Description
[AESSectorKey / If KeyType is present and set to AA or BB, the first parameter is interpreted as AESKey. This makes
SpecialBlock] it possible to address the AES keys and their respective key type. Every sector can hold two AES
keys (type A and type B).
00h … 27h: Parameter addresses an AES key of a data sector
28h: Card master key
29h: Card configuration key
2Ah: Level 2 switch key
2Bh: Level 3 switch key
2Ch: SL1 card authentication key
2Dh: Select Virtual Card key
2Eh: Proximity Check key
2Fh: Virtual Card Polling Encryption key
30h: Virtual Card Polling MAC key
40h: MFP Configuration Block
41h: Installation Identifier
42h: ATS Information
43h: Field Configuration Block
[KeyType] AAh: indicate key type A
BBh: indicate key type B
[Data] Data to be written to the transponder (16 bytes)
Page 39 of 65
Elatec GmbH
Answer
Answer Description
Examples
Command Description
nw00AA001122334455 Change AES sector key, sector 00, key type A to 00112233445566778899AABBCCDDEEFFh
66778899AABBCCDDEEFF
nw01BB000000000000 Change AES sector key, sector 01, key type B to 00000000000000000000000000000000h
00000000000000000000
nw2800102030405060 Change Card master key to 000102030405060708090A0B0C0D0E0Fh
708090A0B0C0D0E0F0<CR>
Page 40 of 65
Elatec GmbH
7.4.6.1 Authenticate
For DESFire transponders, only AES is supported for authentication.
Command: ‘f[Length][00][KeyNoTag][KeyNoEEPROM / Key]<CR>’
Parameters Description
Answer
Answer Description
‘L<CR><LF>’ Login success
‘F<CR><LF>’ Error: general failure
‘N<CR><LF>’ Error: no tag in the field or the tag does not respond
Examples
Command Description
Parameters Description
Answer
Answer Description
Example
Command Description
Page 41 of 65
Elatec GmbH
Parameters Description
Answer
Answer Description
Example
Command Description
Parameters Description
[Length] Set this value to 05h
[Offset] Offset within selected file (3 bytes)
[BytesToRead] Number of bytes to be read (1 byte)
Answer
Answer Description
Examples
Command Description
‘f051500000010<CR>’ Read 16 bytes from file starting at offset 000000h
‘f051500000A08<CR>’ Read 8 bytes from file starting at offset 00000Ah
Page 42 of 65
Elatec GmbH
Parameters Description
Answer
Answer Description
Examples
Command Description
‘f0716000000112233<CR>’ Write 3 bytes of data to file starting at offset 000000h, data is 112233h
‘f06160000034455<CR>’ Write 2 bytes of data to file starting at offset 000003h, data is 4455h
Parameters Description
Answer
Answer Description
‘UID<CR><LF>’ UID of transponder
‘F<CR><LF>’ Error: general failure
Page 43 of 65
Elatec GmbH
Answer Description
Example
Command Description
t020FABCD Sends two bytes ABCD to the transponder, received data will be forwarded to the host.
Page 44 of 65
Elatec GmbH
Answer Description
Example
Command Description
Answer Description
Example
Command Description
Page 45 of 65
Elatec GmbH
Answer Description
00h MultiTag
01h NewSerialMode
05h ExtendID
07h NoisyEnvironment
11h ReqAExtendID
12h TagInfo
Examples
Command Description
of0001 Set MultiTag flag
of0501 Set ExtendID flag
of0700 Clear NoisyEnvironment flag
Answer Description
Example
Command Description
og0310 Set Reset Off Time to 10h (16ms)
og0420 Set Reset Recovery Time to 20h (32ms)
Page 46 of 65
Elatec GmbH
7.5.5 Set Tag Type ‘oa’ / ‘ob’ / ‘oj’ / ‘op’ / ‘os’ / ‘ot’
Use this command to search for only one specific transponder type (e.g. only ISO14443A). In contrast
to the EEPROM registers, the settings of the ‘o’ command are volatile, this means they are taking
effect on the behavior of the reader at once and they are lost when a reset occurs or the reader is
powered down.
Command: ‘oa’ / ‘ob’ / ‘oj’ / ‘op’ / ‘os’/ ‘ot’
Answer
Answer Description
Answer Description
‘O+A<CR><LF>’ Search for ISO14443A transponders
‘O+B<CR><LF>’ Search for ISO14443B transponders
‘O+J<CR><LF>’ Search for FeliCa transponders
‘O+P<CR><LF>’ Search for PicoPass / ICLASS transponders
‘O+S<CR><LF>’ Search for SRX transponders
Answer Description
‘O-A<CR><LF>’ Don’t search for ISO14443A transponders
‘O-B<CR><LF>’ Don’t search for ISO14443B transponders
‘O-J<CR><LF>’ Don’t search for FeliCa transponders
‘O-P<CR><LF>’ Don’t search for PicoPass / ICLASS transponders
‘O-S<CR><LF>’ Don’t search for SRX transponders
Page 47 of 65
Elatec GmbH
Answer Description
Example
Command Description
Answer Description
Example
Command Description
wd0B000102030405060708090A0B0C0D0E0F Writes Triple-DES key 000102030405060708090A0B0C0D0E0F to
location 0Bh
Page 48 of 65
Elatec GmbH
Answer Description
Answer Description
Examples
Command Description
et0200ABCD Sends two bytes ABCD to the card, received data will be returned to the host.
et0400FF119779 Perform PPS exchange: FI=512, Di=64, fCLK=5.5MHz, resulting baudrate: 687500bps
Select T=1 protocol
Page 49 of 65
Elatec GmbH
Answer Description
Answer Description
Answer Description
Answer Description
Answer Description
7.6.6 Break
Send a SPACE (DOT if NoisyEnvironment flag is set) to cancel e.g. Continuous Read Mode.
Page 50 of 65
Elatec GmbH
Answer Description
Example
Command Description
‘ir02’ Returns status of GPIO2.
Answer Description
Data<CR><LF> Status of specified GPIO: 00 means Low; 01 means High.
Example
Command Description
Answer Description
Answer Description
Data<CR><LF> Status of GPIO1: 00 means Low; 01 means High.
Page 51 of 65
Elatec GmbH
Select
transponder
‚s’ / ‚m’
no Transponder
selected?
yes
no Login
successful?
yes
Perform read/
write actions
‚r’ / ‚w’
no Read/write
successful?
yes
yes Read/write no
completed?
Page 52 of 65
Elatec GmbH
Select
transponder
‚s’ / ‚m’
no Transponder
selected?
yes
Perform read/
write actions
‚r’ / ‚w’
no Read/write
successful?
yes
yes Read/write no
completed?
Page 53 of 65
Elatec GmbH
Select
transponder
‚s’ / ‚m’
no Transponder
selected?
yes
Login no
required?
yes
no Login
successful?
yes
Perform read/
write actions
‚r’ / ‚w’
no Read/write
successful?
yes
yes Read/write no
completed?
Page 54 of 65
Elatec GmbH
Page 55 of 65
Elatec GmbH
Page 56 of 65
Elatec GmbH
Page 57 of 65
Elatec GmbH
Page 58 of 65
Elatec GmbH
…
Read / Write
Page 59 of 65
Elatec GmbH
Please note:
Pages 2Ch … 2Fh are write-only, so the ‘w’ command will always report an error, because the
automatic read-after-write check fails! Furthermore, the transponder looses its authenticated state. So
it is necessary, that each write-cycle is followed by a subsequent login with the updated part of the
new key:
Command Response
s 04169BE1ED2580<CR><LF>
l00CC49454D4B41455242214E4143554F5946 L<CR><LF>
w2C07060504000000000000000000000000 F<CR><LF>
s 04169BE1ED2580<CR><LF>
l00CC49454D4B04050607214E4143554F5946 L<CR><LF>
w2D03020100000000000000000000000000 F<CR><LF>
s 04169BE1ED2580<CR><LF>
l00CC0001020304050607214E4143554F5946 L<CR><LF>
w2E0F0E0D0C000000000000000000000000 F<CR><LF>
s 04169BE1ED2580<CR><LF>
l00CC0001020304050607214E41430C0D0E0F L<CR><LF>
w2F0B0A0908000000000000000000000000 F<CR><LF>
s 04169BE1ED2580<CR><LF>
l00CC000102030405060708090A0B0C0D0E0F L<CR><LF>
Page 60 of 65
Elatec GmbH
SL3
X
S,
SL2
X
SL1
X
L3
S,
SL0
SL0: Initial delivery configuration. Only commands ‘Select’, ‘Write Personalization Data’ and
‘Commit Personalization’ work. Depending on transponder type, the ‘Commit Personalization’
command switches the card either to SL1 or SL3.
SL1: MIFARE® Classic compatibility mode. The transponder behaves like a MIFARE® Classic
2K/4K
card. If the transponder is a MIFARE® PLUS X card, it can be switched to SL2 or directly to
SL3,
otherwise only SL3 is possible.
SL2: AES authentication required, Crypto1 session key is generated, communication is furthermore
secured by Crypto1.
SL3: Authentication and MACing based on AES. If the transponder is a MIFARE® PLUS X card, the
entire communication between reader and transponder is secured by AES cryptography,
MIFARE® PLUS S uses plain communication.
Page 61 of 65
Elatec GmbH
Page 62 of 65
Elatec GmbH
Page 63 of 65
Elatec GmbH
Page 64 of 65
Elatec GmbH
13. Trademarks
All referenced brands, product names, service names and trademarks mentioned in this document are
the property of their respective owners.
Page 65 of 65