javacard ndef applet
Posted: Thu Oct 06, 2016 10:19 pm
Hello.
Please let me ask about an applet of NDEF on JavaCard.
I'm trying
https://github.com/promovicz/javacard-ndef
Simulation works well on Netbeans,
but on Real smard card, it doesnt work well.
Here is error status with GP tool.
---------------------------------------------------
I installed with refering to
java -jar gp.jar \
-params 100BD101075402656E54657374 \
-install javacard-ndef.cap
But, it doesnt work well.
APDU Command with GP tool below:
Success : 9000
A>> T=0 (4+0007) 00A40400 07 D2760000850101
A<< (0000+2) (41ms) 9000
But, next is not success
A>> T=0 (4+0002) 00A4000C 02 E103
A<< (0000+2) (26ms) 6A86
------------------------------------------------------
and simulation result is below
------------------------------------------------------
An instance //aid/D276000085/0101 is created for //aid/D276000085/01.
run-client:
run-script:
Invoking apdutool on C:\Users\shigenori shimizu\Downloads\prj\Netbeans\java-ndef.mod/scripts/java_ndef.scr
ApduTool [v3.0.2]
Copyright (c) 2009 Sun Microsystems, Inc.
All rights reserved.
Use is subject to license terms.
Opening connection to localhost on port 9025.
Connected.
Received ATR = 0x3b 0xf0 0x11 0x00 0xff 0x00
CLA: 00, INS: a4, P1: 04, P2: 00, Lc: 07, d2, 76, 00, 00, 85, 01, 01, Le: 00, SW1: 90, SW2: 00
CLA: 00, INS: a4, P1: 00, P2: 0c, Lc: 02, e1, 03, Le: 00, SW1: 90, SW2: 00
CLA: 00, INS: b0, P1: 00, P2: 00, Lc: 02, 00, 0f, Le: 0f, 00, 0f, 20, 00, 80, 00, 80, 04, 06, e1, 04, 00, 0d, 00, ff, SW1: 90, SW2: 00
CLA: 00, INS: a4, P1: 00, P2: 0c, Lc: 02, e1, 04, Le: 00, SW1: 90, SW2: 00
CLA: 00, INS: b0, P1: 00, P2: 00, Lc: 01, 02, Le: 0d, 00, 0b, d1, 01, 07, 54, 02, 65, 6e, 54, 65, 73, 74, SW1: 90, SW2: 00
CLA: 00, INS: b0, P1: 00, P2: 00, Lc: 02, 01, 12, Le: 0d, 00, 0b, d1, 01, 07, 54, 02, 65, 6e, 54, 65, 73, 74, SW1: 90, SW2: 00
----------------------------------------------------------
From Debugging on real smart card,
it cannot pick up fileId from APDU command.
I dont know why it isnot same between simulator and real smart card.
Could you let me know how to run correctlly ?
Regards,
Shige
Please let me ask about an applet of NDEF on JavaCard.
I'm trying
https://github.com/promovicz/javacard-ndef
Simulation works well on Netbeans,
but on Real smard card, it doesnt work well.
Here is error status with GP tool.
---------------------------------------------------
I installed with refering to
java -jar gp.jar \
-params 100BD101075402656E54657374 \
-install javacard-ndef.cap
But, it doesnt work well.
APDU Command with GP tool below:
Success : 9000
A>> T=0 (4+0007) 00A40400 07 D2760000850101
A<< (0000+2) (41ms) 9000
But, next is not success
A>> T=0 (4+0002) 00A4000C 02 E103
A<< (0000+2) (26ms) 6A86
------------------------------------------------------
and simulation result is below
------------------------------------------------------
An instance //aid/D276000085/0101 is created for //aid/D276000085/01.
run-client:
run-script:
Invoking apdutool on C:\Users\shigenori shimizu\Downloads\prj\Netbeans\java-ndef.mod/scripts/java_ndef.scr
ApduTool [v3.0.2]
Copyright (c) 2009 Sun Microsystems, Inc.
All rights reserved.
Use is subject to license terms.
Opening connection to localhost on port 9025.
Connected.
Received ATR = 0x3b 0xf0 0x11 0x00 0xff 0x00
CLA: 00, INS: a4, P1: 04, P2: 00, Lc: 07, d2, 76, 00, 00, 85, 01, 01, Le: 00, SW1: 90, SW2: 00
CLA: 00, INS: a4, P1: 00, P2: 0c, Lc: 02, e1, 03, Le: 00, SW1: 90, SW2: 00
CLA: 00, INS: b0, P1: 00, P2: 00, Lc: 02, 00, 0f, Le: 0f, 00, 0f, 20, 00, 80, 00, 80, 04, 06, e1, 04, 00, 0d, 00, ff, SW1: 90, SW2: 00
CLA: 00, INS: a4, P1: 00, P2: 0c, Lc: 02, e1, 04, Le: 00, SW1: 90, SW2: 00
CLA: 00, INS: b0, P1: 00, P2: 00, Lc: 01, 02, Le: 0d, 00, 0b, d1, 01, 07, 54, 02, 65, 6e, 54, 65, 73, 74, SW1: 90, SW2: 00
CLA: 00, INS: b0, P1: 00, P2: 00, Lc: 02, 01, 12, Le: 0d, 00, 0b, d1, 01, 07, 54, 02, 65, 6e, 54, 65, 73, 74, SW1: 90, SW2: 00
----------------------------------------------------------
From Debugging on real smart card,
it cannot pick up fileId from APDU command.
I dont know why it isnot same between simulator and real smart card.
Could you let me know how to run correctlly ?
Regards,
Shige