Contact-Less Smart Card Reader & Mifare ONE CARD Secondary Development Documentation
Author: Dennis Lan
Date: 2003/12/17
Copyright © Universal Master Information Co (SZ). If Ltd, please
I. Introduction to the development environment:
This document is written by using RD800M Contact-Less Smart Card Reader based on Oracle Fors6i Development Tools.
development tools:
Oracle Forms6i;
2. Microsoft Visual C Compiler (vs.net 2003)
Program language: PL / SQL, C / C
Operating system: Windows2000, XP Pro
Non-contact IC card read-write device: RD800M
IC card: Mifare ONE
II. Non-contact IC card performance introduction (with Shanghai Fudan Mifare One Card as an example, other manufacturers class)
main indicators
l The capacity is 8K bit EEPROM
L is divided into 16 sectors, each sector is 4, 16 bytes per block, with block for access unit
l Each sector has a separate set of passwords and access controls
l There is a unique serial number for each card, 32 digits
l Have a conflict mechanism, support multi-card operations
l No power, self-belt antenna, encrypted control logic and communication logic circuit
l 10 years in the data storage period, can be rewritten, read unlimited times
l Working temperature: -20 ° C ~ 50 ° C (temperature is 90%)
l Working frequency: 13.56MHz
l Communication rate: 106kbps
l Read and write distance: within 10mm (related to the reader)
Storage structure
1, M1 card is divided into 16 sectors, each of which consists of 4 pieces (block 0, block 1, block 2, block 3), (we also numbered the 64 blocks of 16 sectors) 0 ~ 63, the storage structure is shown below:
Block 0
data block
0
Sector 0
Block 1
data block
1
Block 2
data block
2
Block 3
Password A Access Control Password B
Control block
3
Block 0
data block
4
Sector 1
Block 1
data block
5
Block 2
data block
6
Block 3
Password A Access Control Password B
Control block
Seduce
:
:
:
0
data block
60
Sector 15
1
data block
61
2
data block
62
3
Password A Access Control Password B
Control block
63
2, block 0 of the 0 sector (ie absolute address 0), it is used to store vendor code, has been cured, and cannot be changed.
3. Block 0, block 1, block 2 of each sector, can be used to store data.
Data blocks can be used in two applications:
★ Used as a general data saving, you can read, write operations.
★ Used as data values, the initialization value, the quadruple value, impairment, and read value can be performed.
4, block 3 of each sector is the control block, including password a, access control, password B. The specific structure is as follows:
A0 A1 A2 A3 A4 A5 FF 07 80 69 B0 B1 B2 B3 B4 B5
Password A (6-byte) Access Control (4 bytes) Password B (6 bytes)
5, the password and access control of each sector are independent, and each of the respective passwords and access control can be set according to actual needs. Access control is 4 bytes, a total of 32 bits, access conditions of each block (including data block and control block) in the sector are determined by password and access control, each in access control. There are three corresponding three control bits, defined as follows: block 0: C10 C20 C30
Block 1: C11 C21 C31
Block 2: C12 C22 C32
Block 3: C13 C23 C33
to be continued ...
appendix:
Reference:
<< D & C® RD Series IC Card Reader User Manual >> Oracle Forms6i Reference Manuals << About Non-Dip IC Intelligent (RF) Card and Its Read and Writing Equipment Nuclear Technology Research and Application Development >> Zhang Min Shanghai China East Record electronic company