Forum Replies Created

  • Re: Reply To: How to get MIFARE SDK Advanced?

    21. July 2016 at 11:35
    in reply to: How to get MIFARE SDK Advanced?
    Hi,
    Let me try one more time to spell this as clearly as possible: there is no way to create a "file" with the SDK Lite, leave alone set permissions.

    The only class I can use with the SDK Lite is: https://www.mifare.net/files/lite_javadoc/com/nxp/nfcliblite/cards/DESFireEV1.html
    This class only contain one method to create applications, not files: personalize(MASTER_KEY,appID,APP_KEY).

    What you are referring to is this class: https://www.mifare.net/files/lite_javadoc/com/nxp/nfclib/desfire/DESFireEV1.html
    which is present in the SDK Lite but is only accessible by first instantiating this other class which is NOT available in the Lite version: https://www.mifare.net/files/advanced_javadoc/com/nxp/nfclib/NxpNfcLib.html

    So creating file and setting permissions can only be done by using the Advanced SDK, in fact all the examples in the other posts explicitly say that they use the Advanced version.

    So the answer I am looking for is: you can't use our DESFire cards until the new SDK is out, and your project is screwed.

    I will just have to wait until the new SDK is out and hope that the project has not been shut down in the meanwhile. I can't understand that you cannot guarantee development continuity to your users until the new SDK is out and available.

    Thanks anyway for the help.
    + 0  |  - 0

    Re: Reply To: How to get MIFARE SDK Advanced?

    19. July 2016 at 10:36
    in reply to: How to get MIFARE SDK Advanced?
    Hi,
    yes I noticed that SDK Lite takes key directly as parameters and that is great, but the problem is that there is only a handful of methods one can use, and they are so simplified that it is impossible to create files in an application that can then be written and read with SDK lite.
    The methods format, personalize and authenticate all work, but read and write do not because the personalize method only creates a new app with some default keys and maybe files which cannot be accessed through the read and write methods which only take a byte array as parameter. In fact, I get a denied authorization or failed authentication when I tried to use them. Now, it is impossible to do something wrong because the only way to use these methods is the following:

    personalize(MASTER_KEY,appID,APP_KEY); <- works
    authenticate(MASTER_KEY,appID,APP_KEY); <- works
    write(buffer); <- permission denied/failed authentication
    read(buffer);<- permission denied/failed authentication

    Many other threads here raised the same problem, and all the answers state clearly that it is not possible to do anything with SDK Lite and all examples on how to create an application and write files are given using the SDK Advanced.
    Now, back to my original question, where do I get this SDK Advanced? I've got the credits, but I can't find any download link or shop for it.

    Thanks in advance for any help.
    + 0  |  - 0

    Re: Reply To: How to get MIFARE SDK Advanced?

    15. July 2016 at 13:57
    in reply to: How to get MIFARE SDK Advanced?
    Hi,
    yes, I understand, I got the same answer by mail, but I cannot wait, so I started using the available SDK. I download the SDK Lite from the website, which in practice contains also the advanced methods, and got some credits to use them.
    However, I have two problems.
    First: in theory I should need only the Lite version because all I need to do is to write some bytes on the card and read them back, but these operations don't work on the lite version. I used the simple app in the SDK package to make my own, and I can use all methods for DESFire that require a key: format, personalize and authenticate. However, write and read do not work as I get access denied error. Clearly is not enough to successfully authenticate to you newly created app in order to write in it. So I wonder what is the point of having write and read methods if they cannot be used in practice.
    Two: I then tried to use the methods in the advanced library in order to get access to the methods com.nxp.nfclib.desfire.DESFireEV1.selectApplication() and authenticate() in order to make sure that I am authenticated to my app before writing. Problem is that here I get another error about that the Lite version does not support these methods. I then created a license key on https://inspire.nxp.com/mifare/myapp.html and gave it as a parameter to the method com.nxp.nfclib.NxpNfcLib.registerActivity(this,"licensekey"), which by the way I had to guess myself because it is not documented anywhere. This didn't help at all. When I generated my key I was asked which appStore I use, but my app is not published anywhere, I am just trying to debug it from AndroidStudio by running it on a production phone. How is the app supposed to connect and check the key? No documentation anywhere about this.

    thanks in advance for the help.
    + 0  |  - 0
Viewing 3 posts - 1 through 3 (of 3 total)