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
0e419d23
Commit
0e419d23
authored
Sep 14, 2019
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modifications for IF5, testing with 3rd party RRU
parent
8722655f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
17 deletions
+27
-17
targets/RT/USER/lte-enb.c
targets/RT/USER/lte-enb.c
+1
-0
targets/RT/USER/lte-ru.c
targets/RT/USER/lte-ru.c
+25
-16
targets/RT/USER/ru_control.c
targets/RT/USER/ru_control.c
+1
-1
No files found.
targets/RT/USER/lte-enb.c
View file @
0e419d23
...
@@ -1194,6 +1194,7 @@ void init_eNB_afterRU(void) {
...
@@ -1194,6 +1194,7 @@ void init_eNB_afterRU(void) {
for
(
ru_id
=
0
,
aa
=
0
;
ru_id
<
eNB
->
num_RU
;
ru_id
++
)
{
for
(
ru_id
=
0
,
aa
=
0
;
ru_id
<
eNB
->
num_RU
;
ru_id
++
)
{
eNB
->
frame_parms
.
nb_antennas_rx
+=
eNB
->
RU_list
[
ru_id
]
->
nb_rx
;
eNB
->
frame_parms
.
nb_antennas_rx
+=
eNB
->
RU_list
[
ru_id
]
->
nb_rx
;
AssertFatal
(
eNB
->
RU_list
[
ru_id
]
->
common
.
rxdataF
!=
NULL
,
AssertFatal
(
eNB
->
RU_list
[
ru_id
]
->
common
.
rxdataF
!=
NULL
,
"RU %d : common.rxdataF is NULL
\n
"
,
"RU %d : common.rxdataF is NULL
\n
"
,
eNB
->
RU_list
[
ru_id
]
->
idx
);
eNB
->
RU_list
[
ru_id
]
->
idx
);
...
...
targets/RT/USER/lte-ru.c
View file @
0e419d23
...
@@ -1596,15 +1596,14 @@ void *ru_thread( void *param ) {
...
@@ -1596,15 +1596,14 @@ void *ru_thread( void *param ) {
else
if
(
ru
->
has_ctrl_prt
==
0
){
else
if
(
ru
->
has_ctrl_prt
==
0
){
// There is no control port: start everything here
// There is no control port: start everything here
LOG_I
(
PHY
,
"RU %d has not ctrl port
\n
"
,
ru
->
idx
);
LOG_I
(
PHY
,
"RU %d has not ctrl port
\n
"
,
ru
->
idx
);
if
(
ru
->
if_south
==
LOCAL_RF
){
if
(
ru
->
if_south
==
LOCAL_RF
)
openair0_device_load
(
&
ru
->
rfdevice
,
&
ru
->
openair0_cfg
);
fill_rf_config
(
ru
,
ru
->
rf_config_file
);
fill_rf_config
(
ru
,
ru
->
rf_config_file
);
init_frame_parms
(
&
ru
->
frame_parms
,
1
);
init_frame_parms
(
&
ru
->
frame_parms
,
1
);
ru
->
frame_parms
.
nb_antennas_rx
=
ru
->
nb_rx
;
ru
->
frame_parms
.
nb_antennas_rx
=
ru
->
nb_rx
;
phy_init_RU
(
ru
);
phy_init_RU
(
ru
);
openair0_device_load
(
&
ru
->
rfdevice
,
&
ru
->
openair0_cfg
);
if
(
setup_RU_buffers
(
ru
)
!=
0
)
{
if
(
setup_RU_buffers
(
ru
)
!=
0
)
{
printf
(
"Exiting, cannot initialize RU Buffers
\n
"
);
printf
(
"Exiting, cannot initialize RU Buffers
\n
"
);
exit
(
-
1
);
exit
(
-
1
);
...
@@ -1613,7 +1612,6 @@ void *ru_thread( void *param ) {
...
@@ -1613,7 +1612,6 @@ void *ru_thread( void *param ) {
RC
.
ru_mask
&=
~
(
1
<<
ru
->
idx
);
RC
.
ru_mask
&=
~
(
1
<<
ru
->
idx
);
pthread_cond_signal
(
&
RC
.
ru_cond
);
pthread_cond_signal
(
&
RC
.
ru_cond
);
AssertFatal
((
ret
=
pthread_mutex_unlock
(
&
RC
.
ru_mutex
))
==
0
,
"mutex_unlock returns %d
\n
"
,
ret
);
AssertFatal
((
ret
=
pthread_mutex_unlock
(
&
RC
.
ru_mutex
))
==
0
,
"mutex_unlock returns %d
\n
"
,
ret
);
}
AssertFatal
((
ret
=
pthread_mutex_lock
(
&
RC
.
ru_mutex
))
==
0
,
"mutex_lock returns %d
\n
"
,
ret
);
AssertFatal
((
ret
=
pthread_mutex_lock
(
&
RC
.
ru_mutex
))
==
0
,
"mutex_lock returns %d
\n
"
,
ret
);
RC
.
ru_mask
&=
~
(
1
<<
ru
->
idx
);
RC
.
ru_mask
&=
~
(
1
<<
ru
->
idx
);
pthread_cond_signal
(
&
RC
.
ru_cond
);
pthread_cond_signal
(
&
RC
.
ru_cond
);
...
@@ -2202,7 +2200,16 @@ void init_RU_proc(RU_t *ru) {
...
@@ -2202,7 +2200,16 @@ void init_RU_proc(RU_t *ru) {
attr_prach_br
=
&
proc
->
attr_prach_br
;
attr_prach_br
=
&
proc
->
attr_prach_br
;
#endif
#endif
#endif
#endif
if
(
ru
->
function
!=
eNodeB_3GPP
)
pthread_create
(
&
proc
->
pthread_ctrl
,
attr_ctrl
,
ru_thread_control
,
(
void
*
)
ru
);
if
(
ru
->
has_ctrl_prt
==
1
)
pthread_create
(
&
proc
->
pthread_ctrl
,
attr_ctrl
,
ru_thread_control
,
(
void
*
)
ru
);
else
{
if
(
ru
->
start_if
)
{
LOG_I
(
PHY
,
"Starting IF interface for RU %d
\n
"
,
ru
->
idx
);
AssertFatal
(
ru
->
start_if
(
ru
,
NULL
)
==
0
,
"Could not start the IF device
\n
"
);
if
(
ru
->
if_south
!=
LOCAL_RF
)
wait_eNBs
();
}
}
pthread_create
(
&
proc
->
pthread_FH
,
attr_FH
,
ru_thread
,
(
void
*
)
ru
);
pthread_create
(
&
proc
->
pthread_FH
,
attr_FH
,
ru_thread
,
(
void
*
)
ru
);
...
@@ -2954,6 +2961,8 @@ void RCconfig_RU(void) {
...
@@ -2954,6 +2961,8 @@ void RCconfig_RU(void) {
RC
.
ru
[
j
]
->
if_south
=
REMOTE_IF5
;
RC
.
ru
[
j
]
->
if_south
=
REMOTE_IF5
;
RC
.
ru
[
j
]
->
function
=
NGFI_RAU_IF5
;
RC
.
ru
[
j
]
->
function
=
NGFI_RAU_IF5
;
RC
.
ru
[
j
]
->
eth_params
.
transp_preference
=
ETH_UDP_IF5_ORI_MODE
;
RC
.
ru
[
j
]
->
eth_params
.
transp_preference
=
ETH_UDP_IF5_ORI_MODE
;
RC
.
ru
[
j
]
->
has_ctrl_prt
=
0
;
}
}
else
if
(
strcmp
(
*
(
RUParamList
.
paramarray
[
j
][
RU_TRANSPORT_PREFERENCE_IDX
].
strptr
),
"raw"
)
==
0
)
{
else
if
(
strcmp
(
*
(
RUParamList
.
paramarray
[
j
][
RU_TRANSPORT_PREFERENCE_IDX
].
strptr
),
"raw"
)
==
0
)
{
RC
.
ru
[
j
]
->
if_south
=
REMOTE_IF5
;
RC
.
ru
[
j
]
->
if_south
=
REMOTE_IF5
;
...
...
targets/RT/USER/ru_control.c
View file @
0e419d23
...
@@ -513,7 +513,7 @@ void* ru_thread_control( void* param ) {
...
@@ -513,7 +513,7 @@ void* ru_thread_control( void* param ) {
}
}
ru
->
state
=
(
ru
->
function
==
eNodeB_3GPP
)
?
RU_RUN
:
RU_IDLE
;
ru
->
state
=
(
ru
->
function
==
eNodeB_3GPP
||
ru
->
if_south
==
REMOTE_IF5
)
?
RU_RUN
:
RU_IDLE
;
LOG_I
(
PHY
,
"Control channel ON for RU %d
\n
"
,
ru
->
idx
);
LOG_I
(
PHY
,
"Control channel ON for RU %d
\n
"
,
ru
->
idx
);
while
(
!
oai_exit
)
// Change the cond
while
(
!
oai_exit
)
// Change the cond
...
...
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