How to read a mifare 1k card through ACR122U NFC Tag reader connected to local machine in a web application

落爺英雄遲暮 提交于 2019-12-13 02:45:42

问题


Read a mifare 1k card through my web application which is connected to local system which is browsing my web application. The reader I am using is ACR122U NFC Tag reader. I got sample code for window application to access the reader and read the UID of NFC tag. but I want to read the value in my Web site. Work flow is:

  1. My web site page is opened in a browser of a machine. That page has a button "Read UID".
  2. After clicking of this button I want to read the NFC Tag UID through ACR122U NFC Tag reader which is connected to this user.

I searched for C# code but C# code can't access local resources. I got two suggestions:

  1. java applet
  2. ActiveX object.

So anybody can give me the code of java applet which can I use or can suggest another way to do what I want to do.


回答1:


NFC Tools for Java has what you are looking for - a live applet with source code.



来源:https://stackoverflow.com/questions/13563105/how-to-read-a-mifare-1k-card-through-acr122u-nfc-tag-reader-connected-to-local-m

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