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
wangjie
OpenXG-RAN
Commits
a04682d4
Commit
a04682d4
authored
Jun 17, 2016
by
Xiwen JIANG
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oaisim takes tx and rx antenna number from config file and transmission mode from the command line
parent
5a40c9a8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
targets/SIMU/USER/init_lte.c
targets/SIMU/USER/init_lte.c
+4
-4
targets/SIMU/USER/init_lte.h
targets/SIMU/USER/init_lte.h
+1
-0
targets/SIMU/USER/oaisim_functions.c
targets/SIMU/USER/oaisim_functions.c
+3
-2
No files found.
targets/SIMU/USER/init_lte.c
View file @
a04682d4
...
...
@@ -229,7 +229,7 @@ void init_lte_vars(LTE_DL_FRAME_PARMS *frame_parms[MAX_NUM_CCs],
uint8_t
N_RB_DL
,
uint16_t
Nid_cell
,
uint8_t
cooperation_flag
,
uint8_t
transmission_mode
,
uint8_t
abstraction_flag
,
int
nb_antennas_rx
,
uint8_t
eMBMS_active_state
)
int
nb_antennas_rx
,
int
nb_antennas_tx
,
uint8_t
eMBMS_active_state
)
{
uint8_t
eNB_id
,
UE_id
,
RN_id
,
CC_id
;
...
...
@@ -252,10 +252,10 @@ void init_lte_vars(LTE_DL_FRAME_PARMS *frame_parms[MAX_NUM_CCs],
(
frame_parms
[
CC_id
])
->
Ncp
=
extended_prefix_flag
;
(
frame_parms
[
CC_id
])
->
Nid_cell
=
Nid_cell
;
(
frame_parms
[
CC_id
])
->
nushift
=
(
Nid_cell
%
6
);
(
frame_parms
[
CC_id
])
->
nb_antennas_tx
=
(
transmission_mode
==
1
)
?
1
:
2
;
(
frame_parms
[
CC_id
])
->
nb_antennas_tx
=
nb_antennas_tx
;
(
frame_parms
[
CC_id
])
->
nb_antennas_rx
=
nb_antennas_rx
;
(
frame_parms
[
CC_id
])
->
nb_antenna_ports_eNB
=
(
transmission_mode
==
1
||
transmission_mode
==
7
)
?
1
:
2
;
(
frame_parms
[
CC_id
])
->
nb_antennas_rx
=
(
transmission_mode
==
1
)
?
1
:
2
;
(
frame_parms
[
CC_id
])
->
mode1_flag
=
(
transmission_mode
==
1
)
?
1
:
0
;
(
frame_parms
[
CC_id
])
->
mode1_flag
=
(
frame_parms
[
CC_id
])
->
nb_antenna_ports_eNB
==
1
?
1
:
0
;
init_frame_parms
(
frame_parms
[
CC_id
],
1
);
...
...
targets/SIMU/USER/init_lte.h
View file @
a04682d4
...
...
@@ -57,4 +57,5 @@ void init_lte_vars(LTE_DL_FRAME_PARMS *frame_parms[MAX_NUM_CCs],
uint8_t
transmission_mode
,
uint8_t
abstraction_flag
,
int
nb_antennas_rx
,
int
nb_antennas_tx
,
uint8_t
eMBMS_active_state
);
targets/SIMU/USER/oaisim_functions.c
View file @
a04682d4
...
...
@@ -174,10 +174,11 @@ extern time_stats_t ul_chan_stats;
extern
int
xforms
;
const
Enb_properties_array_t
*
enb_properties
;
void
get_simulation_options
(
int
argc
,
char
*
argv
[])
{
int
option
;
const
Enb_properties_array_t
*
enb_properties
;
char
*
conf_config_file_name
=
NULL
;
enum
long_option_e
{
...
...
@@ -925,7 +926,7 @@ void init_openair1(void)
// change the nb_connected_eNB
for
(
CC_id
=
0
;
CC_id
<
MAX_NUM_CCs
;
CC_id
++
)
{
init_lte_vars
(
&
frame_parms
[
CC_id
],
oai_emulation
.
info
.
frame_type
[
CC_id
],
oai_emulation
.
info
.
tdd_config
[
CC_id
],
oai_emulation
.
info
.
tdd_config_S
[
CC_id
],
oai_emulation
.
info
.
extended_prefix_flag
[
CC_id
],
oai_emulation
.
info
.
N_RB_DL
[
CC_id
],
Nid_cell
,
cooperation_flag
,
oai_emulation
.
info
.
transmission_mode
[
CC_id
],
abstraction_flag
,
nb_antennas_rx
,
oai_emulation
.
info
.
eMBMS_active_state
);
oai_emulation
.
info
.
N_RB_DL
[
CC_id
],
Nid_cell
,
cooperation_flag
,
oai_emulation
.
info
.
transmission_mode
[
CC_id
],
abstraction_flag
,
enb_properties
->
properties
[
0
]
->
nb_antennas_tx
[
CC_id
],
enb_properties
->
properties
[
0
]
->
nb_antennas_tx
[
CC_id
]
,
oai_emulation
.
info
.
eMBMS_active_state
);
}
for
(
eNB_id
=
0
;
eNB_id
<
NB_eNB_INST
;
eNB_id
++
)
{
...
...
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