Do we need 4byte UID, Input parameter for Mifare Classic Authentication Command

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

Do we need 4byte UID, Input parameter for Mifare Classic Authentication Command

2,093 Views
skumar1
Contributor I

I am having issue in authentication the Mifare Classic 4K IC  MF1S70YYX_V1. I didn't get response for the command 0x60, 0x00,CRC(2bytes). I have read the datasheet, in the tables and diagrams this is the command structure, but in the description, it is mention that we need to give 4byte UID as input parameter to the Mifare Authenticate command.

Please clarify and confirm the required method to Authenticate successfully. 

I am using TRF7970A reader. I can read the UID. I have activated the card by successfully completing the anti-collision and Select as per the ISO14443 standard.  But after sending the Mifare classic authenticate command 0x60, 0x00,CRC(2bytes), the carrier frequency goes low, and I didn't get any response from the MF1S70YYX_V1 IC. Can you please let me know the possible reasons for this behavior?

Thanks and Regards,

Sunil

Labels (1)
  • RF

0 Kudos
Reply
2 Replies

1,034 Views
raj20024
Contributor II


Hello,

I am using the ST25R200 reader to read/write blocks of a MIFARE Classic 1K card. However, I am not receiving a proper response to the authentication command (0x60 for Key A on block 0x04). When a response is received, it is a NACK from the card, such as a timeout error, invalid command, or parity/CRC error.

If you are familiar with the complete authentication process for a MIFARE Classic 1K card, or if you have any reference code or documentation related to this, it would be very helpful if you could share it.

Thank you in advance.

0 Kudos
Reply

2,010 Views
nxf58474
NXP Employee
NXP Employee

Hi Sunil,

 

Hope you are doing well. I have answered this question in your internal case.

If you have any questions please don't hesitate to ask.

 

Best Regards,

Ricardo

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1012995%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EDo%20we%20need%204byte%20UID%2C%20Input%20parameter%20for%20Mifare%20Classic%20Authentication%20Command%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1012995%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20having%20issue%20in%20authentication%20the%20Mifare%20Classic%204K%20IC%26nbsp%3B%26nbsp%3BMF1S70YYX_V1.%20I%20didn't%20get%20response%20for%20the%20command%200x60%2C%200x00%2CCRC(2bytes).%20I%20have%20read%20the%20datasheet%2C%20in%20the%20tables%20and%20diagrams%20this%20is%20the%20command%20structure%2C%20but%20in%20the%20description%2C%20it%20is%20mention%20that%20we%20need%20to%20give%204byte%20UID%20as%20input%20parameter%20to%20the%20Mifare%20Authenticate%20command.%3C%2FP%3E%3CP%3EPlease%20clarify%20and%20confirm%20the%20required%20method%20to%20Authenticate%20successfully.%26nbsp%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EI%20am%20using%20TRF7970A%20reader.%26nbsp%3B%3CSPAN%20style%3D%22display%3A%20inline%20!important%3B%20float%3A%20none%3B%20background-color%3A%20%23ffffff%3B%20color%3A%20%233d3d3d%3B%20font-family%3A%20Helvetica%20Neue%2CHelvetica%2CArial%2CLucida%20Grande%2Csans-serif%3B%20font-size%3A%2015px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20400%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20overflow-wrap%3A%20break-word%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%22%3EI%20can%20read%20the%20UID.%3C%2FSPAN%3E%20I%20have%20activated%20the%20card%20by%20successfully%20completing%20the%20anti-collision%20and%20Select%20as%20per%20the%20ISO14443%20standard.%26nbsp%3B%20But%20after%20sending%20the%20Mifare%20classic%20authenticate%20command%20%3CSPAN%20style%3D%22display%3A%20inline%20!important%3B%20float%3A%20none%3B%20background-color%3A%20%23ffffff%3B%20color%3A%20%233d3d3d%3B%20font-family%3A%20Helvetica%20Neue%2CHelvetica%2CArial%2CLucida%20Grande%2Csans-serif%3B%20font-size%3A%2015px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20400%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20overflow-wrap%3A%20break-word%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%22%3E0x60%2C%200x00%2CCRC(2bytes)%3C%2FSPAN%3E%2C%20the%20carrier%20frequency%20goes%20low%2C%20and%20I%20didn't%20get%20any%20response%20from%20the%26nbsp%3B%3CSPAN%20style%3D%22display%3A%20inline%20!important%3B%20float%3A%20none%3B%20background-color%3A%20%23ffffff%3B%20color%3A%20%233d3d3d%3B%20font-family%3A%20Helvetica%20Neue%2CHelvetica%2CArial%2CLucida%20Grande%2Csans-serif%3B%20font-size%3A%2015px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20400%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20overflow-wrap%3A%20break-word%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%22%3EMF1S70YYX_V1%3C%2FSPAN%3E%20IC.%20Can%20you%20please%20let%20me%20know%20the%20possible%20reasons%20for%20this%20behavior%3F%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EThanks%20and%20Regards%2C%3C%2FP%3E%3CP%3ESunil%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1012995%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3ERF%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2270553%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Do%20we%20need%204byte%20UID%2C%20Input%20parameter%20for%20Mifare%20Classic%20Authentication%20Command%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2270553%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CBR%20%2F%3EHello%2C%3C%2FP%3E%3CP%3EI%20am%20using%20the%20ST25R200%20reader%20to%20read%2Fwrite%20blocks%20of%20a%20MIFARE%20Classic%201K%20card.%20However%2C%20I%20am%20not%20receiving%20a%20proper%20response%20to%20the%20authentication%20command%20(0x60%20for%20Key%20A%20on%20block%200x04).%20When%20a%20response%20is%20received%2C%20it%20is%20a%20NACK%20from%20the%20card%2C%20such%20as%20a%20timeout%20error%2C%20invalid%20command%2C%20or%20parity%2FCRC%20error.%3C%2FP%3E%3CP%3EIf%20you%20are%20familiar%20with%20the%20complete%20authentication%20process%20for%20a%20MIFARE%20Classic%201K%20card%2C%20or%20if%20you%20have%20any%20reference%20code%20or%20documentation%20related%20to%20this%2C%20it%20would%20be%20very%20helpful%20if%20you%20could%20share%20it.%3C%2FP%3E%3CP%3EThank%20you%20in%20advance.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1012996%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Do%20we%20need%204byte%20UID%2C%20Input%20parameter%20for%20Mifare%20Classic%20Authentication%20Command%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1012996%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Sunil%2C%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EHope%20you%20are%20doing%20well.%20I%20have%20answered%20this%20question%20in%20your%20internal%20case.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EIf%20you%20have%20any%20questions%20please%20don't%20hesitate%20to%20ask.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EBest%20Regards%2C%3C%2FP%3E%3CP%3ERicardo%3C%2FP%3E%3C%2FLINGO-BODY%3E