Skip to main content
Graduate
October 23, 2023
Solved

Write Multiple Register on a X-Cube-NFC08A1

  • October 23, 2023
  • 1 reply
  • 817 views

Hello, 

I don‘t understand the Syntax of the Function  rfalWriteMultipleRegister(). After trying and don‘t receive any Data. Can someone provide an example on how to use the function. 

Thank you very much

Rgds 

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

    Hi,

    rfalNfcvPollerReadMultipleBlocks implements the ISO 15693 Read Multiple Blocks commands. This command is an optional command and may be not supported by your tag. The maximum number of blocks that can be read in a Read Multiple Blocks command  is also tag dependent. If the command is not supported by the tag or if the requested number of blocks exceeds the maximum number, an error is returned by the tag. Before using the Read Multiple Blocks command, it is recommended to check inside the tag datasheet whether this command is supported by the tag and how many blocks can be read in one command.

    The syntax of rfalNfcvPollerReadMultipleBlocks is documented in rfal_nfcv.h. The rxBuf has to be big enough, in particular make sure to have room for the response flag byte, the 2-bytes CRC and (numBlocks + 1) x blockSize. blockSize is usually 4 bytes.

    Rgds

    BT

    1 reply

    Technical Moderator
    October 23, 2023

    Hi,

    I guess you refer to st25r3916WriteMultipleRegisters as rfalWriteMultipleRegister does not exist. It is documented inside the chm file from the documentation folder and also in the st25r3916_com.h header file: "This function is used to write multiple values to the ST25R3916 using the auto-increment feature. That is, after each write the address pointer inside the ST25R3916 gets incremented automatically."

    Thus as you write values into ST25R3916 registers, this does not return any data... 

    Standard users of the RFAL don't need to use this function. Can you share more details about your need to write into ST25R3916 registers?

    Rgds

    BT

    CT-55555Author
    Graduate
    October 24, 2023

    Hi, 

    sorry I mean a different function. The function I mean is called rfalNfcvPollerReadMultipleBlocks(). I'm not sure how the syntax works. 

    Rgds

    Technical Moderator
    October 24, 2023

    Hi,

    rfalNfcvPollerReadMultipleBlocks implements the ISO 15693 Read Multiple Blocks commands. This command is an optional command and may be not supported by your tag. The maximum number of blocks that can be read in a Read Multiple Blocks command  is also tag dependent. If the command is not supported by the tag or if the requested number of blocks exceeds the maximum number, an error is returned by the tag. Before using the Read Multiple Blocks command, it is recommended to check inside the tag datasheet whether this command is supported by the tag and how many blocks can be read in one command.

    The syntax of rfalNfcvPollerReadMultipleBlocks is documented in rfal_nfcv.h. The rxBuf has to be big enough, in particular make sure to have room for the response flag byte, the 2-bytes CRC and (numBlocks + 1) x blockSize. blockSize is usually 4 bytes.

    Rgds

    BT