2025.11.17出货烧录版本,版本号为1.2.3
This commit is contained in:
parent
a71b3e73cc
commit
7599a821d1
|
|
@ -155,7 +155,7 @@ void my_appimg_enter(char *param){
|
||||||
}
|
}
|
||||||
local_tts_init();
|
local_tts_init();
|
||||||
local_tts_mute(0);// 取消静音
|
local_tts_mute(0);// 取消静音
|
||||||
local_tts_volume(40); // 设置音量为55
|
local_tts_volume(100); // 设置音量为55
|
||||||
// local_tts_set(7, 7, CM_LOCAL_TTS_DIGIT_AUTO);
|
// local_tts_set(7, 7, CM_LOCAL_TTS_DIGIT_AUTO);
|
||||||
local_tts_text_play("已开机",0,0);
|
local_tts_text_play("已开机",0,0);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -168,6 +168,8 @@ static int jt808_BodyParse(void *Prsmsg_body, PrsResult_t *Result){
|
||||||
|
|
||||||
// 启动升级处理流程(同步执行)
|
// 启动升级处理流程(同步执行)
|
||||||
// start_upgrade_process(&Result->big_upgrade_info);
|
// start_upgrade_process(&Result->big_upgrade_info);
|
||||||
|
local_tts_text_play("软件升级流程开始,请勿断电",0,0);
|
||||||
|
local_tts_text_play("升级完成后会自动重启",0,0);
|
||||||
const char *url = Result->term_param_item->big_upgrade_info.file_path;
|
const char *url = Result->term_param_item->big_upgrade_info.file_path;
|
||||||
if(!is_valid_url(url)) {
|
if(!is_valid_url(url)) {
|
||||||
JT808_DEBUG("Invalid URL: %s\n", url);
|
JT808_DEBUG("Invalid URL: %s\n", url);
|
||||||
|
|
@ -216,7 +218,7 @@ static int jt808_BodyParse(void *Prsmsg_body, PrsResult_t *Result){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
osDelay(200/5);
|
osDelay(2000/5);
|
||||||
cm_fota_exec_upgrade();
|
cm_fota_exec_upgrade();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -248,13 +250,13 @@ static int jt808_BodyParse(void *Prsmsg_body, PrsResult_t *Result){
|
||||||
local_tts_set(speed, volume, mode);
|
local_tts_set(speed, volume, mode);
|
||||||
}else{
|
}else{
|
||||||
JT808_DEBUG("error speed or volume or mode\r\n");
|
JT808_DEBUG("error speed or volume or mode\r\n");
|
||||||
local_tts_volume(50); // 设置音量大小
|
local_tts_volume(100); // 设置音量大小
|
||||||
local_tts_set(6, 7, CM_LOCAL_TTS_DIGIT_AUTO);
|
local_tts_set(6, 7, CM_LOCAL_TTS_DIGIT_AUTO);
|
||||||
Result->Rsp_result = Msg_invalid;//消息有误
|
Result->Rsp_result = Msg_invalid;//消息有误
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
JT808_DEBUG("error speed or volume or mode\r\n");
|
JT808_DEBUG("error speed or volume or mode\r\n");
|
||||||
local_tts_volume(80); // 设置音量大小
|
local_tts_volume(100); // 设置音量大小
|
||||||
local_tts_set(7, 15, CM_LOCAL_TTS_DIGIT_AUTO);
|
local_tts_set(7, 15, CM_LOCAL_TTS_DIGIT_AUTO);
|
||||||
Result->Rsp_result = Msg_invalid;//消息有误
|
Result->Rsp_result = Msg_invalid;//消息有误
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue