RFD8500 Android Lock and Unlock Tag

// Expert user has replied.
W Wind Chin 2 years 11 months ago
13 1 0

How to perform lock and unlock tag action in android development? Even the demo app (123RFID Mobile) is not working and very less info for these two function

Please register or login to post a reply

1 Replies

J James Swinton-Bland

Hi Wind,
From page 88 of our RFD developers guide:
 

The application calls method reader.Actions.TagAccess.lockWait to perform a lock operation on one or more
memory banks with specific privileges.

// Lock the tag
String tagId = "1234ABCD00000000000025B1";
TagAccess tagAccess = new TagAccess();
TagAccess.LockAccessParams lockAccessParams = tagAccess.new LockAccessParams();
/* lock now */
lockAccessParams.setLockPrivilege(LOCK_DATA_FIELD.LOCK_USER_MEMORY,
LOCK_PRIVILEGE.LOCK_PRIVILEGE_READ_WRITE);
lockAccessParams.setAccessPassword(0);
reader.Actions.TagAccess.lockWait(tagId, lockAccessParams, null); 

CONTACT
Can’t find what you’re looking for?