Questions tagged [apdu]

APDU stands for "Application Protocol Data Unit". An APDU is used to communicate with smart cards and Subscriber Identity Modules (SIMs) conforming to standard ISO/IEC 7816-4.

From www.jguru.com:

The APDU (Application Protocol Data Unit) is the communication unit between a reader and a card. The structure of an APDU is defined by the ISO 7816 standards.

There are two categories of APDUs: command APDUs and response APDUs. As the name implies, the former is sent by the reader to the card: it contains a mandatory 5-byte header and from 0 to up to 255 bytes of data. The latter is sent by the card to the reader: it contains a mandatory 2-byte status word and from 0 to up to 256 bytes of data.

764 questions
-1
votes
1 answer

Writing data into Nexus 4 in card emulation mode with ACR122

I am trying to send some data to the Nexus 4 through NFC (i.e. the card emulation mode). I tried a number of the command APDUs such as writing and updating APDUs, but I couldn't get them to work. What I am trying to say is, I want to send some data…
-2
votes
1 answer

Delphi SmardCard response from hexadecimal string to string

I'm working with APDU commands and SmartCard. APDU command that I am sending to SmartCard…
q1werty
  • 51
  • 6
-2
votes
1 answer

Need help Debugging Javacard

just looking to see if i could get some help on this, i'm only about two weeks into working with javacard and lets say its fun! haha, but seriously. heres the bit of code that im calling in my function, its real simple, i have a bit of randomly…
j doe
  • 1
  • 2
-2
votes
1 answer

How to restart transaction from the beginning in emv transaction

I want to know that is there any specific command available by using which I can send the terminal a command and the terminal will start to communicate with the android device from the beginning of the transaction. Suppose, terminal is sending me…
faysal
  • 162
  • 2
  • 14
-2
votes
1 answer

Retrieve smart card's PAN with Python and pyscard

I'm trying to retrieve the PAN of a smart card using pyscard in Python. What I have done so far is to connect to the reader and to retrieve various information about the reader and the card... but I cannot find the way to get the serial number...…
Bya
  • 55
  • 1
  • 12
-2
votes
2 answers

Make SLE 5542 Smart Cards Read Only After Binary Write Using APDU

Excited to ask my first question over here... so here goes.. I am Currently working with the Composite Smart Cards (one with both the NFC MIFARE 1k And Chip Encode ) SLE 5542, So far i have managed to perform the following task with the…
-2
votes
1 answer

How to get apdu command logs from ingenico device in c?

I am working on Ingedev to implement a Telium application in C. How can I read the Application Protocol Data Unit (APDU) from a contactless EMV card transaction with an Ingenico device? Can the APDU be retrieved from the TLV tree data exchanged…
K J Gor
  • 750
  • 5
  • 17
-2
votes
2 answers

APDU command for T=0 protocol

I have a smart card reader and I want to get data from my SIM card. I've tried to send several APDU commands but I could not receive anything but ATR. So if there is a possible way to access a SIM card which APDU commands do I have to send?
BornForJava
  • 221
  • 1
  • 3
  • 13
-3
votes
1 answer

APDU command to write the Changed PIN into the card

What APDU command gets the PIN from the smart card and write the Changed PIN into the card? For writing the code on card I have found 80 D4 00 00 08 01 02 03 04 05 06 07 08 to set pin 1 2 3 4 5 6 7 8 but we got 6D 00 in response i.e Instruction code…
Harish
  • 1,841
  • 1
  • 13
  • 26
-3
votes
2 answers

Decoding the following APDU command both (request and response)

Request => 00 A4 00 00 02 7FF0 00 Response<= 00 00 00 00 7F F0 02 00 00 00 00 00 13 33 01 15
-3
votes
1 answer

initialling SAM (Secure ACCESS MODULE)

I'm working on the AFC (automatic fare collection) system which required a SAM( secure access module) for key management.system works fine with local key management in MCU and I don't have any experience in using SAM.SAM required to install beside…
-3
votes
1 answer

Smart card Access Speed

Today here many Smart card available but some smart card take 4-5 second for Access data use command APDUs like i am use SLE 4442 its take 5 second to access. I need those Smart card which is access in 1 second no more time take and one thing more…
Ruby Bhullar
  • 5
  • 1
  • 5
-3
votes
1 answer

how to Read Binary Records in the SCOSTA smart card

I have successfully created MF,DF,EF file format in Scosta card. I Successfully write binary file with APDU Command 00 D0 00 04 06 Data field which is Six byte in len,Now I want to Read binary data From EF (E0 05).I tried out various Apdu…
-9
votes
1 answer

How can i convert java byte array to hexadecimal array in java

i'm having an Android application which using byte array for APDU commands to a smart card eg : new CommandAPDU(new byte[]{(byte)0, (byte)-92, (byte)4, (byte)0, (byte)12, (byte)-96, (byte)0, (byte)0, (byte)2, (byte)0, (byte)19, (byte)0, (byte)0,…
Dilse
  • 31
  • 4
1 2 3
50
51