Error 0x13 when reading mifare classic tag

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

Error 0x13 when reading mifare classic tag

Jump to solution
506 Views
yiond
Contributor I

Hi, 

I am developing a card reader for Mifare classic cards (ISO-14443 type A) with the pn532 module for reading and writing information. By now I have done the following

  • I can read the UID
  • I can list targets
  • I can Authenticate using Key A
  • and I can write to an address after authenticating

But I am having problems when reading the memory block, whenever I send a Read command I receive a 0x13 status code.

 

I attach some procedures:

This is the host controller sending the Authentication command, for address 13 (0x0D)

yiond_0-1694614497503.png

This is the response I get:

yiond_1-1694614562915.png

it returns with a status code 0x00, so everything is ok, but when I execute the reading command for the same address:

yiond_2-1694614639303.png

I receive the following response: 

yiond_3-1694614671023.png

It is receiving error 0x13, and I understand that could be some protocol error, but it would be great if someone can help me or clarify to me what this is or what can I do.

 

Thanks in advance

 

0 Kudos
1 Solution
492 Views
yiond
Contributor I

Ok, i descovered the error, it happened that the address calculation for the sector and block where wrong. Now is working perfectly

View solution in original post

0 Kudos
1 Reply
493 Views
yiond
Contributor I

Ok, i descovered the error, it happened that the address calculation for the sector and block where wrong. Now is working perfectly

0 Kudos