2018-06-27 02:57 AM
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
Type5TagmType5Tag
;mType5Tag
= (Type5Tag)this
.getTag();byte
[] payload=mType5Tag
.readSingleBlock(0x35
);is it true what i'm doing?thanx in advance.
#iso-15693 #nfc-tag-type-5Solved! Go to Solution.
2018-07-02 03:13 AM
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
2018-07-02 03:13 AM
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