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
f9aba7ac
Commit
f9aba7ac
authored
Feb 04, 2018
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OTA synchronization for TDD. Added PSS position computation for testing on EURECOM CRAN.
parent
9e69e729
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
targets/RT/USER/lte-ru.c
targets/RT/USER/lte-ru.c
+13
-10
No files found.
targets/RT/USER/lte-ru.c
View file @
f9aba7ac
...
...
@@ -1869,20 +1869,23 @@ void *ru_thread_synch(void *arg) {
sync_pos2
=
sync_pos
-
fp
->
nb_prefix_samples
;
else
sync_pos2
=
sync_pos
+
(
fp
->
samples_per_tti
*
10
)
-
fp
->
nb_prefix_samples
;
int
sync_pos_slot
;
if
(
fp
->
frame_type
==
FDD
)
{
// PSS is hypothesized in last symbol of first slot in Frame
int
sync_pos_slot
=
(
fp
->
samples_per_tti
>>
1
)
-
fp
->
ofdm_symbol_size
-
fp
->
nb_prefix_samples
;
if
(
sync_pos2
>=
sync_pos_slot
)
ru
->
rx_offset
=
sync_pos2
-
sync_pos_slot
;
else
ru
->
rx_offset
=
(
fp
->
samples_per_tti
*
10
)
+
sync_pos2
-
sync_pos_slot
;
sync_pos_slot
=
(
fp
->
samples_per_tti
>>
1
)
-
fp
->
ofdm_symbol_size
-
fp
->
nb_prefix_samples
;
}
else
{
}
// PSS is hypothesized in 2nd symbol of third slot in Frame (S-subframe)
sync_pos_slot
=
fp
->
samples_per_tti
+
(
fp
->
ofdm_symbol_size
<<
1
)
+
fp
->
nb_prefix_samples0
+
(
fp
->
nb_prefix_samples
);
}
if
(
sync_pos2
>=
sync_pos_slot
)
ru
->
rx_offset
=
sync_pos2
-
sync_pos_slot
;
else
ru
->
rx_offset
=
(
fp
->
samples_per_tti
*
10
)
+
sync_pos2
-
sync_pos_slot
;
LOG_I
(
PHY
,
"Estimated sync_pos %d, peak_val %d => timing offset %d
\n
"
,
sync_pos
,
peak_val
,
ru
->
rx_offset
);
...
...
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