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
1 answer

HCE on Nexus 7 (2013) with PN532 communication

I am communicating between PN532 on Arduino Uno with Nexus 7 running Kitkat 4.4.2, The HCE program I had from here: https://github.com/grundid/host-card-emulation-sample I run the sample program on Nexus 7, and on Arduino I try to send APDU…
Bao Doan
  • 87
  • 1
  • 2
  • 13
0
votes
3 answers

Read smart card files

i am trying to read a smart card files , after a long search i can now send APDU command to select MF (Master File) but i need to access to EF (Elementary File) , here is the command i'm sending : ResponseAPDU r = channel.transmit(new…
Anass Boukalane
  • 539
  • 10
  • 26
0
votes
0 answers

Is mandatory to use Desfire for encryption?

I'm new to the NFC standards and I have only played with Ntag203, Mifare Classic and Desfire. I'm trying to figure out what is the advantage of Desfire for our application. I have looked through ISO 14443 and ISO 7816-4 standards and I can only…
Sandeep
  • 1,745
  • 3
  • 20
  • 30
0
votes
1 answer

Java Card Communication

I recently bought some Java Cards: GP 2.1.1 JC 2.2.2 JCOP I have created some applets using the emulators. Now I need to transfer these to the card. I am using the open source "gpshell" and "jcManager" to load the applets. The problem is that I…
nikosdi
  • 2,138
  • 5
  • 26
  • 35
0
votes
1 answer

ScardTransmit always returning error 16

I am trying to build application in windows using the Winscard library to communicate with contactless smartcard reader. I am able to connect to the device but when I try so send some data using scardtransmit I get a error 16. I have attached the…
0
votes
1 answer

Expected Response by Broadcom NFC Stack for Read Bianry Based Presence Check

We ran into Read Binary presence check bug on Broadcom NFC stack. Samsung S4(4.2.2) is sending random read binary commands 00 B0 00 00 01. I have no flexibility to move to Android 4.4 with reader mode API support that allows delaying presence…
Sunita
  • 336
  • 2
  • 18
0
votes
1 answer

Issue with DESfire EV1 wrapped APDU for PPS command while using javax.smartcardio

I am writing a software in java, on the reader side, to communicate with a MiFare DESfire EV1 card. I am using for this javax.smartcardio. I managed to create a channel and send wrapped APDU of native DESfire commands. For example I managed to read…
Saralou
  • 63
  • 4
0
votes
1 answer

Retrieving and displaying value from Read Block APDU command smartcardio

I am working on a RFID based attendance monitoring system. I used Mifare 1k Classic as my RFID and ACR122u as my reader. I learned that you can store value to the card using the STORE VALUE BLOCK APDU command and can also be read by using READ BLOCK…
0
votes
1 answer

TagLostException IsoDep Android Java card

I'm working with a Java card using Android IsoDep. I have already set the timeout to 50000 milliseconds. I also calculated the duration the NFC connection was opened and it was just over 6 seconds. I put the card on my table and put my phone on top…
ericn
  • 12,476
  • 16
  • 84
  • 127
0
votes
1 answer

APDU GET response Samsung S4

I am testing sending APDU commands on S3's and S4's. On my S3 I send out the APDU and get back 9000. Knowing that my response also has 8 bytes of data i do: 80C0000010 On my S4 I send out the same APDU as above and get 6108 (61 data available - 08 ,…
Doolali
  • 956
  • 9
  • 13
0
votes
2 answers

Arduino: uint8_t array to string

I have an NFC application built on android that sends a hash as an apdu answer. This is the code I use in my Android app to send the hash: @Override public byte[] processCommandApdu(byte[] arg0, Bundle arg1) { String hash =…
ReX357
  • 1,199
  • 3
  • 19
  • 43
0
votes
1 answer

Best way to store data using APDU's?

I have bunch of records in my offcard application and I want to save them all in javacard, The question is: What is the best way of transferring data to Java Card? Should I transfer all data record by record (each one with a APDU) or send all the…
Hana Bzh
  • 2,212
  • 3
  • 18
  • 38
0
votes
1 answer

Emulate DESFire card on NFC phone

For my master thesis I'm investigating the possibility to use an NFC enabled phone for opening off-line door locks. These locks currently work with DESFire cards which contains authorisation data. Furthermore, the card is also used to update…
Lespaul86
  • 23
  • 4
0
votes
1 answer

APDU Update Record

What are the last 3 bits in APDU Update Records? -- -- -- -- -- 0 0 0 First record -- -- -- -- -- 0 0 1 Last record -- -- -- -- -- 0 1 0 Next record -- -- -- -- -- 0 1 1 Previous record -- -- -- -- -- 1 0 0 Record number given in P1…
Giovanni
  • 83
  • 1
  • 7
0
votes
1 answer

Java cardSending data recieved 6f 00 error code

I have created ECC (Elliptic curve cryptography) in jcop j3A081 card.(dual interface card).Then i have android Application which use the Android ISO dep Connection to Communicate with the java card.(Contactless interface).So First i have select the…
Sajith Vijesekara
  • 1,324
  • 2
  • 17
  • 52