Commit 7ddfc835 authored by Florian Kaltenberger's avatar Florian Kaltenberger

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6516 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 2da8f3f8
...@@ -474,7 +474,7 @@ void phy_scope_UE(FD_lte_phy_scope_ue *form, ...@@ -474,7 +474,7 @@ void phy_scope_UE(FD_lte_phy_scope_ue *form,
frame, frame,
subframe); subframe);
} else { } else {
coded_bits_per_codeword = frame_parms->N_RB_DL*12*get_Qm(mcs)*(frame_parms->symbols_per_tti); coded_bits_per_codeword = 0; //frame_parms->N_RB_DL*12*get_Qm(mcs)*(frame_parms->symbols_per_tti);
} }
I = (float*) calloc(nsymb_ce*2,sizeof(float)); I = (float*) calloc(nsymb_ce*2,sizeof(float));
......
...@@ -114,6 +114,10 @@ unsigned short config_frames[4] = {2,9,11,13}; ...@@ -114,6 +114,10 @@ unsigned short config_frames[4] = {2,9,11,13};
#include "enb_config.h" #include "enb_config.h"
//#include "PHY/TOOLS/time_meas.h" //#include "PHY/TOOLS/time_meas.h"
#ifndef OPENAIR2
#include "UTIL/OTG/otg_vars.h"
#endif
#if defined(ENABLE_ITTI) #if defined(ENABLE_ITTI)
# include "intertask_interface_init.h" # include "intertask_interface_init.h"
# include "create_tasks.h" # include "create_tasks.h"
...@@ -472,8 +476,8 @@ static void *scope_thread(void *arg) { ...@@ -472,8 +476,8 @@ static void *scope_thread(void *arg) {
char stats_buffer[16384]; char stats_buffer[16384];
# ifdef ENABLE_XFORMS_WRITE_STATS # ifdef ENABLE_XFORMS_WRITE_STATS
FILE *UE_stats, *eNB_stats; FILE *UE_stats, *eNB_stats;
int len = 0;
# endif # endif
int len = 0;
struct sched_param sched_param; struct sched_param sched_param;
int UE_id; int UE_id;
...@@ -491,10 +495,7 @@ static void *scope_thread(void *arg) { ...@@ -491,10 +495,7 @@ static void *scope_thread(void *arg) {
while (!oai_exit) { while (!oai_exit) {
if (UE_flag==1) { if (UE_flag==1) {
# ifdef ENABLE_XFORMS_WRITE_STATS len = dump_ue_stats (PHY_vars_UE_g[0][0], stats_buffer, 0, mode,rx_input_level_dBm);
len =
# endif
dump_ue_stats (PHY_vars_UE_g[0][0], stats_buffer, 0, mode,rx_input_level_dBm);
fl_set_object_label(form_stats->stats_text, stats_buffer); fl_set_object_label(form_stats->stats_text, stats_buffer);
phy_scope_UE(form_ue[0], phy_scope_UE(form_ue[0],
...@@ -503,16 +504,14 @@ static void *scope_thread(void *arg) { ...@@ -503,16 +504,14 @@ static void *scope_thread(void *arg) {
0,7); 0,7);
} else { } else {
# ifdef ENABLE_XFORMS_WRITE_STATS #ifdef OPENAIR2
len = len = dump_eNB_l2_stats (stats_buffer, 0);
# endif
dump_eNB_l2_stats (stats_buffer, 0);
fl_set_object_label(form_stats_l2->stats_text, stats_buffer); fl_set_object_label(form_stats_l2->stats_text, stats_buffer);
#endif
# ifdef ENABLE_XFORMS_WRITE_STATS len = dump_eNB_stats (PHY_vars_eNB_g[0][0], stats_buffer, 0);
len = if (MAX_NUM_CCs>1)
# endif len += dump_eNB_stats (PHY_vars_eNB_g[0][1], &stats_buffer[len], 0);
dump_eNB_stats (PHY_vars_eNB_g[0][0], stats_buffer, 0);
fl_set_object_label(form_stats->stats_text, stats_buffer); fl_set_object_label(form_stats->stats_text, stats_buffer);
for(UE_id=0;UE_id<scope_enb_num_ue;UE_id++) { for(UE_id=0;UE_id<scope_enb_num_ue;UE_id++) {
...@@ -759,6 +758,7 @@ void *l2l1_task(void *arg) ...@@ -759,6 +758,7 @@ void *l2l1_task(void *arg)
break; break;
case TERMINATE_MESSAGE: case TERMINATE_MESSAGE:
printf("received terminate message\n");
oai_exit=1; oai_exit=1;
itti_exit_task (); itti_exit_task ();
break; break;
...@@ -1719,6 +1719,8 @@ static void *eNB_thread(void *arg) ...@@ -1719,6 +1719,8 @@ static void *eNB_thread(void *arg)
} }
#endif
static void get_options (int argc, char **argv) { static void get_options (int argc, char **argv) {
int c; int c;
// char line[1000]; // char line[1000];
...@@ -1835,6 +1837,7 @@ static void get_options (int argc, char **argv) { ...@@ -1835,6 +1837,7 @@ static void get_options (int argc, char **argv) {
case 't': case 't':
target_ul_mcs = atoi (optarg); target_ul_mcs = atoi (optarg);
break; break;
#ifdef OPENAIR2
case 'P': case 'P':
/* enable openair packet tracer (OPT)*/ /* enable openair packet tracer (OPT)*/
if ((strcmp(optarg, "wireshark") == 0) || if ((strcmp(optarg, "wireshark") == 0) ||
...@@ -1851,7 +1854,7 @@ static void get_options (int argc, char **argv) { ...@@ -1851,7 +1854,7 @@ static void get_options (int argc, char **argv) {
printf("Possible values are either wireshark or pcap\n"); printf("Possible values are either wireshark or pcap\n");
} }
break; break;
#endif
case 'V': case 'V':
ouput_vcd = 1; ouput_vcd = 1;
break; break;
...@@ -2186,6 +2189,7 @@ int main(int argc, char **argv) { ...@@ -2186,6 +2189,7 @@ int main(int argc, char **argv) {
if (opp_enabled ==1) if (opp_enabled ==1)
reset_opp_meas(); reset_opp_meas();
#ifdef OPENAIR2
if (opt_type != OPT_NONE) { if (opt_type != OPT_NONE) {
radio_type_t radio_type; radio_type_t radio_type;
if (frame_parms[0]->frame_type == FDD) if (frame_parms[0]->frame_type == FDD)
...@@ -2195,6 +2199,7 @@ int main(int argc, char **argv) { ...@@ -2195,6 +2199,7 @@ int main(int argc, char **argv) {
if (init_opt(NULL, NULL, NULL, radio_type) == -1) if (init_opt(NULL, NULL, NULL, radio_type) == -1)
LOG_E(OPT,"failed to run OPT \n"); LOG_E(OPT,"failed to run OPT \n");
} }
#endif
#if defined(ENABLE_ITTI) #if defined(ENABLE_ITTI)
if (UE_flag == 1) { if (UE_flag == 1) {
...@@ -2553,9 +2558,12 @@ int main(int argc, char **argv) { ...@@ -2553,9 +2558,12 @@ int main(int argc, char **argv) {
} }
printf("ITTI tasks created\n"); printf("ITTI tasks created\n");
#endif #endif
#ifdef OPENAIR2
printf("Filling UE band info\n"); printf("Filling UE band info\n");
if (UE_flag==1) if (UE_flag==1)
fill_ue_band_info(); fill_ue_band_info();
#endif
/* #ifdef OPENAIR2 /* #ifdef OPENAIR2
//if (otg_enabled) { //if (otg_enabled) {
...@@ -2905,8 +2913,10 @@ int main(int argc, char **argv) { ...@@ -2905,8 +2913,10 @@ int main(int argc, char **argv) {
if (ouput_vcd) if (ouput_vcd)
vcd_signal_dumper_close(); vcd_signal_dumper_close();
#ifdef OPENAIR2
if (opt_type != OPT_NONE) if (opt_type != OPT_NONE)
terminate_opt(); terminate_opt();
#endif
logClean(); logClean();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment