SparkFun M6E Nano Change PC and AFI in EPC

Hello!

i have to change the PC-Word and the AFI. But when i read the EPC, i only see the UserData.

Can somebody help me?

Thanks!

UII.PNG

as you point out the first 16 bits (1 word) on the EPC bank are CRC, the second word is the PC + AFI. If you look at writeTagEPC or readTagEPC() in the library you will see an address of 2 ( words) If you change that to 1 word you will be able to read the PC and AFI

WOOW THANKS A LOT!!! I will try it immediately and give feedback!

of course in examples you need to change the size of the “EPC” to read… normally that is 12 bytes ( 96 bits), but it now needs to be 2 (PC) + 12 (EPC) is 14 bytes… the CRC is normally calculated by the Nano / Tag

It doesnt work ?

If i read the EPC with 12Byte i will get:

39 59 2B 53 54 30 30 30 30 30 30 30

with 14 bytes

39 59 2B 53 54 30 30 30 30 30 30 30 30 30

the first 4 chars are 9Y+S

its still the same. But the PC AFI is in front of this chars.

i cannot see the first 4 byte ( CRC + PC + AFI )

@ paulvha:

i didnt find this adress. maybe i have the wrong library?

Thanks@ all

i found the solution.

you have to use the Read all bank sample and read Bank 01.