2

I want to get the serial number of a smart card reader connected to pc via USB. One way to do this is to get the iSerialNumber of the USB (smart card reader). Can anyone please guide me about the best working Java API for this purpose?

Should work in windows 7 as well. Any help will be appreciated. Thanks in advance.

HashimR
  • 3,803
  • 8
  • 32
  • 49

2 Answers2

0

There is the jUSB API which you could use. Documentation here

abhinav
  • 3,199
  • 2
  • 21
  • 25
  • Thanks. I've tried this API. Its kind of difficult to set it up. If you can help me setting up, it would really be appreciated. – HashimR Nov 15 '11 at 04:07
  • Windows installation instructions can be found [here](http://www.steelbrothers.ch/jusb/api/usb/windows/related-docs/chp8-developerinstallation.pdf). The original project page [here](http://www.steelbrothers.ch/jusb/) I haven't tried it personally, so I'm not sure if this will work on windows 7. – abhinav Nov 15 '11 at 04:22
0

The solution I've come up with is to query WMI through C++ and then use its DLL in Java through JNI.

HashimR
  • 3,803
  • 8
  • 32
  • 49