Skip to main content
Visitor II
September 17, 2021
Solved

ST25R95: DATA Read and Write problem ISO1443A

  • September 17, 2021
  • 7 replies
  • 2582 views

0693W00000DnYRMQA3.jpgHi,

I am getting the UUID of the device but I am unable to read or write the data. Its giving the response of 0x87 00 (No Tag). Help me to solve the problem... How to read the data from the memory...?

Please check out the above commands sets...

Board: X-Nucleo-NFC-03A1

Kind Regards,

Nishanth M

    This topic has been closed for replies.
    Best answer by Brian TIDAL

    Hi

    your conclusion is not exact.

    This tag uses a proprietary authentication and a proprietary cryptography. To respect the legal aspects, ST does not provide any firmware to support these proprietary authentication and cryptography. This has to be done by customers as part of their applications. From technical point of view, if the customer application support the authentication algorithm and cryptography algorithm, it is then possible to access the tag memory with the CR95HF.

    Before using this kind of tag, I would suggest you have a look on the Internet on white paper such as https://hitcon.org/download/2010/11_MIFARE%20Classic%20IS%20Completely%20Broken.pdf

    Then I suggest to assess for the need to use a tag having broken security feature.

    If your application does not need authentication prior to memory access, I would suggest to use a T2T tag such as ST25TN products

    Rgds

    BT

    7 replies

    Technical Moderator
    September 17, 2021

    Hi,

    the tag does not reply to the READ (30 01) command because the tag has not received the SELECT command. The tag is therefore not in ACTIVE state

    I would suggest to send 04 08 93 70 [4 bytes UID] [BCC] 28 i.e. SendRecv(SELECT with UID+BCC) to enter ACTIVE state. Once in ACTIVE state, the tag replies to commands such as READ.

    i would also suggest to use the X-CUBE-NFC3 firmware package from st.com. This provides the various steps to activate a tag.

    Rgds

    BT

    NMAuthor
    Visitor II
    September 17, 2021

    Hi,

    Thanks for the reply...

    I tried by selecting tag command, but now it gives "90 04 04 24 00 00"

    Still i am not able to read the tag data...

    I checked in the datasheet for the above response, but I am not clear that, In the datasheet shows 0A as ACK and 00 as NACK. But in my case 04 is coming...

    0693W00000DnZceQAF.jpgWhat will be the issuse....

    0693W00000DnZYSQA3.jpgKind Regards,

    Nishanth M

    NMAuthor
    Visitor II
    September 17, 2021

    ..

    Technical Moderator
    September 17, 2021

    Hi,

    the ACK or the NAK is a reply from the tag. So, the list of NAK values depends of the manufacturer of the tag. The ST25R95 datasheet only gives some examples of ACK and NACK answers.

    Which tag do you use (manufacturer & model)? Make sure this tag support READ command without any prior authentication

    Rgds

    BT

    NMAuthor
    Visitor II
    September 17, 2021

    Hi,

    Thanks for the quick reply...

    Read and writing is working with the Android mobile phone Application.

    Let me check with my supplier for the RFID Tag datasheet.

    Kind Regards,

    Nishanth M

    Technical Moderator
    September 17, 2021

    Hi,

    which Android NFC app do you use? can you share in private the manufacturer name and the model name of your tag? From this, we can retrieve the datasheet online?

    Rgds

    BT

    Technical Moderator
    September 17, 2021

    Hi,

    according to the Datasheet of the tag you are using (see figure 4 of the datasheet), a proprietary authentication is needed prior to any memory operations. Trying to send a Read command without having performed this mandatory step leads to receiving a NACK answer from the tag. Such tags are not Type 2 compliant and the proprietary authentication is not available from ST. See related topic: https://community.st.com/s/question/0D50X0000ADDjr7SQD/what-are-the-nak-value-meanings-for-cr95hf.

    If your want to simply perform Read/Write commands without any authentication/encryption, Type 2 compliant tags will fulfill your needs.

    Rgds

    BT

    NMAuthor
    Visitor II
    September 19, 2021

    Hi,

    Then authentication is not possible with CR95..?

    We can't read and write the data for NXP mifare class id 1k tag using CR95...?

    Kind Regards,

    Nishanth M

    Technical Moderator
    September 19, 2021

    Hi

    your conclusion is not exact.

    This tag uses a proprietary authentication and a proprietary cryptography. To respect the legal aspects, ST does not provide any firmware to support these proprietary authentication and cryptography. This has to be done by customers as part of their applications. From technical point of view, if the customer application support the authentication algorithm and cryptography algorithm, it is then possible to access the tag memory with the CR95HF.

    Before using this kind of tag, I would suggest you have a look on the Internet on white paper such as https://hitcon.org/download/2010/11_MIFARE%20Classic%20IS%20Completely%20Broken.pdf

    Then I suggest to assess for the need to use a tag having broken security feature.

    If your application does not need authentication prior to memory access, I would suggest to use a T2T tag such as ST25TN products

    Rgds

    BT

    NMAuthor
    Visitor II
    September 20, 2021

    Hi,

    Thanks for the reply.

    Now I can read and write the data with different type but same manufacturer such as MIFARE Ultralight & NTAG213/215/216.

    Still I am trying to read & Write with the Mifare Classic 1K.

    I want your suggestion such that in my PCB layout, I am trying to put all the RF chip and components will be at center of the antenna. So that I can get more space. If I seen the CR95 Eval board the antenna part is separate and no other components also placed at the bottom and inside the antennal tracks.

    0693W00000DnjeWQAR.jpgThis above type of placement is recommended?

    Will you share the PCB guidelines for the CR95H...

    Kind Regards,

    Nishanth M

    Technical Moderator
    September 20, 2021

    Hi,

    in accordance with this Community Ground Rules, I would suggest to start a new thread regarding the PCB and HW related questions and to mark this current thread as replied.

    Thanks in advance,

    Rgds

    BT