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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

761件の閲覧回数
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 返信

681件の閲覧回数
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 件の賞賛
返信