Issue while authenticate tag with predefined password for NTAG213

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

Issue while authenticate tag with predefined password for NTAG213

跳至解决方案
1,690 次查看
AR-2195
Contributor I

Hello all. I am Wan Ammar

Referring to the above topic, I cannot authenticate the tag which is the NTAG213 using the PWD_AUTH command. 

The flow of the program that has been built:

1. the program send a file to the tag 

2. the program then set a password to the tag in Block 2

3. the program verifies the sent file comparing it with the original file

In order to verify the tag, the program got to have the password.

When running the program, I have logged the password for being sent and stored, and it is different:


Stored password Block 2: 00050000
Password being sent:31323334

 

can someone explain this to me?

0 项奖励
回复
1 解答
1,675 次查看
teresa32yon
Contributor I

Hi Wan Ammar! It sounds like you're having an issue with the password authentication for your NTAG213 tag. Let's try to figure this out together.

From your description, it seems there's a discrepancy between the stored password and the password being sent during the authentication process. Here are a few things to check:

  1. Password Format: Ensure that the password is correctly formatted and stored in the tag. The password should be in hexadecimal format. For example, the password 31323334 should be stored as 0x31323334.

  2. Command Sequence: Verify that the command sequence for setting the password and performing the authentication is correct. Here's a typical sequence for setting the password and authenticating:

    • Set Password: FF D6 00 2B 04 31 32 33 34

    • Set PACK: FF D6 00 2C 04 00 00 00 00

    • Activate AUTH0: FF D6 00 29 04 04 00 00 00

    • Authenticate: FF 00 00 1B 31 32 33 34

  3. Memory Block: Ensure that the password is stored in the correct memory block (Block 2 in your case).

  4. Command Structure: Double-check the command structure and ensure that the correct APDU commands are being sent. The PWD_AUTH command should look like this:

    • PWD_AUTH Command: FF 00 00 1B 31 32 33 34

  5. Reader Compatibility: Make sure that your reader is compatible with the NTAG213 and that it supports the PWD_AUTH command.

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,676 次查看
teresa32yon
Contributor I

Hi Wan Ammar! It sounds like you're having an issue with the password authentication for your NTAG213 tag. Let's try to figure this out together.

