×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    5

    6212 NFC SDK + embedded smart card + external reader

    Hi,

    I read lots of posts but did not find any solution to my issue.

    I've written a very simple MIDlet that implements JSR 257 mechanisms : it implements TransactionListener interface, I added dm.addTransactionListener(this), and implemenetd the method externalReaderDetected(byte slot).
    So if a card emulation activity is detected the MIDlet should be notified.

    To simulate the SE I've written a payment application with JCOP and I'm trying to access it by writing a plug-in for the NFC manager. In fact I have modified the JavaCardPlatformPlugin sample so that it connects on the JCOP port. It should redirect the APDUs to JCOP.

    I've connected an Omnikey reader, it is recognized in the NFC manager, ok.

    Now when I attach the reader nothing happens ! Card emulation activity is not detected.
    What I dont understand is this, coming from SDK help contents
    method rats : Performs select with the simulated smart card.
    Note: This function is currently not implemented.
    The methods rats is the one used when the phone is touched, so if it is not implemented how could it work ?
    In this method, the connect() method is called. I've put this call in the initailize method and it works. So I know the connection between the plug-in and JCOP works.

    Do you have any idea ? Problem in my MIDlet ? In rats method implementation ?
    While typing, a question comes to my mind : when the phone is touched if the reader does not send anything what APDU is redirected to the SE ? Just a SELECT ? It is possible to simulate a POS behaviour ? Maybe I'm asking too much to the SDK and the external reader is mainly for tag reading/writing purpose...

    Thanks.

  2. #2
    Registered User
    Join Date
    Sep 2009
    Posts
    5

    Re: 6212 NFC SDK + embedded smart card + external reader

    I found a way. I do not use the Smart Card Plugin. I directly install and personalize the applet in the 6212 SE with JCOP.
    Then I drag & drop the contactless reader both in Embedded Tag and Embedded Smart Tag.
    Thus, when I touch the phone the SDK accesses directly the Nokia 6212 SE.

  3. #3
    Registered User
    Join Date
    Oct 2009
    Posts
    4

    Re: 6212 NFC SDK + embedded smart card + external reader

    Hi,

    I have written a plug-in that runs on the secure element and a midlet that communicates
    with the SE plug-in using an ISO14443Connection. As far as the communication goes, everything
    works smoothly using exchangeData...

    Now, all I am trying to do is make the midlet detect an external reader.
    So, I am making the Midlet implement the TransactionListener interface.
    In the startApp method, I do the following:
    1 - DiscoveryManager dm = DiscoveryManager.getInstance();
    2 - dm.addTransactionListener(this);

    I have also implemented the externalReaderDetected(byte slot) method
    for it to just print to the console if a reader is detected.

    I am using the Nokia NFC Manager to simulate the external card reader. I just
    drag the external card reader onto the NFC Antenna but no event is triggered
    (externalReaderDetected never gets called) and I have no idea why

    I hope I was clear explaining the problem and I really hope you know why I am
    not getting any events.

    Thank you very much!!!

  4. #4
    Registered User
    Join Date
    Sep 2009
    Posts
    5

    Re: 6212 NFC SDK + embedded smart card + external reader

    Hi knahro,

    Did you install the applet on the phone ?
    That's what I did. I unblocked the SE and loaded my applet via JCOP tools. Then I make the SDk have access to the SE by dragging and dropping the external reader both in Embedded tag and Embedded smart card.
    You'll see it works fine, the ExternalReaderDetected event is triggered.

    Cheers

  5. #5
    Registered User
    Join Date
    Oct 2009
    Posts
    4

    Re: 6212 NFC SDK + embedded smart card + external reader

    Hi vinzFr,

    I did not install the applet on the phone and unfortunately that is
    not an option for this project. This project is meant for extensive
    testing on the simulator first. Thank you for your response but what I
    really need to know is why the external reader is not detected.

    Thanks!

  6. #6
    Registered User
    Join Date
    Sep 2009
    Posts
    5

    Re: 6212 NFC SDK + embedded smart card + external reader

    I am not sure this is implemented in the SDK.
    Did you implement the rats() method in your plugin ? Anyway I am not sure this method is called when the phone is touched. Give it a try with 6131 SDK.

Similar Threads

  1. NFC reader for Nokia 6212
    By al881 in forum Mobile Java General
    Replies: 8
    Last Post: 2011-10-07, 06:27
  2. Replies: 6
    Last Post: 2010-03-22, 12:38
  3. error LNK2001: Please Help
    By sourish_khan in forum Symbian
    Replies: 9
    Last Post: 2006-04-19, 11:16
  4. Http connection problem in 6310i
    By teahola in forum Mobile Java General
    Replies: 1
    Last Post: 2002-10-03, 18:46

Posting Permissions

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