×

Discussion Board

Results 1 to 10 of 10

Hybrid View

  1. #1
    Regular Contributor
    Join Date
    Apr 2006
    Posts
    58

    Red face Installing applet in SE memory

    Hi,
    I have some problems downloading applet in the secure element of an unblocked 6131 NFC.

    let's share what I did until now.

    I used jcde (http://sourceforge.net/projects/eclipse-jcde/) to wrap the Java Card command into eclipse.

    Then I generated the .cap file (with the convert tool of Java Card) to be downloaded in the SE of the Nokia.

    finally I used GPShell 1.4.1 to donwload the .cap file.

    Code:
    mode_211
    enable_trace
    establish_context
    card_connect -reader "OMNIKEY CardMan 5x21-CL 0"
    reader name OMNIKEY CardMan 5x21-CL 0
    open_sc -security 3 -keyver 42 -mac_key 404142434445464748494A4B4C4D4E4F -enc_key 404142434445464748494A4B4C4D4E4F -kek_key 404142434445464748494A4B4C4D4E4F
    --> 00CA006600
    <-- 734A06072A864886FC6B01600C060A2A . . .
    --> 80502A00084205594FCC09008D00
    <-- 0000634230C1F5A801092A0200072ECCEBB6BA1 . . .
    --> 848203001070BE0107B48A4B4DB507C7453CF51772
    <-- 9000
    install -file wallet.cap -priv 2
    file name wallet.cap
    --> 80E60200160B0102030405060708090201000006EF. . .
    <-- 009000
    --> 80E80000EFC4820412010035DECAFFED02020400010B0102030. . .
    00E407AC00000000000002010004001502030107A0000000620 . . .
    8900188F00023D0610088C00038701191E2529041E1604410441 . . .
    <-- 6A80
    load_applet() returns 0x80206A80 (6A80: Wrong data / Incorrect values in command data.)

    I tried also to downlaod the sample HelloWorld applet that came with GPShell and I realized that I can download it without problem.
    I didn't understand the problem with my applet.. could be a versioning problem?
    The applet works well with the demo program.

    Which kind of programs do you use to develop and deploy the applet?

    please help

    thanks
    Roberto

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    53

    Re: Installing applet in SE memory

    Hi,

    the same gpshell text file loads my applet to SE with success on my computer.

    just two suggestions:
    1) use a cap file which is delivered with Nokia SDK, e.g. in InternalSecureCardExample\ \appl.cap
    (avoid as first step building of .cap file with different tools and versions???)

    2) use Java SDK 1.4.1 version and set your JAVA_HOME environment to it. Run gpshell in this environment.

    I hope, that helps.

  3. #3
    Regular Contributor
    Join Date
    May 2007
    Posts
    63

    Re: Installing applet in SE memory

    Try this in sequence:

    1. Check your Java Card Development Kit Version.
    For Nokia 6131 NFC, GlobalPlatform 2.1.1 is using Java Card Development Kit 2.2.1.
    2. Rebuild your Java Class file.
    3. Covert your Java Class file to CAP file.
    4. Verify your CAP file with verifycap.bat.
    5. Check if there is any similar package or applet inside the cap.
    6. Download the CAP file

  4. #4
    Registered User
    Join Date
    Aug 2008
    Posts
    19

    Re: Installing applet in SE memory

    Quote Originally Posted by yakdogan View Post
    Hi,

    the same gpshell text file loads my applet to SE with success on my computer.

    just two suggestions:
    1) use a cap file which is delivered with Nokia SDK, e.g. in InternalSecureCardExample\ \appl.cap
    (avoid as first step building of .cap file with different tools and versions???)

    2) use Java SDK 1.4.1 version and set your JAVA_HOME environment to it. Run gpshell in this environment.

    I hope, that helps.

    NO !, check the source archive of GPShell, it is plain C++, no java
    so javahome... has nothing to do with it on deploy time

  5. #5
    Regular Contributor
    Join Date
    Apr 2006
    Posts
    58

    Re: Installing applet in SE memory

    Thanks,
    I found the origin of the problem: it was the .CAP file that was generated with a newer version of the JCDK.

    This happened because the jcde v0.1 wrapped the JCDK 2.2.2 that is not compatible as you said with the nokia 6131.

    So I used another tool to build the .cap file and everything works.

    thanks
    Roberto

  6. #6
    Registered User
    Join Date
    Nov 2008
    Posts
    31

    Re: Installing applet in SE memory

    Hi Berreto,
    I am trying to load credit / debit card details on the secure element of the nokia 6131 NFC phone. I used the unlock midlet to remove the keys of the secure element.
    1) I have installed netbeans IDE 6.5.1. Is there a Javacard plugin for this IDE.
    2)I have an Arygon APPA Desktop reader. I wanted to know whether this reader could act as a Contactless Reader. However, I was told that the arygon reader does not support java applets. Can you suggest any specific contactless reader for me.
    4) I have installed the GPShell but want to know how a .cap file is compiled and executed in GPShell. I tried compiling but the GPShell command window just terminates.
    A little more detail on the cap file and the javacard plugin will greatly help.
    Last edited by amarsahu; 2009-08-11 at 11:23.
    Amar Sahu
    CEDT@IISc

  7. #7
    Registered User
    Join Date
    Aug 2008
    Posts
    19

    Re: Installing applet in SE memory

    Quote Originally Posted by berroto View Post
    Hi,
    I have some problems downloading applet in the secure element of an unblocked 6131 NFC.

    let's share what I did until now.

    I used jcde (http://sourceforge.net/projects/eclipse-jcde/) to wrap the Java Card command into eclipse.

    Then I generated the .cap file (with the convert tool of Java Card) to be downloaded in the SE of the Nokia.

    finally I used GPShell 1.4.1 to donwload the .cap file.

    Code:
    mode_211
    enable_trace
    establish_context
    card_connect -reader "OMNIKEY CardMan 5x21-CL 0"
    reader name OMNIKEY CardMan 5x21-CL 0
    open_sc -security 3 -keyver 42 -mac_key 404142434445464748494A4B4C4D4E4F -enc_key 404142434445464748494A4B4C4D4E4F -kek_key 404142434445464748494A4B4C4D4E4F
    --> 00CA006600
    <-- 734A06072A864886FC6B01600C060A2A . . .
    --> 80502A00084205594FCC09008D00
    <-- 0000634230C1F5A801092A0200072ECCEBB6BA1 . . .
    --> 848203001070BE0107B48A4B4DB507C7453CF51772
    <-- 9000
    install -file wallet.cap -priv 2
    file name wallet.cap
    --> 80E60200160B0102030405060708090201000006EF. . .
    <-- 009000
    --> 80E80000EFC4820412010035DECAFFED02020400010B0102030. . .
    00E407AC00000000000002010004001502030107A0000000620 . . .
    8900188F00023D0610088C00038701191E2529041E1604410441 . . .
    <-- 6A80
    load_applet() returns 0x80206A80 (6A80: Wrong data / Incorrect values in command data.)

    I tried also to downlaod the sample HelloWorld applet that came with GPShell and I realized that I can download it without problem.
    I didn't understand the problem with my applet.. could be a versioning problem?
    The applet works well with the demo program.

    Which kind of programs do you use to develop and deploy the applet?

    please help

    thanks
    Roberto

    yes got the same here and still no answer
    It could be the cap file, or a bug in gpshell
    I've read that it was working with v1.1.1, but it does not recognize omnikey contactless chip

  8. #8
    Registered User
    Join Date
    Feb 2009
    Posts
    17

    Re: Installing applet in SE memory

    Hello everybody

    I tried to install an applet in the SE memory of my Nokia 6212 NFC too.
    First I tried to unlock the SE with the unlock midlet, but it was already unlocked. Then I lauched the GPShell script to install the .cap test : InternalSecureCardExample\Applet\appl.cap.
    But when I tried to connect threw a NFC reader to my Secure Element I received an error :

    mode_211
    mode_211
    enable_trace
    enable_trace
    establish_context
    establish_context
    card_connect -reader "SCM Microsystems Inc. SDI010 Contactless Reader 0"
    card_connect -reader "SCM Microsystems Inc. SDI010 Contactless Reader 0"
    reader name SCM Microsystems Inc. SDI010 Contactless Reader 0
    open_sc -security 3 -keyver 42 -mac_key 404142434445464748494A4B4C4D4E4F -enc_ke
    y 404142434445464748494A4B4C4D4E4F -kek_key 404142434445464748494A4B4C4D4E4F
    open_sc -security 3 -keyver 42 -mac_key 404142434445464748494A4B4C4D4E4F -enc_ke
    y 404142434445464748494A4B4C4D4E4F -kek_key 404142434445464748494A4B4C4D4E4F
    Command --> 80CA006600
    Wrapped command --> 80CA006600
    GP211_get_secure_channel_protocol_details() returns 0x00000006 (Descripteur non
    valide
    )

    I don't understand this error "Desrcipteur non valide"... Did someone already met this type of return? Could it come from the keys of the Secure Element? Did my tests raised the number of unsuccessful tests which means that if I try 10 tests like this it would block the Secure Element?

    Tanks for your help and advices

    Best regards
    Antoine

  9. #9
    Registered User
    Join Date
    Feb 2009
    Posts
    17

    Re: Installing applet in SE memory

    Hello everyone,

    I finally resolved the problem. I had to select the Card Manager (AID A000000003000000) first before create the secured channel.

  10. #10
    Registered User
    Join Date
    Feb 2010
    Posts
    8

    Re: Installing applet in SE memory

    Can we directly install applets inside Nokia NFC SE using Bluetooth or USB to transfer the cap file?
    Or we always need to use an external card reader to do that?

Similar Threads

  1. Excessive midlet memory consumption
    By paulip in forum Mobile Java General
    Replies: 1
    Last Post: 2007-10-09, 19:24
  2. Does installing apps in phone memory runs faster?
    By ntanmizi in forum Series 40 & S60 Platform Feedback Archive
    Replies: 2
    Last Post: 2007-09-13, 02:06
  3. Installing an Applet to the NFC shell for payment and Ticketing
    By fibbe in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2006-06-16, 16:58
  4. 3300: Crash on installing Java applications from Memory Card
    By Jhn314 in forum Mobile Java General
    Replies: 0
    Last Post: 2003-08-19, 14:18
  5. can not successfully link any sample using .NET
    By lobotomat in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2002-08-20, 00:29

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×