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
10
votes
3 answers

Java Card: How to load SIM applet to real smart card?

I developed a Java Card applet in Eclipse and obtained a cap file. Then i used jcManager – Java Secure Card Manager to load that file to my smart cards. I have two type of smart cards: Contact, JCOP 2.1 36K Contactless, JCOP 2.1 My smart card…
Oguz Ozkeroglu
  • 3,025
  • 3
  • 38
  • 64
10
votes
1 answer

Android NFC : Tag lost when APDU command sent to a smart card

I am doing an EMV application on Android OS (Samsung Galaxy). I am able to send several APDU commands without problem but when I am trying to send the internal authentication command. I have this error : Tag lost. Have you got any idea concerning…
user1571292
  • 129
  • 1
  • 9
9
votes
5 answers

What APDU command gets card ID

Which APDU command gets 7 bytes of the card ID? I use T=CL (ISO7816) protocol with ISO14443 layer. On detect card I can see only 4 bytes of the card ID. I found that this should be the APDU command to get a card ID. For example its: 0xFF, 0xCA, …
dr_begemot
  • 133
  • 1
  • 2
  • 7
9
votes
0 answers

NFC Tag Read Speed

We are building a prototype application that reads an NFC tag using Android. However, we are not using the embedded NFC reader and Android SDK since we are using an external bluetooth reader called an ACR1255U-J1 The NFC chips that we are using are…
David
  • 7,652
  • 21
  • 60
  • 98
9
votes
2 answers

Android HCE: are there rules for AID?

I'm trying to use an ACR122 NFC reader to select an application emulated in one Nexus 5 using Android Host Card Emulation. However, small AIDs are not recognized. My goal is to use a three byte long AID, as I do in a DESfire card. My first goal is…
Marcos Ramos
  • 135
  • 1
  • 2
  • 4
9
votes
1 answer

Host card emulation on Android (4.4 / KitKat and above) with Nexus 5

I'm trying to emulate an NFC tag with my Nexus 5 according to this document, but my service is never invoke. Should I turn off Android beam? I'd like to emulate a simple tag containing a url. The reader is a Nexus 7 (2012) and I've figured out the…
8
votes
2 answers

Android NFC Issue with APDU Commands

I am working on an Application using the IsoDep Tag Tech to issue APDU commands to an NFC enabled card. UPDATE: So the issues seen below seem related to the power requirements of the cards I am using, when I use a different card with lower power…
chavez
  • 161
  • 2
  • 9
8
votes
1 answer

iOS11 Core NFC and ISO 14443

As I understand the iOS11 Core NFC, it only supports NDEF. Does this mean that it only supports ISO 15693 tags and does not support ISO 14443 (-3 or -4)? I know that you can send APDUs in NDEF but that's not ISO 7816. Please correct me if I am…
Ibrahim
  • 342
  • 4
  • 14
8
votes
2 answers

NFC Offhost routing to the UICC on the Nexus 5X and the Nexus 6P

I am trying to configure the NFC chipset on the Nexus 5X (bullhead) or Nexus 6P (angler) to use the UICC as NFC offhost route for AIDs I declare in my OffHostApduService. Edit Jan 17, 2016: I've updated this question and also included the Nexus 6P…
Johannes Zweng
  • 133
  • 1
  • 9
8
votes
1 answer

Android NFC IsoDep read file content

I'm trying to read some information out of an ISO/IEC 14443 Type A card. After analysing the card with the android app NFC TagInfo, I found out, that the application (AID: 15845F) has the particular file (File ID: 01) that I need. I already managed…
Vilius
  • 1,169
  • 5
  • 19
  • 32
8
votes
2 answers

Standards for smartcard communication

What is the difference between ISO 14443-3 and ISO 7816-4 APDUs? I'm asking this because seems some cards use former to communicate with reader, some latter. I'm confused with this, would like to get a good understanding about this. For example, I…
user2568508
7
votes
0 answers

CCID RDR_to_PC_DataBlock Error Problem 0xFE ICC_MUTE - Java Smart Card Reading

I am a beginner programmer and have problem about sending CCID Command to the Smart Card via Usb Host on Android mobile device. This time I sent PC_to_RDR_IccPowerOn CCID command PC_to_RDR_IccPowerOn to activate the card and received ATR response…
Bank Bill
  • 71
  • 1
7
votes
0 answers

libnfc with ACR122U gives no response on SELECT (by AID) APDU

See NFC reader "SELECT (by AID)" APDU is not routed to Android device on debugging and eventual results. TL;DR the reader might simply be defunct. I have ACR122U nfc reader. I try to run this example…
cliffroot
  • 1,839
  • 17
  • 27
7
votes
2 answers

Parse CV Rule from CVM List for EMV

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…
unknown
  • 207
  • 3
  • 9
7
votes
1 answer

How to send APDU to Mifare Classic 1k card?

What I am trying to achieve is to send APDU command to MIFARE Classic 1K card to change its A and B keys. I was able to establish a connection with the card and use a default key (FFFFFFFFFFFF) to read block 0 and block 1. I used HID MifareSamples…
Opski
  • 71
  • 1
  • 3
1
2
3
50 51