1.短信指令

2.模块升级的一些api
3.删除一些api
This commit is contained in:
payton 2023-07-21 11:13:23 +08:00
parent c7a9708551
commit 96a50de731
5 changed files with 14 additions and 8 deletions

View File

@ -1293,14 +1293,13 @@ BOOL sf_is_4g_module_usb_update_file_exist(UINT8 *updateFname)
{ {
if(strcmp(ptr->d_name,".")==0 || strcmp(ptr->d_name,"..")==0) ///current dir OR parrent dir if(strcmp(ptr->d_name,".")==0 || strcmp(ptr->d_name,"..")==0) ///current dir OR parrent dir
continue; continue;
else if(ptr->d_type == 8) ///file else if(ptr->d_type == 4) ///dir
{ {
if(SF_STRNCMP(ptr->d_name, puiPara->ModuleVer, 6) == 0) if(SF_STRNCMP(ptr->d_name, puiPara->ModuleVer, 6) == 0)
{ {
SF_SPRINTF(updateFname, "%s%s", SF_SD_ROOT, ptr->d_name); SF_SPRINTF(updateFname, "%s%s", SF_SD_ROOT, ptr->d_name);
closedir(dirp); closedir(dirp);
printf("updateFname:%s\n", updateFname); printf("[%s:%d] updateFname:%s\n", __FUNCTION__, __LINE__, updateFname);
return TRUE; return TRUE;
} }
} }

View File

@ -45,7 +45,7 @@ extern "C" {
#include "sf_message_queue.h" #include "sf_message_queue.h"
#include "sf_param_common.h" #include "sf_param_common.h"
#include "sf_storeMng.h" #include "sf_storeMng.h"
#include "FileSysTsk.h"
#define MAKE_FDT_PARTITION_PATH(x) "/nor/partition_"#x #define MAKE_FDT_PARTITION_PATH(x) "/nor/partition_"#x
#define MAKE_FDT_PARTITION_PATH_HELPER(X) MAKE_FDT_PARTITION_PATH(X) #define MAKE_FDT_PARTITION_PATH_HELPER(X) MAKE_FDT_PARTITION_PATH(X)

View File

@ -30,7 +30,7 @@
#include <sf_device.h> #include <sf_device.h>
#include <sf_dev_usb.h> #include <sf_dev_usb.h>
#include "sf_common.h" #include "sf_common.h"
#include "sf_sms.h"
#ifdef __cplusplus #ifdef __cplusplus
#if __cplusplus #if __cplusplus
extern "C" { extern "C" {
@ -363,6 +363,7 @@ unsigned char sf_mcu_reg_set(MCUParam_t attrId, unsigned char val)
SINT32 isCardFull = sf_is_card_full(); SINT32 isCardFull = sf_is_card_full();
//CameraBootSetting_t* pCameraBootSetting = CameraBootSettingGetHandle(); //CameraBootSetting_t* pCameraBootSetting = CameraBootSettingGetHandle();
sf_set_sim_insert(1);//Remove hardware detection SIM card sf_set_sim_insert(1);//Remove hardware detection SIM card
//printf(LIGHT_RED "[%s:%d] Firmware compile time:%s %s VER:%s"NONE, __FUNCTION__, __LINE__, __DATE__, __TIME__,SF_BASE_VERSION);
MLOGI("Firmware compile time:%s %s VER:%s\n", __DATE__, __TIME__,SF_BASE_VERSION); MLOGI("Firmware compile time:%s %s VER:%s\n", __DATE__, __TIME__,SF_BASE_VERSION);
MLOGI("DailyReportSwitch=%d %02d:%02d\n", puiPara->DailyReportSwitch, puiPara->DailyReportTime2.Hour, puiPara->DailyReportTime2.Min); MLOGI("DailyReportSwitch=%d %02d:%02d\n", puiPara->DailyReportSwitch, puiPara->DailyReportTime2.Hour, puiPara->DailyReportTime2.Min);
MLOGI("isUsb = %d isCard = %d isCardFull = %d val = %d simCardInsert = %d start mode = %d\n", isUsb, isCard, isCardFull, val, simCardInsert, sf_poweron_type_get()); MLOGI("isUsb = %d isCard = %d isCardFull = %d val = %d simCardInsert = %d start mode = %d\n", isUsb, isCard, isCardFull, val, simCardInsert, sf_poweron_type_get());
@ -592,10 +593,17 @@ unsigned char sf_mcu_reg_set(MCUParam_t attrId, unsigned char val)
if(simCardInsert && (puiPara->NetWorkNeedSearch) if(simCardInsert && (puiPara->NetWorkNeedSearch)
&& ((PowerOnMode == PWR_ON_AUTO) || (PowerOnMode == PWR_ON_SETUP) || (PowerOnMode == PWR_ON_DAILY_REPORT)))/* SET->ON, OFF->ON*/ && ((PowerOnMode == PWR_ON_AUTO) || (PowerOnMode == PWR_ON_SETUP) || (PowerOnMode == PWR_ON_DAILY_REPORT)))/* SET->ON, OFF->ON*/
{
temp = 1; temp = 1;
else if(SmsCheck) }
else if(sf_get_camera_restart()){
temp = 1;
}
else if(SmsCheck){
temp = 2; temp = 2;
}
if (!(sf_get_pir_statu_flag() || (PowerOnMode == PWR_ON_AUTO))) if (!(sf_get_pir_statu_flag() || (PowerOnMode == PWR_ON_AUTO)))
temp |= (val == APP_POWER_OFF_BATT_EMPTY) << 6; temp |= (val == APP_POWER_OFF_BATT_EMPTY) << 6;

View File

@ -410,6 +410,6 @@ void sf_set_mcu_ver(unsigned short mcuVersion);
SINT32 sf_sys_rtc_time_set(SF_PARA_TIME_S* pstDateTime); SINT32 sf_sys_rtc_time_set(SF_PARA_TIME_S* pstDateTime);
void sf_set_ae_night_mode(UINT8 isNightMode); void sf_set_ae_night_mode(UINT8 isNightMode);
UINT32 sf_get_send_pic_sieze(void); UINT32 sf_get_send_pic_sieze(void);
void sf_mcu_version_get(UINT8 *mcuVer);
#endif #endif

View File

@ -10,7 +10,6 @@ typedef enum sf_MSG_FORMAT_SD_e
}SF_MSG_FORMAT_SD_E; }SF_MSG_FORMAT_SD_E;
BOOL sf_is_card_full(void); BOOL sf_is_card_full(void);
UINT32 sf_check_card_full(void);
typedef BOOL (*SF_CALLBACK_SD_CMD)(void); typedef BOOL (*SF_CALLBACK_SD_CMD)(void);