Forum Replies Created

  • Re: Reply To: Lite Sample Application

    8. June 2015 at 8:42
    in reply to: Lite Sample Application
    Is it working with Desfire EV1 too?
    + 0  |  - 0

    Re: Reply To: Lite Sample Application

    8. June 2015 at 7:30
    in reply to: Lite Sample Application
    And also this https://play.google.com/store/apps/details?id=com.antares.nfc
    + 0  |  - 0

    Re: Reply To: Lite Sample Application

    8. June 2015 at 7:07
    in reply to: Lite Sample Application
    I've tried also with this one https://play.google.com/store/apps/details?id=com.skjolberg.mifare.desfiretool
    + 0  |  - 0

    Re: Reply To: Lite Sample Application

    5. June 2015 at 14:34
    in reply to: Lite Sample Application
    Ok. I've just tried with a Samsung S4 Mini with Android 4.4.2 and it doesn't work.
    So I've downloaded an app from the playstore to test if i could connect with the DESFire EV1 card. I put the right key but it always give me "Authentication failed", so I definitely think there should be some troubles with our devices. I'd be curious to try with another device brand..
    + 0  |  - 0

    Re: Reply To: Lite Sample Application

    5. June 2015 at 11:03
    in reply to: Lite Sample Application
    What error do you get?
    + 0  |  - 0

    Re: Reply To: DESFire EV1 – invalidResponse: No Such Key

    4. June 2015 at 13:19
    in reply to: DESFire EV1 – invalidResponse: No Such Key
    As actually I only need to read the ID card, I've written my code to take it from the intent. I know it's not a solution to this problem, but it's a solution to my personal problem :)
    Anyway, if I'll find a complete solution I'll post it here.
    Thanks for your time!
    + 0  |  - 0

    Re: Reply To: DESFire EV1 – invalidResponse: No Such Key

    4. June 2015 at 12:19
    in reply to: DESFire EV1 – invalidResponse: No Such Key
    If I change the "0" it gives me "invalidResponse: No Such Key"
    + 0  |  - 0

    Re: Reply To: DESFire EV1 – invalidResponse: No Such Key

    4. June 2015 at 12:08
    in reply to: DESFire EV1 – invalidResponse: No Such Key
    No, mine is not rooted, too. This error is so strange because happens always with "0", independently from others parameters.
    + 0  |  - 0

    Re: Reply To: DESFire EV1 – invalidResponse: No Such Key

    4. June 2015 at 11:56
    in reply to: DESFire EV1 – invalidResponse: No Such Key
    Always the same error. Too weird. Could it be the phone? I'm using a Samsung S4 with Android Lollipop
    + 0  |  - 0

    Re: Reply To: DESFire EV1 – invalidResponse: No Such Key

    4. June 2015 at 11:17
    in reply to: DESFire EV1 – invalidResponse: No Such Key
    http://pastebin.com/a9XhJE5k
    + 0  |  - 0

    Re: Reply To: DESFire EV1 – invalidResponse: No Such Key

    4. June 2015 at 11:06
    in reply to: DESFire EV1 – invalidResponse: No Such Key
    I will do it in a couple of minutes, but if it can be useful, I've just tried to use the sample app edited with my key and it gives me the same error with the "0"
    + 0  |  - 0

    Re: Reply To: DESFire EV1 – invalidResponse: No Such Key

    4. June 2015 at 10:56
    in reply to: DESFire EV1 – invalidResponse: No Such Key
    I've tried something like this
    @Override
    public void onDESFireCardDetected(DESFire desFire) {
    super.onDESFireCardDetected(desFire);
    try {
    try {
    desFire.connectL4();
    } catch (IOException e) {
    e.printStackTrace();
    Log.d("TAG", "Problem with connection");
    }
    try {
    desFire.authenticate(DESFire.AuthType.Native, 0, (byte) 0, 0, (byte) 0, null);
    } catch (IOException e) {
    e.printStackTrace();
    Log.d("TAG", "Problem with authentication");
    }
    Log.d("TAG", "Checking if auth succesfull");

    byte[] UID = desFire.getCardUID();
    String rfid = com.nxp.nfclib.utils.Utilities.dumpBytes(UID);

    desFire.closeL4();

    Toast.makeText(context, "DESFire UID: " + rfid, Toast.LENGTH_SHORT).show();

    } catch (DESFireException e) {
    e.printStackTrace();
    Toast.makeText(context, "Authentication failed.", Toast.LENGTH_SHORT).show();
    } catch (SmartCardException e) {
    e.printStackTrace();
    } catch (GeneralSecurityException e) {
    e.printStackTrace();
    } catch (IOException e) {
    e.printStackTrace();
    }
    }


    And it gives me "Problem with authentication"
    + 0  |  - 0

    Re: Reply To: DESFire EV1 – invalidResponse: No Such Key

    4. June 2015 at 10:44
    in reply to: DESFire EV1 – invalidResponse: No Such Key
    No, I'm not. I've tried lots of times (always without removing the card) and it gives me the same error.

    I'm not using
    format()
    method and I can't see the logcat message of successfully authentication.

    So, I've also tried so remove the
    close()
    method but it didn't change anything, because the problem is before.
    + 0  |  - 0

    Re: Reply To: DESFire EV1 – invalidResponse: No Such Key

    4. June 2015 at 10:34
    in reply to: DESFire EV1 – invalidResponse: No Such Key
    I don't know why, but if I make this change i catch into "android.nfc.TagLostException: Tag was lost." exception.
    + 0  |  - 0
Viewing 14 posts - 1 through 14 (of 14 total)