Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top