3.6.21 CNFG_ChangePassword Command
and its Response
The CNFG_ChangePassword command (0xCB) replaces the existing
password with new password and retains the protection level as ‘Password Set -
Unlocked’:
qwOldPassword→ 8-byte old passwordqwNewPassword→ 8-byte new password
This command is sent through Endpoint 0x05 (OUT). The response is read through Endpoint 0x85 (IN).
| Byte Index | Command | Description | |
|---|---|---|---|
| 0 | 0xCB | Command code | Replaces the old password with the new password |
| 1-8 | qwOldPassword | Old password (eight bytes) | Eight bytes of the old password |
| 9-16 | qwNewPassword | New password (eight bytes) | Eight bytes of the new password |
| Byte Index | Response | Description | |
|---|---|---|---|
| 0 | 0xCB | Echo command code | Returns whether the CNFG_ChangePassword command was
accepted |
| 1 | 0x20 | Accepted – success | Accepted. The state is of the device configuration remains ‘Password Set - Unlocked’ and the new password is saved to NVM. |
0x60 | Rejected – wrong parameters | Rejected because the new password length did not match | |
0x64 | Rejected – permanently locked | Rejected because the configuration is permanently locked | |
0x68 | Rejected – invalid state | Rejected because the configuration is locked | |
0x6C | Rejected – no operation | Rejected because the password is not set | |
0x80 | Rejected – no operation | Rejected because the old password did not match | |
0x90 | Failure - unsuccessful NVM write | Saving to NVM failed; retry | |
