The SDK supports performing of read, write, lock and kill access operations on a specific tag. Access operations are performed via srfidReadTag, srfidWriteTag, srfidLockTag and srfidKillTag API functions accordingly. The mentioned API functions are performed synchronously; the corresponding operation is started immediately and is stopped once tag data is reported by RFID reader or after a 5 seconds timeout.
Access operations use two types that the SDK defines. SRFID_MEMORYBANK selects the memory bank of the tag:
SRFID_MEMORYBANK_EPC(0x01)SRFID_MEMORYBANK_TID(0x02)SRFID_MEMORYBANK_USER(0x04)SRFID_MEMORYBANK_RESV(0x08)SRFID_MEMORYBANK_NONE(0x10)SRFID_MEMORYBANK_ACCESS(0x20)SRFID_MEMORYBANK_KILL(0x40)SRFID_MEMORYBANK_ALL(0x67)
SRFID_ACCESSPERMISSION sets the access permission when a memory bank is locked:
SRFID_ACCESSPERMISSION_ACCESSIBLE(0x00)SRFID_ACCESSPERMISSION_ACCESSIBLE_PERM(0x01)SRFID_ACCESSPERMISSION_ACCESSIBLE_SECURED(0x02)SRFID_ACCESSPERMISSION_ALWAYS_NOT_ACCESSIBLE(0x03)
Read and write are described on the Read and Write page, kill on the Kill page and lock on the Lock page.