优化demo程序
Change-Id: I9fd50ffddcbf68c0a5a85d0b0b7a75238a9572ea
diff --git a/mbtk/test/liblynq_lib/lynq_nw_test.c b/mbtk/test/liblynq_lib/lynq_nw_test.c
old mode 100644
new mode 100755
index 57f9c47..bad1d68
--- a/mbtk/test/liblynq_lib/lynq_nw_test.c
+++ b/mbtk/test/liblynq_lib/lynq_nw_test.c
@@ -420,12 +420,34 @@
phase 3 不限制次数的秒数设置,第三阶段不限制次数以20秒为一次的间隔搜网
如果要关闭OOS配置,则把min step max 全部配置为0即可
*/
+ int p1,p2,p3;
+ printf("input phase 1 number:\n");
+ memset(operator, 0x0, 3);
+ fgets(operator, 3, stdin);
+ fflush(stdin);
+ p1 = atoi(operator);
+ printf("phase 1 number:%s\n", operator);
+
+ printf("input phase 2 number:\n");
+ memset(operator, 0x0, 3);
+ fgets(operator, 3, stdin);
+ fflush(stdin);
+ p2 = atoi(operator);
+ printf("phase 2 number:%s\n", operator);
+
+ printf("input phase 3 number:\n");
+ memset(operator, 0x0, 3);
+ fgets(operator, 3, stdin);
+ fflush(stdin);
+ p3 = atoi(operator);
+ printf("phase 3 number:%s\n", operator);
+
pt_info_s.type = QSER_NW_OOS_CFG_TYPE_FULL_BAND_SCAN;//平台提供自定义配置搜网时间间隔
{
- pt_info_s.u.full_band_scan_info.t_min = 10;//phase 1
- pt_info_s.u.full_band_scan_info.t_step = 15;//phase 2
+ pt_info_s.u.full_band_scan_info.t_min = p1;//phase 1
+ pt_info_s.u.full_band_scan_info.t_step = p2;//phase 2
pt_info_s.u.full_band_scan_info.t_num = 0;//可以不配置,并没有使用
- pt_info_s.u.full_band_scan_info.t_max = 20;//phase 3
+ pt_info_s.u.full_band_scan_info.t_max = p3;//phase 3
}
printf("set OOS %d %d %d \n",pt_info_s.u.full_band_scan_info.t_min, pt_info_s.u.full_band_scan_info.t_step, pt_info_s.u.full_band_scan_info.t_max);
//pt_info_s.type = QSER_NW_OOS_CFG_TYPE_FAST_SCAN;平台本身有历史频点优先处理的逻辑(无接口不需要我们进行处理)