3.6.4 CNFG_SetSerialNumber Command
and its Response
The CNFG_SetSerialNumber command (0x87) saves the serial number
and its length to NVM:
bSrlLen→ Length of the serial number, maximum 60 bytes.vSrlNum→ Serial number in Unicode format. Serial number may contain printable ASCII characters. Because the string is stored in UTF-16LE format, each character requires two bytes. Therefore, up to 30 printable ASCII characters, including spaces, are supported.
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 serial number to NVM |
| 1 | bSrlLen |
Number of ASCII characters x 2 (UTF-16LE format) | Length of the serial number in bytes |
| 2 | vSrlNum | Serial number (up to 30 ASCII characters) | Serial number, in UTF-16LE format |
| Byte Index | Response | Description | |
|---|---|---|---|
| 0 | 0x87 | Echo command code | Returns whether the CNFG_SetSerialNumber command was
accepted |
| 1 | 0x20 | Accepted - success | The command is accepted, and the serial number is saved to NVM |
0x60 | Rejected - too long | 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 | |
