User's Manual

Advanced ID Asia Engineering Co., Ltd Page | 21
5.4.16 Lock-Tag (50-05)
With this function the tag can be locked. The meaning of the mode and the memory space can be found in the
documentation of the reader.
Parameters: unsigned char tagIdCount, unsigned char tagId[tagIdCount], unsigned char mode, unsigned char
mem_space, unsigned long accessPassword
Return Values: RFE_RET_VALUE status
Status Values: RFE_SUCCESS, RFE_ERR_ON_EXEC_OP, RFE_ERR_COULD_NOT_WRITE,
RFE_ERR_WRONG_PARAM_COUNT, RFE_ERR_WRONG_PARAM
Example: Lock the tag 30-00-30-08-33-b2-dd-d9-01-40-35-05-00-00 with the mode 1 at the memory space 1:
PC -> Reader 52 46 45 01 5005 02 13 03 0C 300833b2ddd9014035050000 01 01 00000000 04 cs
dataLength = 0x13
tagIdCount = 0x0C -> 12 Bytes
tagId = 30-08-33-b2-33-33-01-40-35-05-00-00 mode = 0x01
mem_space = 0x01
accessPassword = 0x00000000
Reader -> PC 52 46 45 01 5005 02 01 03 00 04 cs
dataLength = 0x01
status = 0x00 -> RFE_SUCCESS