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
canghaiwuhen
OpenXG-RAN
Commits
75325ec7
Commit
75325ec7
authored
Feb 25, 2018
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debbuging for RU state control
parent
d4eb5466
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
targets/RT/USER/lte-ru.c
targets/RT/USER/lte-ru.c
+3
-3
targets/SIMU/USER/oaisim.c
targets/SIMU/USER/oaisim.c
+3
-6
No files found.
targets/RT/USER/lte-ru.c
View file @
75325ec7
...
...
@@ -691,7 +691,7 @@ void fh_if4p5_north_asynch_in(RU_t *ru,int *frame,int *subframe) {
pthread_mutex_lock
(
&
proc
->
mutex_ru
);
proc
->
instance_cnt_ru
=
-
1
;
pthread_mutex_unlock
(
&
proc
->
mutex_ru
);
ru
->
cmd
=
EMPTY
;
ru
->
cmd
=
STOP_RU
;
return
;
}
if
((
subframe_select
(
fp
,
subframe_tx
)
==
SF_DL
)
&&
(
symbol_number
==
0
))
start_meas
(
&
ru
->
rx_fhaul
);
...
...
@@ -1839,8 +1839,7 @@ static void* ru_thread( void* param ) {
break
;
}
if
(
ru
->
fh_south_in
&&
ru
->
state
==
RU_RUN
)
ru
->
fh_south_in
(
ru
,
&
frame
,
&
subframe
);
if
(
ru
->
fh_south_in
&&
ru
->
state
==
RU_RUN
)
ru
->
fh_south_in
(
ru
,
&
frame
,
&
subframe
);
else
AssertFatal
(
1
==
0
,
"No fronthaul interface at south port"
);
if
((
ru
->
do_prach
>
0
)
&&
(
is_prach_subframe
(
fp
,
proc
->
frame_rx
,
proc
->
subframe_rx
)
==
1
))
{
...
...
@@ -1879,6 +1878,7 @@ static void* ru_thread( void* param ) {
if
(
ru
->
fh_north_out
)
ru
->
fh_north_out
(
ru
);
LOG_I
(
PHY
,
"ru->state = %d (RU_RUN is %d)
\n
"
,
ru
->
state
,
RU_RUN
);
}
}
// while !oai_exit
...
...
targets/SIMU/USER/oaisim.c
View file @
75325ec7
...
...
@@ -737,19 +737,16 @@ l2l1_task (void *args_p)
CC_id
=
0
;
int
all_done
=
0
;
while
(
all_done
==
0
)
{
pthread_mutex_lock
(
&
subframe_mutex
);
int
subframe_ru_mask_local
=
((
1
<<
NB_RU
)
-
1
);
//subframe_ru_mask
;
int
subframe_ru_mask_local
=
subframe_ru_mask
;
//((1<<NB_RU)-1)
;
int
subframe_UE_mask_local
=
subframe_UE_mask
;
pthread_mutex_unlock
(
&
subframe_mutex
);
LOG_D
(
EMU
,
"Frame %d, Subframe %d, NB_RU %d, NB_UE %d: Checking masks %x,%x
\n
"
,
frame
,
sf
,
NB_RU
,
NB_UE_INST
,
subframe_ru_mask_local
,
subframe_UE_mask_local
);
if
((
subframe_ru_mask_local
==
((
1
<<
NB_RU
)
-
1
))
&&
(
subframe_UE_mask_local
==
((
1
<<
NB_UE_INST
)
-
1
)))
all_done
=
1
;
else
usleep
(
1500
);
(
subframe_UE_mask_local
==
((
1
<<
NB_UE_INST
)
-
1
)))
all_done
=
1
;
else
usleep
(
1500
);
}
...
...
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