Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Balaji Kolla
openairinterface5G
Commits
36fb0aae
Commit
36fb0aae
authored
9 years ago
by
Florian Kaltenberger
Browse files
Options
Downloads
Patches
Plain Diff
initial synch gain control measurement when unsynchronized reverted to take measurement around PSS
parent
41e3429e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
openair1/PHY/LTE_ESTIMATION/lte_sync_time.c
+2
-5
2 additions, 5 deletions
openair1/PHY/LTE_ESTIMATION/lte_sync_time.c
openair1/PHY/LTE_TRANSPORT/initial_sync.c
+9
-2
9 additions, 2 deletions
openair1/PHY/LTE_TRANSPORT/initial_sync.c
with
11 additions
and
7 deletions
openair1/PHY/LTE_ESTIMATION/lte_sync_time.c
+
2
−
5
View file @
36fb0aae
...
...
@@ -483,13 +483,10 @@ int lte_sync_time(int **rxdata, ///rx data in time domain
*
eNB_id
=
sync_source
;
#ifdef DEBUG_PHY
msg
(
"[PHY][UE] lte_sync_time: Sync source = %d, Peak found at pos %d, val = %d
\n
"
,
sync_source
,
peak_pos
,
peak_val
);
LOG_D
(
PHY
,
"[UE] lte_sync_time: Sync source = %d, Peak found at pos %d, val = %d (%d dB)
\n
"
,
sync_source
,
peak_pos
,
peak_val
,
dB_fixed
(
peak_val
)
/
2
);
#ifdef DEBUG_PHY
if
(
debug_cnt
==
0
)
{
write_output
(
"sync_corr0_ue.m"
,
"synccorr0"
,
sync_corr_ue0
,
2
*
length
,
1
,
2
);
write_output
(
"sync_corr1_ue.m"
,
"synccorr1"
,
sync_corr_ue1
,
2
*
length
,
1
,
2
);
...
...
This diff is collapsed.
Click to expand it.
openair1/PHY/LTE_TRANSPORT/initial_sync.c
+
9
−
2
View file @
36fb0aae
...
...
@@ -571,12 +571,20 @@ int initial_sync(PHY_VARS_UE *phy_vars_ue, runmode_t mode)
}
// gain control
if
(
ret
!=
0
)
{
//we are not synched, so
do a measurement on the full frame
if
(
ret
!=
0
)
{
//we are not synched, so
we cannot use rssi measurement (which is based on channel estimates)
rx_power
=
0
;
// do a measurement on the best guess of the PSS
for
(
aarx
=
0
;
aarx
<
frame_parms
->
nb_antennas_rx
;
aarx
++
)
rx_power
+=
signal_energy
(
&
phy_vars_ue
->
lte_ue_common_vars
.
rxdata
[
aarx
][
sync_pos2
],
frame_parms
->
ofdm_symbol_size
+
frame_parms
->
nb_prefix_samples
);
/*
// do a measurement on the full frame
for (aarx=0; aarx<frame_parms->nb_antennas_rx; aarx++)
rx_power += signal_energy(&phy_vars_ue->lte_ue_common_vars.rxdata[aarx][0],
frame_parms->samples_per_tti*10);
*/
// we might add a low-pass filter here later
phy_vars_ue
->
PHY_measurements
.
rx_power_avg
[
0
]
=
rx_power
/
frame_parms
->
nb_antennas_rx
;
...
...
@@ -617,7 +625,6 @@ int initial_sync(PHY_VARS_UE *phy_vars_ue, runmode_t mode)
#endif
}
// exit_fun("debug exit");
return
ret
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment