Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhongxiao
OpenXG-RAN
Commits
c9603910
Commit
c9603910
authored
Jun 06, 2016
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update enb.c to trace uplink dci/retrans/ack/nack
and also start to use the PHY textview
parent
b87405ad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
7 deletions
+38
-7
common/utils/T/tracer/enb.c
common/utils/T/tracer/enb.c
+38
-7
No files found.
common/utils/T/tracer/enb.c
View file @
c9603910
...
...
@@ -17,6 +17,7 @@
#include "config.h"
typedef
struct
{
view
*
phyview
;
view
*
rrcview
;
view
*
legacy
;
}
enb_gui
;
...
...
@@ -122,7 +123,7 @@ static void enb_main_gui(enb_gui *e, gui *g, event_handler *h, void *database)
g
,
input_signal_plot
,
new_color
(
g
,
"#0c0c72"
));
logger_add_view
(
input_signal_log
,
input_signal_view
);
/* downlink UE DCIs */
/* downlink
/uplink
UE DCIs */
widget_add_child
(
g
,
top_container
,
new_label
(
g
,
"DL/UL TICK/DCI/ACK/NACK "
),
-
1
);
line
=
new_container
(
g
,
HORIZONTAL
);
...
...
@@ -134,27 +135,43 @@ static void enb_main_gui(enb_gui *e, gui *g, event_handler *h, void *database)
timeline_set_subline_background_color
(
g
,
timeline_plot
,
i
,
new_color
(
g
,
i
==
0
||
i
==
4
?
"#aaf"
:
"#eee"
));
timeview
=
new_view_time
(
3600
,
10
,
g
,
timeline_plot
);
/* tick logging */
/*
DL
tick logging */
timelog
=
new_timelog
(
h
,
database
,
"ENB_DL_TICK"
);
subview
=
new_subview_time
(
timeview
,
0
,
new_color
(
g
,
"#77c"
),
3600
*
1000
);
logger_add_view
(
timelog
,
subview
);
/* DCI logging */
/* D
L D
CI logging */
timelog
=
new_timelog
(
h
,
database
,
"ENB_DLSCH_UE_DCI"
);
subview
=
new_subview_time
(
timeview
,
1
,
new_color
(
g
,
"#228"
),
3600
*
1000
);
logger_add_view
(
timelog
,
subview
);
/* ACK */
/*
DL
ACK */
timelog
=
new_timelog
(
h
,
database
,
"ENB_DLSCH_UE_ACK"
);
subview
=
new_subview_time
(
timeview
,
2
,
new_color
(
g
,
"#282"
),
3600
*
1000
);
logger_add_view
(
timelog
,
subview
);
/* NACK */
/*
DL
NACK */
timelog
=
new_timelog
(
h
,
database
,
"ENB_DLSCH_UE_NACK"
);
subview
=
new_subview_time
(
timeview
,
3
,
new_color
(
g
,
"#f22"
),
3600
*
1000
);
logger_add_view
(
timelog
,
subview
);
/*
uplink UE DCIs
*/
/*
UL tick logging
*/
timelog
=
new_timelog
(
h
,
database
,
"ENB_UL_TICK"
);
subview
=
new_subview_time
(
timeview
,
4
,
new_color
(
g
,
"#77c"
),
3600
*
1000
);
logger_add_view
(
timelog
,
subview
);
/* UL DCI logging */
timelog
=
new_timelog
(
h
,
database
,
"ENB_ULSCH_UE_DCI"
);
subview
=
new_subview_time
(
timeview
,
5
,
new_color
(
g
,
"#228"
),
3600
*
1000
);
logger_add_view
(
timelog
,
subview
);
/* UL retransmission without DCI logging */
timelog
=
new_timelog
(
h
,
database
,
"ENB_ULSCH_UE_NO_DCI_RETRANSMISSION"
);
subview
=
new_subview_time
(
timeview
,
5
,
new_color
(
g
,
"#f22"
),
3600
*
1000
);
logger_add_view
(
timelog
,
subview
);
/* UL ACK */
timelog
=
new_timelog
(
h
,
database
,
"ENB_ULSCH_UE_ACK"
);
subview
=
new_subview_time
(
timeview
,
6
,
new_color
(
g
,
"#282"
),
3600
*
1000
);
logger_add_view
(
timelog
,
subview
);
/* UL NACK */
timelog
=
new_timelog
(
h
,
database
,
"ENB_ULSCH_UE_NACK"
);
subview
=
new_subview_time
(
timeview
,
7
,
new_color
(
g
,
"#f22"
),
3600
*
1000
);
logger_add_view
(
timelog
,
subview
);
/* phy/mac/rlc/pdcp/rrc textlog */
line
=
new_container
(
g
,
HORIZONTAL
);
...
...
@@ -170,6 +187,7 @@ static void enb_main_gui(enb_gui *e, gui *g, event_handler *h, void *database)
widget_add_child
(
g
,
col
,
text
,
-
1
);
container_set_child_growable
(
g
,
col
,
text
,
1
);
textview
=
new_view_textlist
(
10000
,
10
,
g
,
text
);
e
->
phyview
=
textview
;
/* mac */
col
=
new_container
(
g
,
VERTICAL
);
...
...
@@ -311,16 +329,29 @@ int main(int n, char **v)
}
on_off
(
database
,
"ENB_INPUT_SIGNAL"
,
is_on
,
1
);
on_off
(
database
,
"ENB_UL_TICK"
,
is_on
,
1
);
on_off
(
database
,
"ENB_DL_TICK"
,
is_on
,
1
);
on_off
(
database
,
"ENB_DLSCH_UE_DCI"
,
is_on
,
1
);
on_off
(
database
,
"ENB_DLSCH_UE_ACK"
,
is_on
,
1
);
on_off
(
database
,
"ENB_DLSCH_UE_NACK"
,
is_on
,
1
);
on_off
(
database
,
"ENB_UL_TICK"
,
is_on
,
1
);
on_off
(
database
,
"ENB_ULSCH_UE_DCI"
,
is_on
,
1
);
on_off
(
database
,
"ENB_ULSCH_UE_NO_DCI_RETRANSMISSION"
,
is_on
,
1
);
on_off
(
database
,
"ENB_ULSCH_UE_ACK"
,
is_on
,
1
);
on_off
(
database
,
"ENB_ULSCH_UE_NACK"
,
is_on
,
1
);
on_off
(
database
,
"LEGACY_RRC_INFO"
,
is_on
,
1
);
on_off
(
database
,
"LEGACY_RRC_ERROR"
,
is_on
,
1
);
on_off
(
database
,
"LEGACY_RRC_WARNING"
,
is_on
,
1
);
view_add_log
(
eg
.
phyview
,
"ENB_DLSCH_UE_DCI"
,
h
,
database
,
is_on
);
view_add_log
(
eg
.
phyview
,
"ENB_DLSCH_UE_ACK"
,
h
,
database
,
is_on
);
view_add_log
(
eg
.
phyview
,
"ENB_DLSCH_UE_NACK"
,
h
,
database
,
is_on
);
view_add_log
(
eg
.
phyview
,
"ENB_ULSCH_UE_DCI"
,
h
,
database
,
is_on
);
view_add_log
(
eg
.
phyview
,
"ENB_ULSCH_UE_NO_DCI_RETRANSMISSION"
,
h
,
database
,
is_on
);
view_add_log
(
eg
.
phyview
,
"ENB_ULSCH_UE_ACK"
,
h
,
database
,
is_on
);
view_add_log
(
eg
.
phyview
,
"ENB_ULSCH_UE_NACK"
,
h
,
database
,
is_on
);
view_add_log
(
eg
.
rrcview
,
"ENB_RRC_CONNECTION_SETUP_COMPLETE"
,
h
,
database
,
is_on
);
view_add_log
(
eg
.
rrcview
,
"ENB_RRC_SECURITY_MODE_COMMAND"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment