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
lizhongxiao
OpenXG-RAN
Commits
4f7b4d5b
Commit
4f7b4d5b
authored
Oct 29, 2018
by
Raymond Knoppp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes at aquila
parent
f43149e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
targets/RT/USER/lte-ru.c
targets/RT/USER/lte-ru.c
+5
-5
No files found.
targets/RT/USER/lte-ru.c
View file @
4f7b4d5b
...
...
@@ -128,7 +128,7 @@ extern void phy_free_RU(RU_t*);
void
init_RU
(
char
*
,
clock_source_t
clock_source
,
clock_source_t
time_source
,
int
generate_dmrssync
);
void
stop_RU
(
int
nb_ru
);
void
do_ru_sync
(
RU_t
*
ru
);
void
do_ru_sync
h
(
RU_t
*
ru
);
void
reset_proc
(
RU_t
*
ru
);
...
...
@@ -600,6 +600,7 @@ void rx_rf(RU_t *ru,int *frame,int *subframe) {
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_TRX_READ
,
0
);
ru
->
south_in_cnt
++
;
LOG_I
(
PHY
,
"south_in_cnt %d
\n
"
,
ru
->
south_in_cnt
);
if
(
ru
->
cmd
==
RU_FRAME_RESYNCH
)
{
LOG_I
(
PHY
,
"Applying frame resynch %d => %d
\n
"
,
*
frame
,
ru
->
cmdval
);
...
...
@@ -1080,7 +1081,6 @@ void do_ru_synch(RU_t *ru) {
fp
->
samples_per_tti
*
10
,
ru
->
nb_rx
);
if
(
rxs
!=
fp
->
samples_per_tti
*
10
)
LOG_E
(
PHY
,
"requested %d samples, got %d
\n
"
,
fp
->
samples_per_tti
*
10
,
rxs
);
// wakeup synchronization processing thread
wakeup_synch
(
ru
);
ic
=
0
;
...
...
@@ -1885,15 +1885,15 @@ void *ru_thread_synch(void *arg) {
&
avg
);
LOG_I
(
PHY
,
"RU synch cnt %d: %d, val %llu (%d dB,%d dB)
\n
"
,
cnt
,
ru
->
rx_offset
,(
unsigned
long
long
)
peak_val
,
dB_fixed64
(
peak_val
),
dB_fixed64
(
avg
));
cnt
++
;
if
(
ru
->
rx_offset
>=
0
&&
cnt
>
5
0
)
{
if
(
/*ru->rx_offset >= 0*/
dB_fixed64
(
peak_val
)
>=
85
&&
cnt
>
1
0
)
{
LOG_I
(
PHY
,
"Estimated peak_val %d dB, avg %d => timing offset %llu
\n
"
,
dB_fixed
(
peak_val
),
dB_fixed
(
avg
),(
unsigned
long
long
int
)
ru
->
rx_offset
);
ru
->
in_synch
=
1
;
/*
LOG_M
(
"ru_sync_rx.m"
,
"rurx"
,
&
ru
->
common
.
rxdata
[
0
][
0
],
LTE_NUMBER_OF_SUBFRAMES_PER_FRAME
*
fp
->
samples_per_tti
,
1
,
1
);
LOG_M
(
"ru_sync_corr.m"
,
"sync_corr"
,
ru
->
dmrs_corr
,
LTE_NUMBER_OF_SUBFRAMES_PER_FRAME
*
fp
->
samples_per_tti
,
1
,
6
);
LOG_M
(
"ru_dmrs.m"
,
"rudmrs"
,
&
ru
->
dmrssync
[
0
],
fp
->
ofdm_symbol_size
,
1
,
1
);
exit(-1);*/
//exit(-1);
}
// sync_pos > 0
else
//AssertFatal(cnt<1000,"Cannot find synch reference\n");
{
...
...
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