================================================
hwdiag_diag_lock_handset:
cmd: C0 F3 0F 00 10 A0 8C 7E
================================================
hwdiag_diag_lock_control:
typedef PACKED struct
{
uint8 lock_state_control; /* diag锁定状态控制 */
uint8 diag_key[16]; /* 解锁diag密码 */
}diag_lock_control_req_type;
typedef PACKED struct
{
uint8 locked_status; /* diag锁定状态 */
uint8 locked_times; /* diag能使用的次数 */
}diag_lock_control_rsp_type;
unlock
cmd: C0 F0 0F 00 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D1 9B 7E
lock
cmd: C0 F0 0F 00 10 01 BB 59 7E
================================================
diag_security_identify_start:
typedef PACKED struct
{
byte radom_data[DECRYPT_DATA_LENGTH]; /* 合法鉴定开始响应的数据 */
diag_security_speciality_error_type status; /* 合法鉴定开始响应是否成功 */
}diag_secure_identify_start_rsp_type;
cmd: C0 F1 0F 00 10 D6 B5 7E
rx: C0 F1 0F 00 10 XX~ ststus
================================================
diag_security_identify_end:
typedef PACKED struct
{
byte radom_data[DECRYPT_DATA_LENGTH]; /* 合法鉴定数据 */
}diag_secure_identify_end_req_type;
cmd: 0xc0 0xf2 0x0f 0x00 0x10 0xXX~
C0 F0 0F 00 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D1 9B 7E