I am badly stuck with SIM toolkit applet loading and need help.
Hi,
I am badly stuck with the problem of loading a SIM toolkit applet, same error comes repeatedly, i need your help.
I have got IBM Jcop software , sim.toolkit and sim.access libraries (43019) with jcop30 and jcop20 cards. I am mostly using ToolkitAppletExample from simalliance.org. Both in simulation and real JCOP environment, it fails while running the install command with error code 69 85 (Conditions of use not satisfied). Packages like toolkit and access and ToolkitExample get loaded but the toolkitexample applet doesnot become selectable.
Secondly i tried the same problem by interoperable Loader from simalliance.org with toolkitAppletExample.cap it always gives error that no Point of Receipt has been used. If i give any DES key then it gives error 6E 00.
Please help me. I have tried a lot but failed to find out why it happens.
Eagerly waiting for your reply.
thanks,
# 1
For analysis please paste the JCShell log.
# 2
thanks for quick response. here is it.
cm> /term "Remote|localhost:2783"
--Opening terminal
> /card -a a000000003000000 -c com.ibm.jc.CardManager
--Waiting for card...
ATR=3B E9 00 00 81 31 FE 45 4A 43 4F 50 34 31 56 32;....1.EJCOP41V2
32 A7 2.
ATR: T=1, N=0, IFSC=254, BWI=4/CWI=5, Hist="JCOP41V22"
=> 00 A4 04 00 08 A0 00 00 00 03 00 00 00 00 ..............
(805495 nsec)
<= 6F 10 84 08 A0 00 00 00 03 00 00 00 A5 04 9F 65o..............e
01 FF 90 00....
Status: No Error
cm> set-key 255/1/DES-ECB/404142434445464748494a4b4c4d4e4f 255/2/DES-ECB/404142434445464748494a4b4c4d4e4f 255/3/DES-ECB/404142434445464748494a4b4c4d4e4f
cm> init-update 255
=> 80 50 00 00 08 03 1E A9 58 AD AC 95 D7 00 .P......X.....
(2041 usec)
<= 00 00 C6 D8 6A 1C B2 02 14 13 FF 02 00 00 93 73....j..........s
3A B8 2C 0F 80 BC CF 18 DD D6 E7 F3 90 00 :.,...........
Status: No Error
cm> ext-auth plain
=> 84 82 00 00 10 2A AF 47 9C 92 24 AC EF 19 2E F5.....*.G..$.....
63 C0 15 72 07 c..r.
(1735 usec)
<= 90 00 ..
Status: No Error
cm> delete 73696d6578616d706c65
=> 80 E4 00 00 0C 4F 0A 73 69 6D 65 78 61 6D 70 6C.....O.simexampl
65 00 e.
(851062 nsec)
<= 6A 88 j.
Status: Reference data not found
jcshell: Error code: 6a88 (Reference data not found)
jcshell: Wrong response APDU: 6A88
Ignoring expected error
cm> delete 73696d6578616d706c65
=> 80 E4 00 00 0C 4F 0A 73 69 6D 65 78 61 6D 70 6C.....O.simexampl
65 00 e.
(806884 nsec)
<= 6A 88 j.
Status: Reference data not found
jcshell: Error code: 6a88 (Reference data not found)
jcshell: Wrong response APDU: 6A88
Ignoring expected error
cm> delete 746f6f6c6b6974
=> 80 E4 00 00 09 4F 07 74 6F 6F 6C 6B 69 74 00.....O.toolkit.
(857323 nsec)
<= 6A 88 j.
Status: Reference data not found
jcshell: Error code: 6a88 (Reference data not found)
jcshell: Wrong response APDU: 6A88
Ignoring expected error
cm> delete 616363657373
=> 80 E4 00 00 08 4F 06 61 63 63 65 73 73 00 .....O.access.
(747559 nsec)
<= 6A 88 j.
Status: Reference data not found
jcshell: Error code: 6a88 (Reference data not found)
jcshell: Wrong response APDU: 6A88
Ignoring expected error
cm> upload "C:\Documents and Settings\Administrator\workspace\Copy of simapi\bin\sim\access\javacard\access.cap"
=> 80 E6 02 00 13 06 61 63 63 65 73 73 08 A0 00 00......access....
00 03 00 00 00 00 00 00 00 .........
(1497 usec)
<= 00 90 00...
Status: No Error
=> 80 E8 80 00 BD C4 81 BA 01 00 10 DE CA FF ED 01................
02 02 00 01 06 61 63 63 65 73 73 02 00 1F 00 10.....access.....
00 1F 00 00 00 15 00 0A 00 17 00 17 00 0A 00 06................
00 13 00 FB 00 00 00 00 00 00 02 00 00 04 00 15................
02 00 01 07 A0 00 00 00 62 01 01 00 01 07 A0 00........b.......
00 00 62 00 01 06 00 17 C1 80 02 00 81 00 00 FF..b.............
00 01 00 00 00 00 80 05 00 FF 00 03 00 00 00 07................
00 17 00 01 10 18 8C 00 00 7A 01 00 01 77 02 20.........z...w.
18 1D 8C 00 01 7A 00 10 7A 08 00 0A 00 00 00 00.....z..z.......
00 00 00 00 00 00 0A 00 13 03 00 00 00 00 00 03................
00 01 00 08 00 0D 00 02 00 0C 00 14 05 00 0A 00................
02 06 81 00 00 06 80 05 00 09 00 06 00 00 00 02................
05 0C 00...
(9541 usec)
<= 00 90 00...
Status: No Error
Load report:
189 bytes loaded in 0.0 seconds
effective code size on card:
+ package AID6
+ applet AIDs0
+ classes26
+ methods26
+ statics0
+ exports22
overall80 bytes
cm> upload "C:\Documents and Settings\Administrator\workspace\Copy of simapi\bin\sim\toolkit\javacard\toolkit.cap"
=> 80 E6 02 00 14 07 74 6F 6F 6C 6B 69 74 08 A0 00......toolkit...
00 00 03 00 00 00 00 00 00 00 ..........
(1792 usec)
<= 00 90 00...
Status: No Error
=> 80 E8 00 00 FF C4 82 02 E9 01 00 11 DE CA FF ED................
01 02 02 00 01 07 74 6F 6F 6C 6B 69 74 02 00 1F......toolkit...
00 11 00 1F 00 00 00 15 00 12 00 D0 01 49 00 0A.............I..
00 0F 00 45 04 9A 00 00 00 00 00 00 02 00 00 04...E............
00 15 02 00 01 07 A0 00 00 00 62 01 01 00 01 07..........b.....
A0 00 00 00 62 00 01 06 00 D0 C1 80 02 80 00 81....b...........
00 00 FF 00 01 0B 00 00 00 0F 00 13 00 17 00 1B................
00 1F 00 23 00 27 00 2B 00 2F 00 33 00 37 00 00...#.'.+./.3.7..
04 00 FF 00 0C 06 00 00 00 49 00 4C 00 4F 00 52.........I.L.O.R
00 55 00 58 00 00 04 00 FF 00 0C 08 00 00 00 66.U.X...........f
00 6A 00 6E 00 72 00 76 00 7A 00 7E 00 82 00 00.j.n.r.v.z.~....
24 00 FF 00 12 03 00 00 00 91 00 94 00 97 00 81$...............
00 00 FF 00 01 00 00 00 00 00 24 00 FF 00 12 07..........$.....
00 00 00 C1 00 C4 00 C8 00 CB 00 CE 00 D1 00 D4................
00 00 04 00 FF 00 0C 0A 00 00 00 E3 00 E7 00 EB................
00 EF 00 F3 00 F7 00 FB 00 FF 01 03 01 07 00 80................
05 00 FF 00 00 .....
(8332 usec)
<= 00 90 00...
Status: No Error
=> 80 E8 00 01 FF 03 00 00 00 00 81 00 00 FF 00 01................
0C 00 00 01 21 01 24 01 27 01 2A 01 2E 01 31 01....!.$.'.*...1.
34 01 38 01 3B 01 3F 01 42 01 45 07 01 49 00 014.8.;.?.B.E..I..
10 18 8C 00 02 7A 01 40 18 8C 00 02 7A 01 10 03.....z.@....z...
78 01 40 03 78 01 30 03 78 01 10 03 78 01 20 03x.@.x.0.x...x. .
78 01 50 03 78 01 50 03 78 01 40 03 78 01 70 03x.P.x.P.x.@.x.p.
78 01 40 03 78 01 70 03 78 01 10 18 8C 00 00 7Ax.@.x.p.x......z
01 40 18 8C 00 00 7A 00 10 7A 00 40 7A 00 50 7A.@....z..z.@z.Pz
00 30 7A 00 40 7A 00 60 7A 01 10 18 8C 00 00 7A.0z.@z.`z......z
01 00 01 77 01 10 03 78 01 10 03 78 01 10 03 78...w...x...x...x
01 10 03 78 01 10 03 78 01 10 03 78 01 10 03 78...x...x...x...x
01 10 03 78 01 10 18 8C 00 03 7A 01 00 01 77 00...x......z...w.
20 7A 00 30 7A 01 10 03 78 01 10 18 8C 00 02 7Az.0z...x......z
01 10 03 78 01 30 03 78 01 10 03 78 01 20 03 78...x.0.x...x. .x
01 40 03 78 01 10 18 8C 00 03 7A 01 00 01 77 00.@.x......z...w.
40 7A 01 10 03 78 00 60 7A 00 60 7A 00 80 7A 00@z...x.`z.`z..z.
20 7A 01 10 00 z...
(2550 usec)
<= 00 90 00...
Status: No Error
=> 80 E8 80 02 EF 03 78 01 10 18 8C 00 00 7A 01 00......x......z..
01 77 01 10 03 78 01 10 03 78 01 40 03 78 01 10.w...x...x.@.x..
03 78 01 10 03 78 01 10 03 78 01 30 03 78 01 10.x...x...x.0.x..
03 78 01 40 03 78 01 10 03 78 02 20 18 1D 8C 00.x.@.x...x. ....
01 7A 00 10 7A 01 10 18 8C 00 02 7A 01 00 01 77.z..z......z...w
00 20 7A 00 40 7A 00 20 7A 01 20 03 78 00 20 7A. z.@z. z. .x. z
00 20 7A 01 80 03 78 00 90 7A 01 10 03 78 00 20. z...x..z...x.
7A 00 20 7A 01 10 03 78 08 00 0A 00 00 00 00 00z. z...x........
00 00 00 00 00 0A 00 45 0B 00 00 00 00 00 03 00.......E........
00 00 04 00 00 00 24 00 00 00 3A 00 01 00 62 00......$...:...b.
54 00 01 00 8D 00 64 00 05 00 A2 00 A6 00 AA 00T.....d.........
AE 00 B2 00 6E 00 01 00 BD 00 86 00 01 00 DF 00....n...........
A4 00 02 01 0B 01 13 00 AE 00 01 01 1D 05 00 12................
00 04 06 00 00 01 06 80 05 00 06 81 00 00 06 00................
00 3B 09 00 0F 00 00 00 0B 05 07 33 07 19 2B 15.;.........3..+.
1B 22 34 0A 00 ."4..
(11514 usec)
<= 00 90 00...
Status: No Error
Load report:
749 bytes loaded in 0.0 seconds
effective code size on card:
+ package AID7
+ applet AIDs0
+ classes211
+ methods332
+ statics0
+ exports72
overall622 bytes
cm> upload "C:\Documents and Settings\Administrator\workspace\Copy of simapi\bin\ToolkitAppletExample\javacard\ToolkitAppletExample.cap"
=> 80 E6 02 00 17 0A 73 69 6D 65 78 61 6D 70 6C 65......simexample
08 A0 00 00 00 03 00 00 00 00 00 00 00 .............
(1715 usec)
<= 00 90 00...
Status: No Error
=> 80 E8 00 00 FF C4 82 08 F9 01 00 14 DE CA FF ED................
01 02 04 00 01 0A 73 69 6D 65 78 61 6D 70 6C 65......simexample
02 00 1F 00 14 00 1F 00 0E 00 28 01 0A 00 1C 04..........(.....
97 02 30 00 88 00 00 01 DC 00 0D 00 05 02 16 04..0.............
01 00 04 00 28 04 00 01 07 A0 00 00 00 62 01 01....(........b..
00 01 07 74 6F 6F 6C 6B 69 74 00 01 07 A0 00 00...toolkit......
00 62 00 01 00 01 06 61 63 63 65 73 73 03 00 0E.b.....access...
01 0A 73 69 6D 65 78 61 6D 70 6C 65 01 E4 06 00..simexample....
1C 43 80 03 0F 00 0D 05 04 00 00 01 F3 FF FF 04.C..............
62 02 09 81 00 01 08 80 02 00 81 01 00 07 04 97b...............
01 03 24 80 2D 03 53 00 1A 09 10 18 8C 00 18 18..$.-.S.........
10 0C 90 0B 3D 03 10 30 38 3D 04 10 33 38 3D 05....=..08=..38=.
10 2E 38 3D 06 10 31 38 3D 07 10 39 38 3D 08 10..8=..18=..98=..
20 38 3D 10 06 10 41 38 3D 10 07 10 70 38 3D 108=...A8=...p8=.
08 10 70 38 3D 10 09 10 6C 38 3D 10 0A 10 65 38..p8=...l8=...e8
3D 10 0B 10 74 38 87 0D 18 10 06 90 0B 3D 03 10=...t8.......=..
4D 38 3D 04 00 M8=..
(7260 usec)
<= 00 90 00...
Status: No Error
=> 80 E8 00 01 FF 10 79 38 3D 05 10 4D 38 3D 06 10......y8=..M8=..
65 38 3D 07 10 6E 38 3D 08 10 75 38 87 09 18 08e8=..n8=..u8....
90 0B 3D 03 10 49 38 3D 04 10 54 38 3D 05 10 45..=..I8=..T8=..E
38 3D 06 10 4D 38 3D 07 10 31 38 87 03 18 08 908=..M8=..18.....
0B 3D 03 10 49 38 3D 04 10 54 38 3D 05 10 45 38.=..I8=..T8=..E8
3D 06 10 4D 38 3D 07 10 32 38 87 06 18 08 90 0B=..M8=..28......
3D 03 10 49 38 3D 04 10 54 38 3D 05 10 45 38 3D=..I8=..T8=..E8=
06 10 4D 38 3D 07 10 33 38 87 00 18 08 90 0B 3D..M8=..38......=
03 10 49 38 3D 04 10 54 38 3D 05 10 45 38 3D 06..I8=..T8=..E8=.
10 4D 38 3D 07 10 34 38 87 04 18 07 91 00 0F 3D.M8=..48.......=
03 AD 03 37 3D 04 AD 06 37 3D 05 AD 00 37 3D 06...7=...7=...7=.
AD 04 37 87 02 18 10 0C 90 0B 3D 03 10 48 38 3D..7.......=..H8=
04 10 65 38 3D 05 10 6C 38 3D 06 10 6C 38 3D 07..e8=..l8=..l8=.
10 6F 38 3D 08 10 20 38 3D 10 06 10 77 38 3D 10.o8=.. 8=...w8=.
07 10 6F 38 3D 10 08 10 72 38 3D 10 09 10 6C 38..o8=...r8=...l8
3D 10 0A 10 64 38 3D 10 0B 10 32 38 87 0A 18 10=...d8=...28....
0A 90 0B 3D 00 ...=.
(997105 nsec)
<= 00 90 00...
Status: No Error
=> 80 E8 00 02 FF 03 10 59 38 3D 04 10 6F 38 3D 05.......Y8=..o8=.
10 75 38 3D 06 10 72 38 3D 07 10 20 38 3D 08 10.u8=..r8=.. 8=..
6E 38 3D 10 06 10 61 38 3D 10 07 10 6D 38 3D 10n8=...a8=...m8=.
08 10 65 38 3D 10 09 10 3F 38 87 0B 18 10 07 90..e8=...?8......
0B 3D 03 10 A0 38 3D 07 10 09 38 3D 10 06 04 38.=...8=...8=...8
87 0C 18 10 0A 90 0B 87 01 18 8D 00 31 87 07 18............1...
8D 00 2C 87 05 18 AD 05 AD 0D 03 AD 0D 92 10 21..,............!
03 03 03 8B 00 17 88 08 AD 05 07 8B 00 2A AD 05.............*..
10 16 8B 00 2A 7A 02 31 8F 00 24 3D 8C 00 3B 2E....*z.1..$=..;.
1B 8B 00 28 7A 04 30 1E 61 11 19 AD 0C 03 AD 0C...(z.0.a.......
92 5B 8B 00 1D 60 04 18 77 01 77 08 27 8D 00 12.[...`..w.w.'...
2D 8D 00 36 2E 1D 75 02 4D 00 03 00 04 01 60 00-..6..u.M.....`.
07 00 11 00 16 01 BD 1B 10 24 03 10 82 8B 00 35.........$.....5
1B 10 85 AD 09 03 AD 09 92 8B 00 15 03 29 06 70.............).p
24 1B 10 8F 16 06 04 41 5B AD 02 16 06 24 94 0B$......A[....$..
00 00 03 AD 02 16 06 24 94 0B 00 00 92 8B 00 2D.......$.......-
59 06 01 16 00 Y....
(968283 nsec)
<= 00 90 00...
Status: No Error
=> 80 E8 00 03 FF 06 07 6C DB 18 1B 8B 00 3F 3F 12.......l.....?.
88 0E 99 01 F2 8D 00 23 28 04 15 04 8B 00 1B 73.......#(......s
01 E5 00 01 00 04 00 0F 00 0F 00 87 00 A5 1B 10................
40 03 10 82 8B 00 35 1B 10 B5 05 7B 00 38 03 7B@.....5....{.8.{
00 38 92 8B 00 2D 1B 10 B9 04 10 F4 8B 00 2F 1B.8...-......../.
10 C7 7B 00 3D 03 7B 00 3D 92 8B 00 15 1B 10 BC..{.=.{.=.......
04 7B 00 25 03 7B 00 25 92 8B 00 2D 1B 10 BE 10.{.%.{.%...-....
21 7B 00 37 03 7B 00 37 92 8B 00 2D 18 1B 8B 00!{.7.{.7...-....
3F 88 0E AE 0E 61 1A 8D 00 23 28 04 15 04 8B 00?....a...#(.....
10 80 00 21 15 04 8B 00 30 81 00 3E A8 01 68 03...!....0..>..h.
80 00 21 A8 01 61 1B 10 21 10 80 05 8B 00 35 1B..!..a..!.....5.
10 8D 07 AD 0A 03 AD 0A 92 8B 00 2D 1B 8B 00 3F...........-...?
3B A8 01 43 03 29 05 1B 04 07 AD 0B 03 AD 0B 92;..C.)..........
04 05 8B 00 29 1B 8B 00 3F 3B 15 04 AD 0A 03 8B....)...?;......
00 41 3B 1B 03 07 AD 0A 03 AD 0A 92 8B 00 16 1B.A;.............
8B 00 3F 3B 70 1C 28 06 15 06 8B 00 13 06 6B 12..?;p.(.......k.
15 04 8B 00 00 .....
(889924 nsec)
<= 00 90 00...
Status: No Error
=> 80 E8 00 04 FF 19 10 10 A2 00 FD 04 29 05 A8 00............)...
F7 16 05 61 B2 A8 00 F0 1A 8B 00 11 10 0F 41 29...a..........A)
06 1A 16 06 8B 00 32 75 00 DE 00 02 00 36 00 3D......2u.....6.=
00 41 00 0D 1A 16 06 04 41 AD 01 03 06 8B 00 22.A......A......"
3B AD 07 11 7F 20 8E 02 00 3C 01 AD 07 11 6F 41;.... ...<....oA
8E 02 00 3C 01 AD 07 03 AD 01 03 06 8E 05 00 3C...<...........<
04 A8 00 A4 1A 16 06 04 41 AD 09 03 10 06 8B 00........A.......
22 3B A8 00 93 7C 00 21 1A 8B 00 33 A3 00 89 03";...|.!...3....
29 08 1A 10 37 04 8B 00 2E 3B 1A 03 8B 00 32 29)...7....;....2)
07 7D 00 3E 10 12 43 16 07 11 00 FF 53 6D 0B 7D.}.>..C.....Sm.}
00 3E 10 12 43 5B 29 07 1B 10 42 03 7C 00 21 8B.>..C[)...B.|.!.
00 35 1B 10 B7 16 07 8B 00 27 18 1B 8B 00 3F 88.5.......'....?.
0E AE 0E 61 32 8D 00 23 28 04 15 04 10 36 04 8B...a2..#(....6..
00 34 3B 15 04 7B 00 3A 16 08 15 04 8B 00 2B 8B.4;..{.:......+.
00 39 29 08 15 04 10 37 04 8B 00 34 3B 15 04 03.9)....7...4;...
8B 00 26 29 07 16 07 61 9A 1B 7C 00 21 8B 00 1F..&)...a..|.!...
1B 8B 00 3F 00 ...?.
(976870 nsec)
<= 00 90 00...
Status: No Error
=> 80 E8 00 05 FF 3B 7A 05 20 18 8B 00 14 60 03 7A.....;z. ....`.z
19 8B 00 40 04 25 73 00 1F 00 46 00 46 00 09 19...@.%s...F.F...
8B 00 1C 65 18 19 8B 00 40 08 AD 09 03 10 06 8D...e....@.......
00 1E 3B 70 08 11 6D 00 8D 00 20 7A 08 02 30 00..;p..m... z..0.
0D 00 05 00 05 03 00 15 0A 6D 79 6F 70 65 72 61.........myopera
74 6F 72 09 6D 79 63 6F 75 6E 74 72 79 03 00 07tor.mycountry...
02 01 01 01 01 01 02 03 00 02 00 23 03 01 F4 00...........#....
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 .....
(2621 usec)
<= 00 90 00...
Status: No Error
=> 80 E8 00 06 FF 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 .....
(925484 nsec)
<= 00 90 00...
Status: No Error
=> 80 E8 00 07 FF 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 03 00 04 A3 BB CB 01 00 02 00 01................
00 05 01 0A 00 42 02 00 00 04 02 00 00 0C 02 00.....B..........
00 06 02 00 00 02 02 00 00 05 02 00 00 0A 02 00................
00 03 02 00 00 0B 02 00 00 0D 02 00 00 01 02 00................
00 07 02 00 00 08 02 00 00 09 02 00 00 00 02 00................
00 0E 01 82 00 00 03 81 08 13 03 81 04 0D 06 81................
04 00 03 81 09 01 03 80 03 03 03 81 07 0E 03 81................
07 14 03 81 0A 07 06 80 03 00 03 81 08 0C 01 81................
09 00 03 81 08 0F 03 80 0A 06 03 80 06 04 06 80................
10 01 03 81 07 17 06 80 07 01 05 00 00 0C 03 81................
04 06 06 81 00 .....
(12520 usec)
<= 00 90 00...
Status: No Error
=> 80 E8 00 08 FF 08 00 01 00 00 00 05 00 00 04 03................
81 08 05 03 81 07 0F 03 80 03 01 03 81 07 16 03................
81 0A 01 03 81 08 04 06 81 0A 00 03 81 07 11 03................
81 04 03 03 81 07 10 03 81 08 15 06 83 01 00 03................
81 04 05 03 81 04 11 03 81 08 03 03 81 07 12 06................
81 07 00 05 00 00 08 05 00 00 02 03 81 08 14 05................
00 00 06 06 00 00 09 01 83 00 00 05 00 00 00 05................
00 00 0A 03 81 07 13 03 80 0A 01 03 81 08 12 09................
00 88 00 30 57 25 1F 1F 1F 1F 09 05 05 05 03 49...0W%.........I
3D 16 07 06 06 03 02 03 0B 02 06 1D 03 35 03 13=............5..
0A 1C 71 02 30 03 14 03 0F 0A 03 4F 08 0A 0A 03..q.0......O....
11 56 02 68 00 54 07 06 EF BD 06 13 08 07 06 04.V.h.T..........
05 11 0B 04 1C 0C 24 0D 0A 07 18 07 04 04 09 06......$.........
04 04 07 04 04 08 04 04 05 09 07 03 05 03 07 0C................
0D 04 15 04 09 0D 04 0A 08 16 0B 19 0A 0A 0C 11................
07 04 0D 06 05 0E 0D 03 08 05 09 0A 06 07 03 0A................
07 0A 03 04 00 .....
(21778 usec)
<= 00 90 00...
Status: No Error
=> 80 E8 80 09 06 08 07 0F 06 09 09 00............
(3195 usec)
<= 00 90 00...
Status: No Error
Load report:
2301 bytes loaded in 0.0 seconds
effective code size on card:
+ package AID10
+ applet AIDs17
+ classes31
+ methods1178
+ statics582
+ exports0
overall1818 bytes
cm> install -i 73696d6578616d706c65 -q C9#() 73696d6578616d706c65 73696d6578616d706c65
=> 80 E6 0C 00 27 0A 73 69 6D 65 78 61 6D 70 6C 65....'.simexample
0A 73 69 6D 65 78 61 6D 70 6C 65 0A 73 69 6D 65.simexample.sime
78 61 6D 70 6C 65 01 00 02 C9 00 00 00 xample.......
(1425 usec)
<= 69 85 i.
Status: Conditions of use not satisfied
jcshell: Error code: 6985 (Conditions of use not satisfied)
jcshell: Wrong response APDU: 6985
Unexpected error; aborting execution
# 3
Next time please place the log into a code tag.
the problem in the INSTALL[for install and make selectable] command cm> install -i 73696d6578616d706c65 -q C9#() 73696d6578616d706c65 73696d6578616d706c65
=> 80 E6 0C 00 27 0A 73 69 6D 65 78 61 6D 70 6C 65 ....'.simexample
0A 73 69 6D 65 78 61 6D 70 6C 65 0A 73 69 6D 65 .simexample.sime
78 61 6D 70 6C 65 01 00 02 C9 00 00 00 xample.......
(1425 usec)
<= 69 85 i.
Status: Conditions of use not satisfied
jcshell: Error code: 6985 (Conditions of use not satisfied)
jcshell: Wrong response APDU: 6985
Unexpected error; aborting execution
The Application AID and the Module AID are the same as the package AID --> error code '6985'. Change the Application and Module AID in the JCOP Explorer (e.g. add '01'). The Application AID can be the same as the Module AID.
# 4
Thanks for your reply. I have made the Ids different on your advice but i still face the same problem. may be i am still missing something.
cm> /term "Remote|localhost:3223"
--Opening terminal
> /card -a a000000003000000 -c com.ibm.jc.CardManager
--Waiting for card...
ATR=3B E9 00 00 81 31 FE 45 4A 43 4F 50 34 31 56 32;....1.EJCOP41V2
32 A7 2.
ATR: T=1, N=0, IFSC=254, BWI=4/CWI=5, Hist="JCOP41V22"
=> 00 A4 04 00 08 A0 00 00 00 03 00 00 00 00 ..............
(891956 nsec)
<= 6F 10 84 08 A0 00 00 00 03 00 00 00 A5 04 9F 65o..............e
01 FF 90 00....
Status: No Error
cm> set-key 255/1/DES-ECB/404142434445464748494a4b4c4d4e4f 255/2/DES-ECB/404142434445464748494a4b4c4d4e4f 255/3/DES-ECB/404142434445464748494a4b4c4d4e4f
cm> init-update 255
=> 80 50 00 00 08 DD 83 0F 80 96 CF 0B 5E 00 .P..........^.
(2045 usec)
<= 00 00 C6 D8 6A 1C B2 02 14 13 FF 02 00 00 93 73....j..........s
3A B8 2C 0F 4C A0 74 FE 7A 81 2A D3 90 00 :.,.L.t.z.*...
Status: No Error
cm> ext-auth plain
=> 84 82 00 00 10 23 BA FF AC A1 2A F7 7A 4B 5A DA.....#....*.zKZ.
FE 4F 3C C5 D3 .O<..
(1982 usec)
<= 90 00 ..
Status: No Error
cm> delete 6e616d653033
=> 80 E4 00 00 08 4F 06 6E 61 6D 65 30 33 00 .....O.name03.
(691828 nsec)
<= 6A 88 j.
Status: Reference data not found
jcshell: Error code: 6a88 (Reference data not found)
jcshell: Wrong response APDU: 6A88
Ignoring expected error
cm> delete 746573743032
=> 80 E4 00 00 08 4F 06 74 65 73 74 30 32 00 .....O.test02.
(834254 nsec)
<= 6A 88 j.
Status: Reference data not found
jcshell: Error code: 6a88 (Reference data not found)
jcshell: Wrong response APDU: 6A88
Ignoring expected error
cm> delete 746f6f6c6b6974
=> 80 E4 00 00 09 4F 07 74 6F 6F 6C 6B 69 74 00.....O.toolkit.
(880613 nsec)
<= 6A 88 j.
Status: Reference data not found
jcshell: Error code: 6a88 (Reference data not found)
jcshell: Wrong response APDU: 6A88
Ignoring expected error
cm> delete 616363657373
=> 80 E4 00 00 08 4F 06 61 63 63 65 73 73 00 .....O.access.
(960457 nsec)
<= 6A 88 j.
Status: Reference data not found
jcshell: Error code: 6a88 (Reference data not found)
jcshell: Wrong response APDU: 6A88
Ignoring expected error
cm> upload "C:\Documents and Settings\Administrator\workspace\Copy of simapi\bin\sim\access\javacard\access.cap"
=> 80 E6 02 00 13 06 61 63 63 65 73 73 08 A0 00 00......access....
00 03 00 00 00 00 00 00 00 .........
(1752 usec)
<= 00 90 00...
Status: No Error
=> 80 E8 80 00 BD C4 81 BA 01 00 10 DE CA FF ED 01................
02 02 00 01 06 61 63 63 65 73 73 02 00 1F 00 10.....access.....
00 1F 00 00 00 15 00 0A 00 17 00 17 00 0A 00 06................
00 13 00 FB 00 00 00 00 00 00 02 00 00 04 00 15................
02 00 01 07 A0 00 00 00 62 01 01 00 01 07 A0 00........b.......
00 00 62 00 01 06 00 17 C1 80 02 00 81 00 00 FF..b.............
00 01 00 00 00 00 80 05 00 FF 00 03 00 00 00 07................
00 17 00 01 10 18 8C 00 01 7A 01 00 01 77 02 20.........z...w.
18 1D 8C 00 00 7A 00 10 7A 08 00 0A 00 00 00 00.....z..z.......
00 00 00 00 00 00 0A 00 13 03 00 00 00 00 00 03................
00 01 00 08 00 0D 00 02 00 0C 00 14 05 00 0A 00................
02 06 80 05 00 06 81 00 00 09 00 06 00 00 00 02................
05 0C 00...
(9577 usec)
<= 00 90 00...
Status: No Error
Load report:
189 bytes loaded in 0.0 seconds
effective code size on card:
+ package AID6
+ applet AIDs0
+ classes26
+ methods26
+ statics0
+ exports22
overall80 bytes
cm> upload "C:\Documents and Settings\Administrator\workspace\Copy of simapi\bin\sim\toolkit\javacard\toolkit.cap"
=> 80 E6 02 00 14 07 74 6F 6F 6C 6B 69 74 08 A0 00......toolkit...
00 00 03 00 00 00 00 00 00 00 ..........
(1565 usec)
<= 00 90 00...
Status: No Error
=> 80 E8 00 00 FF C4 82 02 E9 01 00 11 DE CA FF ED................
01 02 02 00 01 07 74 6F 6F 6C 6B 69 74 02 00 1F......toolkit...
00 11 00 1F 00 00 00 15 00 12 00 D0 01 49 00 0A.............I..
00 0F 00 45 04 9A 00 00 00 00 00 00 02 00 00 04...E............
00 15 02 00 01 07 A0 00 00 00 62 01 01 00 01 07..........b.....
A0 00 00 00 62 00 01 06 00 D0 C1 80 02 80 00 81....b...........
00 00 FF 00 01 0B 00 00 00 0F 00 13 00 17 00 1B................
00 1F 00 23 00 27 00 2B 00 2F 00 33 00 37 00 00...#.'.+./.3.7..
04 00 FF 00 0C 06 00 00 00 49 00 4C 00 4F 00 52.........I.L.O.R
00 55 00 58 00 00 04 00 FF 00 0C 08 00 00 00 66.U.X...........f
00 6A 00 6E 00 72 00 76 00 7A 00 7E 00 82 00 00.j.n.r.v.z.~....
24 00 FF 00 12 03 00 00 00 91 00 94 00 97 00 81$...............
00 00 FF 00 01 00 00 00 00 00 24 00 FF 00 12 07..........$.....
00 00 00 C1 00 C4 00 C8 00 CB 00 CE 00 D1 00 D4................
00 00 04 00 FF 00 0C 0A 00 00 00 E3 00 E7 00 EB................
00 EF 00 F3 00 F7 00 FB 00 FF 01 03 01 07 00 80................
05 00 FF 00 00 .....
(8527 usec)
<= 00 90 00...
Status: No Error
=> 80 E8 00 01 FF 03 00 00 00 00 81 00 00 FF 00 01................
0C 00 00 01 21 01 24 01 27 01 2A 01 2E 01 31 01....!.$.'.*...1.
34 01 38 01 3B 01 3F 01 42 01 45 07 01 49 00 014.8.;.?.B.E..I..
10 18 8C 00 03 7A 01 40 18 8C 00 03 7A 01 10 03.....z.@....z...
78 01 40 03 78 01 30 03 78 01 10 03 78 01 20 03x.@.x.0.x...x. .
78 01 50 03 78 01 50 03 78 01 40 03 78 01 70 03x.P.x.P.x.@.x.p.
78 01 40 03 78 01 70 03 78 01 10 18 8C 00 00 7Ax.@.x.p.x......z
01 40 18 8C 00 00 7A 00 10 7A 00 40 7A 00 50 7A.@....z..z.@z.Pz
00 30 7A 00 40 7A 00 60 7A 01 10 18 8C 00 00 7A.0z.@z.`z......z
01 00 01 77 01 10 03 78 01 10 03 78 01 10 03 78...w...x...x...x
01 10 03 78 01 10 03 78 01 10 03 78 01 10 03 78...x...x...x...x
01 10 03 78 01 10 18 8C 00 02 7A 01 00 01 77 00...x......z...w.
20 7A 00 30 7A 01 10 03 78 01 10 18 8C 00 03 7Az.0z...x......z
01 10 03 78 01 30 03 78 01 10 03 78 01 20 03 78...x.0.x...x. .x
01 40 03 78 01 10 18 8C 00 02 7A 01 00 01 77 00.@.x......z...w.
40 7A 01 10 03 78 00 60 7A 00 60 7A 00 80 7A 00@z...x.`z.`z..z.
20 7A 01 10 00 z...
(2505 usec)
<= 00 90 00...
Status: No Error
=> 80 E8 80 02 EF 03 78 01 10 18 8C 00 00 7A 01 00......x......z..
01 77 01 10 03 78 01 10 03 78 01 40 03 78 01 10.w...x...x.@.x..
03 78 01 10 03 78 01 10 03 78 01 30 03 78 01 10.x...x...x.0.x..
03 78 01 40 03 78 01 10 03 78 02 20 18 1D 8C 00.x.@.x...x. ....
01 7A 00 10 7A 01 10 18 8C 00 03 7A 01 00 01 77.z..z......z...w
00 20 7A 00 40 7A 00 20 7A 01 20 03 78 00 20 7A. z.@z. z. .x. z
00 20 7A 01 80 03 78 00 90 7A 01 10 03 78 00 20. z...x..z...x.
7A 00 20 7A 01 10 03 78 08 00 0A 00 00 00 00 00z. z...x........
00 00 00 00 00 0A 00 45 0B 00 00 00 00 00 03 00.......E........
00 00 04 00 00 00 24 00 00 00 3A 00 01 00 62 00......$...:...b.
54 00 01 00 8D 00 64 00 05 00 A2 00 A6 00 AA 00T.....d.........
AE 00 B2 00 6E 00 01 00 BD 00 86 00 01 00 DF 00....n...........
A4 00 02 01 0B 01 13 00 AE 00 01 01 1D 05 00 12................
00 04 06 00 00 01 06 80 05 00 06 00 00 3B 06 81.............;..
00 00 09 00 0F 00 00 00 0B 05 07 33 07 19 2B 15...........3..+.
1B 22 34 0A 00 ."4..
(11645 usec)
<= 00 90 00...
Status: No Error
Load report:
749 bytes loaded in 0.0 seconds
effective code size on card:
+ package AID7
+ applet AIDs0
+ classes211
+ methods332
+ statics0
+ exports72
overall622 bytes
cm> upload "C:\Documents and Settings\Administrator\workspace\Copy of simapi\bin\ToolkitAppletExample\javacard\ToolkitAppletExample.cap"
=> 80 E6 02 00 13 06 74 65 73 74 30 32 08 A0 00 00......test02....
00 03 00 00 00 00 00 00 00 .........
(1680 usec)
<= 00 90 00...
Status: No Error
=> 80 E8 00 00 FF C4 82 08 F0 01 00 10 DE CA FF ED................
01 02 04 00 01 06 74 65 73 74 30 32 02 00 1F 00......test02....
10 00 1F 00 09 00 28 01 0A 00 1C 04 97 02 30 00......(.......0.
88 00 00 01 DC 00 0D 00 05 02 16 04 01 00 04 00................
28 04 00 01 07 A0 00 00 00 62 01 01 00 01 07 74(........b.....t
6F 6F 6C 6B 69 74 00 01 07 A0 00 00 00 62 00 01oolkit.......b..
00 01 06 61 63 63 65 73 73 03 00 09 01 05 73 69...access.....si
6D 30 31 01 E4 06 00 1C 43 80 03 0F 00 0D 05 04m01.....C.......
00 00 01 F3 FF FF 04 62 02 09 81 00 01 08 80 02.......b........
00 81 01 00 07 04 97 01 03 24 80 2D 03 53 00 2A.........$.-.S.*
09 10 18 8C 00 1B 18 10 0C 90 0B 3D 03 10 30 38...........=..08
3D 04 10 33 38 3D 05 10 2E 38 3D 06 10 31 38 3D=..38=...8=..18=
07 10 39 38 3D 08 10 20 38 3D 10 06 10 41 38 3D..98=.. 8=...A8=
10 07 10 70 38 3D 10 08 10 70 38 3D 10 09 10 6C...p8=...p8=...l
38 3D 10 0A 10 65 38 3D 10 0B 10 74 38 87 08 188=...e8=...t8...
10 06 90 0B 3D 03 10 4D 38 3D 04 10 79 38 3D 05....=..M8=..y8=.
10 4D 38 3D 00 .M8=.
(7227 usec)
<= 00 90 00...
Status: No Error
=> 80 E8 00 01 FF 06 10 65 38 3D 07 10 6E 38 3D 08.......e8=..n8=.
10 75 38 87 09 18 08 90 0B 3D 03 10 49 38 3D 04.u8......=..I8=.
10 54 38 3D 05 10 45 38 3D 06 10 4D 38 3D 07 10.T8=..E8=..M8=..
31 38 87 0C 18 08 90 0B 3D 03 10 49 38 3D 04 1018......=..I8=..
54 38 3D 05 10 45 38 3D 06 10 4D 38 3D 07 10 32T8=..E8=..M8=..2
38 87 00 18 08 90 0B 3D 03 10 49 38 3D 04 10 548......=..I8=..T
38 3D 05 10 45 38 3D 06 10 4D 38 3D 07 10 33 388=..E8=..M8=..38
87 05 18 08 90 0B 3D 03 10 49 38 3D 04 10 54 38......=..I8=..T8
3D 05 10 45 38 3D 06 10 4D 38 3D 07 10 34 38 87=..E8=..M8=..48.
04 18 07 91 00 11 3D 03 AD 0C 37 3D 04 AD 00 37......=...7=...7
3D 05 AD 05 37 3D 06 AD 04 37 87 07 18 10 0C 90=...7=...7......
0B 3D 03 10 48 38 3D 04 10 65 38 3D 05 10 6C 38.=..H8=..e8=..l8
3D 06 10 6C 38 3D 07 10 6F 38 3D 08 10 20 38 3D=..l8=..o8=.. 8=
10 06 10 77 38 3D 10 07 10 6F 38 3D 10 08 10 72...w8=...o8=...r
38 3D 10 09 10 6C 38 3D 10 0A 10 64 38 3D 10 0B8=...l8=...d8=..
10 32 38 87 03 18 10 0A 90 0B 3D 03 10 59 38 3D.28.......=..Y8=
04 10 6F 38 00 ..o8.
(946738 nsec)
<= 00 90 00...
Status: No Error
=> 80 E8 00 02 FF 3D 05 10 75 38 3D 06 10 72 38 3D.....=..u8=..r8=
07 10 20 38 3D 08 10 6E 38 3D 10 06 10 61 38 3D.. 8=..n8=...a8=
10 07 10 6D 38 3D 10 08 10 65 38 3D 10 09 10 3F...m8=...e8=...?
38 87 0B 18 10 07 90 0B 3D 03 10 A0 38 3D 07 108.......=...8=..
09 38 3D 10 06 04 38 87 0A 18 10 0A 90 0B 87 0D.8=...8.........
18 8D 00 2D 87 06 18 8D 00 40 87 02 18 AD 02 AD...-.....@......
08 03 AD 08 92 10 21 03 03 03 8B 00 19 88 0E AD......!.........
02 07 8B 00 41 AD 02 10 16 8B 00 41 7A 02 31 8F....A......Az.1.
00 3A 3D 8C 00 22 2E 1B 8B 00 38 7A 04 30 1E 61.:=.."....8z.0.a
11 19 AD 0A 03 AD 0A 92 5B 8B 00 36 60 04 18 77........[..6`..w
01 77 08 27 8D 00 25 2D 8D 00 15 2E 1D 75 02 4D.w.'..%-.....u.M
00 03 00 04 01 60 00 07 00 11 00 16 01 BD 1B 10.....`..........
24 03 10 82 8B 00 3B 1B 10 85 AD 09 03 AD 09 92$.....;.........
8B 00 32 03 29 06 70 24 1B 10 8F 16 06 04 41 5B..2.).p$......A[
AD 07 16 06 24 94 0B 00 00 03 AD 07 16 06 24 94....$.........$.
0B 00 00 92 8B 00 2C 59 06 01 16 06 07 6C DB 18......,Y.....l..
1B 8B 00 28 00 ...(.
(938735 nsec)
<= 00 90 00...
Status: No Error
=> 80 E8 00 03 FF 3F 12 88 01 99 01 F2 8D 00 29 28.....?........)(
04 15 04 8B 00 26 73 01 E5 00 01 00 04 00 0F 00.....&s.........
0F 00 87 00 A5 1B 10 40 03 10 82 8B 00 3B 1B 10.......@.....;..
B5 05 7B 00 3D 03 7B 00 3D 92 8B 00 2C 1B 10 B9..{.=.{.=...,...
04 10 F4 8B 00 37 1B 10 C7 7B 00 39 03 7B 00 39.....7...{.9.{.9
92 8B 00 32 1B 10 BC 04 7B 00 31 03 7B 00 31 92...2....{.1.{.1.
8B 00 2C 1B 10 BE 10 21 7B 00 13 03 7B 00 13 92..,....!{...{...
8B 00 2C 18 1B 8B 00 28 88 01 AE 01 61 1A 8D 00..,....(....a...
29 28 04 15 04 8B 00 27 80 00 14 15 04 8B 00 34)(.....'.......4
81 00 1D A8 01 68 03 80 00 14 A8 01 61 1B 10 21.....h......a..!
10 80 05 8B 00 3B 1B 10 8D 07 AD 03 03 AD 03 92.....;..........
8B 00 2C 1B 8B 00 28 3B A8 01 43 03 29 05 1B 04..,...(;..C.)...
07 AD 0B 03 AD 0B 92 04 05 8B 00 1A 1B 8B 00 28...............(
3B 15 04 AD 03 03 8B 00 16 3B 1B 03 07 AD 03 03;........;......
AD 03 92 8B 00 3E 1B 8B 00 28 3B 70 1C 28 06 15.....>...(;p.(..
06 8B 00 3C 06 6B 12 15 04 8B 00 35 10 10 A2 00...<.k.....5....
FD 04 29 05 00 ..)..
(938905 nsec)
<= 00 90 00...
Status: No Error
=> 80 E8 00 04 FF A8 00 F7 16 05 61 B2 A8 00 F0 1A..........a.....
8B 00 24 10 0F 41 29 06 1A 16 06 8B 00 0F 75 00..$..A).......u.
DE 00 02 00 36 00 3D 00 41 00 0D 1A 16 06 04 41....6.=.A......A
AD 0D 03 06 8B 00 23 3B AD 06 11 7F 20 8E 02 00......#;.... ...
18 01 AD 06 11 6F 41 8E 02 00 18 01 AD 06 03 AD.....oA.........
0D 03 06 8E 05 00 18 04 A8 00 A4 1A 16 06 04 41...............A
AD 09 03 10 06 8B 00 23 3B A8 00 93 7C 00 14 1A.......#;...|...
8B 00 2E A3 00 89 03 29 08 1A 10 37 04 8B 00 3F.......)...7...?
3B 1A 03 8B 00 0F 29 07 7D 00 1D 10 12 43 16 07;.....).}....C..
11 00 FF 53 6D 0B 7D 00 1D 10 12 43 5B 29 07 1B...Sm.}....C[)..
10 42 03 7C 00 14 8B 00 3B 1B 10 B7 16 07 8B 00.B.|....;.......
1C 18 1B 8B 00 28 88 01 AE 01 61 32 8D 00 29 28.....(....a2..)(
04 15 04 10 36 04 8B 00 20 3B 15 04 7B 00 12 16....6... ;..{...
08 15 04 8B 00 21 8B 00 1E 29 08 15 04 10 37 04.....!...)....7.
8B 00 20 3B 15 04 03 8B 00 2B 29 07 16 07 61 9A.. ;.....+)...a.
1B 7C 00 14 8B 00 17 1B 8B 00 28 3B 7A 05 20 18.|........(;z. .
8B 00 2F 60 00 ../`.
(872596 nsec)
<= 00 90 00...
Status: No Error
=> 80 E8 00 05 FF 03 7A 19 8B 00 1F 04 25 73 00 1F......z.....%s..
00 46 00 46 00 09 19 8B 00 30 65 18 19 8B 00 1F.F.F.....0e.....
08 AD 09 03 10 06 8D 00 10 3B 70 08 11 6D 00 8D.........;p..m..
00 33 7A 08 02 30 00 0D 00 05 00 05 03 00 15 0A.3z..0..........
6D 79 6F 70 65 72 61 74 6F 72 09 6D 79 63 6F 75myoperator.mycou
6E 74 72 79 03 00 07 02 01 01 01 01 01 02 03 00ntry............
02 00 23 03 01 F4 00 00 00 00 00 00 00 00 00 00..#.............
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 .....
(2595 usec)
<= 00 90 00...
Status: No Error
=> 80 E8 00 06 FF 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 .....
(961571 nsec)
<= 00 90 00...
Status: No Error
=> 80 E8 00 07 FF 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00................
00 00 00 00 00 00 00 00 00 00 00 00 03 00 04 A3................
BB CB 01 00 02 00 01 00 05 01 0A 00 42 02 00 00............B...
03 02 00 00 0E 02 00 00 0A 02 00 00 07 02 00 00................
05 02 00 00 04 02 00 00 0B 02 00 00 06 02 00 00................
00 02 00 00 01 02 00 00 09 02 00 00 08 02 00 00................
02 02 00 00 0C 02 00 00 0D 03 81 04 05 06 80 10................
01 01 82 00 00 05 00 00 06 05 00 00 08 05 00 00................
0C 06 81 07 00 03 81 08 12 03 81 07 17 01 83 00................
00 03 81 0A 07 03 81 07 16 06 80 03 00 03 81 07................
0F 05 00 00 0A 03 81 08 14 03 80 0A 01 03 81 08................
03 03 81 08 04 06 00 00 09 03 81 04 06 03 81 04................
0D 06 81 04 00 .....
(12012 usec)
<= 00 90 00...
Status: No Error
=> 80 E8 80 08 FC 00 03 81 08 0F 03 81 08 13 03 81................
07 13 06 81 08 00 01 81 09 00 03 81 08 05 03 81................
07 11 06 83 01 00 03 81 04 11 03 80 03 03 03 80................
0A 06 05 00 00 04 03 81 07 0E 06 80 07 01 03 81................
08 15 03 81 08 0C 03 80 06 04 03 81 07 10 03 80................
03 01 05 00 00 00 01 00 00 00 03 81 07 12 03 81................
09 01 05 00 00 02 03 81 07 14 03 81 04 03 06 81................
0A 00 03 81 0A 01 09 00 88 00 30 57 25 1F 1F 1F..........0W%...
1F 09 05 05 05 03 49 3D 16 07 06 06 03 02 03 0B......I=........
02 06 1D 03 35 03 13 0A 1C 71 02 30 03 14 03 0F....5....q.0....
0A 03 4F 08 0A 0A 03 11 56 02 68 00 54 07 06 EF..O.....V.h.T...
BD 06 13 08 07 06 04 05 11 0B 04 1C 0C 24 0D 0A.............$..
07 18 07 04 04 09 06 04 04 07 04 04 08 04 04 05................
09 07 03 05 03 07 0C 0D 04 15 04 09 0D 04 0A 08................
16 0B 19 0A 0A 0C 11 07 04 0D 06 05 0E 0D 03 08................
05 09 0A 06 07 03 0A 07 0A 03 04 08 07 0F 06 09................
09 00 ..
(24539 usec)
<= 00 90 00...
Status: No Error
Load report:
2292 bytes loaded in 0.0 seconds
effective code size on card:
+ package AID6
+ applet AIDs12
+ classes31
+ methods1178
+ statics582
+ exports0
overall1809 bytes
cm> install -i 6e616d653033 -q C9#() 746573743032 73696d3031
=> 80 E6 0C 00 1A 06 74 65 73 74 30 32 05 73 69 6D......test02.sim
30 31 06 6E 61 6D 65 30 33 01 00 02 C9 00 00 0001.name03.......
(5060 usec)
<= 6A 80 j.
Status: Wrong data
jcshell: Error code: 6a80 (Wrong data)
jcshell: Wrong response APDU: 6A80
Unexpected error; aborting execution
# 5
I assume that the Application is missing Install Parameters. Check your install method.
# 6
thanks for your replies. i searched the forum and found that 0102030405 are default parameters, but i am still getting error .Is there any combination of application privilages also involved in the issue.
cm> install -i 6578616d70 -q C9#(0102030405) 73696d3031 746573743032
=> 80 E6 0C 00 1E 05 73 69 6D 30 31 06 74 65 73 74......sim01.test
30 32 05 65 78 61 6D 70 01 00 07 C9 05 01 02 0302.examp........
04 05 00 00....
(5007 usec)
<= 6A 80 j.
Status: Wrong data
jcshell: Error code: 6a80 (Wrong data)
jcshell: Wrong response APDU: 6A80
Unexpected error; aborting execution
thanks,
# 7
You could check if your Application has the methods for CVM (PIN) management or to lock/terminate the card. Then you would need to set the application privileges accordingly.
# 8
Hi,
here is the application. it must be tested as it is provided by simalliance.org. I believe that i am missing some configuration in jcop like the couple of things you pointed out. But i am still stuck.
/**
* Example of Toolkit Applet
*/
package ToolkitAppletExample;
import sim.toolkit.*;
import javacard.framework.*;
public class MyToolkitApplet extends javacard.framework.Applet implements ToolkitInterface, ToolkitConstants
{
// BIP Constants
public static final byte MY_INSTRUCTION = (byte)0x46;
public static final byte SERVER_OPERATION= (byte)0x0F;
public static final byte CMD_QUALIFIER = (byte)0x80;
public static final byte EXIT_REQUESTED_BY_USER = (byte)0x10;
private byte[] menuEntry ={(byte)'0',(byte)'3',(byte)'.',(byte)'1',(byte)'9',(byte)' ',(byte)'A',(byte)'p',(byte)'p',(byte)'l',(byte)'e',(byte)'t'};
private byte[] menuTitle={(byte)'M',(byte)'y',(byte)'M',(byte)'e',(byte)'n' ,(byte)'u'};
private byte[] item1 ={(byte)'I',(byte)'T',(byte)'E',(byte)'M',(byte)'1' };
private byte[] item2 ={(byte)'I',(byte)'T',(byte)'E',(byte)'M',(byte)'2' };
private byte[] item3 ={(byte)'I',(byte)'T',(byte)'E',(byte)'M',(byte)'3' };
private byte[] item4 ={(byte)'I',(byte)'T',(byte)'E',(byte)'M',(byte)'4' };
private Object[] ItemList ={ item1, item2, item3, item4 };
private byte[] textDText ={(byte)'H',(byte)'e',(byte)'l',(byte)'l',(byte)'o',(byte)' ',
(byte)'w',(byte)'o',(byte)'r',(byte)'l',(byte)'d',(byte)'2'};
private byte[] baGSMAID ={(byte)0xA0, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x09, (byte)0x00, (byte)0x01};
private ToolkitRegistry reg;
private byte buffer[] = new byte[10];
private byte itemId;
private byte result;
/**
* Constructor of the applet
*/
public MyToolkitApplet() {
// register to the SIM Toolkit Framework
reg = ToolkitRegistry.getEntry();
// Define the applet Menu Entry and register to the EVENT_MENU_SELECTION
itemId = reg.initMenuEntry(menuEntry, (short)0x0000, (short)menuEntry.length,
PRO_CMD_DISPLAY_TEXT, false, (byte) 0x00, (short) 0x0000);
}
/**
* Method called by the JCRE at the installation of the applet
*/
public static void install(byte bArray[], short bOffset, byte bLength) {
MyToolkitApplet MyApplet = new MyToolkitApplet();
MyApplet.register();
}
/**
* Method called by the SIM Toolkit Framework
*/
public void processToolkit(byte event) {
// get the handler references
ProactiveHandler proHdlr = ProactiveHandler.getTheHandler();
ProactiveResponseHandler rspHdlr ;
switch(event) {
case EVENT_MENU_SELECTION:
// Prepare the Select Item proactive command
proHdlr.init(PRO_CMD_SELECT_ITEM,(byte)0x00,DEV_ID_ME);
// Append the Menu Title
proHdlr.appendTLV((byte) (TAG_ALPHA_IDENTIFIER | TAG_SET_CR),
menuTitle,(short)0x0000,(short)menuTitle.length);
// add all the Item
for (short i=(short) 0x0000; i<(short) 0x0004; i++) {
proHdlr.appendTLV((byte) (TAG_ITEM | TAG_SET_CR),(byte) (i+1),
(byte[])ItemList[i],(short) 0x0000,
(short)((byte[])ItemList[i]).length);
}
// ask the SIM Toolkit Framework to send the proactive command and check the result
if((result = proHdlr.send()) == RES_CMD_PERF){
rspHdlr = ProactiveResponseHandler.getTheHandler();
// SelectItem response handling
switch (rspHdlr.getItemIdentifier()) {
case 2:
break;
case 3:
// DisplayText High Priority
proHdlr.init(PRO_CMD_DISPLAY_TEXT, CMD_QUALIFIER,DEV_ID_DISPLAY);
proHdlr.appendTLV((byte)(TAG_TEXT_STRING| TAG_SET_CR), DCS_8_BIT_DATA,
textDText,(short)0x0000, (short)textDText.length);
proHdlr.send();
break;
case 4: // Ask the user to enter data and display it
break;
}
}
break;
}
}
/**
* Method called by the JCRE, once selected
*/
public void process(APDU apdu) {
// Handle the Select AID apdu
if(selectingApplet())
return;
switch(apdu.getBuffer()[1]) {
// specific APDU for this applet to configure the MenuTitle from SelectItem
case (byte)MY_INSTRUCTION:
if(apdu.setIncomingAndReceive() > (short)0) {
Util.arrayCopy(apdu.getBuffer(),(short)0x0005,menuTitle,(short)0x0000,(short)0x0006);
}
break;
default:
ISOException.throwIt(ISO7816.SW_INS_NOT_SUPPORTED);
}
}
}
thanks again.
# 9
Step through with the debugger/simulation. What line does it exit?
# 10
hi, it never goes on the breakpoints i place at no of places. its strange. is it some stupid error by me ? thanks,
# 11
hi,but may the debug issue is because of the install command is not working and after install it will reach the breakpoints. so it returns to the old question of install error. What do you suggest now?thanks.
# 12
Set the breakpoint in the install method --> run the simulation --> in JCShell it should stop as soon as you send the INSTALL command --> in the top left window (Debug) select in the stalled thread the method --> step with F5/F6 ..
# 13
hi,
well i have put breakpoints on the declaration of the install method and all other lines in the method but somehow it never goes there and directly shows the error in the log.
thanks for helping me, i know that i am taking your time but i am just stuck and cannot get out without your help.
thanks,
# 14
Make sure you really chose the generic simulator and not a reader. Questions about the JCOP Tools you can email scard@de.ibm.com .
# 15
hi,
thanks for your help. surely debug is not working in any of the projects. i will send them an email at the link you pointed.
simulator and reader both have same behaviour. both stop at the same point. secondly i can make selectable an applet by using the install command but only some simple applets which donot use sim.toolkit.
can u see the the project for a couple of seconds. it would be so nice of you.
thanks.
Message was edited by:
tania-rahat
# 16
hi,
thanks for your help. surely debug is not working in any of the projects. i will send them an email at the link you pointed.
simulator and reader both have same behaviour. both stop at the same point. secondly i can make selectable an applet by using the install command but only some simple applets which donot use sim.toolkit.
can u see the the project for a couple of seconds. it would be so nice of you.
thanks.
# 17
It may be a stupid question: did you run the JCOP simulation in Eclipse debug mode?
# 18
it looks that it is in debug mode reading earlier messagesMessage was edited by: bilal116
# 19
Hi,
No question is stupid than the questions i am putting -:)
Yes i am Using JCOP in Eclipse with debug mode. It is not working and it is not an issue.
Issue is to run a sample sim toolkit applet using JCOP in simulation or on real reader. install command fails always by giving error code 6a80.
Can you help on this issue?
thanks.
# 20
there is a problem in packageAID & appletAID in your project ,due to that ur install command is failing .......Divyesh.
# 21
Ok, Thanks, are there any rules to define Package id and Applet id. Can you suggest any non conflicting ID. thanks,
# 22
assume ur project name is helloworld
hex value of helloworld is 68 65 6c 6c 6f 6f 72 6c 64
1)Concatenation of binary 10 00 00 to the hex value of helloworld for the package AID as per applet standard.
Like package AID of helloworld applet is 68 65 6c 6c 6f 6f 72 6c 64 10 00 00
2) Concatenation of binary 10 00 01 to the hex value of helloworld for the applet AID as per applet standard.
Like applet AID of helloworld applet is 68 65 6c 6c 6f 6f 72 6c 64 10 00 01
while running the applet in JCOP set Applet install parameters
Instance AID - aa aa aa aa aa
Application Specific parameters- aa aa aa aa aa aa
according to above settings ur install command should be like below
install -i aaaaaaaaaa -q C9#(aaaaaaaaaaaa) 68656c6f776f726c64100000 68656c6f776f726c64100001
i hope these will solve ur problem
cheers
Divyesh.
# 23
hi thanks, i am working on the configuration settings you have given. I have a real hard time to give the package and applet name in Hex as it accepts Ascii. How can i write/convert 10 00 00 and 10 00 01 in ascii.thanks
# 24
When using the JCOP-Tools plug-in views then write it in ascii with a leading sign: |
# 25
Ok, tania-rahat, I looked at your project and found the cause for aborted installation. The relevant part is in the class ToolkitRegistry referenced from the MyToolkitApplet:public MyToolkitApplet() {
// get the GSM application reference
gsmFile = SIMSystem.getTheSIMView();
// register to the SIM Toolkit Framework
reg = ToolkitRegistry.getEntry();
// Define the applet Menu Entry and register to the EVENT_MENU_SELECTION
itemId = reg.initMenuEntry(menuEntry, (short)0x0000, (short)menuEntry.length,
PRO_CMD_DISPLAY_TEXT, false, (byte) 0x00, (short) 0x0000);
// register to the EVENT_UNFORMATTED_SMS_PP_ENV
reg.setEvent(EVENT_UNFORMATTED_SMS_PP_ENV);
// register to the EVENT_EVENT_DOWNLOAD_DATA_AVAILABLE
reg.setEvent(EVENT_EVENT_DOWNLOAD_DATA_AVAILABLE);
}
/**
* Method called by the JCRE at the installation of the applet
*/
public static void install(byte bArray[], short bOffset, byte bLength) {
MyToolkitApplet MyApplet = new MyToolkitApplet();
MyApplet.register();
}
If you look to the constructor, following lines reg = ToolkitRegistry.getEntry();
// Define the applet Menu Entry and register to the EVENT_MENU_SELECTION
itemId = reg.initMenuEntry(menuEntry, (short)0x0000, (short)menuEntry.length,
PRO_CMD_DISPLAY_TEXT, false, (byte) 0x00, (short) 0x0000);
and then check the getEntry() method in ToolkitRegistry: public static ToolkitRegistry getEntry() throws ToolkitException {
return null;
}
you realize that it cannot work. Don't ask me why there is no NullPointer exception, but this is the root cause. So now changing the getEntry() method to public static ToolkitRegistry getEntry() throws ToolkitException {
return new ToolkitRegistry();
}
solves the problem and the Applet is installed: ...
Load report:
2771 bytes loaded in 0.1 seconds
effective code size on card:
+ package AID5
+ applet AIDs13
+ classes31
+ methods1178
+ statics582
+ exports0
overall1809 bytes
cm> install -i 746573743032 -q C9#() 73696d3031 746573743032
=> 80 E6 0C 00 1A 05 73 69 6D 30 31 06 74 65 73 74......sim01.test
30 32 06 74 65 73 74 30 32 01 00 02 C9 00 00 0002.test02.......
(8389 usec)
<= 90 00 ..
Status: No Error
cm> card-info
=> 80 F2 80 00 02 4F 00 00.....O..
(1571 usec)
<= 08 A0 00 00 00 03 00 00 00 01 9E 90 00 .............
Status: No Error
=> 80 F2 40 00 02 4F 00 00..@..O..
(1427 usec)
<= 06 74 65 73 74 30 32 07 00 90 00.test02....
Status: No Error
=> 80 F2 10 00 02 4F 00 00.....O..
(3268 usec)
<= 07 A0 00 00 00 03 53 50 01 00 01 08 A0 00 00 00......SP........
03 53 50 41 07 74 6F 6F 6C 6B 69 74 01 00 00 06.SPA.toolkit....
61 63 63 65 73 73 01 00 00 05 73 69 6D 30 31 01access....sim01.
00 01 06 74 65 73 74 30 32 90 00...test02..
Status: No Error
Card Manager AID: A000000003000000
Card Manager state : OP_READY
Application: SELECTABLE (--) "test02"
Load File :LOADED (--) A0000000035350(Security Domain)
Module:A000000003535041
Load File :LOADED (--) "toolkit"
Load File :LOADED (--) "access"
Load File :LOADED (--) "sim01"
Module:"test02"
# 26
this is the nearest install command i was able to get.
if i add 10 00 00 to the package id. it fails to run and throws error much before install command in the uploading of sim.access package. so the error is still the there.
thanks for your help, if you have any suggession please tell me. should i send you any other file to clarify the problem.
cm> install -i aaaaaaaaaa -q C9#(aaaaaaaaaaaa) 68656c6c6f776f726c64 68656c6c6f776f726c64100001
=> 80 E6 0C 00 2B 0A 68 65 6C 6C 6F 77 6F 72 6C 64....+.helloworld
0D 68 65 6C 6C 6F 77 6F 72 6C 64 10 00 01 05 AA.helloworld.....
AA AA AA AA 01 00 08 C9 06 AA AA AA AA AA AA 00................
00 .
(5149 usec)
<= 6A 80 j.
Status: Wrong data
jcshell: Error code: 6a80 (Wrong data)
jcshell: Wrong response APDU: 6A80
Unexpected error; aborting execution
# 27
hi lexdabear, WONDERFUL , you have solved this, Thanks Thanks Thanks.
# 28
My guess is that there is a JCOP product with the SIM toolkit pre-installed in ROM. As HartmutForJCOP explained in http://forum.java.sun.com/thread.jspa?threadID=5124962
there off-card libraries are for debugging and compilation purposes. You could contact IBM and ask about information how to obtain a sample card with the sim toolkit package.
# 29
hi thanks, i just installed the toolkit applet on the real jcop 30 card and it was done successfully and it was made selectable by the installer. But it says sim access error or sim card rejected when i put it in a mobile. I will contact ibm for the preinstalled card. thanks,
# 30
tania-rahat,
I justed started developing SIM Application Toolkit Applets with JCOP (IBM Tools). Actually I don't have the sim.access and the sim.toolkit Librarys for the JCOP-Tools.
I do unterstand, that I need them to compile mit SAT Examples - but do I have to upload them onto the SIM too? Probably you could email me your CAP Files 'access.cap' and 'toolkit.cap' (gerald.madlmayr@fh-hagenberg.at) or tell me where to dowload them. I only was able to find the EXT-Files on the 3GPP Side.
- Does anybody know a good tutorial for SIM Application Toolkit developement?
- Can somebody recommend an emulator for testing the sim-card applet?
Cheers,
Gerald
# 31
i have mailed you the complete project which loads on sim card as well.Please tell me if you make any further progress. thanks,
# 32
Hi,
Today I tried to deploy the applications again. Unfortunately it didn't work out. I'm able to copy the sim.access package onto the sim, but not the sim.toolkit or any other.
Bwt: do I have to copy sim.access and sim.toolkit onto my SIM? The card-info tells me the following:
Load File :LOADED (--) A0000000180302FFFFF8910710001 (sim.access)
Load File :LOADED (--) A0000000090003FFFFFFFF8910710002 (sim.toolkit)
I suppose that both packages are already on the SIM and I dont need to install them. But on the other hand side, I can't install any application making use of the sim.toolkit package.
Do you have a special extension for the JCOP Plugin to develop SAT Applets? I do only have the "pure" JCOP Tools from IBM.
How do you debug SAT Application in the IDE? Is there an Emulator evalable to simulate SAT functionality?
Many questions - I know, but maybe you can help me.
Regards,
Gerald
# 33
Hi,how can I deploy a SIM application on the sim?thx