pcsc

Smartcard reader ACR122U has no unique serial number

浪子不回头ぞ 提交于 2019-12-10 18:34:00
问题 I am using the PCSC driver and the javax.smartcardio library as the wrapper to the driver. I have 3 ACR122U devices plugged into a Linux (debian) system. I have ran udevadm info on the devices and they all have a serial number of 0. I need to identify which reader is which in my class. I can check which topological usb port is used by parsing the /sys/devices folder but I still cant "select" a device in the Java api. Does anyone know a way to modify the PCSC device stack order or something.

C# - Write in Smartcard using PCSC-Sharp

天大地大妈咪最大 提交于 2019-12-09 07:16:14
问题 Good day everyone, I would like to ask on how to write in Smartcard. I just rely on the example given on the documentation but it only has read tag. I follow the examples here in https://github.com/danm-de/pcsc-sharp/blob/master/Examples/Transmit/Program.cs using System; using PCSC; using PCSC.Iso7816; namespace Transmit { public class Program { public static void Main() { using (var context = new SCardContext()) { context.Establish(SCardScope.System); var readerNames = context.GetReaders();

Smartcard reader naming: when removing any reader, the name of the rest changes

我只是一个虾纸丫 提交于 2019-12-08 14:37:42
问题 I am writting a smartcard application. This application connects card in reader and sometimes works with it. I need to watch when reader is no longer available (either card is ejected or reader is removed from USB). Readers are watched using SCardStatusChange. This function requires reader name to watch. I insert two readers with cards into USB slots. They are recognized as "USB Smart Card Reader 0" and "USB Smart Card Reader 1". I remove one reader. Windows says, "USB Smart Card Reader 1" is

Handler Smart Card Reader

橙三吉。 提交于 2019-12-08 10:40:07
问题 I'm writting app connect to Smart Card reader, And I want to connect 2 app to 2 Reader: # Detected readers (pcsc) Nr. Card Features Name 0 Yes ACS ACR38U 00 00 1 Yes ACS ACR38U-CCID 01 00 But, App only connects to Reader 0: ACS ACR38U 00 00. I try with IFDHandler but it is not ok. Please help me with connecting 2 apps to 2 readers 0 and 1. Thanks. 回答1: (If I understand well) You probably need to change the second argument of the function SCardConnect() to get a different reader. I.e. put "ACS

How do I get all the smart card readers on my system via WMI?

旧巷老猫 提交于 2019-12-08 06:24:31
问题 I want to get the DeviceID and Service of all PCSC smart card readers on my system using WMI. They're all connected via USB, so I query the WMI registry for all Win32_PnPEntity s. But I have no clue how to determine which devices are 'card readers'. Here's what I already have: ManagementObjectSearcher mos = new ManagementObjectSearcher(@"\root\cimv2", @"Select * From Win32_PnPEntity"); ManagementObjectCollection mob = mos.Get(); foreach (ManagementObject mo in mob) { Console.WriteLine(

Force PC/SC driver on ACR122U NFC reader

假如想象 提交于 2019-12-07 11:41:41
问题 I have trouble with using my ACR122U RFID card reader form ACS. I need to connect it to my Mac using the PC/SC driver. I installed the driver from the ACS website and confirmed that it's running. However, whenever I test using the nfc-list command, I get the following error: nfc-list uses libnfc libnfc-1.7.1-189-g2869ae2 error libnfc.driver.acr122_usb Unable to claim USB interface (Permission denied) nfc-list: ERROR: Unable to open NFC device: acr122_usb:020:002 As far as I've understood from

How do I get all the smart card readers on my system via WMI?

左心房为你撑大大i 提交于 2019-12-06 15:33:16
I want to get the DeviceID and Service of all PCSC smart card readers on my system using WMI. They're all connected via USB, so I query the WMI registry for all Win32_PnPEntity s. But I have no clue how to determine which devices are 'card readers'. Here's what I already have: ManagementObjectSearcher mos = new ManagementObjectSearcher(@"\root\cimv2", @"Select * From Win32_PnPEntity"); ManagementObjectCollection mob = mos.Get(); foreach (ManagementObject mo in mob) { Console.WriteLine("DeviceID: " + mo["DeviceID"].ToString()); Console.WriteLine("Service: " + mo["Service"].ToString()); } I can

Authenticating Ultralight EV1 with PC/SC reader

心已入冬 提交于 2019-12-06 07:20:06
问题 I have a problem trying to authenticate an Ultralight EV1 card using a PC/SC reader (specifically an ACR1222L) in Java. I'm able to write and read on an unprotected tag using the corresponding APDUs for ISO 14443-3 tags. However, I can't find a way to run the PWD_AUTH command since it is not part of the 14443-3 standard (or any native command for that matter). Is it possible to run this command (or any native command for that matter)? I have tried sending the following APDU {e0 00 00 24 07 1b

How to programmatically load a Java card applet ( a .cap file ) using Visual C++/PCSC

折月煮酒 提交于 2019-12-06 05:22:22
问题 I am currentlly on a project that requires me to load a JavaCard application Applet ( a .cap ) file to a JavaCard. Our framework is based on Visual C++ and PCSC, so we need to load the same applet to a series of JavaCards. Does anyone know how this can be processed? I mean, where should I start. Thanks! 回答1: You are correct that this is not a trivial job. There are differences between different javacards, but generally you need to do 4 things: initialize secure communications with the card

PCSC.InvalidContextException when running as a Windows service

戏子无情 提交于 2019-12-05 20:10:38
I've been working on a small smart card scanner application using the pcsc-sharp library. The application works fine when running as a console application, the code is as follows: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Configuration; using System.IO; using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Text; using System.Drawing.Printing; using System.Net; using System.Net.Sockets; using System.Data.SqlClient; using System.Threading; using System.IO.Ports; using System.Text.RegularExpressions; using System.Speech