Forum Replies Created

  • Re: Reply To: NTAG 424 DNA Authenticate error (6982) when write access key is set to 00

    21. May 2021 at 12:23
    in reply to: NTAG 424 DNA Authenticate error (6982) when write access key is set to 00
    Here is a bit modified snippet according to all the suggestions above:

    // ...
    tag.isoSelectApplicationByDFName(NTAG424DNA_APP_NAME);
    tag.isoSelectApplicationByFileID(new byte[]{(byte) 0x04, (byte) 0xE1});
    NTAG424DNAFileSettings ndefFileSettings = tag.getFileSettings(0x02);
    // System.out.println("NDEF File settings: " + ndefFileSettings.toString());
    int writeKeyNdefFile = ndefFileSettings.getWriteAccess();
    if(writeKeyNdefFile != 14 && writeKeyNdefFile != 15) {
    tag.authenticateEV2First(0, m_aes128Def, null);
    } else {
    throw new Exception("Wrong write permissions for NDEF File: " + writeKeyNdefFile);
    }
    // ...

    This code throws error "Wrong write permissions for NDEF File: 14"
    + 0  |  - 0

    Re: Reply To: NTAG 424 DNA Authenticate error (6982) when write access key is set to 00

    8. March 2021 at 12:35
    in reply to: NTAG 424 DNA Authenticate error (6982) when write access key is set to 00
    Any updates on this? By the way, sorry for the duplicate post (previous one), you can delete it.
    + 0  |  - 0

    Re: Reply To: NTAG 424 DNA Authenticate error (6982) when write access key is set to 00

    22. January 2021 at 16:44
    in reply to: NTAG 424 DNA Authenticate error (6982) when write access key is set to 00
    I do authenticate with the right key (00) which is also set as write access key, and I've tried to add the code you proposed above, and this is what I'm getting in the output:
    Spoiler:
    NDEF File settings: NTAG424DNAFileSettings{FileType=0, CommunicationMode=Plain, readAccess=14, writeAccess=0, readWriteAccess=0, changeAccess=0isSDMEnabled=true, isUIDMirroringEnabled=true, isSDMReadCounterEnabled=true, isSDMReadCounterLimitEnabled=false, isSDMEncryptFileDataEnabled=false, sdmAccessRights=F000, uidOffset=null, sdmReadCounterOffset=null, piccDataOffset=2B0000, sdmMacInputOffset=4E0000, sdmEncryptionOffset=null, sdmEncryptionLength=null, sdmMacOffset=4E0000, sdmReadCounterLimit=null}

    It does pass the condition before authentication but I still get "Security status not satisfied" error...
    + 0  |  - 0

    Re: Reply To: NTAG 424 DNA Authenticate error (6982) when write access key is set to 00

    18. January 2021 at 17:31
    in reply to: NTAG 424 DNA Authenticate error (6982) when write access key is set to 00
    Hello again, I want to apologize for misdirection and correct my previous claim. The command which causes error 6982 under the circumstances explained above is writeNDEF, which goes right after authenticateEV2First. So try to do that and then you'll manage to cause it. Sorry again for the confusion.
    + 0  |  - 0

    Re: Reply To: NTAG 424 DNA Authenticate error (6982) when write access key is set to 00

    7. January 2021 at 13:46
    in reply to: NTAG 424 DNA Authenticate error (6982) when write access key is set to 00
    We would need a bit more information what methods are you calling after .Authenticate(). Error 0x6982 is not a valid error response code for AuthenticateEV2First command.

    But it doesn't even pass that authentication method, it just throws an exception with that error right there and the execution stops, so why would further commands be important in that case? I can just strip all the code after authentication and still get the same result.
    + 0  |  - 0

    Re: Reply To: NTAG 424 DNA Authenticate error (6982) when write access key is set to 00

    24. December 2020 at 2:28
    in reply to: NTAG 424 DNA Authenticate error (6982) when write access key is set to 00
    Any news on this? I forgot to say that I'm using ACR 1281U-C1 reader if that means anything. Also, I noticed that I wrongly referred to the default/factory value of access keys which is not 0F (as you already mentioned above) - but 0E instead, so I apologize for that misleading part.
    + 0  |  - 0

    Re: Reply To: NTAG 424 DNA Authenticate error (6982) when write access key is set to 00

    16. December 2020 at 14:29
    in reply to: NTAG 424 DNA Authenticate error (6982) when write access key is set to 00
    For me, with these settings it doesn’t pass the authentication with the code snippet from the main post.
    + 0  |  - 0

    Re: Reply To: NTAG 424 DNA Authenticate error (6982) when write access key is set to 00

    12. December 2020 at 12:17
    in reply to: NTAG 424 DNA Authenticate error (6982) when write access key is set to 00
    The code from above works if “write access key” on the card is not set to master key (00). Otherwise, it will yield 6982 (Security status not satisfied) error. So try to set it like that (write access key = 00 instead of 0F) in TagXplorer and then execute the code.
    + 0  |  - 0

    Re: Reply To: NTAG 424 DNA Authenticate error (6982) when write access key is set to 00

    8. December 2020 at 17:41
    in reply to: NTAG 424 DNA Authenticate error (6982) when write access key is set to 00
    Any news on this?
    + 0  |  - 0
Viewing 9 posts - 1 through 9 (of 9 total)