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
f7811624
Commit
f7811624
authored
Nov 20, 2020
by
Eurecom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regular eNB with usrp seems ok
parent
a627d9c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
targets/RT/USER/lte-ru.c
targets/RT/USER/lte-ru.c
+7
-4
No files found.
targets/RT/USER/lte-ru.c
View file @
f7811624
...
...
@@ -120,6 +120,8 @@ void configure_rru(int idx,
void
reset_proc
(
RU_t
*
ru
);
int
connect_rau
(
RU_t
*
ru
);
void
wait_eNBs
(
void
);
const
char
ru_states
[
6
][
9
]
=
{
"RU_IDLE"
,
"RU_CONFIG"
,
"RU_READY"
,
"RU_RUN"
,
"RU_ERROR"
,
"RU_SYNC"
};
extern
uint16_t
sf_ahead
;
...
...
@@ -651,7 +653,7 @@ void rx_rf(RU_t *ru,
ru
->
ts_offset
=
proc
->
timestamp_rx
;
proc
->
timestamp_rx
=
0
;
}
else
if
(
resynch
==
0
&&
(
proc
->
timestamp_rx
-
old_ts
!=
fp
->
samples_per_tti
))
{
LOG_
I
(
PHY
,
"rx_rf: rfdevice timing drift of %"
PRId64
" samples (ts_off %"
PRId64
")
\n
"
,
proc
->
timestamp_rx
-
old_ts
-
fp
->
samples_per_tti
,
ru
->
ts_offset
);
LOG_
D
(
PHY
,
"rx_rf: rfdevice timing drift of %"
PRId64
" samples (ts_off %"
PRId64
")
\n
"
,
proc
->
timestamp_rx
-
old_ts
-
fp
->
samples_per_tti
,
ru
->
ts_offset
);
ru
->
ts_offset
+=
(
proc
->
timestamp_rx
-
old_ts
-
fp
->
samples_per_tti
);
proc
->
timestamp_rx
=
ts
-
ru
->
ts_offset
;
}
...
...
@@ -680,7 +682,7 @@ void rx_rf(RU_t *ru,
(
int
)
ru
->
ts_offset
,
proc
->
frame_rx
,
proc
->
tti_rx
);
LOG_
I
(
PHY
,
"south_in/rx_rf: RU %d/%d TS %llu (off %d), frame %d, subframe %d
\n
"
,
LOG_
D
(
PHY
,
"south_in/rx_rf: RU %d/%d TS %llu (off %d), frame %d, subframe %d
\n
"
,
ru
->
idx
,
0
,
(
unsigned
long
long
int
)
proc
->
timestamp_rx
,
...
...
@@ -2184,7 +2186,7 @@ void reset_proc(RU_t *ru) {
void
init_RU_proc
(
RU_t
*
ru
)
{
int
i
=
0
,
ret
;
int
i
=
0
;
RU_proc_t
*
proc
;
pthread_attr_t
*
attr_FH
=
NULL
,
*
attr_FH1
=
NULL
,
*
attr_prach
=
NULL
,
*
attr_asynch
=
NULL
,
*
attr_synch
=
NULL
,
*
attr_emulateRF
=
NULL
,
*
attr_ctrl
=
NULL
,
*
attr_prach_br
=
NULL
;
//pthread_attr_t *attr_fep=NULL;
...
...
@@ -2310,7 +2312,7 @@ void init_RU_proc(RU_t *ru) {
}
if
(
opp_enabled
==
1
)
pthread_create
(
&
ru
->
ru_stats_thread
,
NULL
,
ru_stats_thread
,(
void
*
)
ru
);
/*
if (ru->function == eNodeB_3GPP) {
usleep(10000);
LOG_I(PHY, "Signaling main thread that RU %d (is_slave %d,send_dmrs %d) is ready in state %s\n",ru->idx,ru->is_slave,ru->generate_dmrs_sync,ru_states[ru->state]);
...
...
@@ -2319,6 +2321,7 @@ void init_RU_proc(RU_t *ru) {
pthread_cond_signal(&RC.ru_cond);
AssertFatal((ret=pthread_mutex_unlock(&RC.ru_mutex))==0,"mutex_unlock returns %d\n",ret);
}
*/
}
...
...
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