Improve T-Tracer GUI for UE

Make PHY measurements diagrams larger for a better view, reduce PHY/MAC/RLC/PDCP/RRC textlog height
This commit is contained in:
alexjiao
2025-10-17 23:59:58 +08:00
parent 5df7d000f9
commit 4d372c5f58
+25 -25
View File
@@ -196,7 +196,7 @@ static void ue_main_gui(ue_gui *e, gui *g, event_handler *h, void *database,
view *v; view *v;
logger *l; logger *l;
main_window = new_toplevel_window(g, 1200, 900, "eNB tracer"); main_window = new_toplevel_window(g, 1200, 900, "UE tracer");
top_container = new_container(g, VERTICAL); top_container = new_container(g, VERTICAL);
widget_add_child(g, main_window, top_container, -1); widget_add_child(g, main_window, top_container, -1);
@@ -207,7 +207,7 @@ static void ue_main_gui(ue_gui *e, gui *g, event_handler *h, void *database,
/* logo */ /* logo */
widget_add_child(g, line, logo, -1); widget_add_child(g, line, logo, -1);
input_signal_plot = new_xy_plot(g, 256, 55, "input signal", 20); input_signal_plot = new_xy_plot(g, 512, 110, "input signal", 20);
widget_add_child(g, line, input_signal_plot, -1); widget_add_child(g, line, input_signal_plot, -1);
xy_plot_set_range(g, input_signal_plot, 0, 7680*10, 20, 70); xy_plot_set_range(g, input_signal_plot, 0, 7680*10, 20, 70);
input_signal_log = new_framelog(h, database, input_signal_log = new_framelog(h, database,
@@ -221,7 +221,7 @@ static void ue_main_gui(ue_gui *e, gui *g, event_handler *h, void *database,
logger_add_view(input_signal_log, input_signal_view); logger_add_view(input_signal_log, input_signal_view);
/* UE x PDSCH IQ data */ /* UE x PDSCH IQ data */
w = new_xy_plot(g, 55, 55, "", 50); w = new_xy_plot(g, 110, 110, "", 50);
e->pdsch_iq_ue_xy_plot = w; e->pdsch_iq_ue_xy_plot = w;
widget_add_child(g, line, w, -1); widget_add_child(g, line, w, -1);
xy_plot_set_range(g, w, -500, 500, -500, 500); xy_plot_set_range(g, w, -500, 500, -500, 500);
@@ -232,7 +232,7 @@ static void ue_main_gui(ue_gui *e, gui *g, event_handler *h, void *database,
e->pdsch_iq_ue_logger = l; e->pdsch_iq_ue_logger = l;
/* UE x estimated DL channel */ /* UE x estimated DL channel */
w = new_xy_plot(g, 280, 55, "", 50); w = new_xy_plot(g, 560, 110, "", 50);
e->dl_estimate_ue_xy_plot = w; e->dl_estimate_ue_xy_plot = w;
widget_add_child(g, line, w, -1); widget_add_child(g, line, w, -1);
xy_plot_set_range(g, w, 0, 512*10, -10, 80); xy_plot_set_range(g, w, 0, 512*10, -10, 80);
@@ -245,7 +245,7 @@ static void ue_main_gui(ue_gui *e, gui *g, event_handler *h, void *database,
e->dl_estimate_ue_logger = l; e->dl_estimate_ue_logger = l;
/* PHY Meas */ /* PHY Meas */
w = new_xy_plot(g, 128, 55, "", 50); w = new_xy_plot(g, 256, 110, "", 50);
e->phy_meas_xy_plot = w; e->phy_meas_xy_plot = w;
widget_add_child(g, line, w, -1); widget_add_child(g, line, w, -1);
xy_plot_set_range(g, w, 0, 1024*10, -130, 35); xy_plot_set_range(g, w, 0, 1024*10, -130, 35);
@@ -271,7 +271,7 @@ static void ue_main_gui(ue_gui *e, gui *g, event_handler *h, void *database,
/* UE x DL mcs */ /* UE x DL mcs */
line = new_container(g, HORIZONTAL); line = new_container(g, HORIZONTAL);
widget_add_child(g, top_container, line, -1); widget_add_child(g, top_container, line, -1);
w = new_xy_plot(g, 128, 55, "", 20); w = new_xy_plot(g, 192, 110, "", 20);
xy_plot_set_range(g, w, 0, 1024*10, -2, 30); xy_plot_set_range(g, w, 0, 1024*10, -2, 30);
e->dl_mcs_xy_plot = w; e->dl_mcs_xy_plot = w;
widget_add_child(g, line, w, -1); widget_add_child(g, line, w, -1);
@@ -282,7 +282,7 @@ static void ue_main_gui(ue_gui *e, gui *g, event_handler *h, void *database,
e->dl_mcs_logger = l; e->dl_mcs_logger = l;
/* UE x UL mcs */ /* UE x UL mcs */
w = new_xy_plot(g, 128, 55, "", 20); w = new_xy_plot(g, 192, 110, "", 20);
xy_plot_set_range(g, w, 0, 1024*10, -2, 30); xy_plot_set_range(g, w, 0, 1024*10, -2, 30);
e->ul_mcs_xy_plot = w; e->ul_mcs_xy_plot = w;
widget_add_child(g, line, w, -1); widget_add_child(g, line, w, -1);
@@ -295,7 +295,7 @@ static void ue_main_gui(ue_gui *e, gui *g, event_handler *h, void *database,
/* UE x PUSCH TX Power */ /* UE x PUSCH TX Power */
// line = new_container(g, HORIZONTAL); // line = new_container(g, HORIZONTAL);
// widget_add_child(g, top_container, line, -1); // widget_add_child(g, top_container, line, -1);
w = new_xy_plot(g, 128, 55, "", 20); w = new_xy_plot(g, 192, 110, "", 20);
e->pusch_power_xy_plot = w; e->pusch_power_xy_plot = w;
widget_add_child(g, line, w, -1); widget_add_child(g, line, w, -1);
xy_plot_set_range(g, w, 0, 1024*10, -30, 50); xy_plot_set_range(g, w, 0, 1024*10, -30, 50);
@@ -313,7 +313,7 @@ static void ue_main_gui(ue_gui *e, gui *g, event_handler *h, void *database,
/* UE x PUCCH TX Power */ /* UE x PUCCH TX Power */
// line = new_container(g, HORIZONTAL); // line = new_container(g, HORIZONTAL);
// widget_add_child(g, top_container, line, -1); // widget_add_child(g, top_container, line, -1);
w = new_xy_plot(g, 128, 55, "", 20); w = new_xy_plot(g, 192, 110, "", 20);
e->pucch_power_xy_plot = w; e->pucch_power_xy_plot = w;
widget_add_child(g, line, w, -1); widget_add_child(g, line, w, -1);
xy_plot_set_range(g, w, 0, 1024*10, -30, 50); xy_plot_set_range(g, w, 0, 1024*10, -30, 50);
@@ -329,7 +329,7 @@ static void ue_main_gui(ue_gui *e, gui *g, event_handler *h, void *database,
e->pucch_ampl_logger = l; e->pucch_ampl_logger = l;
/* UE x PDSCH energy */ /* UE x PDSCH energy */
w = new_xy_plot(g, 128, 55, "", 50); w = new_xy_plot(g, 192, 110, "", 50);
e->pdsch_energy_ue_xy_plot = w; e->pdsch_energy_ue_xy_plot = w;
widget_add_child(g, line, w, -1); widget_add_child(g, line, w, -1);
xy_plot_set_range(g, w, 0, 1024*10, -10, 80); xy_plot_set_range(g, w, 0, 1024*10, -10, 80);
@@ -355,7 +355,7 @@ static void ue_main_gui(ue_gui *e, gui *g, event_handler *h, void *database,
e->pdsch_energy_logger = l; e->pdsch_energy_logger = l;
/* UE x PDCCH energy */ /* UE x PDCCH energy */
w = new_xy_plot(g, 128, 55, "", 50); w = new_xy_plot(g, 192, 110, "", 50);
e->pdcch_energy_ue_xy_plot = w; e->pdcch_energy_ue_xy_plot = w;
widget_add_child(g, line, w, -1); widget_add_child(g, line, w, -1);
xy_plot_set_range(g, w, 0, 1024*10, -10, 80); xy_plot_set_range(g, w, 0, 1024*10, -10, 80);
@@ -381,7 +381,7 @@ static void ue_main_gui(ue_gui *e, gui *g, event_handler *h, void *database,
e->pdcch_energy_logger = l; e->pdcch_energy_logger = l;
/* UE x PDCCH IQ data */ /* UE x PDCCH IQ data */
w = new_xy_plot(g, 55, 55, "", 50); w = new_xy_plot(g, 110, 110, "", 50);
e->pdcch_iq_ue_xy_plot = w; e->pdcch_iq_ue_xy_plot = w;
widget_add_child(g, line, w, -1); widget_add_child(g, line, w, -1);
xy_plot_set_range(g, w, -100, 100, -100, 100); xy_plot_set_range(g, w, -100, 100, -100, 100);
@@ -544,16 +544,16 @@ static void ue_main_gui(ue_gui *e, gui *g, event_handler *h, void *database,
/* phy/mac/rlc/pdcp/rrc textlog */ /* phy/mac/rlc/pdcp/rrc textlog */
line = new_container(g, HORIZONTAL); line = new_container(g, HORIZONTAL);
widget_add_child(g, top_container, line, -1); widget_add_child(g, top_container, line, -1);
container_set_child_growable(g, top_container, line, 1); container_set_child_growable(g, top_container, line, 0);
/* phy */ /* phy */
col = new_container(g, VERTICAL); col = new_container(g, VERTICAL);
widget_add_child(g, line, col, -1); widget_add_child(g, line, col, -1);
container_set_child_growable(g, line, col, 1); container_set_child_growable(g, line, col, 1);
widget_add_child(g, col, new_label(g, "PHY"), -1); widget_add_child(g, col, new_label(g, "PHY"), -1);
text = new_textlist(g, 100, 10, new_color(g, "#afa")); text = new_textlist(g, 100, 5, new_color(g, "#afa"));
widget_add_child(g, col, text, -1); widget_add_child(g, col, text, -1);
container_set_child_growable(g, col, text, 1); container_set_child_growable(g, col, text, 0);
textview = new_view_textlist(10000, 10, g, text); textview = new_view_textlist(10000, 10, g, text);
e->phyview = textview; e->phyview = textview;
@@ -562,24 +562,24 @@ static void ue_main_gui(ue_gui *e, gui *g, event_handler *h, void *database,
widget_add_child(g, line, col, -1); widget_add_child(g, line, col, -1);
container_set_child_growable(g, line, col, 1); container_set_child_growable(g, line, col, 1);
widget_add_child(g, col, new_label(g, "MAC"), -1); widget_add_child(g, col, new_label(g, "MAC"), -1);
text = new_textlist(g, 100, 10, new_color(g, "#adf")); text = new_textlist(g, 100, 5, new_color(g, "#adf"));
widget_add_child(g, col, text, -1); widget_add_child(g, col, text, -1);
container_set_child_growable(g, col, text, 1); container_set_child_growable(g, col, text, 0);
textview = new_view_textlist(10000, 10, g, text); textview = new_view_textlist(10000, 10, g, text);
e->macview = textview; e->macview = textview;
line = new_container(g, HORIZONTAL); line = new_container(g, HORIZONTAL);
widget_add_child(g, top_container, line, -1); widget_add_child(g, top_container, line, -1);
container_set_child_growable(g, top_container, line, 1); container_set_child_growable(g, top_container, line, 0);
/* rlc */ /* rlc */
col = new_container(g, VERTICAL); col = new_container(g, VERTICAL);
widget_add_child(g, line, col, -1); widget_add_child(g, line, col, -1);
container_set_child_growable(g, line, col, 1); container_set_child_growable(g, line, col, 1);
widget_add_child(g, col, new_label(g, "RLC"), -1); widget_add_child(g, col, new_label(g, "RLC"), -1);
text = new_textlist(g, 100, 10, new_color(g, "#aff")); text = new_textlist(g, 100, 5, new_color(g, "#aff"));
widget_add_child(g, col, text, -1); widget_add_child(g, col, text, -1);
container_set_child_growable(g, col, text, 1); container_set_child_growable(g, col, text, 0);
textview = new_view_textlist(10000, 10, g, text); textview = new_view_textlist(10000, 10, g, text);
e->rlcview = textview; e->rlcview = textview;
@@ -588,24 +588,24 @@ static void ue_main_gui(ue_gui *e, gui *g, event_handler *h, void *database,
widget_add_child(g, line, col, -1); widget_add_child(g, line, col, -1);
container_set_child_growable(g, line, col, 1); container_set_child_growable(g, line, col, 1);
widget_add_child(g, col, new_label(g, "PDCP"), -1); widget_add_child(g, col, new_label(g, "PDCP"), -1);
text = new_textlist(g, 100, 10, new_color(g, "#ed9")); text = new_textlist(g, 100, 5, new_color(g, "#ed9"));
widget_add_child(g, col, text, -1); widget_add_child(g, col, text, -1);
container_set_child_growable(g, col, text, 1); container_set_child_growable(g, col, text, 0);
textview = new_view_textlist(10000, 10, g, text); textview = new_view_textlist(10000, 10, g, text);
e->pdcpview = textview; e->pdcpview = textview;
line = new_container(g, HORIZONTAL); line = new_container(g, HORIZONTAL);
widget_add_child(g, top_container, line, -1); widget_add_child(g, top_container, line, -1);
container_set_child_growable(g, top_container, line, 1); container_set_child_growable(g, top_container, line, 0);
/* rrc */ /* rrc */
col = new_container(g, VERTICAL); col = new_container(g, VERTICAL);
widget_add_child(g, line, col, -1); widget_add_child(g, line, col, -1);
container_set_child_growable(g, line, col, 1); container_set_child_growable(g, line, col, 1);
widget_add_child(g, col, new_label(g, "RRC"), -1); widget_add_child(g, col, new_label(g, "RRC"), -1);
text = new_textlist(g, 100, 10, new_color(g, "#fdb")); text = new_textlist(g, 100, 5, new_color(g, "#fdb"));
widget_add_child(g, col, text, -1); widget_add_child(g, col, text, -1);
container_set_child_growable(g, col, text, 1); container_set_child_growable(g, col, text, 0);
textview = new_view_textlist(10000, 10, g, text); textview = new_view_textlist(10000, 10, g, text);
e->rrcview = textview; e->rrcview = textview;