|
@@ -357,8 +357,8 @@ static unsigned char gtModeCnt=0;
|
|
keyInArow=1;
|
|
keyInArow=1;
|
|
lockCnt++;
|
|
lockCnt++;
|
|
if(lockCnt==3){
|
|
if(lockCnt==3){
|
|
- keyToneStart(0);
|
|
|
|
-// lockProcess(); //舍弃加锁功能
|
|
|
|
|
|
+ keyToneStart(0);
|
|
|
|
+// lockProcess(); //舍弃加锁功能
|
|
}
|
|
}
|
|
pwrDetRead(0);
|
|
pwrDetRead(0);
|
|
break;
|
|
break;
|
|
@@ -634,6 +634,7 @@ void appRun(void){
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
msgToModem("AT+GMR\r\n");//查询模块版本
|
|
msgToModem("AT+GMR\r\n");//查询模块版本
|
|
|
|
|
|
while(sutApp.pocParaDone==0){
|
|
while(sutApp.pocParaDone==0){
|
|
@@ -676,6 +677,7 @@ void appRun(void){
|
|
}
|
|
}
|
|
newPara.ChangeCard=0;
|
|
newPara.ChangeCard=0;
|
|
sysIniSave();
|
|
sysIniSave();
|
|
|
|
+
|
|
//msgAtSend("AT+POC=7B00000064\r\n");
|
|
//msgAtSend("AT+POC=7B00000064\r\n");
|
|
msgToModem("ATE0\r\n");
|
|
msgToModem("ATE0\r\n");
|
|
msgToModem("AT+AUDCH=0,0\r\n");//TEST 因为模块默认 通道为2,0
|
|
msgToModem("AT+AUDCH=0,0\r\n");//TEST 因为模块默认 通道为2,0
|
|
@@ -691,13 +693,15 @@ for(;;){
|
|
ledsProCtl();
|
|
ledsProCtl();
|
|
adcRead(APP_SUB_DIV_TIME);
|
|
adcRead(APP_SUB_DIV_TIME);
|
|
uiProcess(APP_SUB_DIV_TIME);
|
|
uiProcess(APP_SUB_DIV_TIME);
|
|
- gpsProCtl(APP_SUB_DIV_TIME);
|
|
|
|
- GpsInternalChange(APP_SUB_DIV_TIME);
|
|
|
|
|
|
+ if(GPS_HADRENABLE==1){
|
|
|
|
+ gpsProCtl(APP_SUB_DIV_TIME);
|
|
|
|
+ GpsInternalChange(APP_SUB_DIV_TIME);
|
|
|
|
+ }
|
|
#ifndef ANT_TEST
|
|
#ifndef ANT_TEST
|
|
pocProCtl(APP_SUB_DIV_TIME);
|
|
pocProCtl(APP_SUB_DIV_TIME);
|
|
#endif
|
|
#endif
|
|
NoteCheck(APP_SUB_DIV_TIME);
|
|
NoteCheck(APP_SUB_DIV_TIME);
|
|
- GpsInternalChange(APP_SUB_DIV_TIME);
|
|
|
|
|
|
+ //GpsInternalChange(APP_SUB_DIV_TIME);
|
|
ShouHuProcess(APP_SUB_DIV_TIME);
|
|
ShouHuProcess(APP_SUB_DIV_TIME);
|
|
//HookGroupUserInfo();
|
|
//HookGroupUserInfo();
|
|
HookVolToutCheck();
|
|
HookVolToutCheck();
|
|
@@ -877,9 +881,9 @@ void splVolumeSet(unsigned char level){
|
|
|
|
|
|
// memset(info, 0, sizeof(info));
|
|
// memset(info, 0, sizeof(info));
|
|
snprintf(info, sizeof(info), "AT+CLVL=%d\r\n", level);
|
|
snprintf(info, sizeof(info), "AT+CLVL=%d\r\n", level);
|
|
- msgAtSend(info);
|
|
|
|
-// snprintf(info, sizeof(info), "AT+CLVL=%d\r\n", level);
|
|
|
|
-// msgAtSend(info);
|
|
|
|
|
|
+ msgToModem(info);
|
|
|
|
+ snprintf(info, sizeof(info), "AT+CRSL=%d\r\n", level);
|
|
|
|
+ msgToModem(info);
|
|
//// broad_set_vol(BND_VOICE, level/10);
|
|
//// broad_set_vol(BND_VOICE, level/10);
|
|
// broad_set_vol(BND_TTS, level/12);//10
|
|
// broad_set_vol(BND_TTS, level/12);//10
|
|
// broad_set_vol(BND_TONE, level/12);
|
|
// broad_set_vol(BND_TONE, level/12);
|
|
@@ -902,8 +906,8 @@ void volAdjAction(char direction,unsigned char UIStatus){
|
|
else goto FLASH;
|
|
else goto FLASH;
|
|
}
|
|
}
|
|
|
|
|
|
-// splVolumeSet(newPara.spkVol*10);
|
|
|
|
-// MSG_INFO(1,"SPK_VOL:%d",newPara.spkVol*10);
|
|
|
|
|
|
+ splVolumeSet(newPara.spkVol*10);
|
|
|
|
+ MSG_INFO(1,"SPK_VOL:%d",newPara.spkVol*10);
|
|
// vol=broad_get_vol(BND_VOICE);
|
|
// vol=broad_get_vol(BND_VOICE);
|
|
// MSG_INFO(1,"voice_VO1L:%d",vol);
|
|
// MSG_INFO(1,"voice_VO1L:%d",vol);
|
|
// vol=broad_get_vol(BND_TTS);
|
|
// vol=broad_get_vol(BND_TTS);
|