cancel
Showing results for 
Search instead for 
Did you mean: 

How to read blocks after 64(256bytes)

cJK.1
Associate

I am build an andriod app,device is using ST25DV04K NFC chip

i should read first 256 bytes using commnad 0x02,0x23,0x00,0x3f

but failed to read last 256 bytes

I try 2 commands:

  1. send 0x02,0x23,0x40,0x7f,respone:0x01,0x0f
  2. send 0x02,0x33,0x40,0x00,0x7f,0x00,respone:0x01,0x0f

how to read last 256 bytes?

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
Brian TIDAL
ST Employee

Hi,

the Read Multiple Blocks command (23h) takes 2 parameters:

  • first block number (here 40h if you want to read after the first 64 blocks)
  • number of blocks: 3Fh if you want to read 64 blocks

Thus the correct command is 0x02,0x23,0x40,0x3F

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

2 REPLIES 2
Brian TIDAL
ST Employee

Hi,

the Read Multiple Blocks command (23h) takes 2 parameters:

  • first block number (here 40h if you want to read after the first 64 blocks)
  • number of blocks: 3Fh if you want to read 64 blocks

Thus the correct command is 0x02,0x23,0x40,0x3F

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.
cJK.1
Associate

Thanks.It's work fine.

BR.