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
spbro
OpenXG-RAN
Commits
e82ef88e
Commit
e82ef88e
authored
Jan 24, 2021
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builds are succesful (eNB,UE,gNB,nrUE,physim)
parent
5294bc4f
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
526 deletions
+9
-526
cmake_targets/CMakeLists.txt
cmake_targets/CMakeLists.txt
+0
-3
openair2/RRC/NR_UE/rrc_UE.c
openair2/RRC/NR_UE/rrc_UE.c
+2
-2
targets/RT/USER/lte-softmodem.h
targets/RT/USER/lte-softmodem.h
+0
-2
targets/RT/USER/lte-ue.c
targets/RT/USER/lte-ue.c
+4
-14
targets/RT/USER/lte-uesoftmodem.c
targets/RT/USER/lte-uesoftmodem.c
+3
-15
targets/RT/USER/rfsim.c
targets/RT/USER/rfsim.c
+0
-490
No files found.
cmake_targets/CMakeLists.txt
View file @
e82ef88e
...
...
@@ -3004,9 +3004,6 @@ add_executable(lte-uesoftmodem
${
OPENAIR_TARGETS
}
/RT/USER/lte-ue.c
${
OPENAIR_TARGETS
}
/RT/USER/lte-uesoftmodem.c
${
OPENAIR_DIR
}
/executables/softmodem-common.c
${
OPENAIR_TARGETS
}
/RT/USER/lte-ru.c
${
OPENAIR_TARGETS
}
/RT/USER/ru_control.c
${
OPENAIR_TARGETS
}
/RT/USER/rfsim.c
${
OPENAIR_TARGETS
}
/COMMON/create_tasks_ue.c
${
OPENAIR_TARGETS
}
/ARCH/COMMON/common_lib.c
${
OPENAIR_TARGETS
}
/ARCH/COMMON/record_player.c
...
...
openair2/RRC/NR_UE/rrc_UE.c
View file @
e82ef88e
...
...
@@ -1831,7 +1831,7 @@ nr_rrc_ue_establish_srb1(
{
// add descriptor from RRC PDU
NR_UE_rrc_inst
[
ue_mod_idP
].
Srb1
[
gNB_index
].
Active
=
1
;
NR_UE_rrc_inst
[
ue_mod_idP
].
Srb1
[
gNB_index
].
S
tatus
=
RADIO_CONFIG_OK
;
//RADIO CFG
NR_UE_rrc_inst
[
ue_mod_idP
].
Srb1
[
gNB_index
].
s
tatus
=
RADIO_CONFIG_OK
;
//RADIO CFG
NR_UE_rrc_inst
[
ue_mod_idP
].
Srb1
[
gNB_index
].
Srb_info
.
Srb_id
=
1
;
LOG_I
(
NR_RRC
,
"[UE %d], CONFIG_SRB1 %d corresponding to gNB_index %d
\n
"
,
ue_mod_idP
,
DCCH
,
gNB_index
);
return
(
0
);
...
...
@@ -1849,7 +1849,7 @@ nr_rrc_ue_establish_srb2(
{
// add descriptor from RRC PDU
NR_UE_rrc_inst
[
ue_mod_idP
].
Srb2
[
gNB_index
].
Active
=
1
;
NR_UE_rrc_inst
[
ue_mod_idP
].
Srb2
[
gNB_index
].
S
tatus
=
RADIO_CONFIG_OK
;
//RADIO CFG
NR_UE_rrc_inst
[
ue_mod_idP
].
Srb2
[
gNB_index
].
s
tatus
=
RADIO_CONFIG_OK
;
//RADIO CFG
NR_UE_rrc_inst
[
ue_mod_idP
].
Srb2
[
gNB_index
].
Srb_info
.
Srb_id
=
2
;
LOG_I
(
NR_RRC
,
"[UE %d], CONFIG_SRB2 %d corresponding to gNB_index %d
\n
"
,
ue_mod_idP
,
DCCH1
,
gNB_index
);
return
(
0
);
...
...
targets/RT/USER/lte-softmodem.h
View file @
e82ef88e
...
...
@@ -97,7 +97,6 @@
/*-------------------------------------------------------------------------------------------------------------------------------------------------------*/
#define CMDLINE_UEPARAMS_DESC { \
{"siml1", CONFIG_HLP_SIML1, PARAMFLAG_BOOL, iptr:&simL1flag, defintval:0, TYPE_INT, 0}, \
{"U", CONFIG_HLP_NUMUE, 0, u16ptr:&NB_UE_INST, defuintval:1, TYPE_UINT16, 0}, \
{"ue-rxgain", CONFIG_HLP_UERXG, 0, dblptr:&(rx_gain[0][0]), defdblval:130, TYPE_DOUBLE, 0}, \
{"ue-rxgain-off", CONFIG_HLP_UERXGOFF, 0, dblptr:&rx_gain_off, defdblval:0, TYPE_DOUBLE, 0}, \
...
...
@@ -199,7 +198,6 @@ extern void init_te_thread(PHY_VARS_eNB *);
extern
void
kill_td_thread
(
PHY_VARS_eNB
*
);
extern
void
kill_te_thread
(
PHY_VARS_eNB
*
);
extern
void
RCConfig_sim
(
void
);
extern
void
init_ocm
(
void
);
extern
void
init_ue_devices
(
PHY_VARS_UE
*
);
...
...
targets/RT/USER/lte-ue.c
View file @
e82ef88e
...
...
@@ -283,13 +283,7 @@ void init_UE(int nb_inst,
LOG_I
(
PHY
,
"Allocating UE context %d
\n
"
,
inst
);
if
(
!
IS_SOFTMODEM_SIML1
)
PHY_vars_UE_g
[
inst
][
0
]
=
init_ue_vars
(
fp0
,
inst
,
0
);
else
{
// needed for memcopy below. these are not used in the RU, but needed for UE
RC
.
ru
[
0
]
->
frame_parms
->
nb_antennas_rx
=
fp0
->
nb_antennas_rx
;
RC
.
ru
[
0
]
->
frame_parms
->
nb_antennas_tx
=
fp0
->
nb_antennas_tx
;
PHY_vars_UE_g
[
inst
][
0
]
=
init_ue_vars
(
RC
.
ru
[
0
]
->
frame_parms
,
inst
,
0
);
}
PHY_vars_UE_g
[
inst
][
0
]
=
init_ue_vars
(
fp0
,
inst
,
0
);
// turn off timing control loop in UE
PHY_vars_UE_g
[
inst
][
0
]
->
no_timing_correction
=
timing_correction
;
...
...
@@ -371,18 +365,14 @@ void init_UE(int nb_inst,
*/
UE
->
N_TA_offset
=
0
;
if
(
IS_SOFTMODEM_SIML1
)
init_ue_devices
(
UE
);
LOG_I
(
PHY
,
"Intializing UE Threads for instance %d (%p,%p)...
\n
"
,
inst
,
PHY_vars_UE_g
[
inst
],
PHY_vars_UE_g
[
inst
][
0
]);
init_UE_threads
(
inst
);
if
(
!
IS_SOFTMODEM_SIML1
)
{
ret
=
openair0_device_load
(
&
(
UE
->
rfdevice
),
&
openair0_cfg
[
0
]);
if
(
ret
!=
0
)
{
exit_fun
(
"Error loading device library"
);
}
}
UE
->
rfdevice
.
host_type
=
RAU_HOST
;
// UE->rfdevice.type = NONE_DEV;
...
...
targets/RT/USER/lte-uesoftmodem.c
View file @
e82ef88e
...
...
@@ -193,6 +193,9 @@ int oaisim_flag=0;
*/
uint8_t
abstraction_flag
=
0
;
// needed for pdcp.c
RAN_CONTEXT_t
RC
;
/* forward declarations */
void
set_default_frame_parms
(
LTE_DL_FRAME_PARMS
*
frame_parms
[
MAX_NUM_CCs
]);
...
...
@@ -286,7 +289,6 @@ static void get_options(void) {
int
dumpframe
=
0
;
int
timingadv
=
0
;
uint8_t
nfapi_mode
=
NFAPI_MONOLITHIC
;
int
simL1flag
=
0
;
set_default_frame_parms
(
frame_parms
);
CONFIG_SETRTFLAG
(
CONFIG_NOEXITONHELP
);
...
...
@@ -300,8 +302,6 @@ static void get_options(void) {
config_process_cmdline
(
cmdline_ueparams
,
sizeof
(
cmdline_ueparams
)
/
sizeof
(
paramdef_t
),
NULL
);
nfapi_setmode
(
nfapi_mode
);
if
(
simL1flag
)
set_softmodem_optmask
(
SOFTMODEM_SIML1_BIT
);
if
(
loopfile
!=
NULL
)
{
printf
(
"Input file for hardware emulation: %s"
,
loopfile
);
...
...
@@ -574,11 +574,6 @@ int main( int argc, char **argv ) {
EPC_MODE_ENABLED
=
!
IS_SOFTMODEM_NOS1
;
printf
(
"Running with %d UE instances
\n
"
,
NB_UE_INST
);
if
(
NB_UE_INST
>
1
&&
(
!
IS_SOFTMODEM_SIML1
)
&&
NFAPI_MODE
!=
NFAPI_UE_STUB_PNF
)
{
printf
(
"Running with more than 1 UE instance and simL1 is not active, this will result in undefined behaviour for now, exiting.
\n
"
);
abort
();
}
// Checking option of nums_ue_thread.
if
(
NB_THREAD_INST
<
1
)
{
printf
(
"Running with 0 UE rxtx thread, exiting.
\n
"
);
...
...
@@ -649,9 +644,6 @@ int main( int argc, char **argv ) {
}
}
else
init_openair0
(
frame_parms
[
0
],(
int
)
rx_gain
[
0
][
0
]);
if
(
IS_SOFTMODEM_SIML1
)
{
RCConfig_sim
();
}
cpuf
=
get_cpu_freq_GHz
();
...
...
@@ -753,10 +745,6 @@ int main( int argc, char **argv ) {
//p_exmimo_config->framing.tdd_config = TXRXSWITCH_TESTRX;
if
(
IS_SOFTMODEM_SIML1
)
{
init_ocm
();
PHY_vars_UE_g
[
0
][
0
]
->
no_timing_correction
=
1
;
}
if
(
IS_SOFTMODEM_DOFORMS
)
load_softscope
(
"ue"
,
NULL
);
...
...
targets/RT/USER/rfsim.c
deleted
100644 → 0
View file @
5294bc4f
This diff is collapsed.
Click to expand it.
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