On the Sample Application, it only provides options for the following tags (note that DNA 424 is NOT listed):
In the code, function detectCardToHandleOperation() at line 115 (\src\main\java\com\nxp\tagxplorer\ndefrecord\NDEFRecordsOperationManager.java), it only provides operations for the following tags:
private void detectCardToHandleOperation(int opType) throws Exception {
CardType currentCardType = TapLinx.INSTANCE.getCurrentCardType();
switch (currentCardType) {
case NTag203X:
handleOperationsForNTag203x(opType);
break;
case NTag210:
handleOperationsForNTag210(opType);
break;
case NTag210u:
handleOperationsForNTag210u(opType);
break;
case NTag213:
handleOperationsForNTag213(opType);
break;
case NTag215:
handleOperationsForNTag215(opType);
break;
case NTag216:
handleOperationsForNTag216(opType);
break;
case NTag213TagTamper:
handleOperationsForNTag213TagTamper(opType);
break;
case NTag213F:
handleOperationsForNTag213F(opType);
break;
case NTag216F:
handleOperationsForNTag216F(opType);
break;
default:
throw new Exception(NDEFRecordValidationMessages.UNSUPPORTED_TAG);
}
}
When I try to do any read/write operations in the NDEF Operations, it gives the error "UNSUPPORTED_TAG". I'm wondering how we can add operations to the NTAG 424 DNA.
Thanks!
Dear phillipn,
Which TapLinx SDK version are you using? Method to get CardType includes enumeration for NTAG424DNA as well. Just check (print out) your
currentCardType
and you can extend your switch() case with:
"case NTAG424DNA:" or try "case NTAG424DNATagTamper:".
public static final CardType NTAG424DNA
Best regards,
TapLinx team