其他语言

本类阅读TOP10

·基于Solaris 开发环境的整体构思
·使用AutoMake轻松生成Makefile
·BCB数据库图像保存技术
·GNU中的Makefile
·射频芯片nRF401天线设计的分析
·iframe 的自适应高度
·BCB之Socket通信
·软件企业如何实施CMM
·入门系列--OpenGL最简单的入门
·WIN95中日志钩子(JournalRecord Hook)的使用

分类导航
VC语言Delphi
VB语言ASP
PerlJava
Script数据库
其他语言游戏开发
文件格式网站制作
软件工程.NET开发
Contact-less Smart Card Reader/Writer & Mifare One Card (6)

作者:未知 来源:月光软件站 加入时间:2005-2-28 月光软件站

Contact-less Smart Card Reader & Mifare one Card 二次開發文檔

Author: Dennis Lan

Date: 2003/12/17

Copyright© Universal Master Information Co(sz)., Ltd  轉載請說明出處

http://www.csdn.net/Develop/read_article.asp?id=22904

寫卡的步驟如下:

     1. Create a Connection between Smart Card Reader and Computer via COM port

     2. Verify the Introduction area for find the card (檢查讀寫器的感應區是否有可感應的 IC Card)

     3. 調用防卡衝突的函式, 讓讀寫器一次只寫一張卡.

     4. 設定 Smart Card Reader Sector N Key “FFFFFFFFFFFF”, 讓其和卡的出廠預設值相同.

     5. 卡、機互相驗證 Sector N Key

       5.1 如果驗證通過 Jump to 6

       5.2 如果驗證失敗

               5.2.1 設定 Smart Card Reader Sector n Key   0xXXX***XXX ***

          5.2.2 再次執行卡、機互相驗證 Sector N Key

             5.2.2.1 失敗 -> exit ->Close Connection

                  5.2.2.2 成功

                    5.2.2.2.1 詢問是否重寫 Sector N? -> GOTO 5.2.2.1

                 5.2.2.2.1.1 -> 擦除 Sector N 1 2 3 中的資料

     6. 從塊 Sector n*4 開始寫入資料

     7. 設定 IC Card Sector n Key 0xXXX***XXX ***(以後讀卡的 Smart Card Reader 上的這一個扇區的 Key 要與之相同)

     8. 斷開 Smart Card Reader 和電腦的連結

寫卡 Flowchart

Write Data Flowchart

待續 ...

附錄:

 參考資料:

  1. <<D&C® RD 系列IC卡讀寫器使用說明書>>
  2. Oracle Forms6i Reference Manuals
  3. <<關於非接觸式 IC 智能(射頻)卡及其讀寫設備內核技術的研究與應用開發>> 張敏 上海華東磁記錄電子公司



相关文章

相关软件