×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Mar 2007
    Posts
    130

    JSR 257 Read Mifare Ultra Light

    It's not a problem to read NDEF formatted tag. But is anybody know how to read proprietary data from Mifare UltrLight tag using JSR 257.

    It's clear that PlainTagConnection should be use, and Vector output transceive(Vector input) method. But what data should be set in input Vector.

    Is anybody has experience concerning this question?

  2. #2
    Registered User
    Join Date
    Sep 2005
    Posts
    16

    Re: JSR 257 Read Mifare Ultra Light

    How to read mifare ultralite,1k or 4k using jsr 257?

  3. #3
    Registered User
    Join Date
    Jun 2007
    Posts
    45

    Re: JSR 257 Read Mifare Ultra Light

    anybody got a solution to this?

  4. #4
    Nokia Developer Expert
    Join Date
    Dec 2003
    Posts
    38

    Re: JSR 257 Read Mifare Ultra Light

    I am not sure what the people in standardization though when they created the
    PlainTagConnection. But since the content of the Vector parameters is not defined
    in any way that class is in practise unusable. In 6131 NFC there is only stub implementation.

    You can use SimpleTagConnection to handle Mifare Ultralight tags and MFStandardConnection
    for Mifare 1K/4K tags. MFStandardConnection class is implemented in phone software
    version 5.11 so you need to update your phone if you have older version.

  5. #5
    Registered User
    Join Date
    Jun 2007
    Posts
    45

    Re: JSR 257 Read Mifare Ultra Light

    well, the problem is when you try and read an external tag on the simulator <simulated tag found on the emulator> and try and read its class name (using getName() method), we get javax.microedition.contactless.ndef.NDEGTagConnection.

    is it because of this class name, that we are not able to type cast the connection to MFStandardConnection or simpletagconnection?

    If this is the prob, then how do we make a card with a class name as com.nokia.nfc.nxp.mfstd.MFStanadrdConnection <on the emulator>?

    or is there any alternative way to simulate reading an external mifare card?

  6. #6
    Nokia Developer Expert
    Join Date
    Dec 2003
    Posts
    38

    Re: JSR 257 Read Mifare Ultra Light

    When you call addTargetListener, did you use TargetType.RFID_TAG?
    If you use TargetType.NDEF_TAG then you will not get SimpleTagConnection
    or MFStandardConnection targets.

  7. #7
    Registered User
    Join Date
    Jun 2007
    Posts
    45

    Re: JSR 257 Read Mifare Ultra Light

    yes the target type we are trying to listen is : RFID_TAG....

    but yet, simpletagconnection or MFstandardConnection casting is causing a problem.

    One thing observed as output of the following code:

    public void targetDetected(TargetProperties[] properties)
    {
    //System.out.println(properties[0].getUrl());

    Class[] trial = properties[0].getConnectionNames();
    System.out.println(properties[0].getUrl(trial[0]));
    System.out.println(trial[0].getName()
    ---- "javax.microedition.contactless.ndef.NDEFTagConnection"

    and if you take a look at programmers guide distributed by the 6131 NFC SDK,
    one of the section briefing on MFStandardConnection is checking for the string from getName method as "com.nokia.mfstd.MFStandardConnection"

    Well, I think this is the problem that we are trying to typecast a NDEFTagConnection to MFStandardConnection...

    well..is my analysis of the problem correct? Or the problem is altogether different.

    Whatever be the problem, we need a solution for this....

    ANybody who has any knowledge regarding the same, may please contribute and hence help us advance to the next stage of development.

    Thanks in advance.

    Kind Regards.

  8. #8
    Nokia Developer Expert
    Join Date
    Dec 2003
    Posts
    38

    Re: JSR 257 Read Mifare Ultra Light

    Try to iterate the returned Class[] that you get from getConnectionNames().
    In your case you should find the correct Class from trials[1].

  9. #9
    Registered User
    Join Date
    Jun 2007
    Posts
    45

    Re: JSR 257 Read Mifare Ultra Light

    Thanks a ton.

    Its working now. I styill havent tried on the phone though. Are there any issues to take care of when implementing on the phone? (is there any particular s/w version that i must note before ordering a phone?)

  10. #10
    Nokia Developer Expert
    Join Date
    Dec 2003
    Posts
    38

    Re: JSR 257 Read Mifare Ultra Light

    Latest version is 5.11. If you get older version you can update in Nokia Service Points.

Similar Threads

  1. Light Api problems (part 2) N73
    By microsoft2 in forum Symbian
    Replies: 4
    Last Post: 2010-05-16, 22:54
  2. Anyone kwows where to download jsr 257?
    By synco in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2010-03-25, 14:19
  3. JSR 257 - ISO14443Connection
    By fido_9706 in forum Mobile Java Tools & SDKs
    Replies: 6
    Last Post: 2007-03-27, 15:15
  4. Replies: 4
    Last Post: 2006-12-30, 10:01
  5. socket read hangs until socket is closed
    By camroe in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-07-21, 09:44

Posting Permissions

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