我使用的是HID omnikey 5421智能卡读卡器。读卡器是双接口,当我读取双接口(接触式和非接触式)卡时,它会自动读取非接触式数据中的一段时间,接触数据在sometime.but中我想读取接触卡数据first.after读取接触卡详细信息然后我把另一个非接触式卡,以读取数据(此卡非接触式)。这种情况该如何处理。我检查了HID万能钥匙阅读器中的选项。
请给我提个建议。
发布于 2015-09-16 16:08:44
这是一种以编程方式选择阅读器的方法。它来自Java语言的如何使用PC/SC驱动程序的代码示例-如果您正在开始使用智能卡,则值得一读:http://ludovicrousseau.blogspot.com.es/2010/06/pcsc-sample-in-java.html
正如您在此代码块中看到的,它读取终端列表-然后选择第一个终端。在你的阅读器中,你可能会得到两个:接触式和非接触式。只需get你想要使用的,你就完成了!
// Display the list of terminals
TerminalFactory factory = TerminalFactory.getDefault();
List<CardTerminal> terminals = factory.terminals().list();
System.out.println("Terminals: " + terminals);
// Use the first terminal
CardTerminal terminal = terminals.get(0);Ludovic Rousseau的网站上有使用更多编程语言的示例。正如我所说的,一个非常好的资源!
发布于 2015-09-26 08:17:00
如果您遇到此问题,则需要临时禁用非接触式接口。您需要下载HID Omnikey Workbench软件。http://www.hidglobal.com/sites/hidglobal.com/files/resource_files/omnikey_contactless_developer_guide.pdf

https://stackoverflow.com/questions/32578640
复制相似问题