comparison autocal/txchkmain.c @ 55:b313884c79fd

autocal Tx: txpwr-cal-setup factored out of fc-rfcal-txcheck
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 27 May 2017 19:44:08 +0000
parents 21f6dba5c4df
children 784ce9f3a80a
comparison
equal deleted inserted replaced
54:21f6dba5c4df 55:b313884c79fd
53 else 53 else
54 arfcn = band->default_arfcn; 54 arfcn = band->default_arfcn;
55 return(0); 55 return(0);
56 } 56 }
57 57
58 prepare_rf_test_system()
59 {
60 char cmd[80];
61
62 printf("Preparing RF test system for %s MHz Tx calibration\n",
63 selected_band->name);
64 sprintf(cmd, "txpwr-cal-setup %s %u\n", selected_band->name, arfcn);
65 tsid_command(cmd);
66 return(0);
67 }
68
69 main(argc, argv) 58 main(argc, argv)
70 char **argv; 59 char **argv;
71 { 60 {
72 unsigned plnum; 61 unsigned plnum;
73 double meas; 62 double meas;
75 socket_pathname_options(argc, argv); 64 socket_pathname_options(argc, argv);
76 finish_cmdline(argc, argv); 65 finish_cmdline(argc, argv);
77 connect_rvinterf_socket(); 66 connect_rvinterf_socket();
78 connect_tsid_socket(); 67 connect_tsid_socket();
79 setlinebuf(stdout); /* to allow logging with tee */ 68 setlinebuf(stdout); /* to allow logging with tee */
80 prepare_rf_test_system(); 69 printf("Preparing RF test system for %s MHz Tx calibration\n",
70 selected_band->name);
71 do_txpwr_cal_setup(selected_band->name, arfcn);
81 72
82 printf("Putting the DUT into Test Mode\n"); 73 printf("Putting the DUT into Test Mode\n");
83 do_tms(1); 74 do_tms(1);
84 do_rfpw(STD_BAND_FLAG, selected_band->rfpw_std_band); 75 do_rfpw(STD_BAND_FLAG, selected_band->rfpw_std_band);
85 do_rfpw(TCH_ARFCN, arfcn); 76 do_rfpw(TCH_ARFCN, arfcn);