diff --git a/code/application/source/sf_app/code/source/4gMng/sf_sms.c b/code/application/source/sf_app/code/source/4gMng/sf_sms.c index c364e7940..274165054 100755 --- a/code/application/source/sf_app/code/source/4gMng/sf_sms.c +++ b/code/application/source/sf_app/code/source/4gMng/sf_sms.c @@ -2490,7 +2490,9 @@ SINT32 sf_power_off_check_sd(void) { UIMenuStoreInfo *puiPara = sf_app_ui_para_get(); SF_STORE_ATTR_S storeattrs = {0}; + MMC_DEV_TYPE mmc_dev = MMC_DEV_NO; + mmc_dev = sf_get_strg_dev(); /******************** SD cycle *************************/ if((0 == sf_check_sd()) || (sf_get_mode_flag() == 1)) { @@ -2526,6 +2528,10 @@ SINT32 sf_power_off_check_sd(void) puiPara->SdFailCount++; sf_sleep_ms(100); } + if(mmc_dev == MMC_DEV_EMMC) + { + printf("eMMC is FULL!\n"); + } } else { diff --git a/code/application/source/sf_app/code/source/app/sf_common.c b/code/application/source/sf_app/code/source/app/sf_common.c index e9d91bad8..b0ceaae2d 100755 --- a/code/application/source/sf_app/code/source/app/sf_common.c +++ b/code/application/source/sf_app/code/source/app/sf_common.c @@ -634,6 +634,10 @@ static SINT32 sfStrgDevOnActionMount(int dev_id, int result) { sf_app_mcu_updata_start(); } + if(dev_id == MMC_DEV_EMMC) + { + printf("EMMC has Mounted!\r\n"); + } break; case FST_STA_DISK_UNFORMAT: sf_statistics_param_load(sf_statistics_param_get()); @@ -646,6 +650,10 @@ static SINT32 sfStrgDevOnActionMount(int dev_id, int result) case FST_STA_CARD_ERR: sf_sys_status_led_set(SF_LED_SYS_STATE_SD_ERROR); MLOGI("^Rcard-%d mount FAIL: Card Error\r\n", dev_id + 1); + if(dev_id == MMC_DEV_EMMC) + { + printf("Mount eMMC Fail!\r\n"); + } break; default: MLOGI("^Rcard-%d mount FAIL: ErrID=%d\r\n", dev_id + 1, status); @@ -688,6 +696,7 @@ static SINT32 sfStrgDevEmmcHandler(int cb_evt, int dev_id, int result) { case CMD_SD_STRG_CB_UNKNOWN: sf_set_card_full(1); + printf("eMMC is FULL!\r\n"); break; case CMD_SD_STRG_CB_MOUNT_FINISH: diff --git a/code/application/source/sf_app/code/source/app/sf_service.c b/code/application/source/sf_app/code/source/app/sf_service.c index 0604af114..0768909ee 100755 --- a/code/application/source/sf_app/code/source/app/sf_service.c +++ b/code/application/source/sf_app/code/source/app/sf_service.c @@ -91,15 +91,17 @@ SINT32 app_ttyusb_IsOpen(void) { UINT8 i = 0; - for (i = 0; i < 40; i++) { + for (i = 0; i < 150; i++) { if (access("/dev/ttyUSB2", F_OK) == SF_SUCCESS) { printf("tty usb ko exist!\r\n"); + printf("4G Init OK\r\n"); break; } else { usleep(100 * 1000); - if(39 == i) + if(149 == i) { MLOGE("NO ttyUSB dev!!\n"); + printf("4G Init ERR\r\n"); } } } @@ -119,6 +121,7 @@ SINT32 app_ttyusb_IsOpen(void) { { MLOGE("-------ttyUSB retry init fail!\n"); s32ret = SF_TTY_ERROR_OPEN; + printf("4G Init Fail, retry\r\n"); break; } } diff --git a/code/application/source/sf_app/code/source/wifi/sf_wifi_svr.c b/code/application/source/sf_app/code/source/wifi/sf_wifi_svr.c index 6929ac9b4..87b5d472b 100755 --- a/code/application/source/sf_app/code/source/wifi/sf_wifi_svr.c +++ b/code/application/source/sf_app/code/source/wifi/sf_wifi_svr.c @@ -2781,6 +2781,14 @@ void sf_wifi_hw_init(void) } ret = system("ifconfig wlan0 192.168.1.1 netmask 255.255.255.0 up"); + if(ret == 0) + { + printf("Wifi Init OK\r\n"); + } + else + { + printf("Wifi Init ERR\r\n"); + } //ret = system("hostapd -ddd /appfs/etc/hostapd/hostapd-8189.conf &"); //ret = system("udhcpd /appfs/etc/udhcpd-8189.conf"); //FILE *fp;