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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

811 次查看
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!

 

 

 

标签 (1)
0 项奖励
回复
1 回复

731 次查看
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 项奖励
回复