|
@@ -125,16 +125,20 @@ static void pwrKeyDetect(unsigned int exeInterval){
|
|
|
if(sutApp.activePwrShut==0) appSleepCtl(ASLEEP_PWRKEY, 0);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+void shutSysNow(void){
|
|
|
+ msgAtSend("AT+POC=050000\r\n");
|
|
|
+ nwy_sleep(200);
|
|
|
+ msgAtSend("AT+CPOF\r\n");
|
|
|
+ nwy_sleep(200);
|
|
|
+}
|
|
|
static void antModePwrDet(void){
|
|
|
static int kcnt=0;
|
|
|
if(sutApp.pwrKeyStatus==0){
|
|
|
if(++kcnt==3){
|
|
|
guiShowMessageBox("正在关机");
|
|
|
- msgAtSend("AT+TRB=2\r\n");
|
|
|
- nwy_sleep(1000);
|
|
|
CTL_LCD_BL(0);
|
|
|
CTL_POWER_HOLD(0);
|
|
|
+ shutSysNow();
|
|
|
}
|
|
|
}else kcnt=0;
|
|
|
}
|
|
@@ -163,7 +167,6 @@ void uiShowShutOptionResponse(void){
|
|
|
/*触发关机操作*/
|
|
|
static void pwrShutPro(unsigned int exeInterval){
|
|
|
static char shutFlag=0;
|
|
|
-
|
|
|
pwrKeyDetect(exeInterval);
|
|
|
if(getAppObjStatus(ASLEEP_PWR) == 0) return;
|
|
|
CTL_LCD_BL(1);
|
|
@@ -183,8 +186,7 @@ static void pwrShutPro(unsigned int exeInterval){
|
|
|
MSG_INFO(1, "Release pwr");
|
|
|
guiFillRect(0,0,GLCD_WIDTH-1,GLCD_HEIGHT-1,guiGetBackColor());//防止下次开机能看到残留
|
|
|
CTL_POWER_HOLD(0);
|
|
|
- nwy_sleep(100);
|
|
|
- msgAtSend("AT+TRB=2\r\n");//软件复位模块
|
|
|
+ shutSysNow();
|
|
|
}
|
|
|
void AntModeRun(void){
|
|
|
#ifdef ENABLE_ANT_MODE
|
|
@@ -221,10 +223,14 @@ void appRun(void){
|
|
|
//修改音频输出增益配置
|
|
|
modifyAudioOutGainConfig();
|
|
|
//设置一下TTS
|
|
|
+ msgAtSend("AT+HTTSSPEED=1284,-20000\r\n");//设置TTS音量
|
|
|
+ msgAtSend("AT+HTTSSPEED=1282,-5000\r\n");//设置TTS语速
|
|
|
+ #if 0
|
|
|
msgAtSend("AT+HTTSSPEED=0,-30000\r\n");//设置TTS音量
|
|
|
- msgAtSend("AT+HTTSSPEED=1,3000\r\n");//设置TTS语速
|
|
|
+ msgAtSend("AT+HTTSSPEED=1,-5000\r\n");//设置TTS语速
|
|
|
msgAtSend("AT+HTTSSPEED=4,2\r\n");
|
|
|
msgAtSend("AT+HTTSSPEED=18, 2\r\n");
|
|
|
+ #endif
|
|
|
msgAtSend("AT+NICEUSE=0\r\n");//不需要快速体验(收话过程抢麦不会跳动话权显示)
|
|
|
//查询一下POC版本号
|
|
|
msgAtSend("AT+POC_VER\r\n");
|