Problem uploading applet on nokia 6131

Hi All,
I am using NXP Jcop tools 3.2.7
While trying to upload a simple empty applet on the Nokia 6131 I am having problem in the upload cmd,
upload -b 250 "C:\Workspaces\JavaWorkspace\JCOP3.2.7\Test\bin\com\javacard\demo.cap"
The entire JCOP Shell trace is below
cm> /term "SCComm:1"
--Opening terminal
/card -a a000000003000000 -c com.ibm.jc.CardManagerresetCard with timeout: 0 (ms)
--Waiting for card...
ATR=3B 88 80 01 00 73 C8 40 13 00 90 00 71 ;[email protected]
IOCTL().
ATR: T=0, T=1, Hist=0073C84013009000
=> 00 A4 04 00 08 A0 00 00 00 03 00 00 00 00 ..............
(47447 usec)
<= 6F 10 84 08 A0 00 00 00 03 00 00 00 A5 04 9F 65 o..............e
01 FF 90 00 ....
Status: No Error
cm> set-key 42/1/DES-ECB/404142434445464748494a4b4c4d4e4f 42/2/DES-ECB/404142434445464748494a4b4c4d4e4f 42/3/DES-ECB/404142434445464748494a4b4c4d4e4f
cm> init-update 42
=> 80 50 2A 00 08 39 E9 9B 5B 99 36 5D 68 00 .P*..9..[.6]h.
(118572 usec)
<= 00 00 71 84 60 6B CB F2 34 21 2A 02 00 02 59 8D ..q.`k..4!*...Y.
D3 96 1B FD BC DF 8B FB 02 C9 EB A3 90 00 ..............
Status: No Error
cm> ext-auth enc
=> 84 82 03 00 10 76 A9 82 6A 67 AE 47 E8 10 BE 86 .....v..jg.G....
5B BF 39 86 CB [.9..
(41752 usec)
<= 90 00 ..
Status: No Error
cm> delete -r abcd123456
=> 84 E4 00 80 10 8F 83 2A 59 A6 AB FA 6D 9C A6 7D .......*Y...m..}
3D 07 9A 92 7B 00 =...{.
(53942 usec)
<= 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 -b 250 "C:\Workspaces\JavaWorkspace\JCOP3.2.7\Test\bin\com\javacard\demo.cap"
=> 84 E6 02 00 20 9E 74 0C 6F B4 1B 11 2D CA E3 08 .... .t.o...-...
52 35 6A 41 3E AF 6E 32 B8 BE AA 6B 42 A4 A9 FA R5jA>.n2...kB...
A2 24 53 F5 F1 00 .$S...
(146155 usec)
<= 00 90 00 ...
Status: No Error
=> 84 E8 80 00 F8 8C 2E 60 75 A8 90 30 3A 4F 4B FA .......`u..0:OK.
1D C7 0F D0 EE CC 61 CC 85 35 10 6D 41 97 A4 45 ......a..5.mA..E
9F 8E 45 87 31 D1 5C 83 46 82 23 8D AF 40 77 FC ..E.1.\.F.#..@w.
10 0E F3 2A 79 D3 C3 5D 7E 88 E8 09 C2 4F E5 43 ...*y..]~....O.C
F0 BD 91 4D 20 5F D6 FE 35 65 98 E9 3C 36 E5 E6 ...M _..5e..<6..
C3 60 34 9D 4F EB CF 2E C0 2C 88 40 83 F9 7A E6 .`4.O....,[email protected].
5B 43 36 2A 07 D9 A9 55 09 79 C5 62 5E CB 62 17 [C6*...U.y.b^.b.
A7 60 F5 2B 7B DF 6E A2 2D E5 FD 84 D1 35 A1 74 .`.+{.n.-....5.t
C3 9B 6E F3 8B 15 79 CD B5 41 3F D5 03 D4 75 DD ..n...y..A?...u.
9F 16 F5 A6 B8 20 B5 33 2C CA 40 A6 44 0D 84 9B ..... .3,[email protected]...
49 63 2B 06 16 A7 6D 19 8A AD 89 93 2E 1A 5E 26 Ic+...m.......^&
1C 9F 50 61 0C 8D 50 F0 84 08 90 F6 41 6E 98 29 ..Pa..P.....An.)
9D E4 9A 83 82 2D C0 97 C1 25 FA 42 3B 3E CB 08 .....-...%.B;>..
ED 63 E0 F3 D5 92 A5 FA D1 BA 57 7E 68 54 60 9F .c........W~hT`.
93 6D CF 4E C3 3B C3 15 07 9E 24 22 48 F7 56 5A .m.N.;....$"H.VZ
08 E2 98 D7 04 33 40 D3 C2 57 E8 CC 28 00 [email protected]..(.
(799209 usec)
<= 6A 80 j.
Status: Wrong data
jcshell: Error code: 6a80 (Wrong data)
jcshell: Wrong response APDU: 6A80
Unexpected error; aborting execution
cm> /atr
resetCard with timeout: 0 (ms)
--Waiting for card...
ATR=3B 88 80 01 00 73 C8 40 13 00 90 00 71 ;[email protected]
IOCTL().
ATR: T=0, T=1, Hist=0073C84013009000
vercurrent version is 2.0.0.2 [1]
build timestamp is 06-07-2009 14:01:08
Please suggest what may be the error,
Regards,
Dush.

Hi Shane,
My current target version is java card 2.2.2.
Now I tried installing the appl.cap file present in Nokia SDk ,
and i was able to upload it to my Nokia 6131,
the stack trace follows:
cm> upload -b 250 "C:\Dush\Workspaces\JavaWorkspace\JCOP3.2.7\Test\bin\com\javacard\appl.cap"
=> 84 E6 02 00 28 3A 91 77 DA 93 DA C0 3E 83 27 A7 ....(:.w....>.'.
8E 89 DC 4B 81 41 1E D3 F2 D5 E4 71 EE B1 93 22 ...K.A.....q..."
0B 1A 17 65 1F 00 B7 71 40 8A C4 CD BC 00 ...e...q@.....
(150255 usec)
<= 00 90 00 ...
Status: No Error
=> 84 E8 00 00 F8 24 A7 57 21 47 F0 6C 9B 91 66 50 .....$.W!G.l..fP
EB 4D E1 64 D5 E6 6A 0F C4 A8 C8 D5 B5 E6 42 39 .M.d..j.......B9
2F F8 36 8F 21 50 3E 2A BF 81 8B A7 18 47 2C 3D /.6.!P>*.....G,=
85 BA 3A DA 18 8C 78 C4 23 C3 89 DF C3 0E E2 DE ..:...x.#.......
AB 51 49 D1 48 B5 6A 86 E2 DE 54 30 41 DF 20 DE .QI.H.j...T0A. .
93 97 82 E3 53 30 01 62 DA EC 6F 07 9E E7 BA BC ....S0.b..o.....
85 FC CE 91 CF 2A F6 BA 59 8B A4 05 0C 80 28 DD .....*..Y.....(.
97 08 37 C7 2B 3B E3 C8 50 F7 EB 6A FF 2C FE CD ..7.+;..P..j.,..
C5 65 90 96 8E 93 C9 07 9A 0E D5 ED AF D3 68 E9 .e............h.
0F 08 15 19 7E 32 D2 5D AF 05 4F 4D 39 F4 78 DD ....~2.]..OM9.x.
A7 FA D9 DD F1 0E AF B6 00 74 5F F3 18 9F 4B F5 .........t_...K.
F3 D2 A2 52 19 F4 03 56 10 32 2D 5F 3B 64 7F E9 ...R...V.2-_;d..
C6 24 A4 74 F9 70 00 58 44 F5 B4 4D 06 25 86 41 .$.t.p.XD..M.%.A
B0 C2 8F 83 6A DA E9 2D 13 3A 1D DD 5C 1A 14 3E ....j..-.:..\..>
D4 46 2E DE 95 29 B7 DB B3 77 67 17 B7 D4 AE A0 .F...)...wg.....
DA 5A 03 D4 E0 2E DB 8E A8 3A 70 4F 3B 00 .Z.......:pO;.
(393523 usec)
<= 00 90 00 ...
Status: No Error
=> 84 E8 80 01 C8 F8 39 80 5E B0 F9 F4 B8 73 4D EC ......9.^....sM.
B8 C9 E9 28 2D D0 6F 3C 9D D2 6A 37 EB D4 86 0B ...(-.o<..j7....
2F C1 FB 97 4B A2 A1 D2 67 66 EC 2A 6F EC 7A B8 /...K...gf.*o.z.
45 DB AA AE D0 36 C4 4B 41 6C 1C F6 67 47 4D 56 E....6.KAl..gGMV
E6 47 8D BF FA B3 69 A5 F1 15 BD 89 40 BC 3B 4D .G....i.....@.;M
A9 01 E2 43 6F CF 8A 53 8A 91 49 A2 31 99 2F 6A ...Co..S..I.1./j
81 B3 76 36 19 C2 F9 3A C4 E3 8B 0F DF E7 67 2F ..v6...:......g/
17 56 8E 0E 2E 7D 2A 4C 85 AB 98 19 C6 B5 28 8E .V...}*L......(.
B5 A5 EE 2F D7 DF E5 B2 18 FF 1A EF 7C 16 8B 16 .../........|...
71 86 9C 88 00 90 41 FB 83 68 EE 77 51 35 05 C8 q.....A..h.wQ5..
02 A0 03 C3 49 C8 09 A1 31 2A 9B 9A EE E4 F9 52 ....I...1*.....R
AF 48 50 A4 0C 5F 0E DB 80 0F 8C 52 C4 E8 F4 DD .HP.._.....R....
0E D7 25 6E 44 29 50 55 82 96 9F 86 49 00 ..%nD)PU....I.
(842748 usec)
<= 00 90 00 ...
Status: No Error
Load report:
418 bytes loaded in 1.3 seconds
effective code size on card:
+ package AID 11
+ applet AIDs 22
+ classes 17
+ methods 158
+ statics 34
+ exports 0
overall 242 bytes
cm> card-info
=> 84 F2 80 00 10 15 39 FA 14 0C 7D ED 56 D1 84 B3 ......9...}.V...
9A 09 0D E2 EF 00 ......
(51521 usec)
<= 08 A0 00 00 00 03 00 00 00 0F 9E 90 00 .............
Status: No Error
=> 84 F2 40 00 10 15 39 FA 14 0C 7D ED 56 E3 81 FF [email protected]...}.V...
DB B6 87 D6 CD 00 ......
(59821 usec)
<= 0C D2 76 00 00 05 AB 05 03 E0 04 01 01 07 10 0C ..v.............
D2 76 00 00 05 AA 05 03 E0 05 01 01 07 00 90 00 .v..............
Status: No Error
=> 84 F2 10 00 10 15 39 FA 14 0C 7D ED 56 DB 77 53 ......9...}.V.wS
8C 67 52 F3 1F 00 .gR...
(85428 usec)
<= 6A 81 j.
Status: Function not supported
=> 84 F2 20 00 10 15 39 FA 14 0C 7D ED 56 0A C3 A1 .. ...9...}.V...
96 F5 00 C7 69 00 ....i.
(70632 usec)
<= 07 A0 00 00 00 03 53 50 01 00 0C D2 76 00 00 05 ......SP....v...
AA 04 03 60 01 04 10 01 00 0B D2 76 00 00 05 AA ...`.......v....
05 03 E0 04 01 01 00 0B D2 76 00 00 05 AA 05 03 .........v......
E0 05 01 01 00 0B 48 65 6C 6C 6F 41 70 70 6C 65 ......HelloApple
74 01 00 90 00 t....
Status: No Error
Card Manager AID : A000000003000000
Card Manager state : SECURED
Application: SELECTABLE (---L----) D276000005AB0503E0040101
Application: SELECTABLE (--------) D276000005AA0503E0050101
Load File : LOADED (--------) A0000000035350 (Security Domain)
Load File : LOADED (--------) D276000005AA040360010410
Load File : LOADED (--------) D276000005AA0503E00401
Load File : LOADED (--------) D276000005AA0503E00501
Load File : LOADED (--------) "HelloApplet"
Ho do I try and now install this appl.cap file.
thanks,

