2025-02-21 6:15 PM
hi,
st25r200 read configuration of st25tv02k tag via rfalST25xVPollerReadConfiguration() ,but always fail. Error code is 05.
However, st25r200 can read and write user data block of the tag correctly.
Could anyone give me an example of using this function?
Thanks a lot.
zh
Solved! Go to Solution.
2025-02-24 12:34 AM
Hi,
API from rfal_st25xv module have been designed before the introduction of ST25TV512C and ST25TV02KC devices. ST25TV512C and ST25TV02KC devices have introduced a compatibility change (PID/FID) in Read Configuration and Write Configuration commands. Thus, rfalST25xVPollerReadConfiguration cannot be used with those device.
2 new API have been introduced in the attached files for ST25TV512C and ST25TV02KC devices:
Example code
/* Read UID register ReadConfiguration @(FID=FEh, PID=01h) */
err = rfalST25TV512CPollerReadConfiguration(reqFlag, uid, 0xFE, 0x01, rxBuf, sizeof(rxBuf), &rcvLen);
/* rxBuf contains the response_flags at position 0 followed by the data */
/* rxBuf size should be enough to store i/ the response flags ii/ the data and iii/ the CRC */
platformLog(" rfalST25TV512CPollerReadConfiguration: %s %s\r\n", (err != RFAL_ERR_NONE) ? "FAIL": "OK Data:", (err != RFAL_ERR_NONE) ? "" : hex2Str( &rxBuf[1], rcvLen - 1));
Rgds
BT
2025-02-23 11:03 AM
Hi,
can you confirm your product is a st25tv02k and not a st25tv02kc?
Rgds
BT
2025-02-23 10:18 PM
Hi Brian,
Sorry, I use st25tv02kc tag, but what function can I call to read configuration?
I cannot find the proper one to fill "pid","fid" parameters.
Could you give me a code example?
Thanks,
zh
2025-02-24 12:34 AM
Hi,
API from rfal_st25xv module have been designed before the introduction of ST25TV512C and ST25TV02KC devices. ST25TV512C and ST25TV02KC devices have introduced a compatibility change (PID/FID) in Read Configuration and Write Configuration commands. Thus, rfalST25xVPollerReadConfiguration cannot be used with those device.
2 new API have been introduced in the attached files for ST25TV512C and ST25TV02KC devices:
Example code
/* Read UID register ReadConfiguration @(FID=FEh, PID=01h) */
err = rfalST25TV512CPollerReadConfiguration(reqFlag, uid, 0xFE, 0x01, rxBuf, sizeof(rxBuf), &rcvLen);
/* rxBuf contains the response_flags at position 0 followed by the data */
/* rxBuf size should be enough to store i/ the response flags ii/ the data and iii/ the CRC */
platformLog(" rfalST25TV512CPollerReadConfiguration: %s %s\r\n", (err != RFAL_ERR_NONE) ? "FAIL": "OK Data:", (err != RFAL_ERR_NONE) ? "" : hex2Str( &rxBuf[1], rcvLen - 1));
Rgds
BT
2025-02-26 5:34 PM
Hi Brian,
Thanks a lot.
Zh