2022-08-08 06:47 AM
Hi,
I'm building a mobile application that integrates with ST25DV64KC and M24LR04E-R.
Is there a command that returns the maximum number of blocks that can be read at one time, or is there a way I can learn which model of chip I'm reading, so that I can read the correct amount of blocks in a "Read Multiple Blocks" command. I can see some NFC Tag applications show an IC type which displays the model but I am unsure as to how to retrieve this information myself.
Any help would be gratefully received.
Kind Regards, Sam
Solved! Go to Solution.
2022-08-09 03:03 AM
Hello Sammy,
Take a look at the Java ST25SDK and especially the example TagDiscovery.java file located in ST25SDK\integration\android\helper.
A usage of TagDiscovery is explained in ST25SDK\integration\android\examples\ST25AndroidDemoApp, check out the documentation in ST25SDK\ST25AndroidDemoApp_software_guide.pdf.
Once you have instantiated the correct class for your tag based on its ICRef (done for you in TagDiscovery with the tag's UID as parameter), you can use the API for the specific class:
For both classes, you can then use the following API of Type5Tag class:
int getMaxReadMultipleBlocksReturned();
that will return the maximum number of blocks depending on the tag's IC ref.
Best regards,
Damien
2022-08-09 03:03 AM
Hello Sammy,
Take a look at the Java ST25SDK and especially the example TagDiscovery.java file located in ST25SDK\integration\android\helper.
A usage of TagDiscovery is explained in ST25SDK\integration\android\examples\ST25AndroidDemoApp, check out the documentation in ST25SDK\ST25AndroidDemoApp_software_guide.pdf.
Once you have instantiated the correct class for your tag based on its ICRef (done for you in TagDiscovery with the tag's UID as parameter), you can use the API for the specific class:
For both classes, you can then use the following API of Type5Tag class:
int getMaxReadMultipleBlocksReturned();
that will return the maximum number of blocks depending on the tag's IC ref.
Best regards,
Damien
2022-08-09 03:49 AM
Thanks Damien.
You certainly pointed me in the right direction.
It looks like you are using the tags identifier which is formatted in a specific way, as I suspected.
The main thread to follow here is in TagHelper.class with the method TagHelper.ProductID identifyTypeVProduct, or similar method names for your chosen tag type.
Thanks for the help!