2024-07-02 02:49 AM
I want to write data to ISO15693 memory using ST25R95.
However ST25R95 returns error.
Below is my communicating data.
Get UID
PlotocolSelect
0x00, 0x02, 0x02, 0x01, 0x0D
WrReg
0x00, 0x09, 0x04, 0x68, 0x01, 0x01, 0x53
SendRecv(Get UID)
0x00, 0x04, 0x03, 0x26, 0x01, 0x00
I got the UID.
Write Data
PlotocolSelect
0x00, 0x02, 0x02, 0x01, 0x0D
WrReg
0x00, 0x09, 0x04, 0x68, 0x01, 0x01, 0x53
SendRecv(Write Data to memory)
0x00, 0x04, 0x13(data length), 0x22(flag byte), 0x21(write single block command),
0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX,(UID 8byte)
0x01,(block number)
0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08(write data 8byte)
Response of SendRecv(Write Data to memory)
0x0E, 0x87, 0x00
Why ST25R95 returns error?
Solved! Go to Solution.
2024-07-02 06:04 AM
Hi,
0x87 0x00 means timeout i.e. no response from the tag. See ST25R95 datasheet table 6. This can be due to different causes:
ST provides a portable NFC communication stack (see STSW-ST25R017 in ST25 embedded NFC library). It includes a complete demo with tag polling and sample code to read/write various type of tags. I would recommend to use this firmware package to develop your own application.
Rgds
BT
2024-07-02 06:04 AM
Hi,
0x87 0x00 means timeout i.e. no response from the tag. See ST25R95 datasheet table 6. This can be due to different causes:
ST provides a portable NFC communication stack (see STSW-ST25R017 in ST25 embedded NFC library). It includes a complete demo with tag polling and sample code to read/write various type of tags. I would recommend to use this firmware package to develop your own application.
Rgds
BT
2024-07-02 05:46 PM
Thank you.
I mistaked number of bytes.
4 bytes is correct.