Problem with reading from MIFARE 1K card

Status
Not open for further replies.

estyno

Newbie level 2
Joined
Sep 23, 2008
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,297
Hi guys,

I'm using:
reader chip - CL RC 632
card - MIFARE 1K

problem is, that answer from the card after authentication and reading
the block is always one byte random number ( from 0 to 15). This is
NACK or what? Why the answer is not a 16 byte of data? When I'm
reading without authentication, it always return one byte "4".

Communication to the point of authentication is without problem. Here
is my technique:
- loading keyA = 0xFFFFFFFFFFFF in special form into keybuffer
- writing into FIFO 0x60, 0x00, SN1, SN2, SN3, SN4 //authentication
with keyA, block number 0, serial number
- calling AUTHENT1 command
- waiting for IDLE state
- calling AUTHENT2 command
- waiting for IDLE state
- reading flag CRYPTO1ON=true

with another keyA, or by changing the serial number, program friezed.
This means, that authentication is good, or not?

Now I want read from card, so :
- writing into FIFO 0x30, 0x00 // read command, block number 0
- calling TX-RX command
- reading data from FIFO

I'm thankful for everyone idea...
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…