From your description, it seems there's a discrepancy between the stored password and the password being sent during the authentication process. Here are a few things to check:

  1. Password Format: Ensure that the password is correctly formatted and stored in the tag. The password should be in hexadecimal format. For example, the password 31323334 should be stored as 0x31323334.

  2. Command Sequence: Verify that the command sequence for setting the password and performing the authentication is correct. Here's a typical sequence for setting the password and authenticating:

    • Set Password: FF D6 00 2B 04 31 32 33 34

    • Set PACK: FF D6 00 2C 04 00 00 00 00

    • Activate AUTH0: FF D6 00 29 04 04 00 00 00

    • Authenticate: FF 00 00 1B 31 32 33 34

  3. Memory Block: Ensure that the password is stored in the correct memory block (Block 2 in your case).

  4. Command Structure: Double-check the command structure and ensure that the correct APDU commands are being sent. The PWD_AUTH command should look like this:

    • PWD_AUTH Command: FF 00 00 1B 31 32 33 34

  5. Reader Compatibility: Make sure that your reader is compatible with the NTAG213 and that it supports the PWD_AUTH command.

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2036401%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E4%BD%BF%E7%94%A8%20NTAG213%20%E7%9A%84%E9%A2%84%E5%AE%9A%E4%B9%89%E5%AF%86%E7%A0%81%E9%AA%8C%E8%AF%81%E6%A0%87%E7%AD%BE%E6%97%B6%E5%87%BA%E7%8E%B0%E9%97%AE%E9%A2%98%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2036401%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%A4%A7%E5%AE%B6%E5%A5%BD%E3%80%82%E6%88%91%E6%98%AF%20Wan%20Ammar%3C%2FP%3E%3CP%3E%E5%8F%82%E8%80%83%E4%B8%8A%E8%BF%B0%E4%B8%BB%E9%A2%98%EF%BC%8C%E6%88%91%E6%97%A0%E6%B3%95%E4%BD%BF%E7%94%A8%20PWD_AUTH%20%E5%91%BD%E4%BB%A4%E9%AA%8C%E8%AF%81%20NTAG213%20%E6%A0%87%E7%AD%BE%E3%80%82%3C%2FP%3E%3CP%3E%E5%B7%B2%E6%9E%84%E5%BB%BA%E7%9A%84%E7%A8%8B%E5%BA%8F%E6%B5%81%E7%A8%8B%EF%BC%9A%3C%2FP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%88%91%E8%A7%A3%E9%87%8A%E4%B8%80%E4%B8%8B%E5%90%97%EF%BC%9F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2036422%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E4%BD%BF%E7%94%A8%20NTAG213%20%E9%A2%84%E5%AE%9A%E4%B9%89%E5%AF%86%E7%A0%81%E9%AA%8C%E8%AF%81%E6%A0%87%E7%AD%BE%E6%97%B6%E5%87%BA%E7%8E%B0%E7%9A%84%E9%97%AE%E9%A2%98%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2036422%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3E%E4%BD%A0%E5%A5%BD%EF%BC%8CWan%20Ammar%EF%BC%81%E5%90%AC%E8%B5%B7%E6%9D%A5%E6%82%A8%E5%9C%A8%20NTAG213%20%E6%A0%87%E7%AD%BE%E7%9A%84%E5%AF%86%E7%A0%81%E9%AA%8C%E8%AF%81%E6%96%B9%E9%9D%A2%E9%81%87%E5%88%B0%E4%BA%86%E9%97%AE%E9%A2%98%E3%80%82%E8%AE%A9%E6%88%91%E4%BB%AC%E4%B8%80%E8%B5%B7%E6%9D%A5%E8%A7%A3%E5%86%B3%E8%BF%99%E4%B8%AA%E9%97%AE%E9%A2%98%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%E6%A0%B9%E6%8D%AE%E6%82%A8%E7%9A%84%E6%8F%8F%E8%BF%B0%EF%BC%8C%E5%AD%98%E5%82%A8%E7%9A%84%E5%AF%86%E7%A0%81%E5%92%8C%E8%BA%AB%E4%BB%BD%E9%AA%8C%E8%AF%81%E8%BF%87%E7%A8%8B%E4%B8%AD%E5%8F%91%E9%80%81%E7%9A%84%E5%AF%86%E7%A0%81%E4%B9%8B%E9%97%B4%E4%BC%BC%E4%B9%8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85%B8%E5%9E%8B%E9%A1%BA%E5%BA%8F%EF%BC%9A%3C%2FSPAN%3E%3C%2FP%3E%3CUL%3E%3CLI%3E%3CP%3E%3CSPAN%3E%3CSTRONG%3E%E8%AE%BE%E7%BD%AE%E5%AF%86%E7%A0%81%3C%2FSTRONG%3E%EF%BC%9AFF%20D6%2000%202B%2004%2031%2032%2033%2034%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3E%3CSPAN%3E%3CSTRONG%3E%E8%AE%BE%E7%BD%AE%20PACK%3C%2FSTRONG%3E%20%3A%20FF%20D6%2000%202C%2004%2000%2000%2000%2000%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3E%3CSPAN%3E%3CSTRONG%3E%E6%BF%80%E6%B4%BB%20AUTH0%3C%2FSTRONG%3E%20%3A%20FF%20D6%2000%2029%2004%2004%2000%2000%2000%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3E%3CSPAN%3E%3CSTRONG%3E%E9%AA%8C%E8%AF%81%3C%2FSTRONG%3E%EF%BC%9AFF%2000%2000%201B%2031%2032%2033%2034%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3CLI%3E%3CP%3E%3CSPAN%3E%3CSTRONG%3E%E5%86%85%E5%AD%98%E5%9D%97%3C%2FSTRONG%3E%EF%BC%9A%E7%A1%AE%E4%BF%9D%E5%AF%86%E7%A0%81%E5%AD%98%E5%82%A8%E5%9C%A8%E6%AD%A3%E7%A1%AE%E7%9A%84%E5%86%85%E5%AD%98%E5%9D%97%E4%B8%AD%EF%BC%88%E5%9C%A8%E6%82%A8%E7%9A%84%E6%83%85%E5%86%B5%E4%B8%8B%E4%B8%BA%E5%9D%97%202%EF%BC%89%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3E%3CSPAN%3E%3CSTRONG%3E%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