smartcard-reader

Smartcard reader naming

无人久伴 提交于 2019-12-03 22:15:59
I have two readers (HID OMNIKEY 5321) in system (every reader performs a different function) reader 1 - "Smart Card Reader 0 " reader 2 - "Smart Card Reader 1 " In my program is set up that "Smart Card Reader 0 " - action 1 "Smart Card Reader 1 " - action 2 but sometimes (without rebooting, perhaps lost contact) reader 1 gets name "Smart Card Reader 1 " reader 2 gets name "Smart Card Reader 0 " and the program does not do what users need. I use SCardGetStatusChange (requires the name of the reader) in WinScard.dll What to do? Is there a way to change the name of the reader (firmware, drivers..

Parse CV Rule from CVM List for EMV

旧街凉风 提交于 2019-12-03 14:22:41
I have succesfully retrieved the CVM List from EMV card. 0000 0000 0000 0000 4103 4203 1E03 1F02 From the EMV specification book 3, the first 4 bytes and second 4 bytes are amount and rest is CV rules. Making these the CV Rule 4103 4203 1E03 1F02 The book also shows how to parse the CV rules, as shown below: I am assuming that I need to convert the first two bytes in a CV rule to binary and match with the table above? But why does the table above have empty cells? Also can someone explain in a simple pseudo code algorithm to parse this? Have you referred section 10.5.5 CVM Processing Logic in

Sending APDU with winscard.dll (PC/SC) without a smart card connected

爷,独闯天下 提交于 2019-12-02 16:04:45
问题 I'm trying to send APDU commands to the card reader itself instead of the Smart Card. The test command I'm using turns the RF field on and off. This commands sends over SCardTransmit if I first connected to a smart card. But as soon as the RF field is off, the card disconnects and I cant send another APDU to turn the field on. Basically is there any way to send APDU's over pc/sc without a card present. I want to configure certain parts of the reader before reading a card. Thanks in advance. -

Sending APDU with winscard.dll (PC/SC) without a smart card connected

徘徊边缘 提交于 2019-12-02 09:25:12
I'm trying to send APDU commands to the card reader itself instead of the Smart Card. The test command I'm using turns the RF field on and off. This commands sends over SCardTransmit if I first connected to a smart card. But as soon as the RF field is off, the card disconnects and I cant send another APDU to turn the field on. Basically is there any way to send APDU's over pc/sc without a card present. I want to configure certain parts of the reader before reading a card. Thanks in advance. -----Edit----- As FPGA Warrior mentioned I need to use SCardControl to send APDU commands to the card

ACR122u card-emulation mode send PN532 commands

无人久伴 提交于 2019-12-02 08:21:38
I just read this answer about how to put my ACR122U in card-emulation mode. I do understand the purpose but how do you need to send the commands to the ACR122u. As far as I know FF000000 means: FF [Class] 00 [INS] 00 [P1] 00 [P2] I just can't figure out how I can send the actual PN532 command for example: FF000000 08 D406 6305 630D 6338 FF000000 11 D408 6302 80 6303 80 6305 xx 630D yy 6338 zz I have come this far: TerminalFactory factory = TerminalFactory.getDefault(); List<CardTerminal> terminals; try { terminals = factory.terminals().list(); CardTerminal terminal = terminals.get(0); Card

Smartcardio.Terminal connection error in PCSC Gemplus Javacard

99封情书 提交于 2019-12-02 03:33:31
问题 I am extremely new to Java Card programming. While using javax.Smartcardio in my code, I am getting an error while trying to connect to Gemalto PCSC Java card. import java.util.List; import javax.smartcardio.*; public class App { public static void main(String[] args) { try { // Display the list of terminals TerminalFactory factory = TerminalFactory.getDefault(); List<CardTerminal> terminals = factory.terminals().list(); System.out.println("Terminals: " + terminals); // Use the first terminal

Smartcard Reader and ChromeApp

人走茶凉 提交于 2019-12-01 08:04:44
I want to make a Chrome App that can access a USB SmartCard Reader (HID Global OmniKey 3121). Did someone ever succeed in doing that? Unfortunately, I cannot see it using usb.getDevices . script.js (called by index.html which is itself called by background.js onLaunched ): //dom elements var findBtn = document.querySelector( "button#find-btn" ) var deviceInfo = document.querySelector( "p#device-info" ) //{click} findBtn.addEventListener( "click", findDevice ) /* * Try to find HID OmniKey 3x21 */ function findDevice () { var options = { filters: [ { vendorId: 1899, //OmniKey AG productId: 12321

Smartcard Reader and ChromeApp

笑着哭i 提交于 2019-12-01 07:45:42
问题 I want to make a Chrome App that can access a USB SmartCard Reader (HID Global OmniKey 3121). Did someone ever succeed in doing that? Unfortunately, I cannot see it using usb.getDevices . script.js (called by index.html which is itself called by background.js onLaunched ): //dom elements var findBtn = document.querySelector( "button#find-btn" ) var deviceInfo = document.querySelector( "p#device-info" ) //{click} findBtn.addEventListener( "click", findDevice ) /* * Try to find HID OmniKey 3x21

How to send commands to smart card reader (and not to the smart card) while no card present?

此生再无相见时 提交于 2019-11-30 08:20:34
Preface: I have a dual interface smart card reader that has some extended capabilities (other than sending APDU commands to card and receiving APDU responses). For example in its document it is mentioned that you can get firmware version of your reader using following command: GET_FIRMWARE_VERSION: FF 69 44 42 05 68 92 00 05 00 In its tool, there is a button for this function and it works fine: I even sniffed USB port to see what exactly exchanged in the connection between my PC and my reader for this function: Command: Response: Problem: I want to get my reader version (and maybe send other

SCardTransmit() always return 6d00

假如想象 提交于 2019-11-30 07:47:14
I'm trying to read name, card number, expiry date etc on Credit Card. but always return 6d00 when call SCardTransmit . I'm using pre-define AID, which i have googled to be valid (correct me if i'm wrong). here's the are : AID_LIST = { "A0000000421010", "A0000000422010", "A0000000031010", "A0000000032010", "A0000000041010", "A0000000042010", "A00000006900", "A0000001850002" } Thanks in advance. I am not familiar with this API you are using, but you will have to send the following sequence of APDU commands: SELECT PSE (for contact card), specified by EMV in Book 1, 11.3. An example is