cancel
Showing results for 
Search instead for 
Did you mean: 

read/write fom/to NFC Tag using iso15693 command

amine minyawi
Associate II
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
1 ACCEPTED SOLUTION

Accepted Solutions
Damien G.
ST Employee
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

View solution in original post

1 REPLY 1
Damien G.
ST Employee
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