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
zzha zzha
OpenXG-RAN
Commits
7ddfc835
Commit
7ddfc835
authored
Feb 11, 2015
by
Florian Kaltenberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@6516
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
2da8f3f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
16 deletions
+26
-16
openair1/PHY/TOOLS/lte_phy_scope.c
openair1/PHY/TOOLS/lte_phy_scope.c
+1
-1
targets/RT/USER/lte-softmodem.c
targets/RT/USER/lte-softmodem.c
+25
-15
No files found.
openair1/PHY/TOOLS/lte_phy_scope.c
View file @
7ddfc835
...
@@ -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
));
...
...
targets/RT/USER/lte-softmodem.c
View file @
7ddfc835
...
@@ -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
();
...
...
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