2 STARTUP AND TESTING THE READER DT1 .............................................................. 6
3 AEG ID INSTRUCTION SET .......................................................................................... 6
3.1 General ..................................................................................................................................................... 6
3.1.2 Output format .................................................................................................................................... 7
3.1.2.1 Instruction specific output ........................................................................................................... 7
3.1.2.2 Output after changing a parameter .............................................................................................. 7
3.1.2.3 Output at parameter query ........................................................................................................... 8
3.2.8 WE – write EEPROM ...................................................................................................................... 15
3.2.9 VER – version .................................................................................................................................. 15
3.3 Instructions for reading settings .............................................................................................................. 16
3.3.1 CE – convert error code .................................................................................................................... 16
3.3.2 CID – suppression of ID Codes .......................................................................................................... 16
3.3.3 CN – suppression of No Reads .......................................................................................................... 17
3.3.5 LAA – LED automatic activity .......................................................................................................... 18
3.3.6 MC – mirror code ............................................................................................................................. 18
3.3.7 RA – resend last answer .................................................................................................................... 19
3.3.8 TSC – time show code ...................................................................................................................... 19
3.3.9 TOR – maximum reading time .......................................................................................................... 19
3.3.10 SI – set iso standard ......................................................................................................................... 20
3.3.11 VSAVE – variables save ................................................................................................................... 20
3.3.12 VS – variables show ......................................................................................................................... 20
3.4 General reading instructions .................................................................................................................... 21
3.4.1 GA – get active ................................................................................................................................. 21
3.4.2 GT – get tag ..................................................................................................................................... 21
3.4.3 HD – halt detected code .................................................................................................................... 22
3.4.4 MD – mode of operation ................................................................................................................... 22
3.6 ISO 15693 instructions............................................................................................................................ 34
3.6.1 AFI – application family identifier .................................................................................................... 34
3.6.8 RTR – reset to ready ........................................................................................................................ 36
3.6.9 SF – set flag .................................................................................................................................... 36
3.6.10 WA – write AFI ............................................................................................................................... 37
• Connect the reader with the USB interface from your notebook or pc
• In the device manager there will appear a new device (Silicon Labs CP210x USB to UART
Bridge)
• In the brackets you see the port number of the device (e.g. COM5)
• Open the “Demo Terminal“ on the CD
• Open the menu “Settings”
• You have to set the following settings: baud rate 19200 baud, 8 data bits, no parity, 1 stop bit,
no flow control.
• Send the command „VER <CR>“ to the reader. The reader answers with the actual firmware
version (e.g. AEG ID Multi-ISO V2.034).
• Send the command „SI <SP> 0 <CR>“ if you want to read a ISO 14443A transponder. If you
want to read a ISO 15693 transponder you have to send the command „SI <SP> 1 <CR>“.
• Send the command “MD <SP> 0 <CR>” to the reader. The reader sends No Read messages
(XXXXXXXX), while there is no transponder in the antenna field available. If there is a transponder present in the antenna field the reader sends its serial.
3 AEG ID instruction set
3.1 General
The command set described below defines the transfer of data on the serial interface.
The commands consist of a command code and optionally of a parameter value. Commands are terminated by the control character <CR> (0Dh). The control character serves as command line terminator.
Command codes and parameters,including all letters and numerical values, are principally transmitted as a sequence of ASCII characters (the value 255 (decimal) consequently as 32H, 35H, 35H; the
command RST as 52H, 53H, 54H).
All numbers (e.g. sectors, blocks) are in the hexadecimal format (see chapter 9).
With the command CS you can change to the alternative instruction set. If the reader is set to alternative instruction set, you can change back to the AEG ID instruction set via the command AEG (see
chapter 5.3.3).
3.1.1 Entering instuctions
The protocol format is as follows
Command <SP> parameter <CR>
The space character <SP> separates commands from parameters and the <CR> character acts as
command line terminator.
For commands without parameter values (e.g. GT ) the <SP> character and parameter values are
omitted. The command line is as short as this:
Command <CR>
3.1.2 Output format
Generally, every input terminated by <CR> is acknowledged by the reader. The following response
protocols are different:
3.1.2.1 Instruction specific output
After entering a valid command without a parameter value, the system answers by sending the parameter value and <CR>. Example:
Command: GT <CR>
Output: Transponder number or No Read <CR>
3.1.2.2 Output after changing a parameter
After entering a valid command together with a parameter value, the system answers by sending the
parameter value and <CR>. Example:
You have to unplug the device and plug the device in again to use the new setting. Don’t forget to use the
command VSAVE to save the new setting.
If the reader is in HID mode, you can not send any commands to the device. Because of that you have to
use the Set-Up card – interface to switch the reader back from HID mode to serial interface mode.
1. Plug out the reader
2. Place card no reader
3. Plug in reader into USB-port
4. Wait for the beep tone from reader
5. Plug out reader
6. Remove card from reader
3.2.4 KL – keyboard language
With the command KL you can configure the language of the keyboard in HID mode.
With CE=1 the reader sends no error codes, except the no read error, during the md0 mode or the
commands Get Tag.
With CE=2 the reader sends the normal no read error (XXXXXXXX) if there is an error with the select or anticollision.
This command has only effect in the ISO 14443A standard.
Input format: CE <SP> parameter <CR>
Output (example): 0 <CR>
Parameter:
PARAMETER FUNCTION
0 No suppression
1 Suppression of error codes
2 Replacement with XXXXXXXX
3.3.2 CID – suppression of ID Codes
In the MD0 mode with CID=1 only the first of in succession identical transponder numbers is output
on the serial interface. The possibly following identical transponder numbers are suppressed, as long
as no new valid transponder number is received, processed and output. The get tag command is not
influenced by this command. NoReads do not influence the data filtering.
Input format: CID <SP> parameter <CR>
Output (example): 0 <CR>
Parameter:
PARAMETER FUNCTION
0 No suppression
1 Suppression of equal transponder numbers
Example: A, B, C are different transponder codes, N is NoRead error code:
The command RA resends the last answer sent by the reader.
Input format: RA <CR>
Output (example): 0 <CR>
3.3.8 TSC – time show code
With the command TSC you can define the time in ms, after that the transpondercode is shown again,
when the CID parameter is set to 1. If TSC is 00, the code is not shown a second time.
Input format: TSC <SP> parameter <CR>
Output (example): 00 <CR>
PARAMETER FUNCTION
00 TSC is not active
01..FF TSC time in ms
3.3.9 TOR – maximum reading time
TOR is the timeout time for the reader. TOR is used in operation mode 2 as maximum gating time for
a reading process. The length of the maximum gating time results from the equation gating_time =
TOR * TB.
The time constant TB (time base) has always the default value 100ms.
Note: The function VS shows just the settings that are used in the actual ISO standard.
1
just available in the ISO 14443A standard
2
just available in the ISO 15693 standard
3.4 General reading instructions
3.4.1 GA – get active
The command GA causes one reading cycle. There are different cycles for different transpondertypes.
This command is only available in the ISO 14443A standard.
Mifare 4 byte UID: request (REQA)
anticollision
select
Mifare 7 byte UID: request (REQA)
anticollision level 1
select 1
anticollision level 2
select 2
The reader answers the UID of an active (non halt) transponder.
Input format: GA <CR>
Output (example): 625E562A <CR>
3.4.2 GT – get tag
With the command GT you select a transponder. The command GT causes one reading cycle. There
are different cycles for different transpondertypes.
With the command RD you can read out a page of the transponder. The command executes internally the
commands get tag, if using mifare 1K/4K log in (with the key attuned to KM) and the reading command.
Input format ISO 15693 one block: RD <SP> parameter 2 <CR>
Input format ISO 15693 multiple blocks: RD <SP> parameter 2 <SP> parameter 3 <CR>
Output: parameter 4 <CR>
Parameters:
PARAMETER 1 FUNCTION
1 or 2 characters sector
PARAMETER 2 FUNCTION
1 or 2 characters block/start block
PARAMETER 3 FUNCTION
1 or 2 characters end block
PARAMETER 4 FUNCTION
32 characters data (mifare 1K/4K)
8 characters data (ultralight)
up to 64 charac-
data (ISO 15693)
ters
Note: The ISO 15693 regulates just the maximum length of one block. If there is no information
about the block size available in the ISO 15693 transponder, you can set this value with the command
“BS - block size” (chapter 3.6.2).
With the command RDM you can read out a page of the transponder. The reading command is executed
single. You have to do a get tag first. If you are using a mifare standard 1K/4K you have to log in, too.
Input format ISO 15693 multiple blocks: RD <SP> parameter 2 <SP> parameter 3 <CR>
Output: parameter 4 <CR>
Parameters:
PARAMETER 1 FUNCTION
1 or 2 characters sector
PARAMETER 2 FUNCTION
1 or 2 characters block/start block
PARAMETER 3 FUNCTION
1 or 2 characters end block
PARAMETER 4 FUNCTION
32 characters data (mifare 1K/4K)
8 characters data (ultralight)
up to 64 charac-
data (ISO 15693)
ters
Note: The ISO 15693 regulates just the maximum length of one block. If there is no information
about the block size available in the ISO 15693 transponder, you can set this value with the command
“BS - block size” (chapter 3.6.2).
With the command WD you write one page to the transponder. The command executes internally the
commands get tag, log in (with the key attuned to KM) and the writing command.
Input format ISO 15693: WD <SP> parameter 2 <SP> parameter 3 <CR>
Output (example): ACK <CR>
Parameters:
PARAMETER 1 FUNCTION
1 or 2 characters sector
PARAMETER 2 FUNCTION
1 or 2 character block
PARAMETER 3 FUNCTION
32 characters mifare 1K/4K
8 characters ultralight
up to 32 charac-
ISO 15693
ters
Note: The ISO 15693 regulates just the maximum length of one block. With the write instruction you
can write multiple blocks at once. The datalenght has to be at least the block size or a multiple of the
block size. If there is no information about the block size available in the ISO 15693 transponder,
you can set this value with the command “BS - block size” (chapter 3.6.2).
With the command WDM you write one page to the transponder. The writing command is executed
alone. You have to select the transponder first. If you are using a mifare standard 1K/4K you have to log
in, too.
Input format ISO 15693: WD <SP> parameter 2 <SP> parameter 3 <CR>
Output (example): ACK <CR>
Parameters:
PARAMETER 1 FUNCTION
1 or 2 characters sector
PARAMETER 2 FUNCTION
1 or 2 characters block
PARAMETER 3 FUNCTION
32 characters mifare 1K/4K
8 characters ultralight
up to 32 charac-
ISO 15693
ters
Note: The ISO 15693 regulates just the maximum length of one block. With the write instruction you
can write multiple blocks at once. The datalenght has to be at least the block size or a multiple of the
block size. If there is no information about the block size available in the ISO 15693 transponder,
you can set this value with the command “BS - block size” (chapter 3.6.2).
With the command AC the reader executes the anticollision level 1 command.
Input format: AC <CR>
Output (example): 595B1B80 <CR>
3.5.2 AC2 – anticollision level 2
With the command AC2 the reader executes the anticollision level 2 command.
Input format: AC2 <CR>
Output (example): 595B1B80 <CR>
3.5.3 KM – key mode
With the command KM you switch the key that is used by the commands RD and WD. It is possible to
use the default key or one of the keys saved with the command WK.
Input format: KM <SP> parameter <CR>
Output (example): parameter <CR>
PARAMETER FUNCTION
0 use default key
(FFFFFFFFFFFF)
1..8 use saved key 1 to 8
3.5.4 KT – key type
With this command you switch if the key that is used with the commands RD and WD is type A or B.
Input (example): LOG <SP> A <SP> 1 <SP> FFFFFFFFFFFF <CR>
Output (example): ACK <CR>
Parameters:
PARAMETER 1 FUNCTION
A or B type of the key
PARAMETER 2 FUNCTION
1 or 2 characters sector
PARAMETER 3 FUNCTION
12 characters key
3.5.6 PBU – purse backup
With this command it is possible to copy a purse value to an other block of the same sector. This command is only valid with mifare standard 1K/4K. You have to log in first.
The RQ command answers with the ATQA answer of the transponder.
Input format: RQ <SP> parameter <CR>
Output (example): 4400 <CR>
Parameters:
PARAMETER FUNCTION
0 non halt transponders
1 all transponders
3.5.12 SE – select
The command SE selects that transponder that answered at the anticollision. For ultralight and DESFire
transponders it is select level 1 command.
Input format: SE <CR>
Output (example): ACK <CR>
3.5.13 SE2 – select level 2
The command SE2 selects that transponder that answered at the anticollision level 2. For ultralight and
DESFire transponders it is select level 2 command.
With this command you can change the application family identifier of the reader. The reader reads only
transponders, with the same application family identifier as the reader. If the application family identifier is set to 00h the reader reads each transponder.
Input format: AFI <SP> parameter <CR>
Output (example): 00 <CR>
Parameter:
PARAMETER FUNCTION
00 every transponder is read
01h..FFh just transponders with the
same application identifier are
read
3.6.2 BS – block size
With the command BS you can choose the block size of the used transponder. If the ISO 15693 transponders support the “get system information” command, the parameter BS is not used. Only if there is
no information of the block size of the transponder available, the parameter regulates the reading process. The block size is defined in the ISO 15693, e.g. parameter 00H means the blocksize is 1 byte.
Input format: BS <SP> parameter <CR>
Output (example): 00 <CR>
PARAMETER FUNCTION
00h..1Fh 1 byte..32bytes
3.6.3 GMS – get multiple block security
This commands shows if one/multiple blocks of a transponder are locked or not. You have to do a get tag
first.
This command sends the get system information to the transponder. The answer format is described in
the ISO 15693 chapter 9.3.12. You have to do a get tag first.
In the AEG instruction set there are two operational modes defined:
• MD 0 - continuous mode
• MD 2 - the reading process is triggered by the serial interface
In the next capters can you find a detailed functional description.
The default mode is MD 2.
5.1 MD 2 - Triggered by an software command
The master sends the command to read a transponder code. The reader answers with the code or an error
code.
You can execute specific commands “Read” (RD) and “Write” (WD) just in mode MD2.
In operating mode 2, the exciter is always turned off. Triggered by the software command (GT; RD;
WD), the exciter is activated. After successful reading or writing of a transponder number the exciter is
turned off automatically.
exciter
processor
interface
Figure 9: Software triggered reading operation
If the first reading cycle yields no result (NoRead), the on-time of the exciter is limited by the parameter TOR (time out reader): Reading cycles are continuously started until either a transponder is read
successfully or the time span corresponding to the value of the parameter TOR has expired. The reader will not interrupt the last running readout cycle. If no transponder number has been read, a
NoRead is output.
Figure 10: Software triggered reading operation with TOR>0
Please note: The TOR parameter is only active, if the GT-Command is applied. Within the time span
defined by the value of TOR no NoRead will be output on the interface!
5.2 MD 0 - Continuous Reading
When operating continuously the exciter is switched on permanently. The reading cycles are initiated
periodically.
After an accomplished reading cycle the reading information is evaluated. After that data (either transponder number or NoRead code) is output to the serial interface
To avoid any reduction of the reading distance of the reader, the reader must not be brought next to a
metal surface (e.g. don’t put metallic sticker to the reader). This could lead to a significant change of
the properties of the antenna circuit, which in turn reduces the reading range considerably or causes
reading holes!
To get reliable readings, the distance between reader and transponder must be within the specified reading volume.
The reading characteristic in front of the reader is not isotropic. It depends also strongly on the orientation between Reader and Transponder. To get the maximum reading distance, the orientation between
reader and transponder must be well suited.
To get a reliable readings or writings, the time of transponder while crossing the sensitive area of the
antenna must be coordinated to the data transfer characteristics of transponder
In general the time depends on the speed of the transponder, the size of the transponder and the way the
transponder is mounted on the vehicle and must be verified by field tests.
Environmental electromagnetic noise may also reduce the read and write range considerably.
Arrangement to eliminate such troubles must be done specific to the application by the help of engineers
of the manufacturer.
Federal Communications Commissions (FCC) Statement
15.21
You are cautioned that changes or modifications not expressly approved by the part responsible for compliance could void the user’s authority to operate the equipment.
15.105(b)
This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant
to part 15 of the FCC rules. These limits are designed to provide reasonable protection against harmful
interference in a residential installation. This equipment generates, uses and can radiate radio frequency
energy and, if not installed and used in accordance with the instructions, may cause harmful interference
to radio communications. However, there is no guarantee that interference will not occur in a particular
installation. If this equipment does cause harmful interference to radio or television reception, which can
be determined by turning the equipment off and on, the user is encouraged to try to correct the interference by one or more of the following measures:
- Reorient or relocate the receiving antenna.
- Increase the separation between the equipment and receiver.
- Connect the equipment into an outlet on a circuit different from that to which the receiver is connect-
ed.
- Consult the dealer or an experienced radio/TV technician for help.