Skip to main content
jerry chang
Associate II
September 12, 2022
Solved

NFC Tap App (Android) FTM - Write MSG CRC Calculatin Method

  • September 12, 2022
  • 5 replies
  • 1194 views

Hi Experts

I used NFC Tap App to transmit data(use FTM write message cmd), transmit 10 byte

0693W00000Sv8L3QAJ.pngAs my analysis below the last 4 byte should be the CRC(4 byte),I think it's use CRC32 method, but I can't calculate the result as same as the App

0693W00000Sv8NEQAZ.pngResults by using on-line CRC calculator

0693W00000Sv8OMQAZ.pngCould you please verify this for me? thank you very much!

This topic has been closed for replies.
Best answer by Olivier L

Hi,

The ST25SDK contains a class for this CRC verification. You can use it with:

import com.st.st25sdk.Crc;
 
byte[] computedCrc = Crc.computeCrc(data);

Best regards

Olivier

5 replies

JL. Lebon
ST Employee
September 12, 2022

Hello Jerry,

I think you are mixing the Write message command (ISO15693 frame) with something else.

The Write Msg command format is:

02 aa 02 | 0f | 05 00 01 02 03 04 05 06 07 08

cmd code | msg len | data

Control Byte and Packet length and CRC32 you are inserting in the middle of the Write Msg command do not belong to this command.

Best regards.

Tesla DeLorean
Guru
September 13, 2022

Hi, can you provide a cite to the document with the CRC and example packet code, and perhaps the ISO standard that's coming from.

Thanks,

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
JL. Lebon
ST Employee
September 27, 2022

Hi Jerry,

Any news from your side on this issue ?

Best regards.

jerry chang
Associate II
October 3, 2022

Hi, Sorry for lately respond because I just ignore the CRC and proceed to develop my application.

The protocol I described is "FTM protocol" which you can refer to below url:

https://www.st.com/resource/en/user_manual/um2062-firmware-for-the-st25dvdiscovery-boards-stmicroelectronics.pdf

And I just wanna find which CRC32 method was adapted in ST FTM protocol

Thank you!

Olivier L
Olivier LBest answer
ST Employee
November 8, 2022

Hi,

The ST25SDK contains a class for this CRC verification. You can use it with:

import com.st.st25sdk.Crc;
 
byte[] computedCrc = Crc.computeCrc(data);

Best regards

Olivier