微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 微波和射频技术 > 天线设计和射频技术 > Problem with reading from MIFARE 1K card

Problem with reading from MIFARE 1K card

时间:04-09 整理:3721RD 点击:
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...

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top