简体   繁体   English

双接口智能卡读卡器切换

[英]Dual Interface smart card reader switching

I am using HID omnikey 5421 smart card reader. 我正在使用HID omnikey 5421智能卡读取器。 reader is dual interface, when i was reading dual interface (contact and contactless) card it's automtically read contactless data in sometime, contact data in sometime.but i want to read contact card data first.after reading contact card details remove dual interface card then i put another contactless card, to read data from contactless (this card contactless only). 读卡器是双接口的,当我在读取双接口(接触式和非接触式)卡时,它会自动读取非接触式数据,有时会自动读取接触式数据。但是我想先读取接触式卡数据。读取接触式卡详细信息后,请取出双接口卡我放置了另一张非接触式卡,以从非接触式读取数据(仅该卡为非接触式)。 this scenario how to handle. 这种情况下如何处理。 i was checked options in HID omnikey reader. 我在HID多功能阅读器中检查了选项。

please give suggestion to me. 请给我建议。

Here's a way of selecting a reader programmatically. 这是通过程序选择读者的一种方式。 It is from a code example in Java of how to use the PC/SC drivers - worth reading if you are getting started with smart cards: http://ludovicrousseau.blogspot.com.es/2010/06/pcsc-sample-in-java.html 它来自Java中如何使用PC / SC驱动程序的代码示例-如果您正在开始使用智能卡,则值得阅读: http : //ludovicrousseau.blogspot.com.es/2010/06/pcsc-sample-in -java.html

As you can see in this code block, it reads the list of terminals - then selects the first one. 如您在此代码块中所看到的,它读取端子列表-然后选择第一个端子。 In your reader, you will probably get two: contact and contactless. 在您的阅读器中,您可能会得到两个:接触式和非接触式。 Just get the one you want to use and you are done! 只要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's site has examples using several more programming languages. Ludovic Rousseau的站点上有使用其他几种编程语言的示例。 As I said, a very good resource! 正如我所说,这是非常好的资源!

Where you are experiencing this issue, you need to disable the contactless interface temporarily. 在遇到此问题的地方,您需要暂时禁用非接触式界面。 You need to download the HID Omnikey Workbench software. 您需要下载HID Omnikey Workbench软件。 http://www.hidglobal.com/sites/hidglobal.com/files/resource_files/omnikey_contactless_developer_guide.pdf http://www.hidglobal.com/sites/hidglobal.com/files/resource_files/omnikey_contactless_developer_guide.pdf 在此处输入图片说明

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

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