TapLinx: Support for NTAG 424 DNA for NDEF/NTAG Operations

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TapLinx: Support for NTAG 424 DNA for NDEF/NTAG Operations

767 Views
phillipn
Contributor II

On the Sample Application, it only provides options for the following tags (note that DNA 424 is NOT listed): 

phillipn_0-1700351786771.png

 

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!

 

 

 

Labels (1)
0 Kudos
Reply
1 Reply

687 Views
ukcas
NXP Employee
NXP Employee

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

0 Kudos
Reply