Skip to main content
Explorer
February 22, 2025
Solved

rfalST25xVPollerReadConfiguration() called fail

  • February 22, 2025
  • 2 replies
  • 790 views

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

    This topic has been closed for replies.
    Best answer by Brian TIDAL

    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:

    • rfalST25TV512CPollerReadConfiguration
    • rfalST25TV512CPollerWriteConfiguration

    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

    2 replies

    Technical Moderator
    February 23, 2025

    Hi,

    can you confirm your product is a st25tv02k and not a st25tv02kc?

    Rgds

    BT

    zh1Author
    Explorer
    February 24, 2025

    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

    Technical Moderator
    February 24, 2025

    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:

    • rfalST25TV512CPollerReadConfiguration
    • rfalST25TV512CPollerWriteConfiguration

    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

    zh1Author
    Explorer
    February 27, 2025

    Hi Brian,

     

    Thanks a lot.

     

     

    Zh