Grove NFC tag is an 8KB electrically erasable programmable read-only memory (EEPROM) that can be written to or read from using I2C and NFC-equipped devices.
The user mode (default) allows read and write access to all 8KB of space, provided the sector security status (SSS) allows it. The root mode allows modification of the SSS data and other information, provided the proper password is submitted. The default password for a new tag is 0x00000000. See the datasheet for more details.
The Seeed Studio* wiki page for this device includes a link to an Android* application that can be used to also read and write the device via NFC, as well as set NFC passwords, which cannot be done via I2C.
System.out.println("Address: " + addr);
short read = nfcTag.readByte(addr);
System.out.println("Read: " + read);
read = (short) (~read & 0xff);
nfcTag.writeByte(addr, read);
System.out.println("Wrote: " + read);
read = nfcTag.readByte(addr);
System.out.println("Read: " + read);
|
synchronized void | delete () |
|
| M24LR64E (int bus, M24LR64E.AccessMode mode) |
|
| M24LR64E (int bus) |
|
boolean | submitPasswd (long passwd) |
|
boolean | writePasswd (long passwd) |
|
void | sectorProtectConfig (long sectorNumber, boolean protectEnable, M24LR64E.SectorAccessRight accessRight, M24LR64E.SectorSelectPassWd passwd) |
|
void | clearSectorProtect () |
|
void | sectorWriteLockBit (long sectorNumber, boolean sockEnable) |
|
short | getDSFID () |
|
short | getAFI () |
|
byte[] | getUID () |
|
long | getMemorySize () |
|
void | clearMemory () |
|
int | writeByte (long address, short data) |
|
int | writeBytes (long address, byte[] buffer) |
|
short | readByte (long address) |
|
int | readBytes (long address, byte[] buffer) |
|
|
static final int | EEPROM_I2C_LENGTH = javaupm_m24lr64eJNI.M24LR64E_EEPROM_I2C_LENGTH_get() |
|
static final int | PASSWORD_LENGTH = javaupm_m24lr64eJNI.M24LR64E_PASSWORD_LENGTH_get() |
|
static final int | SECTOR_SECURITY_STATUS_BASE_ADDR = javaupm_m24lr64eJNI.M24LR64E_SECTOR_SECURITY_STATUS_BASE_ADDR_get() |
|
static final short | LOCK_PROTECT_BIT = javaupm_m24lr64eJNI.M24LR64E_LOCK_PROTECT_BIT_get() |
|
static final short | WRITE_READ_PROTECT_BIT = javaupm_m24lr64eJNI.M24LR64E_WRITE_READ_PROTECT_BIT_get() |
|
static final short | PASSWORD_CTRL_BIT = javaupm_m24lr64eJNI.M24LR64E_PASSWORD_CTRL_BIT_get() |
|
static final int | UID_LENGTH = javaupm_m24lr64eJNI.M24LR64E_UID_LENGTH_get() |
|
static final long | I2C_WRITE_TIME = javaupm_m24lr64eJNI.M24LR64E_I2C_WRITE_TIME_get() |
|