3.6.22 CNFG_PermanentLockCfg Command and its Response

The CNFG_PermanentLockCfg command (0xCD) sets the protection level to Configuration - Permanently Locked.

  • bSrlLen → Length of the serial number, up to 60 bytes
  • vSrlNum → Serial number in Unicode format

This command is sent through Endpoint 0x05 (OUT). The response is read through Endpoint 0x85 (IN).

Table 3-49. CNFG_PermanentLockCfg - Command
Byte IndexCommandDescription
00xCDCommand codePermanently locks the device configuration
1bSrlLenNumber of ASCII characters x 2

(in UTF-16LE format)

Length of the serial number in bytes
2-N+1vSrlNumSerial number (up to 30 ASCII characters)Serial number, in UTF-16LE format
Table 3-50. CNFG_PermanentLockCfg - Response
Byte IndexResponseDescription
00xCDEcho command codeReturns whether the CNFG_PermanentLockCfg command was accepted
1

0x20

0x60

0x90

Accepted – success

Rejected – serial number mismatch.

Failure - unsuccessful NVM write.

The device configuration is permanently locked.

Rejected because the serial number did not match.

Saving into NVM failed; retry.