2025-01-16 07:50 AM
Hello,
I would like to know where I could find the ST25FTM library for Android.
Thank you in advance,
Best Regards,
Selvaraj
2025-01-16 08:39 AM
Hello Selvaraj,
the ST25FTM library for Android can be found here:
STSW-ST25SDK001 - Software Development Kit for ST25 Tags and Dynamic Tags - STMicroelectronics
Best regards,
Cedric
2025-01-16 11:39 PM - edited 2025-01-17 12:21 AM
Hello Cedric,
Thank you for your reply along with the reference to download the library.
But the library you referred to doesn't have middleware files like st25ftm_protocol.c , st25ftm_rx.c , st25ftm_tx.c , etc.
I would like to perform FTM actions via the ST25FTM library on Android.
The library you have referred to is the basic example to get memory information and write NDEF records. But I would like to do more actions like, read and write bytes and transfer a text file from Android to the tag via FTM protocol.
Thank you in advance for your return,
Best Regards,
Selvaraj
2025-01-17 01:56 AM
Hi Selvaraj,
Cedric pointed you the ST25SDK which is the library to use to interact with ST25 tags. This a Java Archive file (JAR file) that you can import in your Android application. It contains the API to use the FTM feature.
For my understanding: Why did you expect C files? Did you expect a native feature?
I recommend to download the source code of our Android application: https://www.st.com/en/embedded-software/stsw-st25001.html
Then you can look at the class ST25DVFtmDemoActivity and look at the calls mST25DVTag.enableMailbox() or mFtmCommands.sendCmdAndWaitForCompletion(). Your application should use the FTM in the same way as shown in this class.
If you execute this application and tap a ST25DV Tag, you can open the top left menu and go to "FTM demos" where the above code is called.
Best regards
Olivier
2025-01-17 04:41 AM
Hi Olivier,
Thank you for your return, along with the recommendations.
When you say ST25FTM library, I am expecting a similar library for an Android implementation.
This way, I could call the native functions like ST25FTM_SendCommand from my class.
Best Regards,
Selvaraj
2025-01-17 04:51 AM
The API are not the same on firmware side and on Android side.
On Firmware side you have C functions like ST25FTM_SendCommand().
On Android side, you should use the Java functions that I have mentionned, like mFtmCommands.sendCmdAndWaitForCompletion().
Best regards
Olivier