[Ntag 21x] Write ndef with password protection

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

[Ntag 21x] Write ndef with password protection

2,346 Views
Dorian95
Contributor I

Hi all,

I tried to write ndef message to ntag21x (eg. ntag213, ntag215, ntag216) with password protection using transceive api android

I follow this document to sent the command to the tag


I sent

Spoiler
0xA2 //WRITE CMD

0x04 // page address

0xD1 0x01 0x0A 0x54 0x02 0x65 0x6E 0x31 0x32 0x33 0x34 0x35 0x36 0x37 // data

0x1B // PWD_AUTH CMD

0x66 0x66 0x66 0x66 // PWD

But it said transceive fail

But when I sent auth only 

Spoiler

0x1B // PWD_AUTH CMD

0x66 0x66 0x66 0x66 // PWD

it returned [0,0]

Can anyone help me what wrong with it?

Thanks

0 Kudos
2 Replies

2,310 Views
Jonathan_Iglesias
NXP TechSupport
NXP TechSupport

Hi ,

hope you are doing great, 

for this  the correct process would be that you first  authenticate using the correct PWD, then  proceed to write the tag,  this is an example of the process on command level. 

 

Spoiler

 


First we activate the NTAG on the ISO 14443-3


Send to card: 26
Recv from card: 4400
Send to card: 9320
Recv from card: 8804475E95
Send to card: 93708804475E95
Recv from card: 04
Send to card: 9520
Recv from card: D29C3980F7
Send to card: 9570D29C3980F7
Recv from card: 00


we proceed to authenticate with Pwd=FFFFFFFF and receive the PACK which is the Acknowledge of the authentication process I set up the PACK as 0123
Send to card: 1BFFFFFFFF
Recv from card: 0123


then I proceed to write the NTAG on page 04 just as demonstration the data is 12345600
Send to card: A20412345600
Recv from card: 0A

please check the above process and let me know if you still have questions.

Have a great day !
BR

 

Jonathan

 

0 Kudos

190 Views
ayyad
Contributor I
Send to card: A20412345600
how I can remove this from the card?
0 Kudos