smartcard-reader

Stop Screensaver programmatically

不问归期 提交于 2019-12-06 05:57:26
How can I stop the screensaver while it's running? without moving the mouse or pressing a key on the keyboard. My applications input is from a card reader, if the screen saver is running my application is still working fine but the screen saver doesn't stop when an input is received on the card reader. I've tried this http://www.codeproject.com/Articles/17067/Controlling-The-Screen-Saver-With-C , doesn't seem to work for me. I tried faking a mouse movement like on this thread How do I turn off the windows screen saver if it is running using C#? and as mentioned in the thread, it doesn't seem

How to connect to Smart Card Reader based on its USB port location?

陌路散爱 提交于 2019-12-05 22:07:47
I'm currently doing some research and testing on multiple smart card reader identification to determine which reader is connected to which USB port. Lets say that I plug in Reader A into USB port 1. By invoking SCardListReaders function, I retrieve the following friendly name: ACS ACR1281 1S Dual Reader PICC 0 Then I plug in another reader (Reader B) into USB port 2. Now I have 2 readers connected to the same PC. Invoking SCardListReaders will give me: ACS ACR1281 1S Dual Reader PICC 0 ACS ACR1281 1S Dual Reader PICC 1 I'm aware of how these names are generated ( How are PCSC smart card reader

Sending Extended APDU to Javacard

谁说胖子不能爱 提交于 2019-12-05 18:23:43
I have a ACR38 samrt-card-reader and a number of Javacard [2.1.1] compliant with GP Spec [02]. As I know, there is two kind of APDU, Short-APDU [APDU with LC or/and LE shorter than 255 ] and Extended-APDU [APDU with LC or/and LE greater than 255 ]. is that right? We send Short-APDU in T=0 protocol and send Extended-APDU in T=1 protocol. is that right? I sent Short-APDU to my card successfully. [via GPJ , GPShell , OpenSC-Tool ]. And now, I want to know: 1: if I want to use Extended APDU, my card must support it? or my Reader must support it? or both!? or all the cards and all the readers

What is the meaning of 6E 00 when I send a command to a SmartCard

て烟熏妆下的殇ゞ 提交于 2019-12-05 09:27:41
I try to access a SmartCard via C++. I got already the Connection and the CardHandle. But when I send an APDU Command via SCardTransmit, i'll get 6E 00 as the answer from the card. No matter which APDU Command i send. Everytime 6E 00. For Example: FF CA FA 00 00 (Card's ATR - Answer To Reset) or FF CA FF 82 00 (Product name in ASCII) The same thing when i send the Command with an PC/SC Testtootl like "PC/SC Diag". Has anybody an Idea what the meaning of this Error-Code and how to solve the problem? Please help me !!!! ;-) According to ISO 7816-4 0x6E00 means "Class not supported". Are you

Smartcard reader naming

倾然丶 夕夏残阳落幕 提交于 2019-12-05 05:27:06
问题 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

How to read a smart card/ microprocessor card using a smart card reader in android programmatically

风流意气都作罢 提交于 2019-12-05 01:06:55
问题 So lately I have been working with smart cards that hold some information and what I am trying to achieve here is to fetch this data from these smart card using a smart card reader through any Android Smartphone. I have been using a HID OMNIKEY 3021 USB smart card reader which would read these card(And I know this reader works with these cards through windows apps because I have personally tested this) Now Android provides USB Host that makes it possible to read any USB Host provided the

Unkown error 0x16 on smartcard reader access

ε祈祈猫儿з 提交于 2019-12-04 13:26:08
I am trying to change the buzzer duration on the ACR1252U. Link to API: http://www.acs.com.hk/download-manual/6402/API-ACR1252U-1.09.pdf According to the API documentation I need the 'E0000028010A' command to change the buzzer status, whereby '0A' marks the duration as 0A*10ms (Page 44). Following Java code is used: public static void main(String[] args) { try { byte[] send = new byte[6]; send[0] = (byte) 0xE0; // Commandclass send[1] = (byte) 0x00; // Protocoll send[2] = (byte) 0x00; // Param 1 send[3] = (byte) 0x28; // Param 2: Buzzerstatus send[4] = (byte) 0x01; // Change Flag send[5] =

Extended APDUs and T=0/1 communication protocols

*爱你&永不变心* 提交于 2019-12-04 11:48:18
I have a JCOP V2.4.2 R3 java card that it is mentioned in its datasheet "The card support both T=1 and T=0 communication protocols" I have also an ACR38 smart card reader that it support both T=0 and T=1 protocols. (I have T=0 communication with one card successfully and T=1 communication with this card successfully.) I wrote the below program and upload it on the card to send and receive extended APDUs: package extAPDU; import javacard.framework.APDU; import javacard.framework.Applet; import javacard.framework.ISOException; import javacardx.apdu.ExtendedLength; public class ExAPDU extends

How to work with a Smart Card

ぃ、小莉子 提交于 2019-12-04 10:02:15
My project I am working on a small program which has to set an alarm if the user locks the computer without removing the Smart Card from the computer. I am using C# with WPF and .Net 4.0 and my smartcard is version V4.2C My problem I have all the functionality to work but I simply don't know how to detect if the Smart Card is in the Smart Card Reader. I have tried to search on google but with no result so I hope some of you can help me. Well, if I google for "C# smartcard" the first link which pops up is a code project article . It appears that the project provides events for detection of

ACR122u card-emulation mode send PN532 commands

浪尽此生 提交于 2019-12-04 06:42:26
问题 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>