How to gen2ReadFromTag with ST25ru3993 ?
Hi ST,
We are trying to integrate a ST25ru3993 with a new µC. We managed to detect and list tags using inventoryGen2() command, but we are struggling with the gen2ReadFromTag() one:
In the doxygen embedded in gen2.h code, we can see the following example:
n = gen2SearchForTags(tags+1, 1, 0, continueAlways, 1);
if(n == 0) return;
//Pick one of the tags based on the contents of tags. Here we use the very first tag
if(gen2ReadFromTag(tags+0, MEM_USER, 0, 2, buf))
return;The gen2SearchForTags() command outputs a list of tags with type STUHFL_T_InventoryTag that doesn't have the necessary handle saved to communicate later with the tags, and which is not compatible with the tag_t structure needed by gen2ReadFromTag.
We tried to add the handle to the STUHFL_T_InventoryTag structure and to create a tag_t
based on what was saved in the tags of type STUHFL_T_InventoryTag , but we did not manage to call gen2ReadFromTag successfully, we always have error code -33 (STUHFL_ERR_CHIP_NORESP).
Remark: When setting global variable readTIDinInventoryRound to true, we can see that gen2ReadFromTag is called successfully to retrieve the TID inside the gen2SearchForTags() function.
Can you help us understand how to use the gen2ReadFromTag() function ?
Best Regards,
Thomas.
