pcsc

Are there javax.smartcardio analogues on Android?

一曲冷凌霜 提交于 2020-01-01 12:22:55
问题 Are there javax.smartcardio analogues on Android? but not using Open Mobile API. Thanks! 回答1: I'm using javax.smartcardio.* as a facade to IsoDep on Android in a project called SCUBA. Note that this is for trancieving APDUs to ISO14443 cards in the field of the NFC chip (in NFC capable Android phones), and not for communicating with SIM or SE. (Main motivation was to be able to use the same JMRTD ePassport reading API jar both on J2SE and Android without changes.) EDIT: If you're interested

Determine card type from ATR

偶尔善良 提交于 2020-01-01 03:48:04
问题 Is it possible using ATR to determine whether I have ISO14443A or ISO14443B type card? If yes, how? 回答1: As mictter correctly explained, a real AT R only exists for ISO 7816 contact cards. I can follow the argumentation that the ISO 14443 equivalent could be the ATQA/ATQB as this is the first answer you get from tags after activation, though I would rather say that the equvalent of the ATR is a combination of ATQA + SAK + ATS (for Type A) and a combination of ATQB + Answer to ATTRIB (for Type

Requiring a JavaScript Node.js module in TypeScript (allowJs' is not set)

你。 提交于 2019-12-29 05:07:41
问题 I have an Angular2 app inside Electron. Now, I would like to use the @pokusew/pcsclite library to use NFC functionality. This library uses native Node.js modules. When I try to require the library in my component.ts like this: declare var pcsclite: any; var pcsclite = require('../../../node_modules/@pokusew/pcsclite/'); I get and error that says: error TS6143: Module '../..' was resolved to '../../lib/pcsclite.js', but '--allowJs' is not set. On the other hand, if I try to import the library

Communicate with smartcard reader through Android USB host

牧云@^-^@ 提交于 2019-12-28 11:57:27
问题 I'm trying to send a command to a smart card. I use a Gemalto IDBridge CT30 (PC TWIN reader) and a IDBridge K30 connected to the Android device over USB. I try to send a SELECT APDU command over USB: boolean claim = openedConnection.claimInterface(usbInterface, true); byte[] data = new byte[]{ (byte) 0x00, (byte) 0xA4, (byte) 0x04, (byte) 0x0C, (byte) 0x07, (byte) 0xA0, (byte) 0x00, (byte) 0x00, (byte) 0x01, (byte) 0x18, (byte) 0x45, (byte) 0x4E}; After that I receive an answer: final int

Smart Card Get Response Returns Status 6D00

荒凉一梦 提交于 2019-12-24 17:44:11
问题 I am developing a C++ application (on Windows 7) which interfaces with PC/SC card readers to perform some authentication operations. This application is the child process of another application (I don't know if that's relevant, but it might be). I also have a simple standalone test application which performs all the interactions with the smart card that I need and does so successfully. However I have run into some odd behavior when integrating the code from this utility into my main

PCSC.InvalidContextException when running as a Windows service

拜拜、爱过 提交于 2019-12-22 10:54:20
问题 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;

Send APDU command to card through HID OMNIKEY 5427 CK

感情迁移 提交于 2019-12-21 12:57:14
问题 I'm trying to pass though APDUs command via HID OMNIKEY 5427 CK to operate MIFARE Card ie. Ultralight C card, on the Windows 10 x64 OS environment using WinSCard.dll. (I'm under NXP NDA and have full access t their documents) I tried to find information online for days now. Seem like no published document for this model except the 2pages brochure. The simple command like GetUID (FFCA000000) is OK, I can get back the actual card UID. But for 'Authentication with Card', reference document from

Accessing javax.smartcardio from Linux 64 bits

感情迁移 提交于 2019-12-18 10:37:21
问题 I'm trying to load the smartcard terminals using the javax.smartcardio API with the following code: public CardTerminal getReadyCardTerminal() throws CardException { TerminalFactory factory = TerminalFactory.getDefault(); CardTerminals terminals = factory.terminals(); List<CardTerminal> list = terminals.list(State.CARD_PRESENT); while (list.isEmpty()) { terminals.waitForChange(1000); list = terminals.list(State.CARD_PRESENT); } CardTerminal cardTerminal = list.get(0); return cardTerminal; } .

How are PCSC smart card reader 'friendly names' constructed?

谁都会走 提交于 2019-12-18 09:11:58
问题 I use WinSCard to list all readers, which gives me a list like this: ASK RDR4x7 0 SCM Microsystems Inc. SCR3320 USB Smart Card Reader 0 SCM Microsystems Inc. SCR3320 USB Smart Card Reader 1 SCM Microsystems Inc. SCR3320 USB Smart Card Reader 2 Which is great, but I have no clue which name belongs to which card reader. Where do these names come from? How are they constructed? What I've found up until now: in the registry, there is a HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services key.

Method replys unplugged NFC readers

风格不统一 提交于 2019-12-12 02:56:56
问题 I currently use pcsc-sharp to read ids from NFC tags. I got this methode to lists all available readers. But this replys me all readers I ever used. There are also old readers listed that aren´t plugged in. Does anyone know how to fix that? public void SelectDevice() { List<string> availableReaders = this.ListReaders(); this.RdrState = new Card.SCARD_READERSTATE(); readername = availableReaders[0].ToString(); this.RdrState.RdrName = readername; } public List<string> ListReaders() { int