0

I am using HID omnikey 5421 smart card reader. 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.

please give suggestion to me.

senthilkumar2185
  • 2,536
  • 3
  • 22
  • 36

2 Answers2

1

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

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 getthe one you want to use and you are done!

   // 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. As I said, a very good resource!

mictter
  • 1,358
  • 1
  • 10
  • 13
  • sorry i forget to say! I am using some third party dll for read contact and contactless card. that is not common card isolated – senthilkumar2185 Sep 16 '15 at 15:24
  • Sorry, I don't have any C# code. Maybe there is something in the website I linked above. If you are using a 3rd party DLL, then the solution will totally depend on it. The code linked above is general-purpose, sometimes it is better to have that kind of control... – mictter Sep 17 '15 at 08:08
1

Where you are experiencing this issue, you need to disable the contactless interface temporarily. You need to download the HID Omnikey Workbench software. http://www.hidglobal.com/sites/hidglobal.com/files/resource_files/omnikey_contactless_developer_guide.pdfenter image description here

John W
  • 73
  • 4
  • yes, your are correct, but at the same time we need to read contactless card also that is our issue. – senthilkumar2185 Sep 26 '15 at 05:23
  • I think you have just three options. First, contact HID Global, and ask them how to perform the low-level antenna disable. Second, work the antenna disable into your manual process. Or thirdly - and probably most practical - use a separate reader - i.e. either use the Omnikey for contactless only, and another reader for contact - or disable the Omnikey antenna, and use another contactless reader. – John W Oct 02 '15 at 23:55