This discussion is archived
4 Replies Latest reply: Jul 18, 2012 7:44 PM by safarmer RSS

upload external  cap file: jcshell: Error code: 6a80 (Wrong data)?

933654 Newbie
Currently Being Moderated
Hi,
i use eclipse + NXP JCOP Plugins_Generic3.2.8_Target ,the card is jcop31v232.

if the cap file is generated by eclipse project , when i upload exteral cap file ,no error
but if the cap file is generated by converter command ,there is  error
what error?help me


cm> /terminal "winscard:4|Feitian R502 Contact Reader 1"
--Opening terminal
/card -a a000000003000000 -c com.ibm.jc.CardManager
resetCard with timeout: 0 (ms)
--Waiting for card...
ATR=3B FA 13 00 00 81 31 FE 45 4A 43 4F 50 33 31 56 ;.....1.EJCOP31V
32 33 32 93 232.
IOCTL().
ATR: T=1, FI=1/DI=3 (93clk/etu), N=0, IFSC=254, BWI=4/CWI=5, Hist="JCOP31V232"
> => 00 A4 04 00 08 A0 00 00 00 03 00 00 00 00 ..............
(104154 usec)
<= 6F 65 84 08 A0 00 00 00 03 00 00 00 A5 59 9F 65 oe...........Y.e
01 FF 9F 6E 06 47 91 73 51 2E 00 73 4A 06 07 2A ...n.G.sQ..sJ..*
86 48 86 FC 6B 01 60 0C 06 0A 2A 86 48 86 FC 6B .H..k.`...*.H..k
02 02 01 01 63 09 06 07 2A 86 48 86 FC 6B 03 64 ....c...*.H..k.d
0B 06 09 2A 86 48 86 FC 6B 04 02 15 65 0B 06 09 ...*.H..k...e...
2B 85 10 86 48 64 02 01 03 66 0C 06 0A 2B 06 01 +...Hd...f...+..
04 01 2A 02 6E 01 02 90 00 ..*.n....
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 A7 C7 04 88 8C 87 3F DE 00 .P.........?..
(68417 usec)
<= 00 00 93 36 01 29 05 95 13 05 FF 02 00 5F E1 48 ...6.)......._.H
67 60 FD 2F 89 FF AD A4 72 B4 17 E9 90 00 g`./....r.....
Status: No Error
cm> ext-auth plain
=> 84 82 00 00 10 17 6D 1C 2A 87 9E 0A 24 3F 15 83 ......m.*...$?..
A4 84 10 C0 75 ....u
(71713 usec)
<= 90 00 ..
Status: No Error
h1.
cm> upload -d "D:\JCIDE_workspace\hello\hello\javacard\hello.cap"
=> 80 E6 02 00 12 05 A0 00 01 00 62 08 A0 00 00 00 ..........b.....
03 00 00 00 00 00 00 00 ........
(56499 usec)
<= 00 90 00 ...
Status: No Error
=> 80 E8 00 00 FF C4 82 01 A1 01 00 0F DE CA FF ED ................
01 02 04 00 01 05 A0 00 01 00 62 02 00 1F 00 0F ..........b.....
00 1F 00 0B 00 15 00 2E 00 0C 00 63 00 17 00 12 ...........c....
00 00 00 6F 00 02 00 01 00 0A 02 01 00 04 00 15 ...o............
02 03 01 07 A0 00 00 00 62 01 01 00 01 07 A0 00 ........b.......
00 00 62 00 01 03 00 0B 01 07 A0 00 01 00 62 03 ..b...........b.
> 01 00 08 06 00 0C 00 80 03 00 FF 00 07 01 00 00 ................
> 00 1C 07 00 63 00 01 10 18 8C 00 00 7A 05 30 8F ....c.......z.0.
> 00 01 3D 8C 00 02 18 1D 04 41 18 1D 25 8B 00 03 ..=......A..%...
> 7A 02 21 18 8B 00 04 60 03 7A 19 8B 00 05 2D 1A z.!....`.z....-.
> 04 25 75 00 10 00 01 00 30 00 09 18 19 8C 00 06 .%u.....0.......
> 70 08 11 6D 00 8D 00 07 7A 05 21 19 8B 00 05 2D p..m....z.!....-
> 7B 00 08 03 1A 03 7B 00 08 92 8D 00 09 3B 19 03 {.....{......;..
7B 00 08 92 8B 00 0A 7A 08 00 17 00 02 00 01 00 {......z........
01 03 00 0A 48 65 6C 6C 6F 57 6F 72 6C 64 00 00 ....HelloWorld..
> 00 00 05 00 2E 00 0B 06 80 03 00 01 00 00 00 06 ................
> 00 00 01 03 00 .....
>(1200 msec)
<= 6A 80 j.
Status: Wrong data
jcshell: Error code: 6a80 (Wrong data)
jcshell: Wrong response APDU: 6A80

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points