Contact-Less Smart Card ReaderWriter & Mifare ONE Card (5)

zhaozj2021-02-16  51

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

Continue http://www.9cbs.net/develop/read_article.asp?id=22903

Anti-Collision Loop

When there are multiple cards enter the reader operation range, the anti-conflict mechanism will select one of them, and the idle mode is in the idle mode, which will return the sequence number of the selected card.

Select the Card (SELECT TAG) Select the serial number of the selected card and return the capacity code of the card at the same time.

Three confirmation (3 Pass Authentication)

After selecting the card to be processed, the reader determines the sector number to be accessed and the sector password is checked, and the communication can be communicated by the encrypted stream after three mutual authentication. (When another sector is selected, another sector password check must be performed.)

Operation of data blocks

Read: Read a block;

Write: Write a block;

Increment: Delicate the value block; decrement: Reduce the numerical block; Restore: Save the content in the block into the data register;

Transfer: written in blocks in the data register;

Abort: Place the card in a paused working state;

Four. Create An Interface for Communicate Between Win32 DLL and PL / SQL

Because PL / SQL does not directly reference the DCRF32.DLL provided by RD800M, it must be reused to write an intermediary interface to make PL / SQL and DCRF32.DLL can communicate. Source rule code, please see Card.c with Microsoft Visual C COMPILER CL Pickup Compile into DLL File (instruction: cl / ld card.c / link dcrf32.lib).

5. Load Library INTO PL / SQL

In PL / SQL, the Package of ORA_FFI is used to communicate with DCRF32.dll to PL / SQL, and PL / SQL is communicated through Card.dll and DCRF32.DLL, and the functions are called.

6. Write card

After the above preparation is completed, the first item is officially started, and the information is written into the IC card, which is the Write in the operation of the data block described above. From the above introduction, we know, a Mifare ONE IC Card, we can write a total number of bytes: 3 * 16 * 16 = 768 Bytes. Each sector is only available for us to operate, the fourth block is a control block, used to store passwords and Control Code, the front side has detailed descriptions in the introduction of M1 Card. Renew ... 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

转载请注明原文地址:https://www.9cbs.com/read-24991.html

New Post(0)