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
0
votes
2 answers

APDU GET DATA not supported command

I'm testing APDU commands transmitting, and I've found a strange issue, for GET DATA command 00:CA:7F:68 I receive an error: 6D00: "Instruction code not supported or invalid" What can be the problem??? I'm able to read ATR, send SELECT…
Taras
  • 2,526
  • 3
  • 33
  • 63
0
votes
1 answer

uicc toolkit install parameter return 6A80

I have problem with the uicc toolkit install params.. Long tries, but no success.. Have simple uicc toolkit code.. Can't understand where is my error.. Here is my install parameter APDU.. Become always 6A80.. 80 E6 0C 00 => CLA INS…
Kutschka
  • 53
  • 1
  • 5
0
votes
1 answer

APDU to change Mifare Ultralight C authentication

I'm new to NFC programming and wanted to know how I can change the authentication access on a Mifare ultralight C tag. I mean, can I make the tag write protected with a secret key as I would with Mifare Classic 1k, and then authenticate to write…
user921509
  • 88
  • 2
  • 9
0
votes
1 answer

Java Card Conversion

I have written a Java Card App and want to upload it to a Card. But the card supports Java 2.1.1 standard. So I am looking for a way of generating a 2.1.1 Compliant CAP file with my 2.2.2 Kit I have: Java 1.6 GPShell 1.4.2 Java Card 2.2.2 JCOP 30…
Ngetha
  • 254
  • 3
  • 10
0
votes
1 answer

java.lang.SecurityException: JSR 177 access for this connection is not permitted

I'm trying to communicate with a SIM card using the APDUConnection with the SAT target, but I get this exception: "java.lang.SecurityException: JSR 177 access for this connection is not permitted" public void Test() { APDUConnection acn = null; …
Bamaco
  • 592
  • 9
  • 25
-1
votes
1 answer

Writing large amounts of data to a smart card

I'm sending this apdu command to write data to a smart card: 0xFF, 0xD6, 0x00, 0x01, 0x10, 0xc, 0xc, 0xc, 0xc, 0xc, 0xc, 0xc, 0xc, 0xc, 0xc, 0xc, 0xc, 0xc, 0xc, 0xc,0xc This is the part of the command where the data is: 0xc, 0xc, 0xc, 0xc, 0xc,…
-1
votes
1 answer

MTIP 06 Test 4 Scenario 1 failing with Second GEN AC and Issuer Scripts

We are having issues with the MTIP 06 test cases, and they are all responding like this example. APDU Validations as follows: Passed: In Read Record PAN is correct (5A) Passed: In First GEN AC, Tag 9F02 Amount Authorized is correct All of the rest…
-1
votes
1 answer

Finding info (manufacturer, card type...) about a ISO-14443 card with PCSC reader

I recently began to use a PCSC reader with ISO-14443 cards. I'm just looking for a way to tell what type of card has been inserted in my reader. Is there a specific command that I could use ? For example, how can I tell if a MIFARE DESFire card has…
BastouP411
  • 19
  • 4
-1
votes
1 answer

How to access Pinpad of a Smartcard Reader when developing a Javacard Applet

I am relatively new to Javacard and I am in the process of developing my own Javacard Applet which works quite well until now. I am also writing a host program to communicate with my card (via APDUs), this program is written in Java and uses the…
-1
votes
2 answers

Extended APDU Commands

Hello All, I am working on the Contact card(CT) reader, in which I need send more 256 bytes of data. I have read alot on online for the solutions, As they mentioned the T=0 and T=1 protocols and all and even I also readed about the extended APDU…
-1
votes
1 answer

GET RESPONSE returns SW 6400

I created a DF File and some sons EF and sons DF under it. Then I SELECT the file and perform GET RESPONSE command. I am expecting data from the get response command but instead I receive 6400. 6400 is 'No Diagnosis' I have no idea what might cause…
Mags
  • 1
  • 1
-1
votes
2 answers

Reading the contents of unknown smart cards

as the title suggests I'm having difficulty in reading the contents of an unknown smart card. I've an ISO 7816 compatible IC and card, (the IC hooked up to an arduino). I can read the ATR of the card, but I'd like to read the contents of it…
-1
votes
1 answer

Mifare Standard 1K - 6D00 for external authentication APDU

External Authentication: FF 82 20 00 06 FF FF FF FF FF FF What is the correct procedure to run External Authentication? Do we need to run Get Challenge before External Authentication? If I send the apdu of external authentication to OMNIKEY smart…
Richard
  • 19
  • 4
-1
votes
2 answers

SmartCard - Select MF succedd but no response

So I am trying to read my transportation card using what I have learned so far about smartcards. My ATR is: 3B 6F 00 00 80 5A 0A 07 06 20 04 01 03 01 F4 1F 82 90 00 when I looked in the ATR parser it didn't give me much information. when I chose…
DaniDin
  • 91
  • 9
-1
votes
1 answer

Load cap file into javacard

I'm currently developing c# dll for machine to load applet into java card. I tried to convert file into bytes but the bytes are not the same as the bytes from pyapdutool. From PYAPDUTOOL <<80 E8 00 00 FA C4 82 53 AB 01 00 27 DE CA FF ED 02 02 04 00…
Bya
  • 11
  • 2