Read and Write Card Details using a Smart Card Reader

天涯浪子 提交于 2019-12-14 02:32:28

问题


I need to integrate my application with a Smart Card Reader. Its a ContactLess Card Reader, Model No. ACR122U-A2 by Advanced Card Systems (www.acs.com.hk).

Currently my customer is already using another application developed by someone else, which uses this Card Reader. They usually place the Card on top of the Card Reader, even though its a ContactLess Card Reader.

This Card is used in a Club for member access. I need to read Member ID No. Name, etc. and also write the code to activate the Card.

I need sample C# code. I have gone through the technical manual on the manufacturer's site, but it provides too many low level details using Hexadecimal Codes. I am looking for a high level example using C#.

EDIT 1: Since the data in the card is written by another application, whether I will be able to read the data meaningfully without knowing the schema details? I am sorry if this is a silly question, but I am programming the smart card for the 1st time.


回答1:


There is an SDK for this product which indicates that it contains sample code in C#.

http://www.acs.com.hk/index.php?pid=product&id=ACR122-SDK

I think this is the best place to start. Hope that helps.




回答2:


You could take a look at this project first. Note, that the reader needs typically less manufacturer-specific addressing than the card (at least if it supports PCSC). Cards tend to need slightly different low-level bytes, which is the reason, why you need the mentioned SDK manual for non-trivial accesses. I found a possibly helpful manual here.

To your Note 1: If the application was written without any security you may succeed to read the desired information. But if you then don't know, that member ID starts at offset a and is coded in b format c bytes long, you have to ask the information provider.



来源:https://stackoverflow.com/questions/16016961/read-and-write-card-details-using-a-smart-card-reader

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!