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).
| Byte Index | Command | Description | |
|---|---|---|---|
| 0 |
|
Command code | Saves the product name to NVM |
| 1 |
| Number of ASCII characters x 2 (UTF-16LE format) | Length of the product name in bytes |
| 2 | vPrdName | Product name (up to 30 ASCII characters) | Product name, in UTF-16LE format |
| Byte Index | Response | Description | |
|---|---|---|---|
| 0 | 0x85 | Echo command code | Returns whether the CNFG_SetProductName command was
accepted |
| 1 | 0x20 | Accepted - success | Command accepted and product name is saved to NVM |
0x60 | Rejected - too long | The command is rejected because the name is too long | |
0x64 | Rejected - locked | The command is rejected because the device configuration is locked | |
0x90 | Failure - unsuccessful NVM write | Saving to NVM failed; retry | |
