Forum Replies Created

  • Re: Reply To: Ntag 213tt : How to enable tt message using Taplinx?

    18. April 2019 at 13:56
    in reply to: Ntag 213tt : How to enable tt message using Taplinx?
    Thank you for your reply, I`ve change the calling order and it still has something wrong with "Error while reading configuration page(s).Please try to authenticate.". So is there any examples for ntag213tt to lock and block all tag and enable tt message?
    Thank you very much!
    + 0  |  - 0

    Re: Reply To: Ntag 213tt : How to enable tt message using Taplinx?

    16. April 2019 at 10:20
    in reply to: Ntag 213tt : How to enable tt message using Taplinx?
    Help me!
    + 0  |  - 0

    Re: Reply To: Ntag 213tt : How to enable tt message using Taplinx?

    13. April 2019 at 9:29
    in reply to: Ntag 213tt : How to enable tt message using Taplinx?
    My code here:

    //write data in ndef
    NdefRecord ndefRecord = NdefRecord.createExternal("a", "b", bytes);
    NdefRecordWrapper ndefRecordWrapper = new NdefRecordWrapper(ndefRecord);
    NdefMessageWrapper ndefMessageWrapper = new NdefMessageWrapper(ndefRecordWrapper);

    ntag213TagTamper.writeNDEF(ndefMessageWrapper);

    //enable counter
    ntag213TagTamper.enableCounter(true);
    Log.e(TAG, "enable counter ");


    //enable mirroring
    ntag213TagTamper.enableMirroring(INTag213TagTamper.MirrorType.UID_NFC_CNT_TT_ASCII_MIRROR, 6, (byte) 0x00);
    Log.e(TAG, "enableMirroring ");

    //get config
    byte[] config = ntag213TagTamper.getConfigBytes();
    Log.e(TAG, "get config " + Numeric.toHexStringNoPrefix(config));

    //enable tt message
    byte[] temp = new byte[]{0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
    for (int i = 0; i < config.length; i++) {
    config = (byte) (config | temp);
    }
    ntag213TagTamper.writeConfigBytes(config);
    Log.e(TAG, "write config " + Numeric.toHexStringNoPrefix(config));

    //write tt message
    ntag213TagTamper.writeCustomTTMessage(Numeric.hexStringToByteArray(WalletModel.getPassword()));
    Log.e(TAG, "write tt meaasge ");

    //lock 16 to 39
    for (int i = 16; i <= 39; i++) {
    ntag213TagTamper.lockBlockOfPage(i);
    }
    Log.e(TAG, "cardLogic: lock 16 to 39");

    // lock 2 to 15
    ntag213TagTamper.makeCardReadOnly(); // lock 02 to 15(page 2)
    Log.e(TAG, "cardLogic: lock 2 to 15");

    //block static and 02
    for (int i = 3; i <= 15; i++) {
    ntag213TagTamper.blockStaticLocking(i);
    }
    Log.e(TAG, "cardLogic: block static and 02");


    //lock 16 to 39
    ntag213TagTamper.lockTheBlockingOfAllDynamicPages(); // lock and block 40 and block 16 to 39(page 40)
    //Error while reading configuration page(s).Please try to authenticate.
    Log.e(TAG, "cardLogic: lock and block 40 and block 16 to 39");

    //lock the configuration
    ntag213TagTamper.lockTheConfiguration(); // lock 41 42
    Log.e(TAG, "cardLogic: lock 41 42");
    + 0  |  - 0

    Re: Reply To: Ntag 213tt : How to enable tt message using Taplinx?

    12. April 2019 at 11:48
    in reply to: Ntag 213tt : How to enable tt message using Taplinx?
    I use writeConfigBytes function to enable tt message and it may have conflict with lock function(such as lockBlockOfPage function, and return “Error while reading configuration page(s).Please try to authenticate.”)
    Who can help me out?
    + 0  |  - 0
Viewing 4 posts - 1 through 4 (of 4 total)