RFID_STATUS WINAPI RFID_FujitsuChangeBlockOrAreaGroupPassword ( RFID_HANDLE32  readerHandle,
UINT8 *  pTagID,
UINT32  tagIDLength,
FUJITSU_CHANGE_BLOCK_OR_AREA_GROUPPASSWORD_ACCESS_PARAMS *  lpChangeBlockOrAreaGroupPasswordParams,
LPACCESS_FILTER  lpAccessFilter,
LPANTENNA_INFO  lpAntennaInfo,
LPVOID  rsvd 
)

This function changes the BlockGroupPassword of the specified BlockGroup if the target tag is a Fujitsu 64K Tag or AreaGroupPassword of the specified AreaGroup if the target tag is a Fujitsu 8K Tag.

Parameters:
[in] readerHandle 
Handle to the RFID device.
[in] pTagID 
Pointer to the byte array containing Tag ID
[in] tagIDLength 
Length of the byte array containing Tag ID
[in] lpChangeBlockOrAreaGroupPasswordAcessParams 
Pointer to FUJITSU_CHANGE_BLOCK_OR_AREA_GROUPPASSWORD_ACCESS_PARAMS structure containing the BlockGroup or AreaGroup offset, current Password and the new Password.
Returns:
If the function succeeds the return value is RFID_API_SUCCESS. If the function fails the return value is one of the following:
  • RFID_API_INVALID_HANDLE Handle provided is invalid
  • RFID_API_PARAM_ERROR Parameter is invalid.
  • RFID_ACCESS_FUJITSU_CHANGE_BLOCK_OR_AREA_GROUPPASSWORD_FAILED Failed to perform Burst-Erase on the specified tag(s)

Remarks:
If the BlockGroupPassword is incorrect,the 64K Fujitsu Tag will not respond to the custom operations like ChangeWordLock,ChangeBlockLock.Similarly,if the AreaGrouPassword is incorrect, the 8K Fujitsu Tag will not respond to custom operations like AreaReadLock and AreaWriteLock.

Example:

// Code Snippets for setting/resetting wordLock flags
   UINT8 fujitsu64KtagID[12] = {0x30,0x35,0x30,0x7B,0x28,0x31,0xB3,0X80,0xB0,0x00,0x0C,0x4C};
   UINT8 writeData[2] = {0xff,0xff};
   RFID_HANDLE32 readerHandle;
   RFID_STATUS rfidStatus = RFID_API_SUCCESS;
   CONNECTION_INFO connectionInfo;
   connectionInfo.version = RFID_API3_5_1;
   if(RFID_API_SUCCESS == RFID_Connect(&readerHandle, TEXT("157.235.207.191"), 0, 0, &connectionInfo))
   {  
           
        FUJITSU_CHANGE_BLOCK_OR_AREA_GROUPPASSWORD_ACCESS_PARAMS fujitsuChangeBlockOrAreaGroupPasswordAccessParams;
                fujitsuChangeBlockOrAreaGroupPasswordAccessParams.blockOrAreaGroupOffset = 0X01;
                fujitsuChangeBlockOrAreaGroupPasswordAccessParams.currentPassword = 0X0;
                fujitsuChangeBlockOrAreaGroupPasswordAccessParams.newPassword = 0x12345678;
                
                rfidStatus = RFID_FujitsuChangeBlockOrAreaGroupPassword(readerHandle,fujitsu64KTagID,12,&fujitsuChangeBlockOrAreaGroupPasswordAccessParams,NULL,NULL,NULL);
                RFID_Disconnect(readerHandle);
   }


Generated on Fri Mar 4 02:25:31 2016 for RFIDAPI3 1.1 C API Documentation by  doxygen 1.5.6