diff --git a/code/application/source/cardv/SrcCode/PrjCfg_HUNTING_S550.h b/code/application/source/cardv/SrcCode/PrjCfg_HUNTING_S550.h index 758e40df8..9dda4649b 100755 --- a/code/application/source/cardv/SrcCode/PrjCfg_HUNTING_S550.h +++ b/code/application/source/cardv/SrcCode/PrjCfg_HUNTING_S550.h @@ -979,6 +979,8 @@ #endif #define SF_NO_SD_SEND ENABLE #define SF_SD_LOG_INFO_FILENAME "/tmp/SD.txt" + +#define SF_4G_MODE_TEST DISABLE //////////////////////sf end/////////////////////////////// /******************************************************************************************* diff --git a/code/application/source/cardv/SrcCode/UIWnd/LVGL_SPORTCAM/UIInfo/UICfgDefault.h b/code/application/source/cardv/SrcCode/UIWnd/LVGL_SPORTCAM/UIInfo/UICfgDefault.h index b487b056f..649e12777 100755 --- a/code/application/source/cardv/SrcCode/UIWnd/LVGL_SPORTCAM/UIInfo/UICfgDefault.h +++ b/code/application/source/cardv/SrcCode/UIWnd/LVGL_SPORTCAM/UIInfo/UICfgDefault.h @@ -198,14 +198,21 @@ #else #define DEFAULT_BOOT_WORK_MODE SF_CAM_MODE_PHOTO// #define DEFAULT_NET_WORK_NEED_SEARCH SF_ON -#define DEFAULT_AUTO_OFF_SWITCH SF_ON #define DEFAULT_PIR_SWITCH SF_ON #define DEFAULT_PIR_SENSITIVITY SF_PIR_SENSITIVITY_7 #define DEFAULT_TIMELAPSE_SWITCH SF_OFF #if SF_BATTERY_TEST == ENABLE #define DEFAULT_GPRS_SWITCH SF_OFF #else +#if SF_4G_MODE_TEST == ENABLE +#define DEFAULT_GPRS_SWITCH SF_OFF +#define DEFAULT_GPRS_MODE SF_REMOTE_CONTROL_REAL_TIME +#define DEFAULT_AUTO_OFF_SWITCH SF_OFF +#else #define DEFAULT_GPRS_SWITCH SF_ON +#define DEFAULT_GPRS_MODE SF_REMOTE_CONTROL_OFF +#define DEFAULT_AUTO_OFF_SWITCH SF_ON +#endif #endif #endif @@ -217,7 +224,6 @@ #define DEFAULT_SEND_TYPE SF_SEND_TIMELY #define DEFAULT_PIR_DELAY_SWITCH SF_OFF -#define DEFAULT_GPRS_MODE SF_REMOTE_CONTROL_OFF #define DEFAULT_DAILY_REPORT_SWITCH SF_ON #define DEFAULT_GPS_SWITCH SF_ON //#if defined(_MODEL_565_HUNTING_EVB_LINUX_4G_68CS_) diff --git a/code/application/source/sf_app/code/source/systemMng/sf_commu_mcu_reg.c b/code/application/source/sf_app/code/source/systemMng/sf_commu_mcu_reg.c index 128eb6cd4..7690d8305 100755 --- a/code/application/source/sf_app/code/source/systemMng/sf_commu_mcu_reg.c +++ b/code/application/source/sf_app/code/source/systemMng/sf_commu_mcu_reg.c @@ -646,7 +646,10 @@ unsigned char sf_mcu_reg_set(MCUParam_t attrId, unsigned char val) { //sf_pdp_flg_set(0); } - + #if SF_4G_MODE_TEST == ENABLE + temp |= 0x40; /*bit6=1,instant mode*/ + temp |= 0x80; + #endif mcuData[i++] = temp; mcuReg[i] = DIGITAL_PIR_SENSITIVITY; diff --git a/rtos/code/application/source/cardv/SrcCode/PrjCfg_HUNTING_S550.h b/rtos/code/application/source/cardv/SrcCode/PrjCfg_HUNTING_S550.h index fe543acaa..04237bb41 100755 --- a/rtos/code/application/source/cardv/SrcCode/PrjCfg_HUNTING_S550.h +++ b/rtos/code/application/source/cardv/SrcCode/PrjCfg_HUNTING_S550.h @@ -986,6 +986,8 @@ #define ANR_FUNC ENABLE #endif #define SF_NO_SD_SEND ENABLE +#define SF_4G_MODE_TEST DISABLE + ////////////////////sf end//////////////////////////////// diff --git a/rtos/code/application/source/cardv/SrcCode/UIWnd/LVGL_SPORTCAM/UIInfo/UICfgDefault.h b/rtos/code/application/source/cardv/SrcCode/UIWnd/LVGL_SPORTCAM/UIInfo/UICfgDefault.h index 59f1a5eec..45f88dc89 100644 --- a/rtos/code/application/source/cardv/SrcCode/UIWnd/LVGL_SPORTCAM/UIInfo/UICfgDefault.h +++ b/rtos/code/application/source/cardv/SrcCode/UIWnd/LVGL_SPORTCAM/UIInfo/UICfgDefault.h @@ -198,14 +198,22 @@ #else #define DEFAULT_BOOT_WORK_MODE SF_CAM_MODE_PHOTO// #define DEFAULT_NET_WORK_NEED_SEARCH SF_ON -#define DEFAULT_AUTO_OFF_SWITCH SF_ON #define DEFAULT_PIR_SWITCH SF_ON #define DEFAULT_PIR_SENSITIVITY SF_PIR_SENSITIVITY_7 #define DEFAULT_TIMELAPSE_SWITCH SF_OFF #if SF_BATTERY_TEST == ENABLE #define DEFAULT_GPRS_SWITCH SF_OFF #else +#if SF_4G_MODE_TEST == ENABLE +#define DEFAULT_GPRS_SWITCH SF_OFF +#define DEFAULT_GPRS_MODE SF_REMOTE_CONTROL_REAL_TIME +#define DEFAULT_AUTO_OFF_SWITCH SF_OFF +#else #define DEFAULT_GPRS_SWITCH SF_ON +#define DEFAULT_GPRS_MODE SF_REMOTE_CONTROL_OFF +#define DEFAULT_AUTO_OFF_SWITCH SF_ON +#endif + #endif #endif @@ -217,7 +225,6 @@ #define DEFAULT_SEND_TYPE SF_SEND_TIMELY #define DEFAULT_PIR_DELAY_SWITCH SF_OFF -#define DEFAULT_GPRS_MODE SF_REMOTE_CONTROL_OFF #define DEFAULT_DAILY_REPORT_SWITCH SF_ON #define DEFAULT_GPS_SWITCH SF_ON //#if defined(_MODEL_565_HUNTING_EVB_LINUX_4G_68CS_)