3.6.3 CNFG_SetProductName Command and its Response

The CNFG_SetProductName command (0x85) saves the product name and its length to NVM:

  • bPrdLen → Length of the product name, maximum 60 bytes.
  • vPrdName → Product name in Unicode format. The product name may contain printable ASCII characters. Because the string is stored in Unicode format, each character requires two bytes. Therefore, up to 30 printable ASCII characters are supported, including spaces.

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

Table 3-11. CNFG_SetProductName - Command
Byte IndexCommandDescription
0

0x85

Command code

Saves the product name to NVM
1

bPrdLen

Number of ASCII characters x 2

(UTF-16LE format)

Length of the product name in bytes
2vPrdNameProduct name (up to 30 ASCII characters)Product name, in UTF-16LE format
Table 3-12. CNFG_SetProductName - Response
Byte IndexResponseDescription
00x85Echo command codeReturns whether the CNFG_SetProductName command was accepted
10x20Accepted - successCommand accepted and product name is saved to NVM
0x60Rejected - too longThe command is rejected because the name is too long
0x64Rejected - lockedThe command is rejected because the device configuration is locked
0x90Failure - unsuccessful NVM writeSaving to NVM failed; retry