cancel
Showing results for 
Search instead for 
Did you mean: 

How To Use CR95HFlib Write And Read ?

T Z
Associate
Posted on March 20, 2018 at 16:05

Hello, when i test the CR95HF C++ LIb on Linux machine, i meet some problems

http://www.stmicroelectronics.com.cn/content/st_com/zh/products/embedded-software/st25-nfc-rfid-software/stsw-95hf004.html?dl=FrNTPnJK6hoXANxpMNMo7A%3D%3D%2CsPsqBVgEeXMvT44muG7tezMvmjo2lKo%2BA6JhhOFAz%2FHKBQcXv%2FVZAFF7muRvDt2X

I use TestApp to test the Lib functions

only the   

  • CR95HFlib_Read_Block()
  • CR95HFlib_Write_Block() 

return error (communicate error)

i don't know how to use 

when i use CR95HFlib_Write_Block()

please enter the Block address in hex

12

enter first byte

25

enter second byte

A6

enter third byte

7C

enter fourth byte

F0

--> Library function call : CR95HFlib_Write_Block(WriteAdd, strTagAnswer,strBytestowrite)

<-- Return from Library function : 0X4

ERROR : data write on block is failed

when i use CR95HFlib_Read_Block()

This option will read 4 byte data of the block entered by user

please enter the Block address in hex

12

--> Library function call : CR95HFlib_Read_Block(RegAdd, strTagAnswer)

<-- Return from Library function : 0X4

ERROR : No tag answer received

is my usage wrong?

can someone help me?Thanks!

#cr95hf
0 REPLIES 0