cancel
Showing results for 
Search instead for 
Did you mean: 

ST25R100 Read data in Mifare Classic Card

wenjie
Associate II

Hello. I used ST25R100 to read the data in Mifare Classic Card. I'm using X-CUBE-NFC9 library. But I can't receive valid Token RB in Authentication steps.

If ST25R100 can read the data in Mifare Classic Card? How do I communicate and exchange data with Mifare Classic Card? Is there a demo for this?

This discussion is locked. Please start a new topic to ask your question.
1 ACCEPTED SOLUTION

Accepted Solutions

Hi,

I think you are referring to https://community.st.com/t5/st25-nfc-rfid-tags-and-readers/nfc0541-read-mifare-classic-1k/m-p/255216/highlight/true#M5178

The caveat is that transmission is LSB first. 

a2 0f 00 00 00 00 db d5
  2   a       f    0     0     0      0    0      0    0      0    0     b    d      5    d 
0100 0101 0 1111 0000 1 0000 0000 1 0000 0000 1 0000 0000 1 0000 0000 1 1101 1011 1 1010 1011 0

0100 0101 0111 1000 0100 0000 0010 0000 0001 0000 0000 1000 0000 0111 0110 1111 0101 0110
  2    a    e   1     2    0    4    0    8   0    0    1     0    e   6     f    a    6
a2 1e 02 04 08 10 e0 f6 6a

 

BR, Ulysses

View solution in original post

4 REPLIES 4

May I ask how do you shift from a2 0f 00 00 00 00 db d5 to a2 1e 02 04 08 10 e0 f6 6a?

If I want to send 60 04 and CRC d1 3d (0110 0000 0000 0100 1101 0001 0011 1101). After adding parity, shouldn't it be 60 82 04 c7 a0(01100000 1 00000100 0 00010011 0 00111101 0 0000 ).

and should the code be "err = rfalTransceiveBlockingTxRx(AuthTxBuf, sizeof(AuthTxBuf), AuthRxBuf, sizeof(AuthRxBuf), AuthActLen, RFAL_TXRX_FLAGS_CRC_TX_MANUAL | RFAL_TXRX_FLAGS_PAR_TX_NONE | RFAL_TXRX_FLAGS_CRC_RX_KEEP|RFAL_TXRX_FLAGS_PAR_RX_KEEP|RFAL_TXRX_FLAGS_CRC_RX_MANUAL, 71680U);" ?

May I ask how do you shift from a2 0f 00 00 00 00 db d5 to a2 1e 02 04 08 10 e0 f6 6a? should you add 1bit parity after every 8bits?

For example, I want to send 60 04 d1 3d(01100000 00000100 11010001 00111101). After adding parity, shouldn't it be 60 82 34 67 a0(01100000 1 00000100 0 11010001 1 00111101 0 0000)?

Hi,

I think you are referring to https://community.st.com/t5/st25-nfc-rfid-tags-and-readers/nfc0541-read-mifare-classic-1k/m-p/255216/highlight/true#M5178

The caveat is that transmission is LSB first. 

a2 0f 00 00 00 00 db d5
  2   a       f    0     0     0      0    0      0    0      0    0     b    d      5    d 
0100 0101 0 1111 0000 1 0000 0000 1 0000 0000 1 0000 0000 1 0000 0000 1 1101 1011 1 1010 1011 0

0100 0101 0111 1000 0100 0000 0010 0000 0001 0000 0000 1000 0000 0111 0110 1111 0101 0110
  2    a    e   1     2    0    4    0    8   0    0    1     0    e   6     f    a    6
a2 1e 02 04 08 10 e0 f6 6a

 

BR, Ulysses