Similar Messages

  • Java card, problems uploading applet to Nokia 6131 NFC using Jcop + Eclipse

    Hi, we are trying to load an applet in this mobil phone ( [Nokia 6131 NFC|http://wiki.forum.nokia.com/index.php/Nokia_6131_NFC_-_FAQs] )
    and NXP people has redirect the support to this forum: [JCOP Tools|http://72.5.124.111/thread.jspa?threadID=5199227&tstart=329]
    So;
    This is the complete command sequence:
    >  /term "winscard:4|OMNIKEY CardMan 5x21-CL 0"
    --Opening terminal
    /card -a a000000003000000 -c com.ibm.jc.CardManagerresetCard with timeout: 0 (ms)
    --Waiting for card...
    ATR=3B 8F 80 01 80 4F 0C A0 00 00 03 06 03 00 02 00    ;....O..........
        00 00 00 69                                        ...i
    ATR: T=0, T=1, Hist=804F0CA00000030603000200000000
    => 00 A4 04 00 08 A0 00 00 00 03 00 00 00 00          ..............
    jcshell: Unable to select Card Manager or invalid FCI: Unknown Global Platform Java Card.
    Subsequent commands might fail! Inspection might not be possible!somebody knows something about this error?
    Thanks in advance!

    The same!
    - /terminal pcsc:4
    --Opening terminal
    /atr--Waiting for card...
    ATR=3B 8F 80 01 80 4F 0C A0 00 00 03 06 03 00 02 00    ;....O..........
        00 00 00 69                                        ...i
    T=0, T=1, Hist=804F0CA00000030603000200000000
    /select A00000030603000200000000 => 00 A4 04 00 0C A0 00 00 03 06 03 00 02 00 00 00    ................
        00 00                                              ..
    (0 msec)
    <= 3B 8F 80 01 80 4F 0C A0 00 00 03 06 03 00 02 00    ;....O..........
        00 00 00 69 00 00 00 00 00 00 00 00 00 00 00 00    ...i............
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
        00 00 00 00 00 00 00 00 00 00 00 00                ............
    Status: 0x0000
    Error code:     0 (0x0000)
    Offending APDU: 3B8F8001804F0CA000000306030002000000006900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    Wrong response APDU.

  • [Software Updates Problem for My Nokia 6131]

    Hi Everyone, My name is Wilson And I am from Singapore.I am here to ask about the software updates,which my country do not have support for it.That why i need help for my nokia 6131. Firstly, My nokia 6131 show some problems for E.g "when i type #0000#" it show an "Unknown APPLICATION"
    Secondly,I follow the software guide, to no avail. I found out that in my settings > phone > phone updates it show only 2 things --> "Current Software Details and Install Software update".But my handphone version is V03.70.Lastly, i would to request if anyone or staffs would send me the file directly or help me step by step. I will appreciate anything you have done and i would to say Thank You Very Much
    Good Bye =)

    I got another question for this ---> Secondly,I follow the software guide, to no avail. I found out that in my settings > phone > phone updates it show only 2 things --> "Current Software Details and Install Software update".
    My Nokia 6131 Version 3.70 but whenever i played a java games it will die out and when i turn on my phone and play the same game it also die out. But all my friends does not have this problems except me =( .Btw there is one game it ask me to "Press any key to continue" When i click any key im stuck there, it doesnt lead me to the welcome page it just hang there ---> "Press any key to continue"Message Edited by takashix on 19-Sep-2006
    11:42 PM

  • Nokia 6131 problem

    Hi. often my cell phone (nokia 6131) automatically switched off and on and some of my contacts was deleted. what should I do with this problem?

    Dear DoOmi.
    If you have bother just a little bit, and look the post just the last 24 hours. You would find that the issue are relevant. But before you can expect any answer - you need to do a cleared own efforts - then come back.

  • Nokia 6131 & PC Suite Sync Problem

    Hi all. Hope someone can help me. I have a Nokia 6131 updated with the latest phone software and am trying to use it with my Windows XP PC using PC Suite version 6.85.14.1. The problem is that during the sync process between the phone and PC, the phone begins the process but stops before completing the sync process and then disconnects from the PC. About 10 seconds later, without my doing anything, the phone reconnects with the PC, attempts to sync with the PC and the problem repeats itself. After two times, the phone then turns off by itself. I can do all the functions of PC Suite (backup, file explore, picture transfer, etc.) except update my address book because it won't complete the sync process completely. Thanks very much in advance for any solution.

    Hi Android. Thanks for your quick reply. My situation is that I'm not synching my phone with Outlook. I need to synch the phone with the PC in order to update my phone contact list. I tried doing it on my laptop with Vista OS and the same thing happens. After I click on the Contacts button, the phone begins the synch process, then stops (at 77 of 90) because the phone disconnects itself, then the phone connects again and repeats the problem. I got an error code 0x80044403: "PC Suite does not recognize the connected phone". Very strange since I can synch the calendar on my Vista laptop with the phone with no problem. It's only the Contacts that I can't update because the phone disconnects before synch completion. All other PC Suite functions work fine.

  • Nokia 6131 phonebook problem

    Hello !
    I've tried recently to move back on my old phone, Nokia 6131. After i've synced contacts, i've got strange behaivior.
    I've got contacts written on english and on russian. When I'm entering Namesfrom menu, english ones are ok, but russian contacts displays as only first 5 symbols and then "...". When I enter contact - it displayes everything normal. I've searched through settings to find something - but helpless.
    Any suggestions ?
    Best regards
    Dmitry

    Hi Submaster,
    Welcome to Nokia Discussions.
    Depending on what region the phone is produced for, your device is either installed with English writing (or any other language that uses the English alphabet) or another language like, for example, Russion writing. The phone is not designed to support both and doing so can therefore cause some issues within the phone's software. 
    I would suggest to visit a Nokia Care Point where you can have a look at your options with one of our Nokia specialitsts, perhaps installing Russian as your main language could be a solution.
    Hope this clears things up.
    Iris9290
    If my post has helped you in any way, please accept it as a solution or click on the white star, so that other users will be able to benefit from it too.

  • Nokia 6131 Software update Problem

    Hello from Egypt
    My mobile has code number : 0532325 a Nokia 6131 with software V03.70 12-05-06 RM-115
    I am trying to update since a long time to the latest software but
    when ever i try using the latest PC suite and software updater it says that the phone is disconnected I try to plug and unplug the phone it keeps writing with red font the word Test Mode
    and nothing more
    I am trying since almost a year since they made the new software update thing but in vain
    tried on Windows vista,XP and with 2 different cables and all the same result
    any help would be appreciated
    Thanks in advance
    regards
    Ahmed Hassan
    Egypt,Cairo
    Ahmed Hassan
    Egypt,Cairo
    Nokia 6131

    Salam Freid
    Please check the post again I have downloaded the latest version of NSU and PC Suite
    Thanks for your help
    Ahmed Hassan
    Egypt,Cairo
    Nokia 6131

  • Jetz API on nokia 6131 secure element

    Hi,
    i've developed an applet that uses the Jetz Api in order to write on nokia 6131 mifare.
    When i try to upload the applet i receive this error:
    "Reference data not found".
    I succeed in uploading another applet that doesn't use JetZ Api.
    Can you help me?

    Thank you for your quick reply.
    */identify*
    What do you mean with /identify? Sorry for the question, but I am new to Java Card.
    The command itself results in an error
    cm>  /identify
    => 00 A4 04 00 09 A0 00 00 01 67 41 30 00 FF          .........gA0..
    (16595 usec)
    <= 6A 82                                              j.
    Status: File not found
    jcshell: Identification failed - unexpected response (CM=com.ibm.jc.CardManager).
    Trace
    This is the trace when i set the security level to C_MAC:
    cm>  /term "winscard:4|OMNIKEY CardMan 5x21-CL 0"
    --Opening terminal
    /card -a a000000003000000 -c com.ibm.jc.CardManagerresetCard with timeout: 0 (ms)
    --Waiting for card...
    ATR=3B 88 80 01 00 73 C8 40 13 00 90 00 71             ;[email protected]
    ATR: T=0, T=1, Hist=0073C84013009000
    => 00 A4 04 00 08 A0 00 00 00 03 00 00 00 00          ..............
    (39349 usec)
    <= 6F 10 84 08 A0 00 00 00 03 00 00 00 A5 04 9F 65    o..............e
        01 FF 90 00                                        ....
    Status: No Error
    cm>  set-key 42/1/DES-ECB/404142434445464748494a4b4c4d4e4f 42/2/DES-ECB/404142434445464748494a4b4c4d4e4f 42/3/DES-ECB/404142434445464748494a4b4c4d4e4f
    cm>  init-update 42
    => 80 50 2A 00 08 6C CD 30 6D E5 29 86 24 00          .P*..l.0m.).$.
    (105427 usec)
    <= 00 00 63 42 50 11 F4 A8 01 09 2A 02 00 54 54 6A    ..cBP.....*..TTj
        7D 6B CA DB 69 C9 EF CD BE 75 64 7C 90 00          }k..i....ud|..
    Status: No Error
    cm>  ext-auth mac
    => 84 82 01 00 10 48 24 E8 B3 C0 E9 67 92 1F 02 06    .....H$....g....
        DF 03 82 24 B3                                     ...$.
    (44454 usec)
    <= 90 00                                              ..
    Status: No Error
    cm>  delete 77616c6c6574617070
    => 84 E4 00 00 13 4F 09 77 61 6C 6C 65 74 61 70 70    .....O.walletapp
        6E F2 1A 47 FB E6 DD 44 00                         n..G...D.
    (49524 usec)
    <= 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 77616c6c6574
    => 84 E4 00 00 10 4F 06 77 61 6C 6C 65 74 80 19 51    .....O.wallet..Q
        5D 1E 72 78 0F 00                                  ].rx..
    (48488 usec)
    <= 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 -b 250 "C:\Documents and Settings\jezeerb\workspace\test\bin\com\ict\javacard\wallet\javacard\wallet.cap"
    => 84 E6 02 00 1B 06 77 61 6C 6C 65 74 08 A0 00 00    ......wallet....
        00 03 00 00 00 00 00 00 15 B5 1B 92 01 54 F9 C0    .............T..
        00                                                 .
    (149055 usec)
    <= 00 90 00                                           ...
    Status: No Error
    => 84 E8 00 00 FA C4 82 03 05 01 00 28 DE CA FF ED    ...........(....
        02 02 04 00 01 06 77 61 6C 6C 65 74 17 63 6F 6D    ......wallet.com
        2F 69 63 74 2F 6A 61 76 61 63 61 72 64 2F 77 61    /ict/javacard/wa
        6C 6C 65 74 02 00 21 00 28 00 21 00 0D 00 16 00    llet..!.(.!.....
        4A 00 0E 01 EF 00 0A 00 2D 00 00 00 A8 06 76 00    J.......-.....v.
        00 00 00 00 00 02 01 00 04 00 16 02 02 01 07 A0    ................
        00 00 00 62 01 01 00 02 08 A0 00 00 01 67 41 30    ...b.........gA0
        02 03 00 0D 01 09 77 61 6C 6C 65 74 61 70 70 00    ......walletapp.
        01 06 00 0E 00 00 00 80 03 01 FF 00 07 01 00 00    ................
        00 18 07 01 EF 00 04 30 8F 00 04 18 1D 1E 8C 00    .......0........
        0E 7A 01 40 18 8C 00 0B 18 8B 00 06 7A 02 21 19    [email protected].!.
        8B 00 10 2D 18 8B 00 11 60 03 7A 1A 03 25 10 B0    ...-....`.z..%..
        6A 08 11 6E 00 8D 00 07 1A 04 25 75 00 26 00 03    j..n......%u.&..
        00 30 00 11 00 40 00 18 00 50 00 1F 18 19 8C 00    [email protected]......
        0A 70 16 18 19 8C 00 02 70 0F 18 19 8C 00 05 70    .p......p......p
        08 11 6D 00 8D 00 07 CC C8 86 D6 31 DA 10 6B 00    ..m........1..k.
    (844132 usec)
    <= 6A 88                                              j.
    Status: Reference data not found
    jcshell: Error code: 6a88 (Reference data not found)
    jcshell: Wrong response APDU: 6A88
    Unexpected error; aborting execution
    Applet source:
    I'am trying to adapt the standard wallet example to store the balance in the MiFare storage.
    import com.ibm.jz.JZSystem;
    import javacard.framework.APDU;
    import javacard.framework.Applet;
    import javacard.framework.ISO7816;
    import javacard.framework.ISOException;
    import javacard.framework.Util;
    public class WalletAppJCMF extends Applet
         final static byte APP_CLA = (byte)0xB0;
         final static byte CREDIT = (byte)0x30;
         final static byte DEBIT = (byte)0x40;
         final static byte GET_BALANCE = (byte)0x50;
         // max balance
         final static short MAX_BALANCE = 10000;
         // max transaction amount
         final static byte MAX_TRANSACTION_AMOUNT = 100;
         // Applet specific status words:
         final static short SW_INVALID_TRANSACTION_AMOUNT = 0x6A83;
         final static short SW_EXEED_MAXIMUM_BALANCE = 0x6A84;
         final static short SW_NEGATIVE_BALANCE = 0x6A85;
         final static short ERROR = -1;
         final static short SUCCESS = 0;
         // instance variable declaration
         short m_Balance;
         public static void install(byte[] bArray, short bOffset, byte bLength)
              // GP-compliant JavaCard applet registration
              new WalletAppJCMF(bArray, bOffset, bLength);
         private WalletAppJCMF(byte[] bArray, short bOffset, byte bLength)
              register();
         public void process(APDU apdu)
              // Good practice: Return 9000 on SELECT
              byte[] buf = apdu.getBuffer();
              if (selectingApplet())
                   return;
              // Verify the CLA byte
              if(buf[ISO7816.OFFSET_CLA] != APP_CLA)
                   ISOException.throwIt(ISO7816.SW_CLA_NOT_SUPPORTED);
              switch (buf[ISO7816.OFFSET_INS])
                   case CREDIT:
                        credit(apdu);
                        break;
                   case DEBIT:
                        debit(apdu);
                        break;
                   case GET_BALANCE:
                        getBalance(apdu);
                        break;
                   default:
                        // good practice: If you don't know the INStruction, say so:
                        ISOException.throwIt(ISO7816.SW_INS_NOT_SUPPORTED);
         private short getBalance()
              short sRetVal = ERROR;
              byte [] buf = new byte[8+16];
              buf[7] = (byte) 0xE7;
              buf[6] = (byte) 0x3A;
              buf[5] = (byte) 0xFE;
              buf[4] = (byte) 0x45;
              buf[3] = (byte) 0x07;
              buf[2] = (byte) 0x57;
              buf[1] = (byte) 0x54;
              buf[0] = (byte) 0x0B;
              if(JZSystem.readWriteMifare(JZSystem.MIFARE_PASSWORD_READ, buf, (short)0, (short) 2) == SUCCESS)
                   sRetVal = buf[8];
              return sRetVal;          
         private void getBalance(APDU apdu)
              byte[] buffer = apdu.getBuffer();
              apdu.setOutgoing();
              apdu.setOutgoingLength((byte)2);
              Util.setShort(buffer, (short) 0, m_Balance);
              apdu.sendBytes((short)0, (short)2);
              byte [] buf = apdu.getBuffer();
              buf[7] = (byte) 0xE7;
              buf[6] = (byte) 0x3A;
              buf[5] = (byte) 0xFE;
              buf[4] = (byte) 0x45;
              buf[3] = (byte) 0x07;
              buf[2] = (byte) 0x57;
              buf[1] = (byte) 0x54;
              buf[0] = (byte) 0x0B;
              JZSystem.readWriteMifare(JZSystem.MIFARE_PASSWORD_READ, buf, (short)0, (short) 5);
              apdu.setOutgoingAndSend((short)8, (short)1);
         private void debit(APDU apdu)
              byte[] buffer = apdu.getBuffer();
              byte numBytes = (byte)(buffer[ISO7816.OFFSET_LC]);
              byte byteRead = (byte)(apdu.setIncomingAndReceive());
              // inform the JCRE that the applet has data to return
              apdu.setOutgoing();          
              if((numBytes != 1) || (byteRead != 1))
                   ISOException.throwIt(ISO7816.SW_WRONG_LENGTH);
              // get debit amount
              byte debitAmount = buffer[ISO7816.OFFSET_CDATA];
              // check the debit amount
              if((debitAmount > MAX_TRANSACTION_AMOUNT) || (debitAmount < 0))
                   ISOException.throwIt(SW_INVALID_TRANSACTION_AMOUNT);
              // check the new balance
              if((short)(m_Balance - debitAmount) < (short)0)
                   ISOException.throwIt(SW_NEGATIVE_BALANCE);
              m_Balance = (short)(m_Balance - debitAmount);
              // set the actual number of the outgoing data bytes
              apdu.setOutgoingLength((byte)2);
              // write the balance into the APDU buffer at offset 0
              Util.setShort(buffer, (short)0, m_Balance);
              // send the 2-byte balance at the offset 0 in the APDU buffer
              apdu.sendBytes((short)0, (short)2);          
         private void credit(APDU apdu)
              short balance = 0;//getBalance();
              byte[] buffer = apdu.getBuffer();
              // get the number of bytes in the data field of the command APDU
              byte numBytes = buffer[ISO7816.OFFSET_LC];
              // recieve data, data are read into the apdu buffer
              // at offset ISO7816.OFFSET_CDATA
              byte byteRead = (byte)(apdu.setIncomingAndReceive());
              // inform the JCRE that the applet has data to return
              apdu.setOutgoing();
              // error if the number of data bytes read does not match the number in the Lc byte
              if((numBytes != 1) || (byteRead != 1))
                   ISOException.throwIt(ISO7816.SW_WRONG_LENGTH);
              // get the credit amount
              byte creditAmount = buffer[ISO7816.OFFSET_CDATA];
              // check the credit amount
              if((creditAmount > MAX_TRANSACTION_AMOUNT) || (creditAmount < 0))
                   ISOException.throwIt(SW_INVALID_TRANSACTION_AMOUNT);
              // check the new balance
              if((short)(balance + creditAmount) > MAX_BALANCE)
                   ISOException.throwIt(SW_EXEED_MAXIMUM_BALANCE);
              // credit the amount
              m_Balance = (short)(m_Balance + creditAmount);
              // set the actual number of the outgoing data bytes
              apdu.setOutgoingLength((byte)2);          
              // write the balance into the APDU buffer at offset 0
              Util.setShort(buffer, (short)0, m_Balance);
              // send the 2-byte balance at the offset 0 in the APDU buffer
              apdu.sendBytes((short)0, (short)2);
    }Again thank you for your help

  • Nokia 6131 video not in sync with sound

    After a year of working just fine, my Nokia 6131 video picture is not in sync with the sound when I play it back on the phone or when I download it to my pc to view.
    At first the problem was only when I played it back on the phone, but was fine on the pc. Now it's distorted on both.
    The video picture seems to be on fast forward but the sound runs smoothly. My video's are always less than five mins long.
    Please can anyone help me to resolve this frustrating problem?
    Katie Girl
    Solved!
    Go to Solution.

    hey KatieGirl, i too had the same problem with my old nokia 6288. have you tried turning off your phone and restarting it, this usually helps in alleviating choppy video playback. if this is still resulting in **bleep** playback on your phone and pc, then i would suggest searching for a software update via Nokia Software Updater, if there is no update, then i would suggest re-flashing your phone with the same version firmware again. p.s. remember to backup all your data before flashing your phone with firmware.
    failing all this, then i would suggest taking your phone to your nearest Nokia Care Centre or authorised service repair centre, as there may be a fault with your phone hardware itself.
    hope this helps.

  • Software updater for nokia 6131 using pc

    i am facing lot of problems with nokia 6131 model since there is no proper availability of accessories,software etc.i couldnt find any software updater for my model.when will it be released?please give me information.

    27-Aug-2006
    12:39 PM
    rajaram wrote:
    i am facing lot of problems with nokia 6131 model since there is no proper availability of accessories,software etc.i couldnt find any software updater for my model.when will it be released?please give me information.
    It is out - go to
    http://www.nokia.co.uk/nokia/0,1522,,00.html?orig=/softwareupdate
    and follow the instructions from there.
    Regards,
    Edward

  • Nokia 6131 to be switched off for data transfer

    I have a strange problem.
    I have 2 Nokia 6131 (NFC enabled) phones in my hand .In the first phone I have an application(Midlet) which writes data to the internal mifare of the same phone.
    Now I brings the second phone closer to first one.I want second phone to receive the contents of the mifare of first one as a bookmark(auto launch).
    But for that the first one needs to be switched off.Can any body guide me through the correct way to solve this problem

    See if this helps;
    About iPod Sleep
    Cheers!
    -Bryan

  • ISync 2.3 et Nokia 6131

    la synchro entre Nokia 6131 et iSync 2.3 fonctionne maintenant; il faut télécharger le module plugin sur le site www.isync-hilfe.de
    cliquer bouton droit de la souris sur iSync, ensuite choisir Afficher le contenu du paquet puis glisser le dossier du plugin dans : Contents/PlugIns/ApplePhoneConduit.syncdevice/Contents/PlugIns
    ça marche vraiment,
    bonne synchro à tous

    Do you get an error in either iSync or on the phone? If so, what is the exact message? If not, what steps are you taking to create the problem, and where are they deviating from your expected result? Did the phone pair OK? In other words, on the 9300 under Tools -> Control panel -> Connections -> Bluetooth, can you see the Mac under the "Paired devices" tab?
    Are you trying to use a Bluetooth headset at the same time? I have to turn my Motorola headset off to pair with the Mac to sync or modem.
    I have a basic Nokia 9300 (Asia-based GSM) here in the US with T-Mobile and have it working with iSync through a German company's plugin, and also got it working as a GPRS/EDGE modem.

  • How do i convert videos to mp4 on my nokia 6131??

    Can anyone tell me how to convert videos to mp4 on my nokia 6131?

    Hi there I too had the same problem and found this little app so helpfull, chek it out
    http://www.isquint.org/
    cheers tommy

  • Multiple File Upload Applet

    I am attempting to code a JavaBean wrapped by an applet that will upload multiple files to a web server via the multipart/form-data mime-type.
    I have moved a number of files to the web server with limited success.
    I cannot move more than roughly 30Mbs of files in any configuration without causing a fatal exception.
    I am confident that it is a limitation of the client's VM and the memory allocated to the applet.
    I have seen several commercial grade applets that claim they can move any number of files even totalling 180Mbs.
    My applet is very simple. It opens a JFileChooser dialog box, allowing the user to select multiple files and communicates directly to a server side component that accepts multipart/form-data.
    I am navigating the protocol just fine. It seems to be a memory problem on the client side. Does anyone know how I can defeat this restriction and pass a reasonably high number of files (100-200) ranging from 50Mbs to 180+Mbs?
    Secondly, why does this happen: when I put my files onto the output stream, no files move accros the stream until I call .close(). How can I write the code to begin transferring bytes as soon as I call outputstream.write(xxx)?

    i am also developing multiple file upload applet and i transferred 1,4gb of data (2 files a 700MB) successfully.
    also, i just transferred a few hundred files with total size of 900mb to my localhost webserver (~5000kb/s)
    1) open file
    2) read a few kilobytes into buffer
    3) send them to the server
    4) flush the outputstream (!!)
    5) clear buffer and goto 2)
    6) if end-of-file, close the file and flush again.
    the outputstream is flushed every few kilobytes, so it will be sent over the socket to the server and not buffered until dawn.
    i don't know how the server-side is working, but i used apache/php script.
    you can try out my applet under
    http://www.haller-systemservice.net/jupload/

  • How java card technology could be installed on Nokia 6131 NFC

    Hi all,
    these days i' busy with a NFC. i wanna know how to install java card technology to Nokia 6131 NFC phone.
    I'm using Sun java card development kit 2.2.
    thanks

    Hi
    Using Omnikey Cardman 5231 reader and JCOP Tools, i am trying to install an applet on to the secure element of Nokia 6131 NFC
    1. i am able to successfully install the unlock midlet.
    2. i got the ATR message from
    cm>/card
    resetCard with timeout: 0 (ms)
    --Waiting for card...
    ATR=3B 88 80 01 00 73 C8 40 13 00 90 00 71 ;[email protected]
    ATR: T=0, T=1, Hist=0073C84013009000
    => 00 A4 04 00 09 A0 00 00 01 67 41 30 00 FF .........gA0..
    (26335 usec)
    <= 6A 82 j.
    Status: File not found
    => 00 A4 04 00 07 A0 00 00 00 03 00 00 00 .............
    (37623 usec)
    <= 6F 10 84 08 A0 00 00 00 03 00 00 00 A5 04 9F 65 o..............e
    01 FF 90 00 ....
    Status: No Error
    i set the keys
    set-key 42/1/DES-ECB/404142434445464748494A4B4C4D4E4F 42/2/DES-ECB/404142434445464748494A4B4C4D4E4F 42/3/DES-ECB/404142434445464748494A4B4C4D4E4F
    Next init-update, i am getting error in this step
    cm>init-update 42
    => 80 50 2A 00 08 59 FE 2C 3F 80 D1 2F F4 00 .P*..Y.,?../..
    (33921 usec)
    <= 6A 88 j.
    Status: Reference data not found
    jcshell: Error code: 6a88 (Reference data not found)
    jcshell: Wrong response APDU: 6A88
    i appreciate if any one could let us know correct keys or any step by step process that is needed to follow, so that i can successfully install the applet on the secure element of Nokia 6131 NFC phone.

Maybe you are looking for

  • Macbook Pro stuck in " you need to restart" mode!

    I hope someone can help. Everytime I turn on my macbook Pro, the apple logo comes on with the spinning "loading" wheel thingy and bang two seconds onto the boot, the computer crashes with the falling grey screen and the "you need to restart your syst

  • DW CS5 -- Issues with uploading files to server

    Hi everyone -- I recently took over control of a website that hasn't been updated in years. I am in charge of redesigning the site, but need to keep what we have up-to-date until the new site is ready to roll out. I received the FTP info for the serv

  • Wildcards in Web Source: Path Rules

    Hello, I am evaluating UltraSearch Release 9.2.0.1 coming with Database V9.2.0.3 on Solaris. I want to exclude some URL from being crawled using Wildcards when defining an Exclusion Path Rule for a Web Source, e.g. excluding URLs with ending "_de.htm

  • Redirecting Sun Ray sessions

    Apparently I have to update my Sun Ray Server to 4.2 or at least apply some patches so that i can recieve audiio to my 2fs DTU's. I do not have a lab environment so I am wanting to move all of my users over to one server. According to the doc's, I ca

  • JFree Chart Orientation

    Hello, I am new to JFree chart . I am using Time series valuels for X axis, but now I want Time series on Y axis or as legends, any one give an idia .pls thanks.