'Generic Error' when executing commitPerso method going from SL0 to SL1.

Forum / MIFARE SDK / 'Generic Error' when executing commitPerso method going from SL0 to SL1.

  • 19. August 2020 at 9:47
    I currently have a MiFare Plus X card and have taken and ran the code below basically directly from the Android sample application. When it tries to execute the commitPerso method it throws a PICCException: "Generic Error". I am running this on a Android phone debugging it through Android studio the phone does not support MiFare Classic which could cause an issue when trying to read it again but my understanding is that it should still upgrade the card from SL0 to SL1.

    Any help would be appreciated.

    Sample Code:

    `// SampleAppKeys.KEY_AES128 is a byte[16] containing all 0xFF
    plusSL0.writePerso(0x9000, SampleAppKeys.KEY_AES128);
    plusSL0.writePerso(0x9001, SampleAppKeys.KEY_AES128);
    plusSL0.writePerso(0x9003, SampleAppKeys.KEY_AES128);

    Exception stack trace:
    `System.err: com.nxp.nfclib.exceptions.PICCException: Response : Generic Error
    at com.nxp.nfclib.plus.ˊ.commitPerso(:1951)
    at com.example.mifarepluswriter.MainActivity.cardLogic(MainActivity.java:756)
    at com.example.mifarepluswriter.MainActivity.onNewIntent(MainActivity.java:401)
    at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1231)
    at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1243)
    at android.app.ActivityThread.deliverNewIntents(ActivityThread.java:3064)
    at android.app.ActivityThread.performNewIntents(ActivityThread.java:3076)
    at android.app.ActivityThread.handleNewIntent(ActivityThread.java:3085)
    at android.app.ActivityThread.-wrap17(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1710)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6682)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1534)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1424)`
    + 0  |  - 0

    Re: 'Generic Error' when executing commitPerso method going from SL0 to SL1.

    19. August 2020 at 9:58
    Hi Joe,

    MIFARE Plus X in SL1 is the “MIFARE Classic compatibility mode”. Your phone must support the MIFARE Classic protocol by hardware for doing the switch.

    The TapLinx team

    + 0  |  - 0
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.