DVK90109 Datasheet old 361 DownloadLink 4718

DVK90109
125kHz RFID Development Kit
User Guide
Features and Benefits
Standard ISO communications
User interface software
RS232 serial communication
Dedicated instruction set
6 to 9Volts supply compliant
Ordering Information
Part No.
DVK90109
General Description
The development kit DVK90109 has been developed by Melexis to create specific applications using 125 kHz
protocols and to evaluate the advantages of the MLX90109 transceiver IC.
The DVK90109 results of the combination of the development board DVKRFID and the evaluation board
EVB90109. The EVB90109 is plugged on the DVKRFID through a 10 pins connector (including Coil, VCC and
Ground) and controlled by the microcontroller ATMEGA128.
A set of commands has been elaborated by Melexis to define the communication between the Computer and the
evaluation board EVB90109.
390129010902
Rev. 001
Page 1 of 12
Development Kit
Dec-2004
DVK90109
125kHz RFID Development Kit
User Guide
Table of Contents
1
UNPACKING THE SYSTEM ........................................................................................ 3
2
CONNECTING THE SYSTEM...................................................................................... 3
3
DIGITAL COMMUNICATION EVB90109 - DVKRFID .................................................. 4
4
DIGITAL COMMUNICATION DVKRFID – PC ............................................................. 5
4.1
4.2
4.3
4.4
Protocol assignment ............................................................................................................5
List of instructions ..............................................................................................................5
Error Instruction..................................................................................................................6
Instructions set ....................................................................................................................6
4.4.1
4.4.2
4.4.3
4.4.4
4.4.5
4.4.6
5
Version (VER) .................................................................................................................................. 6
Set Field (STF).................................................................................................................................. 6
Configuration of the MLX90109 (CFG)............................................................................................. 6
HEA : HEAder.................................................................................................................................. 7
REA : REAd ..................................................................................................................................... 7
MFA : Measure Antenna Frequency .................................................................................................. 8
MEMORY CONFIGURATION ...................................................................................... 9
5.1 Melexis: 88bit Data Memory configuration .........................................................................9
5.2 ISO11784 : 64bit Data Memory configuration (Animal identification) ................................9
6
MELEXIS RS232 INTERFACE PROGRAM ................................................................. 10
6.1
6.2
6.3
6.4
6.5
6.6
7
Start RS232 interface: .........................................................................................................10
Select serial communication port COM...............................................................................10
Open serial communication port..........................................................................................10
Generates commands file ....................................................................................................10
Select commands file ..........................................................................................................11
Send a command.................................................................................................................11
DISCLAIMER ............................................................................................................... 12
390129010902
Rev. 001
Page 2 of 12
Development Kit
Dec-2004
DVK90109
125kHz RFID Development Kit
User Guide
1 Unpacking the system
The DVK90109 board is delivered with all components to build a complete RFID setup.
Contents of the box:
1) Development kit 125 kHz
o Development kit RFID (DVKRFID)
o Evaluation board MLX90109 (EVB90109)
o Alimentation block 3 to 12V
o 125 KHz Transponder in credit card format
2) Compact Disc (Software and documentation)
o EVB90109 documentation
o DVK90109 User Guide
o RS232 PC interface software
2 Connecting the system
1) The EVB90109 is plugged through a 10 pins connector (DIL10) on a 14 pins connector (DIL14) on the
DVKRFID (EVB90109 AREA). The following pictures show how to connect the EVB90109 on the
DVKRFID board.
Figure 1:EVB90109 connector on the DVKRFID
Figure2:EVB90109
2) Connect the board DVK90109 to the COM-port of your computer, with a RS232 cable. This allows
communication between the DVK90109 and your computer.
3) Connect the power supply of the DVK90109.
Important Note: The supply must be between 6 to 9 Volts DC. Higher voltage may damage permanently the
DVK90109 circuit.
390129010902
Rev. 001
Page 3 of 12
Development Kit
Dec-2004
DVK90109
125kHz RFID Development Kit
User Guide
3 Digital communication EVB90109 - DVKRFID
The microcontroller on the DVKRFID board communicates with the EVB90109 through a 10 pins connector.
DVK90109
Transponder
RFID
EVB90109
CONNECTOR
DVKRFID
(microcontroller)
RS232
The picture and the table below describe all connections between the EVB90109 and the DVKRFID board.
10 pins
connector
{
EVB90109
Vcc
Ground
Speed
Mode
Modu
ModuR2
ModuR3
DataIn
ClockIn
Coil
DVKRFID
Name
Function
Direction
Vcc
Supply voltage for the EVB90109
DVK -> EVB
GND
Ground connection for the EVB90109
DVK -> EVB
Speed
Data rate selection: GND = 4kBaud, Vcc = 2kBaud
DVK -> EVB
Mode
Decoding selection: GND = Biphase, Vcc = Manchester
DVK -> EVB
Comment
Modu
Power down mode
DVK -> EVB
ModuR2
Antenna voltage control: GND = Field ON, Vcc = Field OFF
DVK -> EVB
ModuR3
-
DVK -> EVB
NOT USED
DataIn
Data Ouput
EVB -> DVK
ClockIn
Clock Ouput
EVB -> DVK
DataIn and ClockIn will be
internally pulled-up by the
microcontroller.
Coil
Oscillator output
EVB -> DVK
390129010902
Rev. 001
Page 4 of 12
NOT USED
Development Kit
Dec-2004
DVK90109
125kHz RFID Development Kit
User Guide
4 Digital communication DVKRFID – PC
The DVK90109 board communicates with a PC through a serial interface RS232.
DVK90109
Transponder
RFID
EVB90109
CONNECTOR
DVKRFID
(microcontroller)
RS232
This part specifies a dedicated set of commands useful for the operation with the MLX90109 RFID transceiver
IC.
This instruction set is defined for the development kit DVK90109.
The microcontroller ensures the following functions:
o
o
o
4.1
Control and configure the MLX90109 transceiver
Read the data information from the MLX90109 transceiver (on-chip decoding)
Communicate with a PC through the serial connection RS232.
Protocol assignment
The different commands are based on a Mnemonic assignment defined by three ASCII characters forming the
Operation Code, followed by a specific number of ASCII or Hexadecimal parameters, depending on the type of
the command.
OP CODE :
3 ASCII characters
PARAMETERS :
ASCII characters or
Hexadecimal characters
The syntax of a command is typically: OpCode<Parameter1>,<Parameter2>,<Parameter3>,…
Each parameter should be separated by a comma.
4.2
List of instructions
Operation
Syntax
Function
VERsion
VER↵
Get the firmware version for the microcontroller
SeT Field
STF<On/Off>↵
Set the field ON or OFF
ConFiGuration
CFG<Encoding>,<Datarate>↵
Set the type of current transponder with the encoding method and the data
rate used by the Transponder
HEAder
HEA<Header>,<Nbr Significant bit>↵
Define the header to read the Identification code (ID)
REAd Tag
REA<Op mode>↵
Perform a read operation and decode data with the encoding method of
the transponder defined with the <Op mode> parameter
Measure
Frequency
Antenna
MFA↵
Perform an antenna frequency measurement.
Note: Be careful that a value is necessary in all fields defined by the instruction. The default value defined in the
following instruction set is only the value set by the program during the initialization phase. This means that if the
CFG instruction is not sent, the <Encoding> and <Baudrate> fields will take default values being respectively
390129010902
Rev. 001
Page 5 of 12
Development Kit
Dec-2004
DVK90109
125kHz RFID Development Kit
User Guide
biphase and 4kbit/s.
4.3
Error Instruction
No
Name
Meaning
Message
0
Instruction error
If the Opcode syntax is not correct or not defined.
err0↵
1
Definition error
If the definition syntax is not correct.
err1↵
2
No tag detected
If no transponder has been detected.
err2↵
3
Header not found
If the header cannot be found in the read code.
err3
5
Read operation failed
If the calculated CRC or parity check doesn’t correspond to the read value.
err5↵
6
Others error
8
Measure Frequency Antenna
4.4
err6↵
If a problem occurs during antenna frequency measurement (value too high, no
signal …)
err8↵
Instructions set
4.4.1
Version (VER)
Get the firmware version.
This command can be used to control the serial connection RS232.
Syntax
VER↵
Return
Melexis RFID <Development kit> V<Version>
Example
VER↵
Reply: Melexis RFID DVK90109 V2.0
4.4.2
Set Field (STF)
Set the magnetic field ON or OFF.
Syntax
STF<on/off>↵
<on/off> = Characters defining the current state of the field (<on> to put the field ON and <off> to put the field OFF).
Default value: <on>.
Return
Ok
Example
STFon↵
Reply: Ok
4.4.3
Configuration of the MLX90109 (CFG)
Set the configuration of the transceiver to decode data information from a transponder (encoding mode and data
rate).
Syntax
CFG<Encoding>,<Datarate>↵
<Encoding> = ASCII letter specifying the encoding method used by the Transponder (<M> for Manchester and <B> for
390129010902
Rev. 001
Page 6 of 12
Development Kit
Dec-2004
DVK90109
125kHz RFID Development Kit
User Guide
Biphase). Default value: <B>.
<Datarate> = ASCII number specifying the data rate used by the transponder (<2> for 2kbits/s, <4> for 4kbits/s). Default
value: <4>.
Return
Ok
Example
CFGB,4↵
Reply: Ok
4.4.4
HEA : HEAder
Specify the header of the data sent by the transponder.
The program will search for the header in the data read from the transponder and display the data with the
header first.
The header is a number of bits that cannot be reproduced in the rest of the ID. For example in the standard norm
ISO11784, the first 11 bits of the ID code will be used as the header and fixed to “0000 0000 001”.
Syntax
HEA<Header>,<Nbr significant bit>↵
<Header> = Hexadecimal number defining the header.
<Nbr unused bit> = Hexadecimal number defining the number of Header bits to be removed (mustn’t be higher than 7).
Return
Ok <Header in binary>
Example
HEA0020,5↵
Reply: Ok 00000000001
HEA002010,7↵
Reply: Ok 00000000001000000
Example: The header is calculated with two parameters. <Header> defining the header in hexadecimal (an entire
number of byte is necessary) and <Nbr Of Unused bit> a decimal number defining the number of bits which are
to be removed from the given Header to form the new Header. Thus, it is possible to define a length of header
different of a power of 2.
HEA0020,5 = 0000 0000 0010 0000 = 0000 0000 001
4.4.5
REA : REAd
Read, decode and return data from a transponder.
If a problem occurs during operation (no header found, no transponder), an error message will be displayed as
referenced in the table 1.3 Error Instruction.
Syntax
REA<Opmode>,<Nbr of bit>↵
<Opmode> = Number defining the programmed decoding method used.
o
<1> Searches for the header, decodes ISO11784 mode, controls CRC value and displays the decoded data.
o
<2> Searches for the header, decodes Melexis 88bits mode, controls CRC value and displays decoded data.
o
<3> Searches for the header and displays the data read.
o
<4> Only displays the data read (no decoding, no search for the header).
<Nbr of bit> = ASCII number specifying the number of bit read. <064>, <128>, <144> and <256> are implemented.
Return
<data>
390129010902
Rev. 001
Page 7 of 12
Development Kit
Dec-2004
DVK90109
125kHz RFID Development Kit
User Guide
Example
err2
(no tag detected)
err3
(no header found)
err5
(read failed)
REA1,128↵
Read 128bits, searches for the header and decodes the ID read according to the standard norm ISO11784. Checks the
CRC and returns corresponding message (data read or error).
REA2,128↵
Read 128bits, searches for the header and decodes the ID read according to the Melexis 88 bits encoding method.
Checks the CRC and returns corresponding message (data read or error).
REA3,064↵
Read 64bits, searches for the header and returns corresponding message (data read or error).
REA4,256↵
Reads and displays 256bits.
Note: The ISO11784/85 standard norm and the Melexis 88bits encoding method will be only performed on 128
bits read. So in these two mode (opmode <1> and <2>) the field <Nbr of bit> will be ignored and 128bits will be
always read.
Note: REA command will not set the field of the EVB90109. Before performing a read operation, the field must
be ON by using the STFon command.
4.4.6
MFA : Measure Antenna Frequency
Issues an antenna frequency measurement.
This function will use the “Clock on Carrier Generation” block on the DVK90109 board (please refer to the
schematic of DVKRFID) to perform an antenna frequency measurement.
A decimal value between 100 and 150 khz will be returned corresponding to the measured frequency.
Syntax
MFA↵
Return
Ok <Frequency>kHz
err8↵
Example
(no field detected)
MFA↵
Ok 125kHz
Note: MFA command will not set the field of the EVB90109. Before performing a measurement operation, the
field must be ON by using the STFon command.
390129010902
Rev. 001
Page 8 of 12
Development Kit
Dec-2004
DVK90109
125kHz RFID Development Kit
User Guide
5 Memory configuration
5.1
Melexis: 88bit Data Memory configuration
Address
The 128bit code contains
- The 11bit header and 13 stuff bits,
- the 88bits of data,
- and two 8bit CRC values.
BITPOSITION (LSB first)
0
1
2
3
0
DATA_0
2
6
1
7
8
9
A
B
C
1
1
1
6
DATA_9
7
DATA_2
DATA_5
1
DATA_7
DATA_8
1
1
DATA_9
DATA_10
CRC1 [0,5]
F
1
1
DATA_6
5
E
DATA_3
DATA_4
1
D
DATA_0
DATA_1
DATA_2
3
5.2
5
Header: 00000000001
1
4
4
1
1
CRC2 [6,10]
1
ISO11784 : 64bit Data Memory configuration (Animal identification)
Address
The 128bit code contains
- The 11bit header and 13 stuff bits,
- the 64bits of data including:
o national ID number (38bit)
o country code(10bit)
o data bit (1bit)
o reserved bits (14 bit)
o and animal application bit (1bit)
- the 16bit CRC value,
- and the 24bit trailer.
BITPOSITION (LSB first)
0
1
2
3
0
5
6
7
8
9
A
B
C
Header: 00000000001
1
DATA_0
2
1
1
1
1
6
CRC_Low
7
DATA_5
390129010902
Rev. 001
1
DATA_7
CRC_High
Ext_1
1
1
Ext_0
1
F
1
1
DATA_6
5
E
DATA_2
DATA_3
DATA_4
1
D
DATA_0
DATA_1
DATA_2
3
4
4
CRC_Low
1
Ext_2
Page 9 of 12
1
Development Kit
Dec-2004
DVK90109
125kHz RFID Development Kit
User Guide
6 Melexis RS232 interface program
The RS232 interface program is a easy-to-use windows software developed by Melexis to send
commands through the RS232 interface of a Pc.
The RS232 interface program uses text files to generate the set of commands and is able to control
the COM port of the Pc (COM 1 or 2 can be chosen) and to send the corresponding commands
through it.
6.1
Start RS232 interface:
Double click on RS232.exe file. The following interface window will be displayed.
Toggle between a single execution and repetitive command
execution (click in the command column after toggling)
To close the interface window
Select commands file
Open/Close serial communication
Main window (command list and
comments will be displayed in this
window)
Reply window (reply from the
DVK90109 will be displayed in
this window)
Baud rate selection
6.2
Error message window
Select serial communication port COM
Click on “setupcom” button. On the new window displayed, choose “br9600” on COM1-2. Close the
new window by clicking on the top right corner. The speed communication is now validated at 9600
bit/s.
6.3
Open serial communication port
Click on “OpenCom1” button. This will open the corresponding communication port (COM1-2).
6.4
Generates commands file
The RS 232 program uses a text file which contains all commands. All commands must be defined
like specified below.
390129010902
Rev. 001
Page 10 of 12
Development Kit
Dec-2004
DVK90109
125kHz RFID Development Kit
User Guide
: introduce a comment line. It must be always
followed by a space character.
Command
6.5
Some spaces character
Select commands file
Click on “ReadFilecom1” button. On the new displayed windows, find the text file which contains the
command list (MLX-Programmer.txt is available together with RS232.exe) and double click on it.
This file will be displayed on the left table of the interface window. On the left column, several lines of
commands are displayed with some comments on the right column like shown in the picture below.
6.6
Send a command
To send a command, double click on it and the response will be displayed in the “ResultCom” window.
390129010902
Rev. 001
Page 11 of 12
Development Kit
Dec-2004
DVK90109
125kHz RFID Development Kit
User Guide
7 Disclaimer
Devices sold by Melexis are covered by the warranty and patent indemnification provisions appearing
in its Term of Sale. Melexis makes no warranty, express, statutory, implied, or by description regarding
the information set forth herein or regarding the freedom of the described devices from patent
infringement. Melexis reserves the right to change specifications and prices at any time and without
notice. Therefore, prior to designing this product into a system, it is necessary to check with Melexis for
current information. This product is intended for use in normal commercial applications. Applications
requiring extended temperature range, unusual environmental requirements, or high reliability
applications, such as military, medical life-support or life-sustaining equipment are specifically not
recommended without additional processing by Melexis for each application.
The information furnished by Melexis is believed to be correct and accurate. However, Melexis shall
not be liable to recipient or any third party for any damages, including but not limited to personal injury,
property damage, loss of profits, loss of use, interrupt of business or indirect, special incidental or
consequential damages, of any kind, in connection with or arising out of the furnishing, performance or
use of the technical data herein. No obligation or liability to recipient or any third party shall arise or
flow out of Melexis’ rendering of technical or other services.
© 2004 Melexis NV. All rights reserved.
For the latest version of this document, go to our website at
www.melexis.com
Or for additional information contact Melexis Direct:
Europe and Japan:
All other locations:
Phone: +32 1367 0495
E-mail: [email protected]
Phone: +1 603 223 2362
E-mail: [email protected]
ISO/TS 16949 and ISO14001 Certified
390129010902
Rev. 001
Page 12 of 12
Development Kit
Dec-2004