Password can't authentication

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

Password can't authentication

1,631 Views
gqlei
Contributor I

I tried to set the tag213 password protection with ACR122U. Here are the commands listed below.

Step 1  Set PWD:       FF D6 00 2B 04 31 32 33 34 , set password ‘1234’

Step 2  Set PACK:      FF D6 00 2C 04 00 00 00 00, 2byte PACK and 2 byte RFUI set to 00

Step 3  Set AUTH0:   FF D6 00 29 04 04 00 00 00 ,the default value is 04 00 00 FF, with password protection disabled.

After doing above steps, tag213 shows that the password is protected, but when I tried to remove the password with NFC Tools Pro, an android app, I was prompted to fail.

Is the password format incorrect? I checked the ACCESS byte in CFG1(Page2A) and it has a value of 0 .

Can anyone help me solve this problem?Thanks.#

 

0 Kudos
4 Replies

1,250 Views
nxf54945
NXP Employee
NXP Employee

Hi gqlei@taisingind.com,

I hope you are doing well.

I checked the commands that you are using and I found that they do not follow the command structure that NTAGs can understand.

For example, in order to set a password upon a new NTAG213 you must write the password into the PWD page of the TAG’s internal memory. To do so, you need to use a WRITE command, which is structured as it follows:

pastedImage_5.png

You can consult command IDs and structures on the NTAG21x datasheet: https://www.nxp.com/docs/en/data-sheet/NTAG213_215_216.pdf

 

So, in order to set the password 31323334h, you should send A2h + 2Bh + 31323334h + CRC

I used NXP TagXplorer to set the password 31323334h into an NTAG216, and the log file produced reads as it follows:

 

Set password 31323334 with PACK 0000:

2019.07.25.12.12.47 : Command APDU : FFFE000006A2E531323334

2019.07.25.12.12.47 : Response APDU : 0A9000

2019.07.25.12.12.47 : Command APDU : FFFE000006A2E600000000

2019.07.25.12.12.47 : Response APDU : 0A9000

2019.07.25.12.12.47 : Command APDU : FFFE0000051B31323334

2019.07.25.12.12.47 : Response APDU : 0000A01E9000

 

Authentication:

2019.07.25.12.16.04 : Command APDU : FFFE0000051B31323334

2019.07.25.12.16.04 : Response APDU : 0000A01E9000

 

With that setting I had no trouble setting, removing and authenticating the password. Could you please try it on your TAG? You can use NXP TagInfo on a mobile device or NXP TagXplorer on a PC to verify the effectivity of your commands by writing and reading on writable memory locations.

I hope this information helps. Please let me know if you keep having trouble and I will be glad to assist you.

 

Best regards,

Javier

0 Kudos

1,250 Views
benny_hp_chen
Contributor I

Hello,@Javier
I have the same problem recently.


I also used the ntag213 tag, the operation steps are the same as gqlei@taisingind.com, but I still don't know how to solve and remove protection about what you described.


Could you please describe again how to operate password protection and Remove protection in more detail?

Many thanks your help.

0 Kudos

1,250 Views
gqlei
Contributor I

Hi,Javier

Thank you for your response .

My question is not whether NTag213 can be protected by password. My question is that the password cannot be verified after the password protection is set. Although the password I verified is the same character as the password I set, such as 1234, the validation failed, and then I couldn't write anything new to NTag213.

0 Kudos

1,250 Views
nxf54945
NXP Employee
NXP Employee

Hello gqlei@taisingind.com,

I hope you are doing well.

I confirmed your problem or our App Tag Writter. Here are the messages displayed when trying to lift protection or erase Tag:

pastedImage_2.pngpastedImage_3.png

Could you please give me more details on which android version are you running?

Best regards,

Javier

0 Kudos