简体   繁体   English

使用 Node.js 访问智能卡 iso14443A

[英]Access a SmartCard iso14443A with Node.js

I´m trying to access the Information on a Mifare Smartcard(iso14443A) over a Omnikey 5321 CL reader.我正在尝试通过 Omnikey 5321 CL 阅读器访问 Mifare 智能卡 (iso14443A) 上的信息。 I tried to use the smartcard lib, but it uses an other iso standard.我尝试使用智能卡库,但它使用了其他 iso 标准。 For accessing the Card I have to set a Application ID ( 3x hex), a key (32 int), keyid (hex).为了访问卡,我必须设置一个应用程序 ID(3x 十六进制)、一个密钥(32 int)、keyid(十六进制)。

You can still use smartcard lib, but you have to configure the reader to use the MIFARE mode instead of the T-CL variant of 14443 protocol.您仍然可以使用智能卡库,但您必须将阅读器配置为使用 MIFARE 模式而不是 14443 协议的 T-CL 变体。

If I remember corectly, the Omnikey workbench provides a graphical configuration tool for that purpose.如果我没记错的话,Omnikey 工作台为此提供了一个图形配置工具。

I strongly recommend to study Omnikey contactless smart card readers developer guide , especially the section MIFARE emulation mode, for serious work.我强烈建议认真学习Omnikey 非接触式智能卡读卡器开发指南,尤其是 MIFARE 仿真模式部分。

(I have no idea, what a one byte Application ID means in Mifare context, and what value 3x is supposed to represent.) (我不知道,一个字节的应用程序 ID在 Mifare 上下文中意味着什么,以及3x应该代表什么值。)

I am busy with similar process, however after searching I found this example: https://github.com/santigimeno/node-pcsclite我正忙于类似的过程,但是在搜索后我发现了这个例子: https://github.com/santigimeno/node-pcsclite

EDIT编辑

In fact I actually got this one working https://github.com/pokusew/nfc-pcsc It returns the following: 事实上,我实际上得到了这个工作https://github.com/pokusew/nfc-pcsc它返回以下内容:
ACS ACR122 0 card detected { atr: , standard: 'TAG_ISO_14443_3', type: 'TAG_ISO_14443_3', uid: '767aec7e' }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM