Skip to main content
Visitor II
June 27, 2018
Solved

read/write fom/to NFC Tag using iso15693 command

  • June 27, 2018
  • 1 reply
  • 1439 views
Posted on June 27, 2018 at 11:57

hello ,

i'm new with NFC i'm using Android st25sdk  i need to read/write fom/to NFC Tag using iso15693 command.

my example is read battery voltage (commande= 0x35)

i write this code:

public

Type5Tag

mType5Tag

;

mType5Tag

= (Type5Tag)

this

.getTag();

byte

[] payload=

mType5Tag

.readSingleBlock(

0x35

);

is it true what i'm doing?

thanx in advance.

#iso-15693 #nfc-tag-type-5
    This topic has been closed for replies.
    Best answer by Damien G.
    Posted on July 02, 2018 at 12:13

    Hi Amine,

    your command:

       byte

    [] data =

    mType5Tag

    .readSingleBlock(

    0x35

    );

    will read the content of the block contained at address 0x35 in the tag's EEPROM.

    The first byte of data is the status byte returned by the tag as defined in the iso15693 (=0x00 if no error).

    The rest of the array is the payload, delivered with the least significant byte first.

    Whatever is contained in this payload array is specific to your application (for yours, looks like it is battery information).

    Regards,

    Damien

    1 reply

    Damien G.Answer
    ST Employee
    July 2, 2018
    Posted on July 02, 2018 at 12:13

    Hi Amine,

    your command:

       byte

    [] data =

    mType5Tag

    .readSingleBlock(

    0x35

    );

    will read the content of the block contained at address 0x35 in the tag's EEPROM.

    The first byte of data is the status byte returned by the tag as defined in the iso15693 (=0x00 if no error).

    The rest of the array is the payload, delivered with the least significant byte first.

    Whatever is contained in this payload array is specific to your application (for yours, looks like it is battery information).

    Regards,

    Damien