1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
Warning - Read before start-up!
The product may only be used for the intended purpose designed by the manufacturer. The
operation manual should be conveniently kept available at all times for each user.
Unauthorized changes that have not been sold or recommended by the manufacturer may have a
negative influence on the system the program has been installed or copied on. Such unauthorized
measures shall exclude any liability by the manufacturer.
The liability-prescriptions of the manufacturer in the issue valid at the time of purchase are valid for
the device. The manufacturer shall not be held legally responsible for inaccuracies, errors, or
omissions in the manual or automatically set parameters for a device or for an incorrect application
of a device.
Only qualified personnel should carry out installation, operation, and maintenance procedures.
Use of the program and its installation must be in accordance with national legal requirements.
When working on devices the valid safety regulations must be observed.
Read Me First
About this Guide
This manual describes the HF Multi ISO Reader. Its goal is to describe the reader, how it works,
how to integrate it and how to use it.
Contacts
Europe, Middle East and Africa
HID Global Corporation, Ltd. (Haverhill, UK)
HID GLOBAL, HID, the HID logo, and OMNIKEY are the trademarks or registered trademarks of HID
Global Corporation, or its licensors, in the U.S. and other countries.
Appendix A - References........................................................................................................................123
Appendix B - SAM Socket Details.........................................................................................................124
Appendix C - Timings.............................................................................................................................125
Appendix D ..............................................................................................................................................127
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
Scope
The HID HF Multi ISO Reader Module supports a broad range of tags compliant with ISO 14443
type A and B standards, including SR176 tags, tags which belong to the NXP MIFARE family, ISO
15693 tags, ISO 18000-3, EPC and UID tags. An open command structure allows the device to
communicate with tags that use an operating system. The read/write unit supports ISO 14443-4
layer with automatic chaining, 256 byte buffer and frame length, extended time framing and up to
848kBaud transmission rates over the air interface.
Several protocols are available to enable the reader module to be connected to a variety of
equipment. The ASCII protocol facilitates the use of a simple terminal; the Binary protocol provides
robust communication more suitable for a dedicated host system. If a host computer is used, then a
function library is available, providing function calls rather than low-level ‘byte-bashing’.
For the SAM interface security features and DESFire credential DES encryption, the function library
provides access to these features in the Reader Module. The function library is available for
Windows CE and XP host applications.
Major applications are:
Access control, identification using security credentials
Ticketing using standard MIFARE and DESFire credentials
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
Overview
Definitions
Anti-collision loop
An algorithm used to identify and handle a dialogue between a reader and one or more tags in its
antenna field.
ASCII notation
ASCII characters are listed within apostrophes, i.e. ‘x’ means a single x.
Hex notation
A hexadecimal value is marked with the suffix ‘h’, i.e. A1h has the value A1 hexadecimal.
Abbreviations
Abbreviation Description
AID Application ID
ASCII American Standard Code for Information Interchange
ATR Answer to Reset
ATS Answer to Select
AFI Application Family Identifier
Block For the MIFARE Standard one block contains 16 bytes
CBC Cipher Block Chai ning
CID Card Identifier (logical card address, ISO 14443-4)
CRC Cyclic Redundancy Check
DES Data Encryption Standard, for more details about DES refer to [3].
DSFID Data storage format identifier
EDC Error Detection Code
EGT Extra Guard Time
EOF End of Frame
ETU Elementary time unit
Hex / xxh Value in Hexadecimal notation
I-block Information block
KTT Key Transfer Transponder
LSB Least Significant Bit or Byte
MSB Most Significant Bit or Byte
NAD Node Address (ISO 14443-4)
OSI Open System Interconnection
OTP One time programmable
PCB Protocol Control Byte (ISO 14443-4)
PCON Protocol Configuration byte of the reader
PPS Protocol and Parameter Selection
RATS Request for Answer to Select
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
Abbreviation Description
R-block Receive ready block
REQA Request ISO Type A
REQB Request ISO Type B
RFU Reserved for Future Use
S-block Supervisory block
SAM Secure Application Module
Sector For the MIFARE Standard one sector contains 4 blocks
SID Station ID
SFGT Guard time after RATS
SN Serial Number of a tag (a 32 bit number)
SOF Start of frame
TDES Triple DES
Value block 32 bit data block format. Used in ticketing application
<CR> Carriage return (0Dh)
<LF> Line feed (0Ah)
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
1.3Jumper 2 Details
Table 3 - Pin out – Jumper 2
PIN PIN No. Description
VDD 20 Supply Voltage
GND 19 Ground
LEDg 18 LED green (reading LED)
LEDr 17 LED red
EN 16 Enable reader, open or logic high
MCLR 15 Master clear
USER 14 User Port
DIR 13 Direction of RS 485
TX 12 TX to PC
RX 11 RX from PC
Table 4 - Electrical characteristics of J2 PINs
PIN PIN No. Min Typ. Max. Description
RX 11
TX 12
DIR 13
USER 14
MCLR 15
EN 16
LEDr 17
VDD
min
@ 25mA
USART-TTL1 25 mA Rx to PC
To RS232, RS485 or RS422 device
driver
USART-TTL1 25 mA Tx to PC
To RS232, RS485 or RS422 device
driver
TTL 25 mA Direction of RS 485
Logic High = Reader to Host
Logic Low = Host to Reader
TTL3 25 mA User Port
TTL4
ST5 25 mA Enable reader
VDD
typ
@ 11mA
11mA 25mA External Resistor
VDD
max
@ 0 mA
Master clear
Leave unconnected
logic low will disable the reader
Open or logic high
TTL buffer output / input. If user port is used as an output, a 1kΩ (current limiting) series resistor
has to be integrated into the connecting wire, otherwise the reader device can be damaged.
4
Voltage spikes below GND at the MCLR/VDD pin, including currents greater than 80mA, may
cause latch-up. Thus, a series resistor of 50-100 should be used when applying a "low" level to
the MCLR/VDD, rather than pulling this pin directly to GND.
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
PIN PIN No. Min Typ. Max. Description
LEDg 18
GND 19
VDD 20 +4.5V +5.0V +5.5V Supply Voltage
IDD
32 mA 150 mA 250 mA Supply Current (Without SAM)
1.4V
@ 11mA
11mA 15mA
GND
VDD
@ 0mA
LED green (reading LED)
with 330 (internal serial) resistor
Ground
1.4 External Connections
1.4.1 Power Supply
If the supply voltage and any noise modulated on the supply voltage remains within the specified
limits, no further filtering is required. In some cases it is recommended to use additional filtering for
the power supply line. Insufficient power line filtering could cause unexpected or irregular
performance drops.
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
The board can be connected as shown in Figure 3 - Power Supply Option 2. Both alternatives are
possible and can be used as they fit best into the layout of the carrier board. The two VCC PINs and
the two GND PINs are connected internally.
+5V DC
OEM Board
3
4
Figure 3 - Power Supply Option 2
1.4.2Antenna
The typical antenna tuning and matching network is shown in Figure 4 - Typical Antenna Tuning.
The external antenna has to have the right inductance and a certain resistor and capacitor
combination for an optimized frequency tuning and antenna matching.
L ANT
C5
C3
C4
R1
C1
C2
1
2
5
6
OEM Board
Figure 4 - Typical Antenna Tuning
More details about the antenna design are available in the HID Antenna Design guide. Download
this document from http://www.hidglobal.com/Omnikey
.
Reference the specific application notes for the NXP reader IC (MIFARE & I-Code, Micore Reader
IC family Directly Matched Antenna Design).
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
1.4.3 Serial Interface
The OEM Board can be connected directly with a micro controller. Alternatively the OEM Board also
can be connected to most serial interface types by using the right interface converter circuit. In
order to optimize the communication quality the specific application note of the interface converter
circuit needs to be taken into consideration.
OEM Board
Figure 5 - OEM Board Serial Interface
1.4.4Function Control LEDs
Two external LEDs can be connected to the OEM Board. There are two alternatives possible.
OEM Board
uC
Figure 6- Connecting External LEDs - Option 1
OEM Board
uC
12
11
330 Ohm
330 Ohm
18
17
18
17
Interface
Converter
Circuit
330 Ohm
Host Interface
Figure 7 - Connecting External LEDs - Option 2
In both cases the LED supply voltage levels are TTL levels.
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
1.4.5SAM Connector/Socket
Note: The power supply to the SAM must be turned off during the entire SAM insertion/withdrawal
period; otherwise damage to the SAM may occur.
When using a SAM with the OEM board, it is recommended that a 100nF decoupling capacitor be
fitted between Vcc and GND close to the SAM socket to ensure proper operation. The complete
circuit diagram is shown in Figure 8 - SAM Connector.
Vcc
OEM Board
7
100nF
SAM
Module
CLK
I/O
RST
8
9
GND
Figure 8 - SAM Connector
PIN-outs for 8 Pin SAM Socket and 6 Pin SAM Socket is shown in Appendix B.
Note: The SAM interface hardware does not support error repetition and does not check the parity
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
2 Software
In order to offer the widest possible choice of interface, the MultiISO reader offers both ASCII and
Binary serial protocols – see Transmission Protocol, page 19.
EEPROM reg
settings, timing parameters and modulation index – listed in Register Set, page 23. These registers
are alterable using the
register settings are applie
These configuration registers may be altered ‘on-the-fly’ to immediately affect performance by the
‘set configuration flag/register’ commands, but the changes are lost once the reader is powered
down, unless also written into the EEPROM registers. These and all other configurable settings are
detailed in the Register Set – Register Set, page 23.
General read
Details, page 39, dealing with the physical attributes of the reader – r
control, Antenna power – and the basic tag commands – include/exclude tag types, continuous
read, tag select and air speed select, and simple block read/write commands.
Tag-specific commands for MIFARE and My-D tags are listed in Sections ISO 14443 Type A
(MIFARE
keys are listed in Key Management, page 76.
For more complex commands,
exchange information – see ‘t’ Command – Data Frame Transfer, page 90 and ‘t’ command block
format & ex
To communicate with
frame/packet to exchange information, based on the ISO7816 APDU – see ‘e’ command – SAM
data frame
isters in the reader hold default settings for Station ID, protocol, serial and air-speed
Read/Write EEPROM commands detailed in Command Set page 37. The
d to the reader through the configuration registers.
er commands are
listed in Command Set page 37 and detailed in Common Command
eset, LED control, User port
®
) only commands, page 70 and my-d™ secure, page 84, and commands to manipulate
the ‘t’ command is used. This uses a data frame or packet to
amples, page 94 for examples of use
the optional SAM, the ‘e’ command is used. This also encapsulates a data
transfer, page 97 and ‘e’ command block, page 102 for examples of use.
2.1 Transmission Protocol
Two protocol modes are supported, with the default held in the reader EEPROM. As factory default,
the ASCII protocol is used, and the default serial configuration is 9600baud, n, 8, 1, with no
handshaking.
2.1.1 ASCII Protocol
This protocol is designed for easy handling. The commands may be issued using a terminal
program, such as HyperTerminal, and the data is transmitted as ASCII hexadecimal that can be
easily displayed on the terminal program.
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
2.1.2 Binary Protocol
This protocol is designed for industrial applications with synchronization and frame checking. An
addressing byte for party line (master/slave, multi-drop) is also included.
The protocol usually requires a device driver. Data is transmitted in binary mode. The reader uses
an internal binary watchdog timer to ensure correct framing.
The binary frame version 2 is only sent to the host. It is implemented to give extended information to
the host. Version 2 must be enabled in the Protocol configuration 2 register.
Unique ID of the station
00h: Reserved for the bus master. Readers send response to this device ID.
FFh: Broadcast message. All devices will execute the command and send their response.
2.1.2.3 Length
Length defines the length of the data block, including the flag byte, if binary protocol version 2 is
activated. If length is set to zero, 256 data bytes are transmitted. The reader module only can send
256 data bytes, but cannot receive commands with 256 bytes.
2.1.2.4 Flags
The flag byte gives additional information to the host.
Bit 3 – Bit 7 Bit 1 – Bit 2 Bit 0
RFU Leading Character Info Error State
Error State
If cleared, the command was processed successfully. If set, an error occurred.
Leading Character Info
Bit 1 & 2 defines how to interpret the data in the binary frame.
Bit 2 Bit 1 Description
0 0 No leading character available, all values are hexadecimal.
0 1 The data contains one leading character.
1 0 All data bytes are characters.
1 1 RFU
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
2.1.2.5 Data
This part contains the command and the data. The command values are the same as in ASCII
protocol mode (‘x’, ‘s’, …) whereas data is transmitted in binary mode.
The length of the command block depends on the instruction.
2.1.2.6 Block Check Character (BCC)
The BCC is used to detect transmission errors. The BCC is calculated XOR-ing each byte of the
transmission frame excluding the STX/BCC and ETX characters. The flags are part of the data.
2.1.2.7 ETX
End of transmission. (03h)
2.1.2.8 Remarks
If the reader device receives an invalid instruction frame (i.e. wrong BCC) or the requested station
ID does not match the internal ID of the reader, the command is not executed. The reader waits for
the next valid frame.
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
2.2 Register Set
The reader has several system registers used for customization purposes. These registers are
stored in its non-volatile EEPROM. The reader accepts changes to these settings only during the
start-up phase. [See Write EEPROM, page 68]
f
Some o
feature. These are referred to as Flags. [See Set Configuration Flags, page 54]
the system registers are organized such that each of the 8 bits is an on-off selection for a
Clearing all RFU bits
is recommended in order to guarantee compatibility with future releases.
In addition, direct changes to some of these system registers may be made at any time, with
immediate effect, but these changes are NOT stored in EEPROM and thus are lost when the reader
powers down. [See Set Configuration Fl ags, page 54 and Set Configuration Register page 56]
These ‘on-the-
fly’ changes are mapped onto the EEPROM ‘registers’ or memory locations and do
not necessarily carry the same ‘register’ values.
The reader can store up to 32 authentication keys internally to login standard MIFARE cards. An
additional 32 keys can be stored for DESFire authentication. All keys are read only and cannot be
accessed through the interface lines.
2.2.1EEPROM Memory Organization
Register Description
00h … 04h Unique device ID; read only
05h … 09h Administrative data; read only
0Ah Station ID
0Bh Protocol configuration 1
0Ch Baud rate
0Dh Command Guard Time
0Eh Operation Mode
0Fh Single shot time-out value
10h TMR low *
11h TMR high *
12h Type B framing *
13h Protocol configuration 2
14h Reset Off Time
15h Reset Recovery Time
16h Application Family Identifier
17h ISO 14443A Selection Time-out
18h ISO 14443B Selection Time-out
19h SR176 Selection Time-out
1Ah ISO 15693 Selection Time-out
1Bh Protocol configuration 3
1Ch Page Start
1Dh Modulation con ductance 0 (Type B and SR176. Also ISO15693 if set to 10%
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
Register Description
1Fh Page number
20h Protocol configuration 4
21h CID
22h RxWait
23h Modulation conductance 1 (Type B and SR176)
24h Modulation conductance 2 (Type B and SR176)
25h Modulation conductance 3 (Type B and SR176)
26h - 7Fh RFU
80h … EFh User data
2.2.2 Unique Device ID (00h – 04h)
The unique device ID identifies a reader module. It is factory programmed and cannot be changed.
2.2.3 Station ID (0Ah)
Default = 01h
The station ID is used in binary mode to address a device in party line set up. The station ID can
range from 01h to FEh and can be set freely. The value 00h is reserved for the bus master. All
readers send their response to this device.
The broadcast message (FFh) forces all readers to response to the command.
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
Binary Protocol, page 20 for further information on the binary protocol format. Default setting =
ASCII protocol (0).
2.2.4.3 Multitag (default 0)
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, the continuous read command
decreases its detection speed.
2.2.4.4 New Serial Mode (default 0)
If New Serial Mode is set to ‘1’, new serial mode is enabled. A leading character is added to the
serial number.
Leading Character Description
D ICode UID
E ICode EPC
I ICode
J ISO 14443 A Jewel tag
M ISO 14443 A
S SR 176
V ISO 15693
Z ISO 14443 B
2.2.4.5 LED (default 0)
If set the reader suppresses any LED activity. The user manages the state of the LEDs.
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
2.2.4.6 Single Shot (default 0)
If Single Shot is set, the reader displays the serial number of a tag in continuous read mode once
within a specified time-out. The time-out is defined at EEPROM register 0Fh.
The delay time can be adjusted stepwise in 100ms steps. 00h indicates no delay and FFh
indicates infinite delay.
Note: The delay precision depends on reset off and reset recovery time.
2.2.4.7 Extended Protocol (default 1)
If Extended Protocol is set, the transfer data telegram command supports ISO14443-4 and
automatically process the WTX and chaining for smaller frames. This flag has to be set to enable
14443-4 error handling – see Extended Protocol (default 1), page 27.
If sending
ISO 14443-3 co
mmands this flag has to be switched off.
The transfer data telegram command is only supported in normal mode, not in transmit / receive
mode.
2.2.4.8 Extend ID (default 0)
If the Extend ID is set, the reader extends the serial number with additional information.
ISO 14443 A tags
Tag type / ReqA Serial number [SAK]
1 byte / 2 bytes 4 / 7 / 10 bytes 1 byte
Tag type / ReqA Serial number [SAK] ATS Used Speed [CID]
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
2.2.5 BAUD, Baud Rate Control Register (0Ch)
Default = 00h
The baud rate register defines the communication speed of the reader device.
Baud rate register
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
RFU RFU RFU RFU RFU BS2 BS1 BS0
This register defines the baud rate of the device.
BS2 BS1 BS0 Baud rate
0 0 0 9600 baud (default)
0 0 1 19200 baud
0 1 0 38400 baud
0 1 1 57600 baud
1 0 0 115200 baud
1 0 1 230400 baud (depends on the used interface chip)
1 1 0 460800 baud (depends on the used interface chip)
With the high baud rates (230400 and 460800 baud), proper operation depends on the interface
chip used. Please note that some of the interface chips available do not support these high baud
rates.
The following table describes the exact baud rates used by the reader.
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
2.2.6 Command Guard Time (0Dh)
Default = 20h (1,2ms)
The Command Guard Time is used to ensure that commands are not sent to fast consecutively.
Following commands are sent after the guard time is elapsed. One time slice is around 37,8us. The
longest timeout value is 9,6ms (FFh).
2.2.7 OPMODE - Operating Mode Register (0Eh)
Default = FFh (all)
The operation mode register defines which tag types the reader supports. This register enables fast
tag recognition because only defined tag types are requested.
Operation mode register
Bit 7 (MSB) Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 (LSB)
RFU
ICODE UID
ICODE EPC
ISO 15693
ICODE
SR176
ISO 14443B
Innovision Jewel tag
Innovision Jewel tag is part of ISO 14443 Type A. It can not be separately switched on/off.
2.2.8 Single Shot Time-Out (0Fh)
Default = 0Ah (1 sec)
The time-out value defines the delay time between two responses of the reader. It only has effect in
continuous read mode. To enable the time-out, the single shot flag has to be set. See
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
2.2.10 Type B framing Register (12h)
Default value is 27h.
This register defines the communication settings of ISO 14443 B cards. The user can adjust this
register to set up the framing of type B cards individually. The register is applied when the operating
mode is set to type b (‘ob’) or toggle mode (‘ot’).
Type B Framing register
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
NoTx
SOF
Bit Description
NoTx SOF If set to 1 no SOF is sent
NoTx EOF If set to 1 no EOF is sent
EOF Width
CharSpacing Set the length of the EGT between 0 and 7 ETU
SOFWidth
NoTx
EOF
EOF
Width
0 Set the EOF to a length of 10 ETU
1 Set the EOF to a length of 11 ETU
00 Set the SOF to a length of 10 ETU low and 2 ETU high
01 Set the SOF to a length of 10 ETU low and 3 ETU high
10 Set the SOF to a length of 11 ETU low and 2 ETU high
11 Set the SOF to a length of 11 ETU low and 3 ETU high
CharSpacing SOFWidth
2.2.11 Protocol Configuration 2 (13h)
Default value is 00h.
The protocol configuration register 2 (PCON2) further specifies the general behavior of the reader
device.
Protocol configuration 2 register
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Disable
ISO 14443 4 Error
Handling
2.2.11.1 Disable multi-tag reset: bit 0 (default 0)
If set, the reader does not reset before the multi-tag list and multi-select command have been
performed.
2.2.11.2 Disable start-up message: bit 1 (default 0)
If Disable start-up message is set, the reader suppresses the start-up message in ASCII mode.
This flag is ignored in binary protocol mode.
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
2.2.11.3 Enable binary frame v2: bit 2 (default 0)
If Enable binary frame v2 is set, the reader sends version 2 binary frames.
The get station ID command always sends version 1 binary frames!
2.2.11.4 Noisy Environment : bit 3 (default 0)
If Noisy Environment is set, the continuous read mode can only be aborted with the '.' character.
When working in a noisy environment, the probability for a reception of an arbitrary/stochastic
signal is quite high. This implies a high probability of an unintentional command execution. To
reduce this probability, only one character (out of 255) is chosen (‘.’) to be interpreted as the
continuous read stop command.
2.2.11.5 Reset Recovery Time Multiplier: bits 4-5 (default 0)
Multiplies the Reset Recovery Time, including the recovery time of the field reset command.
Reset Recovery Time Multiplier Reset Recovery Time
0 1x
1 2x
2 3x
3 4x
2.2.11.6 Enable ISO14443 B Anti-collision (default 0)
If set, the anti-collision algorithm for ISO 14443 B tags is enabled.
2.2.11.7 Disable ISO 14443-4 Error Handling (default 0)
If set, ISO14443-4 Error Handling is disabled. The error handling always uses the TMR time-out.
To enable Error Handling, the Extended Protocol flag in Protocol configuration 1 must be set. See
Extended Protocol (default 1), page27.
2.2.12 Reset Off Time (14h)
Default value is 0Ah.
The Reset Off Time register represents the field off time in ms.
This register is used for the select, continuous read and multi-tag commands.
2.2.13 Reset Recovery Time (15h)
Default value is 25h.
The Reset Recovery Time register represents the recovery time in ms after the field is turned on.
This register is used for the select, continuous read and multi-tag commands.
2.2.14 Application Family Identifier (16h)
Default value is 00h.
The AFI (Application Family Identifier) is only supported for ISO14443B and ISO15693 tags. If the
set value is different from 00h, the AFI is used. Only transponders with an identical AFI will answer
to the reader.
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
2.2.15 Selection Time-Out ISO 14443A (17h)
The default value is 10h. (~4.8mS)
The Selection Time-out represents the reader card communication time-out for the select, high-
speed select, continuous read, multi-list, multi-select and MIFARE login command with ISO
14443A tags. Use low values for a better reaction time between the card and the reader. One time
slice is around 300us.
2.2.16 Selection Time-Out ISO 14443B (18h)
The default value is 10h. (~4.8mS)
The Selection Time-out represents the reader card communication time-out for the select, high-
speed select, continuous read, multi-list and multi-select commands with ISO 14443B tags. For a
better reaction time, use low values. One time slice is around 300µs.
2.2.17 Selection Time-Out SR176 (19h)
The default value is 10h. (~4.8mS)
The Selection Time-out represents the reader card communication time-out for the select,
continuous read, multi-list and multi-select command with SR176 tags. For a better reaction time,
use low values. One time slice is around 300µs.
2.2.18 Selection Time-Out ISO 15693 (1Ah)
The default value is 10h. (~9.6mS)
The Selection Time-out represents the reader card communication time-out for the select, high-
speed select, continuous read, multi-list, multi-select and MIFARE login command with ISO 15693
tags. Use low values for a better reaction time between the card and the reader. One time slice is
around 300us.
2.2.19 Protocol Configuration 3 (1Bh)
The Default value is 00h.
The protocol configuration register 3 (PCON3) further specifies the general behavior of the reader
device.
Protocol configuration 3 register
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
SAK Extended
ID
2.2.19.1 Disable automatic ISO 14443-4 timeouts: bit 0 (default 0)
If Disable automatic ISO 14443-4 timeouts is set the automatic ISO 14443-4 timeouts are
disabled. The timeouts specified with TMR registers are used.
2.2.19.2 Page read: bit 2 (default 0)
If set the continuous read mode retrieves the content of the tag instead of the serial number. The
register Page Start (1Ch) defines the start block and the Page Number (1Fh) defines the number
of blocks to be read.
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
2.2.19.3 ISO14443 Type B Rx frame COM settings: bits 3-5 (default 00h)
The bits 3 - 5 of this register define the communication settings of ISO 14443 B cards for the
receiving frame.
Protocol Register 3: Bit 3 – 5
Bit 5 Bit 4 Bit 3
NoRxEOF NoRxEGT NoRxSOF
Bit Description
NoRxSOF If set to 1 a missing SOF of the received data frame will be ignored.
NoRxEGT If set to 1 a too short or too long EGT of the received frame will be ign ored.
NoRxEOF If set to 1 a missing EOF of the received data frame will be ignored.
2.2.19.4 ReqA Extended ID: bit 6 (default 0)
If set the Extended ID information for ISO14443 A tags replaces the cascade level information (1
byte) with Request A answer (2 bytes).
2.2.19.5 SAK Extended ID: bit 7 (default 0)
If set the Extended ID information for ISO 14443 A tags will include the SAK byte behind the serial
number.
2.2.20 Modulation Conducta nce 0 (1Dh )
Default value is 05h.
The modulation defines the conductance of the output driver for the ISO 14443 B and SR176 tags
modulation time. If modulation is set to 10%, also include ISO15693 tags. Use this to regulate the
modulation index. Note that the conductance values are not linear! For further information, refer
to the NXP documentation. [6]
2.2.21 Threshold (1Eh)
Default value is EBh
The higher nibble of the Threshold register defines the minimum accepted signal strength at the
decoder input. The lower nibble of the Threshold register defines the collision level. For further
information, refer to the NXP documentation. [6]
2.2.22 Protocol Configuration 4 (20h)
Default value is 00h.
The protocol configuration register (PCON4) specifies general behavior of the reader device.
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
2.2.22.1 Disable Read after Write: bit 0 (default 0)
If set, the reader device will not make a read after write for the block write commands "w", "wb",
"wd" and "wv".
If the read after write is deactivated, acknowledge from the write commands is a 00h byte instead
of the written data.
2.2.22.2 WupA/B: bit 1 (default 0)
If set, the reader device will use WupA/B instead of ReqA/B during selection of an ISO 14443 tag.
Supported commands are select, high-speed select and multi-select.
2.2.22.3 CID Extended ID: bit 2 (default 0)
If set, the extended ID information for ISO 14443 A/B tags will be extended with the CID
information only for the high-speed select. The CID byte will be appended on the end of the
output.
2.2.22.4 Huge data mode: bit 3 (default 0)
If set, the huge data mode of the transfer data command will be enabled only for ISO 14443 A/B.
In huge data mode the option and length byte of the transfer data command will be turned off to
enable larger data transmission.
In ASCII mode a trailing CR byte is mandatory.
2.2.23 CID (21h)
Default value is 00h.
The Card Identifier (CID) is used to activate multiple ISO 14443-4 cards at the same time. If only
one tag at the same time is used this value should be left 0.
2.2.24 RxWait (22h)
Default value is 00h.
The RxWait value is a frame guard time until the receiver part will not receive any data. The value
is given in bit-clock cycles. A value of 0 indicates the RxWait timing will be done with predefined
values. For an air-speed of 106kBaud, the duration of one bit-clock cycle is ~9.4uS
2.2.25 Modulation conductance 1 (23h )
Default value is 00h.
This register is 1 of 4 different modulation conductance registers. The default used modulation
conductance register is 0. For more information refer to Modulation Conductance 0 (1Dh), page
34 and Set target modulation conductance register, page 57.
2.2.26 Modulation conductance 2 (24h )
Default value is 00h.
This register is 1 of 4 different modulation conductance registers. The default used modulation
conductance register is 0. For more information refer to Modulation Conductance 0 (1Dh), page
34 and Set target modulation conductance register, page 57.
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
2.2.27 Modulation conductance 3 (25h )
Default value is 00h.
This register is 1 of 4 different modulation conductance registers. The default used modulation
conductance register is 0 For more information refer to Modulation Conductance 0 (1Dh), page 34
and Set target modulation conductance register, page 57.
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
2.3 Command Set
The following table describes all the commands of the reader device. Each command returns an
answer to the host. Exceptions are mentioned explicitly. If fitted, the green LED acknowledges a
successfully executed command and the red LED indicates an error.
Table 5 - Common Command Overview
Description Detail Location Command
'!' Test continuous read / Check KTT upload status 2.3.1.1, page 39
'c' Continuous read 2.3.1.2, page 40
'.' Abort continuous read 2.3.1.2, page 40
‘dw’ De-select Wait 2.3.1.3, page 41
'dg' / 'dn' / 'dr' Set LED 2.3.1.4, page 42
'ds' DES encryption / decryption of data 2.3.1.5, page 42
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
2.3.1 Common Command Details
2.3.1.1 Test Continuous Read / Check KTT Upload Status
This command tests the state of the continuous read command and the state of the Prepare for
KTT 'ut' command.
The test continuous read command is only valid in ASCII mode.
Command
Command Data
'!' None
Answer
Answer Description
'!' Continuous read mode is active.
00h Keys from KTT successfully uploaded
01h Error during key upload detected, upload aborted
02h No KTT found, other tag was detected
FFh Prepare for KTT is in awareness mode
'F' Conti nuous read and Prepare for KTT is not active.
no response Key uploading is in progress
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
2.3.1.2 Continuous Read
The reader device reads and displays serial numbers continuously while one or more tags remain
in the field. This command stops if any character is sent to the reader module. The reader module
returns the character ‘S’ (53h).
The reader supports different tag types at the same time. To increase the reading performance
switch to a single tag mode. If more than one tag of the same type should be detected at the
same time, the Multitag flag must be activated. The response data length depends on the tag
type.
Command
Command Data
'c' None
Answer
Answer Description
Data Serial number (n bytes)
'N' Error: No Tag in the field (only binary protocol)
2.3.1.2.1Multitag continuous read mode
If the Multitag flag is set in the Protocol Configuration (PCON) register the reader reads multiple
tags continuously.
2.3.1.2.2Auto start
The continuous read mode is started automatically in ASCII mode. The auto start flag must be set
in the PCON register.
2.3.1.2.3Noisy Environment
If the Noisy Environment flag is set, the continuous read mode can only be aborted with the '.'
character.
This is only valid in ASCII mode.
2.3.1.2.4Binary mode
This command is fully supported in binary protocol mode except the test continuous read
command and the noisy environment flag.
Do not use this command on bus system environment in binary mode, because the continuous
read mode will take possession of the bus system.
2.3.1.2.5Simple access control applications
Serial numbers are always sent plain. Data encryption is activated after a successful login.
For simple access control applications the use read-only blocks for the identification of the tag is
recommended.
Reading any block (even the manufacturer block) of the transponder will increase your security.
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
2.3.1.2.6LED activity
The LED stays green as long as a tag was found and goes dark if the tag is removed from the
field.
2.3.1.3 DeSelect Wait
This command gives the earliest possible indication that a specified tag has been removed from
the field
Command Data
'dc' Timeout byte, Persistence byte, UID
Answer
Answer Description
UID
'N'
Specified UID – the tag is still present after the timeout
The specified tag is no longer in the field
Example
dc 32 00 04 22 0F 71 4B 1C 80 04 22 0F 71 4B 1C 80 Specified tag still present
dc 32 01 04 22 0F 71 4B 1C 80 ‘N’ Specified tag no longer present
2.3.1.3.1Timeout
This byte specifies the time the reader will check for the (specified) tag being removed from the
field. The actual timeout (in mS) is 4 x the Timeout byte, giving a range of 4 – 1000mS. In
practice, the granularity of the actual timeout is affected by the Command Guard Time, so an
accuracy of +/- 5% is achievable.
If the tag is detected as no longer present before the timeout has been reached, the command
immediately returns ‘N’.
2.3.1.3.2Persistence
This parameter specifies the number of times the reader checks that the tag really has been
removed from the field – an ‘anti-glitch’ measure. A values of 0 is treated as if it were ‘1’. For each
integer value greater than 1, the basic test loop is repeated, adding approximately 6mS to the
timeout period.
2.3.1.3.3UID
This is the UID of the tag the reader is checking. It may be 4, 7 or 10 bytes
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
2.3.1.4 Set LED
This command controls the LED activity. If the LED flag is set, the automatic LED function is
switched off. The user can set the state of the LED manually.
Command
Command Data
'dg' None
'dr' None
'dn' None
Answer
Answer Description
'DG'
'DR'
'DN'
String of LED state
Example
Answer Description Command
'dg' DG Switch on LED green, LED red off
'dr' DR Switch on LED red, LED green off
'dn' DN Switch off both LEDs
2.3.1.5 DES encryption / decryption of data
This command returns 8 bytes of en crypted / decry pted d at a.
Command
Command Data
'ds' Options (1 byte)
Key (8/16 bytes) / Key Number (1 byte)
Data (8 byte)
Answer
Answer Description
Data Encrypted / Decrypted data (8 bytes)
Option byte
Option byte
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
RFU RFU RFU RFU RFU Encode Key Length Key Index
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
Key Index
If the Key Index is set, the command only needs the key number (1 byte) instead of the key (8/16
bytes).
The key number corresponds to the key number used in the key management.
Key Length
If the Key Length is set, the command uses the TDES algorithm with 16-byte key.
If cleared, the command uses the DES algorithm with 8-byte key.
If key index is used the key length flag is valid.
Encode
Setting this flag encodes the data.
Clearing this flag decodes the data.
2.3.1.6 Get ID
This command returns the station ID of the reader device. The answer is time slotted to enable
the detection of all devices in party line mode.
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
2.3.1.6.1Time slotted answer
In party line mode, more than one reader can be used simultaneously. The time slotted answer
allows separating in time the answers from all connected devices. The station ID is used to
determine the correct time slot.
The reader supports up to 254 unique time slots. The following formula calculates the duration of
one time slot (only one baud rate is supported per party line):
10
Baudrate
6*
0
sT
][
The following figure shows the timing diagram of time slotted answers.
Timeslot 0 1 2 3 4 5 … 252 253 254
T
T
HOST
0
'g'
1
T
T
3
2
T
T
4
T
5
252
T
253
T
254
Reader (01)
01
Reader (03)
Reader (04)
03
04
Reader (254)
254
2.3.1.6.2Binary Protocol Version 2
This command never sends version 2 binary frames.
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
2.3.1.7 High-speed select
This command selects a card in the antenna field (according to the selection criteria) or prepares
a multi-select command, switches to high baud rates and enables 256-byte frames. If execution is
successful, the command returns the UID of the selected card and the used baud rate. The reader
automatically detects the maximum frame size of the card. The reader also tries to communicate
to the transponder with the specified baud rate. If no communication is possible, the reader will
automatically decrease the speed to the next lower value.
In synchronous mode the up and downlink speed are identical.
In asynchronous mode the up and downlink speed can be different.
This command can also force the reader to the communication speed and frame size of the tag to
the specified values. This is only needed if the high-speed select is done manually with the
transfer command.
Command
Command Data
‘h’ Option byte (1 byte)
synchronous mode
00h … select a single card with 106kBaud
02h … select a single card with 212kBaud
04h … select a single card with 424kBaud
08h … select a single card with 848kBaud
10h … prepare next multi-select for 106kbaud
12h … prepare next multi-select for 212kbaud
14h … prepare next multi-select for 424kbaud
18h … prepare next multi-select for 848kbaud
20h … forces reader to 106kBaud
22h … forces reader to 212kBaud
24h … forces reader to 424kBaud
28h … forces reader to 848kBaud
tag size
30h – 38h … force tag frame size
asynchronous mode
80h … select a single card with 106kBaud
82h … select a single card with 212kBaud
84h … select a single card with 424kBaud
88h … select a single card with 848kBaud
90h … prepare next multi-select for 106kbaud
92h … prepare next multi-select for 212kbaud
94h … prepare next multi-select for 424kbaud
98h … prepare next multi-select for 848kbaud
A0h … forces reader to 106kBaud from tag to reader
A2h … forces reader to 212kBaud from tag to reader
A4h … forces reader to 424kBaud from tag to reader
A8h … forces reader to 848kBaud from tag to reader
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
Command Data
B0h … forces reader to 106kBaud from reader to tag
B2h … forces reader to 212kBaud from reader to tag
B4h … forces reader to 424kBaud from reader to tag
B8h … forces reader to 848kBaud from reader to tag
Answer
Answer Description
Data (n bytes) +
frame size and
baud rate (1byte)
'F' Error: General failure
‘N’ Error: No Tag in field [addressed tag not present or not responding]
Serial number + frame size used and baud rate
Note: If the tag does not support ISO 14443 part 4 F0h will return after serial number instead of
used frame size/baud rate.
Examples
High-speed select
Command Description
h08 1234567890ABCD84
Select the card with UID 1234567890SABCD.
The card supports a 256-byte frame size and 424kBaud on the air interface.
High-speed multi-select
Command Description
h18
m1234567890ABCD<CR>
2.3.1.7.1Answer from 0xh and 1xh
The lower nibble contains the baud rate used for the air interface.
Baud Rate Description
x0 106kBaud
x2 212kBaud
x4 424kBaud
x8 848kBaud
The higher nibble contains the frame size used for the air interface.
Frame Size Description
0x 16 Bytes
1x 24 Bytes
2x 32 Bytes
Prepare next multi-select for 848kBd
1234567890ABCD84
Select the card with UID 1234567890SABCD.
The card supports a 256-byte frame size and 424kBaud on the air
interface.
2.3.1.7.2Answer from 8xh
The lower nibble contains the baud rate used for the air interface.
The value for the baud rate is XORed with the used up and downlink speed.
Baud Rate Description
x1 106kBaud
x2 212kBaud
x4 424kBaud
x8 848kBaud
The higher nibble contains the frame size used for the air interface.
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
2.3.1.7.6Multiple tags
This command with parameter 1xh prepares the next multi-select command as a high-speed
select. Any other command will disable the preparation.
2.3.1.7.7RATS Guard Time SFGT
A high-speed select with parameters 0xh and 1xh automatically waits the SFGT guard time
received from the tag before sending the PPS command.
2.3.1.8 High Speed Select Wait
There are two command variants – ‘hc’ and ‘hw’. If one or more tag(s) are present, return both the
selected UID and in the case of multiple tags, also report that a collision was detected, reducing
the host processing overhead.
The ‘hw’ command additionally allows specific Reset off and Reset recovery times to be set,
without altering the Register values, and will search tags for a specified time, further reducing the
host processing overhead.
Command
Command Data
‘hc’ Option byte
‘hw’ Option byte, Reset Off time, Reset Recovery time, Wait time
Answer
Answer Description
Data (n bytes) + frame size and
baud rate (1byte) + collision flag
'F' Error: General failure
‘N’ Error: No tag in field [addressed tag not present or not
Serial number + frame size used and baud rate [+ collision flag]
responding]
Note: If the selected tag does not support ISO 14443 part 4, instead of the used frame size/baud
rate byte being returned after the UID, the command will return byte F0h.
Examples
Command Description
hc88
hc88
hw88 0A 20 32
hw88 0A 20 32
04 91 DF E9 F1 02 80 F0 08
Responding tag doesn’t support ISO14443-4 – hence FO – and multiple cards were detected – 08
04 22 0F 1
Responding tag supports a 64-byte frame size and 848kBaud on the air interface - 58
04 91 DF E9 F
Responding tag doesn’t support ISO14443-4 – hence FO – and multiple cards were detected – 08
04 22 47
Responding tag supports a 256-byte frame size and 424kBaud on the air interface – 84
4 4B 1C 80 58
1 02 80 F0 08
14 4B 1C 80 84
hw88 0A 20 32 ‘N’
After a reset/recovery period, the reader searched for tags for 200mS (4 * 32h). None found.
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
Option
See High-speed select, page 45 for a full description of this byte.
Reset Off
The length
of time the field is switched off
Reset Recovery
The time for the field to stabilize after being switched on
Wait
The length of time in mS * 4 the reader will search for tags (19h = 25 * 4 = 100mS)
Note: A zero wait time is not supported by the reader.
2.3.1.9 Lock Block
This command locks a block permanently. Only SR176 and ISO 15693 tags are supported.
Command
Command Data
'k' Block address (1 byte)
Answer
Answer Description
Data 'K' + page address
'F' Error: Lock failure
'N' Error: No tag in field [addressed tag not present or not responding]
'O' Error: Operation mode failure [tag is neither SR176 or ISO 15693 compliant]
'X' Error: Block already locked
Example
Command Description
k05 K05
2.3.1.9.1Apply settings
After locking a block permanently, the tag needs to be selected for the settings to apply.
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
2.3.1.10 Multi-Tag Selection / List
This command detects several tags at the same time. It replaces the fast select command ('s') in
multiple tag surroundings. The Multi-Tag List command lists all tags with their serial numbers. Use
the Multi-Tag Select command to select a single tag. Each tag has to be selected separately.
Command
Command Data
'm' Serial number (n bytes)
<CR> (1 byte)
Answer
Answer Description
Data serial number
'N' Error: No Tag in the field [addressed tag not present or not respondin g]
Example
Command Description
m<CR> 04E9E700000000 first card
34030F07 second card
02 number of detected tags
m04E9E700000000<CR> Select card with its serial number
2.3.1.10.1Multi-tag list
Sending a <CR> as the first parameter, the reader returns a list of all tags present in the antenna
field. In the end the total number of tags detected is returned.
2.3.1.10.2Reading distance
Each card needs a specific amount of power. The reader always provides the same power level.
Therefore, the reading distance will decrease if more tags are present. Basically, the reading
distance depends on the tag, the antenna and the tuning of the antenna.
2.3.1.10.3Multi-tag select
Using the serial number with <CR> as parameter, the corresponding tag will be selected. High-
level interactions can be performed addressing only this card. All other tags remain silent.
2.3.1.10.4Multi-tag reset
The antenna field reset can be deactivated with the Protocol configuration 2 register.
By suppressing the antenna field reset, it is possible to detect only new tags in the antenna field.
CAUTION: Possibly, ISO 15693 tags are interfered from ISO14443 type B and SR 176 tags.
In this case, the ISO 15693 tag always answers on a multi list command even if there was
no previous field reset. In this case, deactivate ISO 14443 B and SR 176 tags.
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
2.3.1.10.5Maximum number of tags
The maximum number of tags in the antenna field is limited to 64 and by the physical
characteristics of the antenna.
2.3.1.10.6LED activity
The LED stays green as long as a tag was found and goes dark if the command is finished.
2.3.1.11 Switch on/off CTS
This command switches on/off the usage of CTS. If switched on, the reader only answers if CTS
is low. Ensure the hardware supports CTS before using this command
Command
Command Data
‘o&’ Data (1 byte) 00h = off; 01h = on
Answer
Answer Description
Data (1 byte) New status of CTS 00h = off; 01h = on
2.3.1.12 921 kBaud COM Select
This command switches the serial COM speed to 921 Kbaud. The actual COM speed is 968571
baud due to the reader’s crystal frequency. The host application should match this actual speed in
order to minimize transmission errors. The reader response to this command is to issue the reply
0xC0 0x03, then switch to 921 Kbaud. The host, having received this reply, switches its COM
speed to 921 Kbaud.
After a reset command, the reader re-opens communications at the stored baud rate. The 921
Kbaud setting is not stored, so the reader cannot open at this speed. The host either remembers
the original COM speed or auto-detects the reader settings.
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
2.3.1.15 Set tag type
This command sets up the reader for a specific tag type. The continuous read function will speed
up because only this type of tag is addressed. After a reset, the reader starts as defined in its
start-up configuration.
Command
Command Data
'o' ISO type (1 byte)
'a' … ISO 14443 Type A
'b' … ISO 14443 Type B
'd' … ICODE UID
'e' … ICODE EPC
'i' … ICODE
's' … SR176
't' … activate all tags
'v' ... ISO 15693
Answer
Answer Description
'OA'
'OB'
'OD'
'OE'
'OI'
'OS'
'OT'
'OV'
String of tag type
Example
Command Description
oa Sets the reader device to address ISO14443-A type tags.
Innovision Jewel tag
Innovision Jewel tag is part of ISO 14443 Type A. It can not be separately switched on/off.
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
2.3.1.16 Set Configuration Flags
This command allows setting some configuration flags just in time; no reset is needed. The values
are not stored in the EEPROM; therefore, the changed values are not available after a reset.
Command
Command Data
of flag type (1 byte)
data (1 byte)
Answer
Answer Description
Data (1 byte) Current state of changed flag.
'R' Error: Out of range
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
2.3.1.17 Set Configuration Register
This command allows setting some configuration registers just in time; no reset is needed. The
values are not stored in the EEPROM; therefore the changed values are not available after a
reset.
Command
Command Data
Og Register type (1 byte)
data (1 byte)
Answer
Answer Description
Data (1 byte) Current state of changed register.
'R' Error: Out of range [entered register value is out of range]
Example
Command Description
og0450 Answer: 50
Sets the Reset Recovery Time to 50h.
Register Types
The following table shows the Register Type with its corresponding register.
Table 8 - Register Type with Corresponding Register
Register Type Corresponding Register
00h Single shot time-out value
01h TMR low
02h TMR high
03h Reset Off Time
04h Reset Recovery Time
05h ISO 14443A Selection Time-out
06h ISO 14443B Selection Time-out
07h SR176 Selection Time-out
08h AFI
09h Modulation conductance
0Ah Threshold
0Ch Page Read Start
0Dh Page Read Number
0Eh Command Guard Time
0Fh CID
10h Internal use / Do not change
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
2.3.1.18 Set target modulation conductance register
This command allows switching to a different modulation conductance register. On startup,
modulation conductance register 0 is used.
When more than one antenna is used, it may be necessary to use different modulation
conductance values for different antennas. Switching registers does not require knowledge of the
actual values used.
Ensure that Modulation Conductance registers 1-3 are initialized before using this feature.
Command
Command Data
om Target modulation conductance register (1 byte) Valid range 00h – 03h
Answer
Answer Description
Data (2 bytes) Target modulation conductance register (1 byte); register value (1 byte)
‘R’ Error: Out of range [selected register is out of range]
2.3.1.19 Reread all registers
This command rereads and applies all register settings.
Command
Command Data
Ox none
Answer
Answer Description
Data (3 bytes) 'X' + new protocol + new baud rate
Example
Command Description
Ox Answer: X0106
New protocol
00h means ASCII and 01h means binary protocol.
New baud rate
Values of 00h-06h are valid. For baud rate values refer to
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
2.3.1.20 Antenna power on/off
This command controls the antenna power. It can be used to decrease the power consumption of
the reader.
Command
Command Data
'pon' Switch reader on
'poff' Put reader in standby mode
Answer
Answer Description
'P' Positive acknowledge
Example
Command Description
Poff Put reader in standby mode
2.3.1.20.1Power off
The reader enters standby mode. Power consumption is decreased. All tags in the antenna field
are powered off and reset. Standby mode is only entered manually.
To switch off the whole unit, pin 16 (Enable) has to be set to logic low.
2.3.1.20.2Power on
The reader leaves standby mode and is ready for the next command. Sending a tag command
(i.e. select, continuous read) the reader is powered up.
2.3.1.21 Read/Write User Port
This command sets or reads the state of the user port (pin 14) of the OEM reader device. The port
is set either as output or as input. If set to output, see notes in Jumper 2 Details, page 14
regarding
current limiting to
prevent reader damage.
Command
Command Data
'pr' None
'pw' State of user port (1 Byte)
Answer
Answer Description
Data State of user port (1 Byte)
'C' Error: Error correction fails
'F' Error: Transmission Error / No answer received
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
Example
Command Description
Pr Reads user port
pw01 Sets user port state to high
2.3.1.21.1Read port
The port read command returns the current state of the USER port.
Port state Description
00h USER port is low
01h USER port is high
2.3.1.21.2Write port
If user port is used as an output, a 1k resistor has to be fitted in series with the port pin to limit
the current, otherwise the reader device can be damaged.
Port state Description
00h Sets USER port to low
01h Sets USER port to high
02h – 7Fh RFU
80h – FFh Sends a serial data frame and checks the received frame
Sending a Data Frame
If the highest bit (MSB) is set in the State of the User Port, the command sends a serial data
frame out the USER port.
The frame includes a start bit, 8 data bits, parity bit and a stop bit.
Table 9 - Sending Serial Data Frame
Transmit
Description
Frame
Low Start bit
Low RFU
Data Bit 6 State of the User Port Bit 6
Data Bit 5 State of the User Port Bit 5
Data Bit 4 State of the User Port Bit 4
Data Bit 3 State of the User Port Bit 3
Data Bit 2 State of the User Port Bit 2
Data Bit 1 State of the User Port Bit 1
Data Bit 0 State of the User Port Bit 0
Parity Bit Even Parity Bit
High Stop Bit
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
After 2ms Guard Time the answer should be received on the User Port otherwise an error is
returned.
Table 10 - Receiving Serial Data Frame
Receive
Description
Frame
Low Start bit
Error Bit If set, an error was detected.
Data Bit 6 State of the User Port Bit 6
Data Bit 5 State of the User Port Bit 5
Data Bit 4 State of the User Port Bit 4
Data Bit 3 State of the User Port Bit 3
Data Bit 2 State of the User Port Bit 2
Data Bit 1 State of the User Port Bit 1
Data Bit 0 State of the User Port Bit 0
Parity Bit Even Parity Bit
High Stop Bit
If the Error bit is set or the Parity Bit is not correct, the Write User Port command returns an error
code.
2.3.1.22 Quiet
This command sets a selected tag into halt state. Only ISO14443 A+B and SR176 tags are
supported.
Command
Command Data
'q' None
Answer
Answer Description
'Q' Halt state successfully set.
'N' Error: No Tag in the field [addressed tag not present or not responding]
2.3.1.22.1ISO 14443 Type A
With ISO14443-3 Type A tags, the Quiet command always answers with 'Q' because the halt
command does not send any acknowledge.
In Part 4 a 'Deselect' command will be performed.
2.3.1.22.2ISO 14443 Type B
Some ISO14443 Type B tags do not support this command or do not respond. ‘Quiet’ is an ISO
14443-4 command, so it will work only if the ‘Deselect’ command is supported by the
corresponding transponder.
2.3.1.22.3SR176
With SR176 tags the Quiet command always answer with 'Q' because the completion command
Data data block (depends on tag type)
'F' Error: read failure [bad d ata or address range error]
'N' Error: No tag in field [addressed tag not present or not responding]
'O' Error: Operation mode failure
'R' Error: Out of range
Example
Command Description
rb05 Reads block 05.
2.3.1.24.1Operation mode failure 'O'
The presented tag is not ISO14443 type A, SR 176, ICode, ICode-UID and ISO 15693 compliant.
For ISO 14443 type A only MIFARE tags are supported.
This error also appears if the reader is not correctly configured.
2.3.1.24.2Out of range failure 'R'
The block address of the 'r' command is higher than 40h.
The block address of the 'r' command conflicts with other commands, therefore the block address
has to be limited to 40h.
Use the 'rb' command instead.
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
2.3.1.25 Read data (multiple blocks)
This command reads multiple data blocks on a card. The size of the returned data depends on the
tag used. The block address range depends on the tag as well.
Command
Command Data
'rd' Start block address (1 byte)
Number of blocks to read (1 byte)
Answer
Answer Description
Data data block (depends on tag type)
'F' Error: read failure [bad d ata or address range error]
'N' Error: No tag in field [addressed tag not present or not responding]
'O' Error: Operation mode failure
Example
Command Description
rd0504 Reads 4 blocks starting with block 05.
2.3.1.25.1Operation mode failure 'O'
The presented tag is not ISO14443 type A, SR 176, ICode or ISO 15693 compliant.
For ISO 14443 type A only MIFARE tags are supported.
2.3.1.26 Read reader EEPROM
This command reads the internal reader EEPROM. It contains all start-up parameters and the
device ID. Changes in the start-up settings will only go into effect after a reset of the device.
Command
Command Data
'rp' EEPROM address (1 byte) 00h … EFh
Answer
Answer Description
Data EEPROM data (1 byte)
'R' Error: Out of range failure [entered address is not valid]
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
2.3.1.27 Select
This command selects a single card in the antenna field. It can only be used in single tag mode. If
successfully executed, the command returns the UID of the selected card. The reader detects the
length of the UID automatically.
Command
Command Data
's' None
Answer
Answer Description
Data serial number
'N' Error: No Tag in the field [addressed tag not present or not responding]
Example
Command Description
S 1234567890ABCD
Select the card with UID 1234567890SABCD.
2.3.1.27.1Select a single tag
No previous continuous read is required. The command executes an automatic field reset.
Data Data block (depends on tag type)
'F' Error: Write failure [bad transmission conditions or address range error]
'N' Error: No tag in field [addressed tag not present or not responding]
'O' Error: Operation mode failure
'R' Error: Out of range
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
The presented tag is not ISO14443 type A, SR 176, ICode, ICode-UID and ISO 15693 compliant.
For ISO 14443 type A only MIFARE tags are supported.
2.3.1.29.2Out of range failure 'R'
The block address of the 'w' command is higher than 40h.
The block address of the 'w' command conflicts with other commands, therefore the block address
has to be limited to 40h.
Use the 'wb' command instead.
2.3.1.29.3Disable Read after Write
A read is done automatically after every write to ensure correct writing.
If the "disable Read after Write flag" is set no read is done, and the returned data is a 00h byte in
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
2.3.1.30 Write data (multiple blocks)
This command writes multiple blocks to a card.
Command
Command Data
'wd' Start block address (1 byte)
Number of blocks (1 byte)
Data (n bytes)
Answer
Answer Description
Data Data block (depends on tag type)
'F' Error: Write failure [bad transmission conditions or address range error]
'N' Error: No tag in field [addressed tag not present or not responding]
'O' Error: Operation mode failure
Example
Command Description
wd050211223344556
67788
Writes data 11223344 on block 05 and 55667788 on block 06.
2.3.1.30.1Operation mode failure 'O'
The presented tag is not ISO14443 type A, SR 176, ICode or ISO 15693 compliant.
For ISO 14443 type A only MIFARE tags are supported.
2.3.1.30.2Disable Read after Write
A read is done automatically after every write to ensure correct writing.
If the "disable Read after Write flag" is set no read is done, and the returned data is a 00h byte in
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
2.3.1.31 Write EEPROM
Writes to the internal reader EEPROM. It contains all start-up parameters and the device ID.
Changes to the start-up settings will only go into effect after a reset of the device.
Command
Command Data
'wp' Address (1 byte), valid range 0Ah - EFh
Data (1 byte)
Answer
Answer Description
Data EEPROM data (1 byte)
'F' Error: Read after write failure
'R' Error: Out of range failure [entered address exceeds the address range]
Example
Command Description
wp0A01 Set EEPROM address 0A (Station ID) to 01h
2.3.1.32 Reset
This command executes a power on (software) reset. New configuration settings will be loaded. It
resets all tags in the antenna field.
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
2.3.1.33 Field Reset
The field reset switches off the antenna field for the specified duration. All tags need a certain
amount of time to initialize before a command can be processed. The second byte specifies the
field recovery time.
Command
Command Data
'y' Off time in milliseconds (1 byte)
Field recovery time in milliseconds (1 byte)
Answer
Answer Description
'Y' After the field reset the reader sends back a ‘Y’ to acknowledge the command.
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
2.3.2 ISO 14443 Type A (MIFARE ®) only commands
2.3.2.1 Increment value block (credit)
Increments a value block with a defined value. A read is done automatically after a write to verify
data integrity. The command fails if the source block is not in value block format. A previous login
is needed to access a block.
Command
Command Data
'+' Block # (1 byte); Value (4 bytes)
Answer
Answer Description
Data Value (4 bytes)
'I' Error: value block failure
'F' Error: increment failure or inability to read after write
'N' Error: No tag in field [addressed tag not present or not responding]
'O' Error: Operation mode failure [tag is not ISO14443 type A compliant]
Example
Command Description
+0400000001 Adds 1 to value block 4
+0500000100 Adds 256 to value block 5
2.3.2.1.1No value block 'I'
Specified block does not match the value format. The value block is corrupted. A backup block
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
2.3.2.2 Decrement value block (debit)
Decrements a value block with a defined value. A read is done automatically after the write to
verify data integrity. The command fails if the source block is not in value block format. A previous
login is needed to access a block.
Command
Command Data
'-' Block (1 byte)
Value (4 bytes)
Answer
Answer Description
Data Value (4 bytes)
'I' Error: value block failure
'F' Error: decrement failure or inability to read after write
'N' Error: No tag in field [addressed tag not present or not responding]
'O' Error: Operation mode failure [tag is not ISO14443 type A compliant]
Example
Command Description
-0400000001 Subtract 1 to value block 4
-0500000100 Subtract 256 to value block 5
2.3.2.2.1No value block 'I'
Specified block does not match the value format. The value block is corrupted. A backup block
can be used to restore the correct value.
2.3.2.3 Copy value block (backup)
Copies a value block to another block of the same sector. A read is done automatically after the
write to ensure data integrity. Used for backup and error recovery. A previous login is needed to
access a block.
Command
Command Data
'=' Source block (1 byte)
Target block (1 byte)
Answer
Answer Description
Data New value of target block (4 bytes).
'I' Error: value block failure
'F' Error: copy failure or inability to read after write
'N' Error: No tag in field [addressed tag not present or not responding]
'O' Error: Operation mode failure [tag is not ISO14443 type A compliant]
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
Example
Command Description
=0405 Copy value block 4 to block 5
=0506 Copy value block 5 to block 6
2.3.2.3.1Target block
The target block does not need to be a valid value block. If the source block is not in value format,
the command fails.
2.3.2.3.2No value block 'I'
Source value block is not in a valid value block. The value block is corrupted. A backup block can
be used to restore the correct value.
2.3.2.4 Login (authenticate tag)
Performs an authentication in order to access one sector of a MIFARE card. Only one sector can
be accessed at a time.
Command
Command Data
'l' Sector (1 byte), valid range 00h - 3Fh
Key type (1 byte)
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 key type A using stored
key (00h … 1Fh)
30h … 4Fh authenticate with key type B using stored
key (00h … 1Fh)
Key (6 bytes) / <CR> (1 byte), optional
By transmitting <CR> instead of the key data
authentication is done with manufacturer’s transport
keys (A0A1A2A3A4A5h, B0B1B2B3B4B5h,
FFFFFFFFFFFFh).
Answer
Answer Description
data Login status (1 byte)
'L' Login success
'F' Error: General failure
'N' Error: No tag in field [addressed tag not present or not responding]
'O' Error: Operation mode failure [tag is not ISO14443 type A compliant]
'R' Error: Out of range [entered key type or the sector is out of range]
'X' Error: Authentication failed
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
Example
Command Description
l02AA<CR> Authenticate for sector 2, using the transport key A
(A0A1A2A3A4A5h, key type A)
l3FBB<CR> Authenticate for sector 63, using the transport key 2
(B0B1B2B3B4B5h, key type B)
l04FF<CR> Authenticate for sector 4, using the transport key 3
(FFFFFFFFFFFFh, key type A)
l0FAAFFFFFFFFFFFF Authenticate for sector 15, using key FFFFFFFFFFFFh, key type A
l0E14 Authenticate for sector 14, using EEPROM key 4, key type A
l0530 Authenticate for sector 5, using EEPROM key 0, key type B
l0732 Authenticate for sector 7, using EEPROM key 2, key type B
l0110 Authenticate for sector 1, using EEPROM key 0, key type A
l0ABBFF12FFFFFF35 Authenticate for sector 10, using key FF12FFFFFF35h, key type B
2.3.2.4.1<CR>
Three transport keys are implemented to access cards quickly.
By transmitting <CR> instead of the key, the reader module uses the transport keys for the login
procedure.
Command Description
LxxAA<CR> Authenticate for sector xx, using the transport key 1
(A0A1A2A3A4A5h, key type A)
LxxBB<CR> Authenticate for sector xx, using the transport key 2
(B0B1B2B3B4B5h, key type B)
LxxFF<CR> Authenticate for sector xx, using the transport key 3
(FFFFFFFFFFFFh, key type A)
2.3.2.4.2Login with key data from EEPROM
Each key stored in the reader EEPROM can be used as type A or type B key. To use a key as
type A, the value 10h must be added to the key index. 30h must be added to use a key as type B.
2.3.2.4.3Usage of key A, key B
MIFARE cards support two different crypto keys for each sector. Each key is 32 bits long and is
stored in the sector trailer (last block of the sector) on the card. It is possible to set different access
rights for each key.
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
2.3.2.5 Read value block
Reads a value block. The command checks if data is in value block format. The read value block
command needs a successful login.
Command
Command Data
'rv' Value block (1 byte)
Answer
Answer Description
Data Read value (4 bytes)
'F' Error: General failure due to bad transmission conditions or address not authenticated
'I' Error: value block failure
'N' Error: No tag in field [addressed tag not present or not responding]
'O' Error: Operation mode failure [tag is not ISO14443 type A compliant]
Example
Command Description
rv04 Reads value of block 4.
2.3.2.5.1No value block 'I'
The value read back after the write value command is not a value block. Data was corrupted.
2.3.2.6 Write value block
This command formats a block as a value block containing a 32-bit value. Value blocks need a
complete 16-byte block due to redundant storage. A successful login is required to run the
command.
Command
Command Data
'wv' Value block (1 byte); Value (4 bytes)
Answer
Answer Description
Data Written value (4 bytes)
'I' Error: value block failure
'F' Error: write failure due to bad transmission conditions or address not authenticated
'N' Error: No tag in field [addressed tag not present or not responding]
'O' Error: Operation mode failure [tag is not ISO14443 type A compliant]
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
Example
Command Description
wv05010055EF Writes value 010055EFh to block 5.
2.3.2.6.1Invalid value 'I'
The value read back after the write value command is not a value block. The data written was
corrupt.
2.3.2.6.2Writing values
The write value block command is designed to create blocks in value format. This command
requires write access to the specified block. Using this instruction for ticketing operations is not
recommended. For ticketing applications, special instructions (Increment/Decrement/Copy) are
available.
2.3.2.6.3Disable Read after Write
A read is done automatically after every write to ensure correct writing.
If the "disable Read after Write flag" is set no read is done, and the returned data is a 00h byte in
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
2.3.3 Key Management
The Key Management is able to store up to 32 keys and is also able to manage 3 different key
types. If no key is available to login into the reader, it is possible to reset the key table without any
authentication.
Key type Description
01 my-d™ secure key
02 DES key
03 MIFARE key
2.3.3.1 Authenticate to reader
This command logs into a reader. Only my-d™ secure and DES keys are allowed to login into
reader. After successful log in the key table of the reader can be changed. The authentication
does 2 two-pass authentications, defined in ISO 9798 part 2, within two steps. Following
commands need a prior log in:
Update key
Update key access rights
Change key type
Reset key table
Command
Command Data
Step 1: 'ar' Option x1h (1 byte)
Key type (1 byte)
Key index (1 byte)
Step 2: 'ar' Option x2h (1 byte)
Random number key Management (8 bytes)
MAC key Management (8 bytes)
Answer
Answer Description
Step 1 Random number reader (8 bytes)
Step 2 MAC reader (8 bytes)
This command reports the key status of the reader. The reader lists for each key the key
information. This command is used to inform the key management about the key status. The first
byte of the response lists the number of stored keys.
Command
Command Data
‘it’ key type (1)
Answer
Answer Description
my-d™ secure
Data
DES Data Number of keys (1 byte)
MIFARE Data Number of keys (1 byte)
More than 255 bytes
If the amount of data exceeds 255 bytes, than the answer is divided into more frames.
If a frame follows, the Number of keys byte is extended with a set MSB (80h).
Number of keys (1 byte)
[Key information (8 bytes)]
Free User part (1 byte)
Project ID (3 bytes)
Logical Sector ID (1 byte)
Key type (1 byte)
KVV (2 bytes)
[Key information (10 bytes)]
Option byte (1 byte)
Free User part (9 bytes)
[Key information 10 bytes)]
Free User part (10 bytes)
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
2.3.3.4 Reset key table
The reset key table clears all key entries in the reader. Afterwards the default keys are loaded
automatically.
It is only allowed to reset the key table after a successful authentication to the reader.
If no keys are available to login into the reader, it is possible to reset the key table without an
authentication.
Command
Command Data
‘rt’ None
Answer
Answer Description
‘RT’ In case of success
2.3.3.5 Update key access rights
This command is able to change the access rights of a key.
It is only allowed to change the access rights after a successful authentication to the reader with a
key permitted to change the access rights.
Command
Command Data
‘ua’ Key type (1 byte)
Key index (1 byte)
Access rights (2 bytes)
Answer
Answer Description
Data Access rights (2 bytes). Higher Byte has to be sent first.
Access rights
For more detailed information refer to Get Key Access Rights, page 78.
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
2.3.3.7 Update key
The update key command stores, modifies or deletes a key in the reader key table. A key is
identified with its key information data. The key information data has to be unique within the same
key type.
If a key is erased the key data must be dropped.
It is only allowed to update the key type after a successful authentication to the reader with a key
permitted the necessary rights.
Command
Command Data
my-d™ secure
‘uk’
DES
'uk'
MIFARE ®
'uk'
Key type 01h (1 byte)
Action (1 byte)
Key information data (8 bytes)
Free User Part (1 byte)
Project ID (3 bytes)
Logical Sector ID (1 byte)
Key type (1 byte)
KVV (2 bytes)
Key Data (8 / 16 bytes)
Key type 02h (1 byte)
Action (1 byte)
Key information data (10 bytes)
Option (1 byte)
Free user part (9 bytes)
Key Data (16 bytes)
Key type 03h (1 byte)
Action (1 byte)
Key information data (10 bytes)
Free user part (10 bytes)
Key Data (16 bytes)
Answer
Answer Description
Data Index of key (1 byte)
Action
The Action byte defines the action of the key.
Action Description
Axh Add / Update key
5xh Delete Key
x1h my-d™ secure key A
x2h my-d™ secure key B
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
my-d™ secure key
For more detailed information on key information data refer to Infineon documentation.
DES key option byte
Bit Description
0 0 … 16 byte key
1 … 8 byte key
1 – 7 RFU
In case of an 8-byte key, the first 8 bytes of the key data are valid.
MIFARE key
Only the first 6 bytes of key data are valid.
Number of stored keys
The key management is able to store up to 32 keys.
Encryption
Key Data for DESFire and MIFARE keys has to be encrypted with the login key in CBC mode.
my-d™ S keys are enciphered every 8 byte block separately without CBC mode.
CBC mode
The data stream has to be divided into blocks of 8 bytes. The last enciphered block has to be
XORed with the next plain block.
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
2.3.4 my-d™ secure
Note that ISO 14443 tags do not support the addressed mode. Bit 5 and 6 of the option byte are
not used with ISO 14443 tags. The ISO 14443 tag only works in selected mode.
2.3.4.1 Abort KTT upload
This command aborts the Prepare for KTT ‘ut’ command, if the reader is in prepare for KTT
awareness mode.
Command
Command Data
‘*’ None
Answer
Answer Description
00h Prepare for KTT successfully aborted
‘F’ Prepare for KTT was not active
No response Key uploading is in progress
2.3.4.2 Authenticate to sector
The Authenticate to sector command sets up a secured transmission to a transponder.
Command
Command Data
‘as’ Option byte (1 byte)
[UID (8 bytes)]
Key page (1 byte)
Key index (1 byte)
Counter page (2 byte)
Diversification data (8 bytes)
Answer
Answer Description
‘L’ In case of success
Option byte
The option byte defines the general behavior of the command.
Note: ISO 14443 tags are only working in selected mode.
Bit Description
7 RFU
6 If set the tag is in addressed mode. The UID is following as first 8 bytes after
the option byte. The my-d™ frame is following.
5 If set the tag is selected. No UID is needed.
4 – 0 RFU
This byte is mandatory. It will define the length of the my-d™ data frame sent to the reader. The
MAC, CRC and the framing overhead is not included.
Option byte
The option byte defines general behavior of the command.
Note that ISO 14443 tags are only working in selected mode.
Bit Description
7 If set the MAC is calculated and added to the frame
6 If set the tag is in addressed mode. The UID is following as first 8 bytes after
the option byte. The my-d™ frame is following.
5 If set the tag is selected. No UID is needed.
4 – 0 RFU
Data
Data is sent as my-d™ plain command. It contains only data that is processed by the MAC
calculation. If the tag is addressed, only valid with ISO 15693 tags, with its UID the first 8 bytes
are interpreted as UID and not included into the MAC calculation.
MAC calculation is done automatically if according flag is set. The ISO 15693 or the ISO 14443
frame is completed and the CRC is computed and added automatically.
The commands Write Page, Restricted Write and Write Byte do not need any MAC verification for
the answer.
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
2.3.5 ‘t’ Command – Data Frame Transfer
This command allows card-specific communication. The tag type has to be specified first – see
Set tag type, page 53.
Then issue a
calculated as defined in ISO14443-4, and used instead of the TMR timer if the Extended Protocol
flag is set – see Extended Protocol (default 1), page 27. If no FWT is found, TMR is used by
default.
Other cons
high-speed select command. If successful, the frame waiting time (FWT) is
id
erations when using the ‘t’ command
Extended Protocol Flag – bit 6, Protocol configuration 1 register
This flag switches ISO14443-4 handling, including error handling, on or off.
ISO14443-4 Error handling – bit 7, Protocol configuration 2 register
This flag switches ISO14443-4 error handling on or off. Error handling always uses the
TMR time-out. The Extended Protocol Flag (above) has to be selected for Error Handling
to work.
Receiving more than 256 bytes
The PCB byte of ISO 14443-4 frames contains a chaining bit. This bit is set or has to be set
if the number of data does not fit in a single block. Refer to ISO 14443-4 for more detailed
information about the chaining mechanism.
Huge Data Mode
In huge data mode the option and length byte of the transfer data command will be turned
off to enable larger data transmission. A default value of 0Fh for the option byte will be
used. The full 512 byte data buffer is used in this mode, enabling chaining up to 512 data
bytes. In this mode, the answer comprises two length bytes (16bit) followed by the card
response. If using ASCII mode, a trailing <CR> byte is mandatory.
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
Answer
Answer Description
Uplink length+Data Response of card
'C' Error: Collision
'F' Error: General failure
'N' Error: No tag in field [addressed tag not present or not responding]
'O' Error: Overflow
2.3.5.1Normal Mode
Downlink length
The downlink length byte contains only the data length. This byte may not be zero. The CRC is
computed automatically and is not included in the downlink length.
CRC generation – see Option Byte - ISO 14443
or Option Byte – ISO 15693.
CRC generation is described in ISO 14443-3 Appendix B. If enabled, interpret the CRC with the
LSB first. If CRC checking and generation is disabled, the maximum size of data to receive and
transmit decreases to 253 bytes.
Option Byte - ISO 14443
This byte contains the transfer options for ISO 14443 and I-Code. For ISO 14443 type B, I-Code
and SR176 tags, only bits 2 and 3 are interpreted. The crypto unit is only activated after a
successful login.
Bit Description
0 If set, parity generation is enabled
1 If set, parity is even, otherwise parity is odd
2 If set, CRC generation for transmission is enabled
3 If set, CRC checking for receiving is enabled
4
5, 6, 7 Bit framing. Number of bits of the last byte to transmit.
If set, the cry
sequence switches on the crypto unit correctly.
pto unit is deactivated prior to start of transmission. Only the login
Option Byte - ISO 15693
This byte contains the transfer options for ISO 15693.
Bit Description
7 If set the CRC is deactivated for transmit.
6 If set the CRC is deactivated for receive.
5 - 0 RFU
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
Receiving the answer
The reader switches to receiving mode automatically after data is sent. If no data is detected the
reader returns the error 'N' no tag in field. If the time-out value (registers 10h and 11h) is too short,
the reader will abort the tag detection process before the answer is received. Increase the time-out
value and the communication will work.
Answer = 'C' - Collision
If a collision is detected, (more than one tag in the field) the anti-collision sequence is required
before accessing the tags. Anti-collision is a complex procedure. The use of Multitag List and
Multitag select is recommended – see Multi-Tag Selection / List, page 50.
Answ
er = Uplink length + Data
This would be the expected response
Examples for ISO14443-A tags (in ASCII mode)
Select sequence for a single tag in the field – refer to ISO14443-3 specification for details
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
2.3.5.2.3Option Byte
This byte contains common transfer options.
Bit Description
0, 1, 3 Bit framing. Number of bits of the last byte to transmit.
4 – 7 RFU
2.3.5.2.4Transmit Byte
This byte contains transmit transfer options.
Bit Description
0 If set, the transmission of data is activated.
1 If set, parit y generation is enabled
2 If set, parit y is odd, otherwise parity is even
3 If set, CRC generation for transmission is enabled
4 If set, an 8-bit CRC is calculated, otherwise a 16-bit CRC is calculated.
5 If set, CRC is calculated according to ISO 14443 B, otherwise it is calculated
according to ISO 14443 A.
6, 7 RFU
2.3.5.2.5Receive Byte
This byte contains receive transfer options.
Bit Description
0 If set, the receiving of data is activated.
1 If set, parit y generation is enabled
2 If set, parit y is odd, otherwise parity is even
3 If set, CRC generation for receiving is enabled
4 If set, an 8-bit CRC is calculated, otherwise a 16-bit CRC is calculated.
5 If set, CRC is calculated according to ISO 14443 B, otherwise it is calculated
according to ISO 14443 A.
6, 7 RFU
2.3.5.2.6CRC Preset LSB
This byte contains the LSB of the CRC preset.
2.3.5.2.7CRC Preset MSB
This byte contains the MSB of the CRC preset.
2.3.5.2.8CRC generation
CRC generation is described in ISO 14443-3 Appendix B.
The CRC must be interpreted with LSB first.
The PCB is used to distinguish between three different block types (Information, Receive ready
and Supervisory) as well as defining if CID is present and conveying block-related flags.
CID – Card Identifier Byte [optional]
4-bit logical card address in the range of 00h to 0Eh, 0F is RFU.
NAD – Node Address Byte [optional]
Should be compliant to NAD as defined in ISO 7816-3.
INF – Information Field [optional]
Commands and data mainly used in the application.
EDC – Error Detection Code [mandatory]
EDC is defined as a 16-bit CRC. The reader calculates the CRC automatically (refer to section
2.3.5.2.3 Option Byte, Page 93).
1 Block formats - Example
.
Description Data stream
I-Block (no CID, no NAD) Application level command 02 INF EDC
I-Block (CID=05, no NAD) Application level command 0A 05 INF EDC
R-Block (no CID, no NAD) Acknowledged A2 EDC
R-Block (CID=06, no NAD) Not acknowledged BA 06 EDC
After selecting a tag, additional parameter selection is done by the RATS sequence.
Command Answer
t02 0F E0 20 (send RATS) ATS bytes (refer to ISO 14443-4 section 5.2)
2.3.6.3 ISO-B tag manual activation sequence - Example
For single tag applications
Command Answer
t03 0C 05 00 08
(REQB, 1 time slot)
0C 50 34030F07 63223344000002
For multi-tag applications: As above, use Multi-Tag List.
To select a specific tag (after sending REQB)
Command Answer
t09 0C 1D 34030F07 00 02 01 00
01 00
2.3.6.4 Using SLE66CLX320P - Example
Since the SLE66CLX320P supports chip functionality, the transfer command must be used. To
set up a communication with the tag, the tag must be appropriately initialized. First the card must
be selected and then it is initialized sending the ATS. Afterwards the application specific
commands can be issued.
The following table describes the initialization of a SLE66CLX320P:
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
2.3.6.5 Using ASK GTML - Example
To work with the ASK GTML tag, the NoRxSOF flag has to be set to 1.
The following table lists 2 examples:
Command Answer
t03 0C 00 0B 7F APGEN without ATR
t04 0C 00 0B 3F 80 APGEN with ATR
2.3.6.6 Forcing higher baud rates - Example
To force higher baud rates use the following sequence.
Command Description
oa Select tag type
s Select tag
t02 0F E0 80 RATS
t03 0F D0 11 0A PPS
h38 Force reader to use 256 Bytes frames
h24 Force reader to use 424kBd
2.3.6.7 Using EAS with I-Code - Example
To get the EAS answer from an I-Code tag enable the EAS bits on page 3 and send the following
command with deactivated receiving CRC calculation:
Command Description
oi Preselect I-Code
t06 04 E0 00 00 00 00 00 EAS command of I-Code with Family Code 00h and Application
Identifier 00h.
2.3.6.8 Examples: How to send ISO 7816 commands?
To work with ISO 7816 commands, the tag has to be set to ISO 14443-4 mode using the high
speed select command. The data of the transfer data command is a combination of ISO 14443-4
block format and ISO 7816 command. First the ISO 14443-4 frame data has to be specified (refer
to ISO 14443-4): PCB [CID] [NAD] … PCB is mandatory and the other data bytes are optional.
After the block format data of the ISO 14443-4 the ISO 7816 command has to be specified (refer
to ISO 7816-4):
Definition of the ISO 7816 GetChallenge command:
CLA INS P1 P2 Lc Data Le
00h 84h 00h 00h Empty Empty Maximum length of expected
The following table lists the example with an expected response length of 8:
HF Multi ISO RFID Reader User Manual, Firmware V1.4 1508-USM-00-0-04
2.3.7 ‘e’ command – SAM data frame transfer
This command sends a custom data block to a SAM. Refer to ISO/IEC 7816 for more detail.
Note: The SAM interface hardware does not support error repetition and does not check the parity
bit. Inverse convention cards are also not supported. T=0 is not supported for non-ISO standard
speeds.
There are two versions of this command. A flag bit in the option byte defines the command
version. Version 1 is the earlier one, now deprecated. Version 2 now supports ISO/IEC 7816
timeouts (BWT, CWT, WWT) both manual and automatic, TPDU interface for T=0, T=1 and a full
frame length with buffer mechanism
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
2.3.7.1 Downlink length – Version 1 & Version 2 (LSB)
The Downlink length indicates only the data length. It does not include the other header bytes,
such as option and transmission factor. For Version 2 this is the LSB byte of the Downlink length.
2.3.7.2 Option byte – Version 1 (deprecated)
This byte contains the transfer options for Option 1
Table 11 - Version 1 (Option Byte)
Bit Description
0 Start communication
1 End communication
2 Cold reset
3 RFU
4 T1 length parsing
5 Warm reset
6 T=0 procedure byte 60h processing
7 0h – Version 1
Start communication
If the start communication flag is set, the command responds with an ATR from the SAM. If errors
occur, the SAM is automatically switched off and the BCC of the ATR is not checked.
End communication
Do not remove the SAM until End communication is sent.
Cold reset
If cold reset is set, the command responds with an ATR from the SAM after the cold reset of the
SAM is complete. In this case, the BCC of the ATR is not checked.
T1 length parsing
If T1 length parsing is set, the length of a T1 frame is checked so there is no additional timeout
needed to get all the characters. This only works for frames with 1 byte LRC, but not with 2 bytes
CRC.
Warm reset
If warm reset is set, the command responds with an ATR from the SAM after the warm reset of
the SAM is done. In this case, the BCC of the ATR is not checked.
T=0 procedure byte 60h processing
If set, the procedure byte 60h of the T=0 protocol is automatically processed.
This command starts a transaction with the SAM and returns the received data.
Timeout and return length depends on used protocol type and option byte.
1h Activation
This command activates the SAM and returns an ATR. If an error occurs, the SAM is
automatically deactivated.
Timeout, transmission factor and return length are not used.
2h Deactivation
This command deactivates the SAM. Do not remove the SAM until this command is sent.
Timeout, transmission factor and return length is not used.
3h Warm reset
This command makes a warm reset and returns an ATR. If an error occurs, the SAM is
automatically deactivated.
Timeout, transmission factor and return length is not used.
1508-USM-00-0-04 HF Multi ISO RFID Reader User Manual, Firmware V1.4
Fh T=1 APDU implementation
This command performs all of the wrapping for APDU message structures, using the T=1 block
transmission protocol as detailed in ISO 7816-3. The ‘data’ field of the ‘e’ command comprises
just the APDU Header [CLA, INS, P1, P2] and the Body [Lc, Data, Le] and the response APDU
comprises the Body [Data] and Trailer [SW1, SW2] – see ISO 7816-4.
Protocol – bits 4, 5 (The protocol flags are only used for the transaction command.)
0h T=0
This protocol type supports a full TPDU interface.
Timeout is used as WWI value if the manual timeout flag is set, otherwise the timeout is
automatically taken from the ATR.
Return length is used.
1h T=1
For T=1 protocol include the frame in the data field.
Timeouts are used as BWI/CWI values if the manual timeout flag is set, otherwise the
timeouts automatically are taken from the ATR.
Do not use return length.
2h RAW
This protocol type uses a fixed timeout of WT = 9600etu and is only supported in the
default speed (F/D=1). [NB If a zero return length is specified, the reader waits 9600etu
after the last received character before returning the reply. Therefore, it is recommended to
specify the return length (if known) in order to avoid any delay]
Send the PPS command with this protocol type.
Timeout is not used. Return length is used.
3h RFU
Do not use the RFU value.
Manual timeouts – bit 6
If set, the value of the timeout byte is used for T=0 and T=1 protocol; otherwise the timeouts are
automatically taken from the ATR.
2.3.7.4Time-out
Version 1
The time-out byte is used as the communication time-out between two characters. One time slice
is approximately 9.6ms. If setting the timeout value to zero, use a maximum timeout of 3.6
seconds. Use the TMR timeout until the first character is received.
Version 2
The timeout byte represents the WWI value for T=0 protocol and BWI/CWI values for the T=1
protocol. BWI and CWI are encoded in the same way as in ATR. (See ISO/IEC 7816-3)
These values are only used if the manual timeout flag is set – see Table 12 - Version 2 (Option
By