cancel
Showing results for 
Search instead for 
Did you mean: 

rfalST25xVPollerReadConfiguration() called fail

zh1
Associate II

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 discussion is locked. Please start a new topic to ask your question.
1 ACCEPTED SOLUTION

Accepted Solutions

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

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

4 REPLIES 4
Brian TIDAL
ST Employee

Hi,

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

Rgds

BT

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

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

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

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
zh1
Associate II

Hi Brian,

 

Thanks a lot.

 

 

Zh