smartcard - Select by AID command is not working -


i want re-develop new desktop application read information emv smart card , i have logs previous (working) application.

assume, there app aid = 44 44 44 44 44 44 44 44 (dddddddd) in emv smart card.

i sending apdu command: 00 a4 04 00 08 44 44 44 44 44 44 44 44 00 , getting timeout exception (timeout = 60s).

i tried send apdu command: 00 a4 04 00 08 44 44 44 44 44 44 44 44 , got response code = 61 37.

i tried select file 1pay.sys.ddf01, got response = 6a82 (it right).

error code 61xx means receive data after calling response command le=xx:

example:

--> 00 a4 04 00 08 44 44 44 44 44 44 44 44 <-- 61 37 --> 00 c0 00 00 37 <-- data of length 0x37 , status code 90 00. 

related question: about response command in javacard

docs oracle:

there may several apdu connections open @ same time using different logical channels same card. however, since apdu protocol synchronous, there can no interleaving of command , response apdus across logical channels. between receipt of command apdu , sending of response apdu command, 1 logical channel active. t=0 protocol, case 4 , case 2 command apdus card may respond '61 xx' or '6c xx'. these special cases must handled implementation in following manner:

'61 xx': implementation must send response card response data before other command sent. '6c xx': implementation must resend command after setting le equal xx received card before other command sent.

in both cases discussed above, implementation must make sure between sending command apdu, receiving status word '61 xx' or '6c xx', , sending response or resending command apdu le set xx respectively, there must not other apdu exchange on logical channel card. in case status word '61 xx' received multiple times successively card, implementation must accumulate response data received card before returning j2me application. j2me applications must remain oblivious of exchanges mentioned above , should response received result of above operations.


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -