Mohsen Gorgani
Mohsen Gorgani

Reputation: 420

how sending apdu to contactless smartcard

I have an applet that works fine on contact card. Now i have a dual interface card (IDCore 3020) and i load my applet via contact interface to it. Also i have a contactless smartcard reader(acr122u) and i want to send APDU command via contactless interface and get response APDU. i sent SelectApplet APDU to card like this but i failed (SW = 6300):

00 A4 04 00 09 [A0,00,00,03,08,00,00,10,00] 00

I have three questions:

1- Can i use my applet in contactless mode like contact with same APDUs?

2- should i do anything to contactless reader recognize my card?

3- does current minidriver that work with contact card also works with contactless card?

Upvotes: 1

Views: 1194

Answers (1)

Maarten Bodewes
Maarten Bodewes

Reputation: 93938

1- Can i use my applet in contactless mode like contact with same APDUs?

Yes, certainly, unless you explicitly disallow it in your code (using getProtocol.

2- should i do anything to contactless reader recognize my card?

No, if you have a PCSC & ISO/IEC 14443 compatible reader you should be able to communicate with it (and you have). I'm not sure what you mean with "recognize" here, but it certainly should be able to see it.

It could give a different ATS than the ATR given by the contact interface. The ATR/ATS is generated before the more general APDU interface can be used.

3- does current minidriver that work with contact card also works with contactless card?

That could be the case, but note the remark about the ATR/ATS above.

Upvotes: 2

Related Questions