2023-10-23 10:31 AM - last edited on 2023-10-23 10:58 AM by Peter BENSCH
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
Solved! Go to Solution.
2023-10-24 02:18 AM
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
2023-10-23 02:08 PM
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
2023-10-23 10:41 PM
Hi,
sorry I mean a different function. The function I mean is called rfalNfcvPollerReadMultipleBlocks(). I'm not sure how the syntax works.
Rgds
2023-10-24 02:18 AM
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