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
Michael Black
OpenXG-RAN
Commits
2138a47e
Commit
2138a47e
authored
May 25, 2016
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more work on enb.c
plus add rrc connection setup complete tracing
parent
45728df2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
96 additions
and
4 deletions
+96
-4
common/utils/T/T_messages.txt
common/utils/T/T_messages.txt
+6
-0
common/utils/T/tracer/enb.c
common/utils/T/tracer/enb.c
+87
-4
openair2/RRC/LITE/rrc_eNB.c
openair2/RRC/LITE/rrc_eNB.c
+3
-0
No files found.
common/utils/T/T_messages.txt
View file @
2138a47e
...
@@ -40,6 +40,12 @@ ID = PUCCH_1_ENERGY
...
@@ -40,6 +40,12 @@ ID = PUCCH_1_ENERGY
GROUP = ALL:PHY:GRAPHIC:HEAVY:ENB
GROUP = ALL:PHY:GRAPHIC:HEAVY:ENB
FORMAT = int,eNB_ID : int,UE_ID : int,frame : int,subframe : int,energy : int,threshold
FORMAT = int,eNB_ID : int,UE_ID : int,frame : int,subframe : int,energy : int,threshold
#RRC logs
ID = ENB_RRC_CONNECTION_SETUP_COMPLETE
DESC = RRC connection setup complete
GROUP = ALL:RRC:ENB
FORMAT = int,eNB_ID : int,frame : int,subframe : int,rnti
#legacy logs
#legacy logs
ID = LEGACY_MAC_INFO
ID = LEGACY_MAC_INFO
DESC = MAC legacy logs - info level
DESC = MAC legacy logs - info level
...
...
common/utils/T/tracer/enb.c
View file @
2138a47e
...
@@ -14,6 +14,10 @@
...
@@ -14,6 +14,10 @@
#include "openair_logo.h"
#include "openair_logo.h"
#include "config.h"
#include "config.h"
typedef
struct
{
view
*
rrcview
;
}
enb_gui
;
#define DEFAULT_REMOTE_PORT 2021
#define DEFAULT_REMOTE_PORT 2021
void
usage
(
void
)
void
usage
(
void
)
...
@@ -42,11 +46,11 @@ static void *gui_thread(void *_g)
...
@@ -42,11 +46,11 @@ static void *gui_thread(void *_g)
return
NULL
;
return
NULL
;
}
}
static
void
enb_main_gui
(
gui
*
g
,
event_handler
*
h
,
void
*
database
)
static
void
enb_main_gui
(
enb_gui
*
e
,
gui
*
g
,
event_handler
*
h
,
void
*
database
)
{
{
widget
*
main_window
;
widget
*
main_window
;
widget
*
top_container
;
widget
*
top_container
;
widget
*
line
;
widget
*
line
,
*
col
;
widget
*
logo
;
widget
*
logo
;
widget
*
input_signal_plot
;
widget
*
input_signal_plot
;
logger
*
input_signal_log
;
logger
*
input_signal_log
;
...
@@ -55,6 +59,8 @@ static void enb_main_gui(gui *g, event_handler *h, void *database)
...
@@ -55,6 +59,8 @@ static void enb_main_gui(gui *g, event_handler *h, void *database)
logger
*
timelog
;
logger
*
timelog
;
view
*
timeview
;
view
*
timeview
;
view
*
subview
;
view
*
subview
;
widget
*
text
;
view
*
textview
;
int
i
;
int
i
;
main_window
=
new_toplevel_window
(
g
,
800
,
600
,
"eNB tracer"
);
main_window
=
new_toplevel_window
(
g
,
800
,
600
,
"eNB tracer"
);
...
@@ -79,12 +85,13 @@ static void enb_main_gui(gui *g, event_handler *h, void *database)
...
@@ -79,12 +85,13 @@ static void enb_main_gui(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
);
/* downlink UE DCIs */
/* downlink UE DCIs */
widget_add_child
(
g
,
top_container
,
new_label
(
g
,
"DL/UL TICK/DCI/ACK/NACK "
),
-
1
);
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
);
timeline_plot
=
new_timeline
(
g
,
512
,
8
,
5
);
timeline_plot
=
new_timeline
(
g
,
512
,
8
,
5
);
widget_add_child
(
g
,
line
,
timeline_plot
,
-
1
);
widget_add_child
(
g
,
line
,
timeline_plot
,
-
1
);
container_set_child_growable
(
g
,
line
,
timeline_plot
,
1
);
container_set_child_growable
(
g
,
line
,
timeline_plot
,
1
);
widget_add_child
(
g
,
line
,
new_label
(
g
,
"DL/UL TICK/DCI/ACK/NACK "
),
0
);
for
(
i
=
0
;
i
<
8
;
i
++
)
for
(
i
=
0
;
i
<
8
;
i
++
)
timeline_set_subline_background_color
(
g
,
timeline_plot
,
i
,
timeline_set_subline_background_color
(
g
,
timeline_plot
,
i
,
new_color
(
g
,
i
==
0
||
i
==
4
?
"#aaf"
:
i
&
1
?
"#ddd"
:
"#eee"
));
new_color
(
g
,
i
==
0
||
i
==
4
?
"#aaf"
:
i
&
1
?
"#ddd"
:
"#eee"
));
...
@@ -110,6 +117,78 @@ static void enb_main_gui(gui *g, event_handler *h, void *database)
...
@@ -110,6 +117,78 @@ static void enb_main_gui(gui *g, event_handler *h, void *database)
timelog
=
new_timelog
(
h
,
database
,
"ENB_UL_TICK"
);
timelog
=
new_timelog
(
h
,
database
,
"ENB_UL_TICK"
);
subview
=
new_subview_time
(
timeview
,
4
,
FOREGROUND_COLOR
,
3600
*
1000
);
subview
=
new_subview_time
(
timeview
,
4
,
FOREGROUND_COLOR
,
3600
*
1000
);
logger_add_view
(
timelog
,
subview
);
logger_add_view
(
timelog
,
subview
);
/* phy/mac/rlc/pdcp/rrc textlog */
line
=
new_container
(
g
,
HORIZONTAL
);
widget_add_child
(
g
,
top_container
,
line
,
-
1
);
container_set_child_growable
(
g
,
top_container
,
line
,
1
);
/* phy */
col
=
new_container
(
g
,
VERTICAL
);
widget_add_child
(
g
,
line
,
col
,
-
1
);
container_set_child_growable
(
g
,
line
,
col
,
1
);
widget_add_child
(
g
,
col
,
new_label
(
g
,
"PHY"
),
-
1
);
text
=
new_textlist
(
g
,
100
,
10
,
new_color
(
g
,
"#afa"
));
widget_add_child
(
g
,
col
,
text
,
-
1
);
container_set_child_growable
(
g
,
col
,
text
,
1
);
textview
=
new_view_textlist
(
10000
,
10
,
g
,
text
);
/* mac */
col
=
new_container
(
g
,
VERTICAL
);
widget_add_child
(
g
,
line
,
col
,
-
1
);
container_set_child_growable
(
g
,
line
,
col
,
1
);
widget_add_child
(
g
,
col
,
new_label
(
g
,
"MAC"
),
-
1
);
text
=
new_textlist
(
g
,
100
,
10
,
new_color
(
g
,
"#adf"
));
widget_add_child
(
g
,
col
,
text
,
-
1
);
container_set_child_growable
(
g
,
col
,
text
,
1
);
textview
=
new_view_textlist
(
10000
,
10
,
g
,
text
);
/* rlc */
col
=
new_container
(
g
,
VERTICAL
);
widget_add_child
(
g
,
line
,
col
,
-
1
);
container_set_child_growable
(
g
,
line
,
col
,
1
);
widget_add_child
(
g
,
col
,
new_label
(
g
,
"RLC"
),
-
1
);
text
=
new_textlist
(
g
,
100
,
10
,
new_color
(
g
,
"#aff"
));
widget_add_child
(
g
,
col
,
text
,
-
1
);
container_set_child_growable
(
g
,
col
,
text
,
1
);
textview
=
new_view_textlist
(
10000
,
10
,
g
,
text
);
/* pdcp */
col
=
new_container
(
g
,
VERTICAL
);
widget_add_child
(
g
,
line
,
col
,
-
1
);
container_set_child_growable
(
g
,
line
,
col
,
1
);
widget_add_child
(
g
,
col
,
new_label
(
g
,
"PDCP"
),
-
1
);
text
=
new_textlist
(
g
,
100
,
10
,
new_color
(
g
,
"#ed9"
));
widget_add_child
(
g
,
col
,
text
,
-
1
);
container_set_child_growable
(
g
,
col
,
text
,
1
);
textview
=
new_view_textlist
(
10000
,
10
,
g
,
text
);
/* rrc */
col
=
new_container
(
g
,
VERTICAL
);
widget_add_child
(
g
,
line
,
col
,
-
1
);
container_set_child_growable
(
g
,
line
,
col
,
1
);
widget_add_child
(
g
,
col
,
new_label
(
g
,
"RRC"
),
-
1
);
text
=
new_textlist
(
g
,
100
,
10
,
new_color
(
g
,
"#fdb"
));
widget_add_child
(
g
,
col
,
text
,
-
1
);
container_set_child_growable
(
g
,
col
,
text
,
1
);
textview
=
new_view_textlist
(
10000
,
10
,
g
,
text
);
e
->
rrcview
=
textview
;
}
void
view_add_log
(
view
*
v
,
char
*
log
,
event_handler
*
h
,
void
*
database
,
int
*
is_on
)
{
logger
*
textlog
;
char
*
name
,
*
desc
;
database_get_generic_description
(
database
,
event_id_from_name
(
database
,
log
),
&
name
,
&
desc
);
textlog
=
new_textlog
(
h
,
database
,
name
,
desc
);
logger_add_view
(
textlog
,
v
);
free
(
name
);
free
(
desc
);
on_off
(
database
,
log
,
is_on
,
1
);
}
}
int
main
(
int
n
,
char
**
v
)
int
main
(
int
n
,
char
**
v
)
...
@@ -129,6 +208,7 @@ int main(int n, char **v)
...
@@ -129,6 +208,7 @@ int main(int n, char **v)
int
l
;
int
l
;
event_handler
*
h
;
event_handler
*
h
;
gui
*
g
;
gui
*
g
;
enb_gui
eg
;
on_off_name
=
malloc
(
n
*
sizeof
(
char
*
));
if
(
on_off_name
==
NULL
)
abort
();
on_off_name
=
malloc
(
n
*
sizeof
(
char
*
));
if
(
on_off_name
==
NULL
)
abort
();
on_off_action
=
malloc
(
n
*
sizeof
(
int
));
if
(
on_off_action
==
NULL
)
abort
();
on_off_action
=
malloc
(
n
*
sizeof
(
int
));
if
(
on_off_action
==
NULL
)
abort
();
...
@@ -169,7 +249,7 @@ int main(int n, char **v)
...
@@ -169,7 +249,7 @@ int main(int n, char **v)
g
=
gui_init
();
g
=
gui_init
();
new_thread
(
gui_thread
,
g
);
new_thread
(
gui_thread
,
g
);
enb_main_gui
(
g
,
h
,
database
);
enb_main_gui
(
&
eg
,
g
,
h
,
database
);
on_off
(
database
,
"ENB_INPUT_SIGNAL"
,
is_on
,
1
);
on_off
(
database
,
"ENB_INPUT_SIGNAL"
,
is_on
,
1
);
on_off
(
database
,
"ENB_UL_TICK"
,
is_on
,
1
);
on_off
(
database
,
"ENB_UL_TICK"
,
is_on
,
1
);
...
@@ -178,6 +258,9 @@ int main(int n, char **v)
...
@@ -178,6 +258,9 @@ int main(int n, char **v)
on_off
(
database
,
"ENB_DLSCH_UE_ACK"
,
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_DLSCH_UE_NACK"
,
is_on
,
1
);
view_add_log
(
eg
.
rrcview
,
"ENB_RRC_CONNECTION_SETUP_COMPLETE"
,
h
,
database
,
is_on
);
for
(
i
=
0
;
i
<
on_off_n
;
i
++
)
for
(
i
=
0
;
i
<
on_off_n
;
i
++
)
on_off
(
database
,
on_off_name
[
i
],
is_on
,
on_off_action
[
i
]);
on_off
(
database
,
on_off_name
[
i
],
is_on
,
on_off_action
[
i
]);
...
...
openair2/RRC/LITE/rrc_eNB.c
View file @
2138a47e
...
@@ -849,6 +849,9 @@ rrc_eNB_process_RRCConnectionSetupComplete(
...
@@ -849,6 +849,9 @@ rrc_eNB_process_RRCConnectionSetupComplete(
PROTOCOL_RRC_CTXT_UE_FMT
" [RAPROC] Logical Channel UL-DCCH, "
"processing RRCConnectionSetupComplete from UE
\n
"
,
PROTOCOL_RRC_CTXT_UE_FMT
" [RAPROC] Logical Channel UL-DCCH, "
"processing RRCConnectionSetupComplete from UE
\n
"
,
PROTOCOL_RRC_CTXT_UE_ARGS
(
ctxt_pP
));
PROTOCOL_RRC_CTXT_UE_ARGS
(
ctxt_pP
));
T
(
T_ENB_RRC_CONNECTION_SETUP_COMPLETE
,
T_INT
(
ctxt_pP
->
module_id
),
T_INT
(
ctxt_pP
->
frame
),
T_INT
(
ctxt_pP
->
subframe
),
T_INT
(
ctxt_pP
->
rnti
));
#if defined(ENABLE_USE_MME)
#if defined(ENABLE_USE_MME)
if
(
EPC_MODE_ENABLED
==
1
)
{
if
(
EPC_MODE_ENABLED
==
1
)
{
...
...
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