test: verify NTP reachability and APP clock on device
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "http_downfile.h"
|
||||
#include "ota_post_update.h"
|
||||
#include "time_diag.h"
|
||||
#include "app_ntp_test.h"
|
||||
|
||||
//#define NTP_SERVER_DOMAIN "ntp.aliyun.com"
|
||||
|
||||
@@ -143,6 +144,7 @@ void ql_datacall_demo_thread(void *arvg)
|
||||
if(ret == 0)
|
||||
{
|
||||
talkingq_time_diag_log("pdp-active");
|
||||
app_ntp_test_start();
|
||||
ql_get_data_call_info(1, 0, &info);
|
||||
printf("info.profile_idx: %d\r\n", info.profile_idx);
|
||||
printf("info.ip_version: %d\r\n", info.ip_version);
|
||||
@@ -199,7 +201,7 @@ int app_net_mgt_init()
|
||||
// ql_rtos_semaphore_create(&g_ql_ntp_sem,0);
|
||||
|
||||
ql_rtc_set_nitz_mode(1);
|
||||
printf("[TIME-DIAG] nitz_enabled=1 app_ntp_enabled=0\r\n");
|
||||
printf("[TIME-DIAG] nitz_enabled=1 app_ntp_test=once_after_pdp\r\n");
|
||||
talkingq_time_diag_log("nitz-enabled");
|
||||
|
||||
ql_task_t appTaskRef = NULL;
|
||||
|
||||
Reference in New Issue
Block a user