×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    5

    Problem with internal Mifare Tag Connection

    Hi,

    I'm using the SDK 1.1 and a real Nokia 6131.
    I found a problem when i try to access the internal mifare tag :

    Here is an extract of my appli code :

    Code:
    import com.nokia.nfc.nxp.mfstd.*;
    import com.nokia.nfc.nxp.mfstd.MFStandardConnection;
    ...
    MFStandardConnection conn = (MFStandardConnection) Connector.open(System.getProperty("internal.mf.url"));
    ...
    With the SDK, compile ok, run ok.
    With the Device, run failed with SecurityException.
    With the Device + midlet signed with a valid certificate issued by Thawte (MIDlet-Permissions: javax.microedition.io.Connector.rf) run failed with "No Class Def Found Error com/nokia/nfc/nxp/mfstd/MFStandardConnection"

    Checking the Nokia_6131_NFC_SDK_1_1/docs/nfc_ext/index.html, it is said that the interface name of com.nokia.nfc.nxp.mfstd is MifareStdConnection.

    Do you know something about this problem ?
    Maybe the interface name in the Device is MifareStdConnection and not MFStandardConnection ? If this is true, how can i compile my midlet with MifareStdConnection as it fails currently with "symbol not found" ?

    Thanks for your support.

  2. #2
    Registered User
    Join Date
    Jul 2007
    Posts
    5

    Re: Problem with internal Mifare Tag Connection

    I found something interesting, while reading all the docs.
    It seems that the mifare api was packaged under com.philips.rf.MifareStdConnection in the real device.

    When i use this code :

    Code:
    Class conn = Class.forName("com.philips.rf.MifareStdConnection");
    if(conn.isInterface()) screen.append(conn.getName() + " OK"  + "\n");
    else screen.append(conn.getName() + " NOK"  + "\n");
    it fails in the emulator BUT works on the real device (display com.philips.rf.MifareStdConnection OK)
    which can mean that the mifare API is really in the phone (SW version 3.12).

    So the problem is : how to map com.nokia.nfc.nxp.mfstd.MFStandardConnection to com.philips.rf.MifareStdConnection ?

    Without the reflex package, my knowledge in j2me stops here and i don't know how to get this next line working :
    Code:
    conn = Connector.open(System.getProperty("internal.mf.url"));
    I think there must be a way to dynamically cast this object like
    Code:
    (com.philips.rf.MifareStdConnection) conn = (com.philips.rf.MifareStdConnection) Connector.open(System.getProperty("internal.mf.url"));
    Any guru here ?

Similar Threads

  1. Problem MMC+USB Connection
    By Fede81 in forum Symbian
    Replies: 1
    Last Post: 2007-06-14, 06:13
  2. Connection problem while browsing web from a middlet
    By oleberre in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2007-02-23, 12:29
  3. Problem with connection timeout
    By maniac_2k in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2006-09-21, 20:12
  4. socket connection problem
    By bhatti81 in forum Mobile Java General
    Replies: 2
    Last Post: 2003-10-08, 14:43
  5. Nokia 6310i & Mac 17" powerbook bluetooth connection problem
    By scarylittlevoices in forum Bluetooth Technology
    Replies: 1
    Last Post: 2003-08-21, 14:48

Posting Permissions

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