Write mifare DESFire

Forum / MIFARE SmartCard IC`s / MIFARE DESFire / Write mifare DESFire

  • 31. May 2016 at 14:45
    private static final byte WRITE_DATA_COMMAND = (byte)0x3D;
    private void writeCommand() {
    // TODO Auto-generated method stub

    byte fileNo = (byte)0x01;
    byte[] offset = new byte[]{(byte)0x00, (byte)0x00, (byte)0x00};
    byte[] length = new byte[]{(byte)0x00, (byte)0x00, (byte)0x00};
    byte[] Data = new byte[]{(byte)0x41, (byte)0x41};
    byte[] message = new byte[12];
    message[0] = WRITE_DATA_COMMAND;
    message[1] = fileNo;

    System.arraycopy(offset, 0, message, 2, 3);
    System.arraycopy(length, 0, message, 2, 3);
    System.arraycopy(Data, 0, message, 3, 2);


    byte[] response;
    try {
    response = desfire.transceive(message);
    DisplayInfo("Write DATA \'" + byteArrayToString(response) + "\'", response);
    } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    }
    }



    return reponse Code : 9D
    + 0  |  - 0

    Re: Write mifare DESFire

    6. November 2019 at 4:51
    I also find out about this, hoping to find the best answer!
    build royale
    + 0  |  - 0
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.