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
4e580adc
Commit
4e580adc
authored
Apr 11, 2019
by
laurent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bugs
parent
fb39c1e2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
12 deletions
+10
-12
openair1/PHY/LTE_ESTIMATION/lte_adjust_sync_ue.c
openair1/PHY/LTE_ESTIMATION/lte_adjust_sync_ue.c
+2
-3
openair1/PHY/LTE_ESTIMATION/lte_dl_channel_estimation.c
openair1/PHY/LTE_ESTIMATION/lte_dl_channel_estimation.c
+0
-1
openair1/PHY/LTE_ESTIMATION/lte_ue_measurements.c
openair1/PHY/LTE_ESTIMATION/lte_ue_measurements.c
+6
-6
openair1/PHY/LTE_UE_TRANSPORT/dlsch_demodulation.c
openair1/PHY/LTE_UE_TRANSPORT/dlsch_demodulation.c
+2
-2
No files found.
openair1/PHY/LTE_ESTIMATION/lte_adjust_sync_ue.c
View file @
4e580adc
...
...
@@ -53,7 +53,7 @@ void lte_adjust_synch(LTE_DL_FRAME_PARMS *frame_parms,
ncoef
=
32767
-
coef
;
#ifdef DEBUG_PHY
LOG_D
(
PHY
,
"AbsSubframe %d
.%d: rx_offset (before) = %d
\n
"
,
ue
->
proc
.
proc_rxtx
[
0
].
frame_rx
%
1024
,
subframe
,
ue
->
rx_offset
);
LOG_D
(
PHY
,
"AbsSubframe %d
: rx_offset (before) = %d
\n
"
,
subframe
,
ue
->
rx_offset
);
#endif //DEBUG_PHY
...
...
@@ -121,8 +121,7 @@ void lte_adjust_synch(LTE_DL_FRAME_PARMS *frame_parms,
#ifdef DEBUG_PHY
LOG_D
(
PHY
,
"AbsSubframe %d.%d: ThreadId %d diff =%i rx_offset (final) = %i : clear %d,max_pos = %d,max_pos_fil = %d (peak %d) max_val %d target_pos %d
\n
"
,
ue
->
proc
.
proc_rxtx
[
ue
->
current_thread_id
[
subframe
]].
frame_rx
,
LOG_D
(
PHY
,
"AbsSubframe %d: ThreadId %d diff =%i rx_offset (final) = %i : clear %d,max_pos = %d,max_pos_fil = %d (peak %d) max_val %d target_pos %d
\n
"
,
subframe
,
ue
->
current_thread_id
[
subframe
],
diff
,
...
...
openair1/PHY/LTE_ESTIMATION/lte_dl_channel_estimation.c
View file @
4e580adc
...
...
@@ -702,7 +702,6 @@ int lte_dl_channel_estimation(PHY_VARS_UE *ue,
}
T
(
T_UE_PHY_DL_CHANNEL_ESTIMATE
,
T_INT
(
eNB_id
),
T_INT
(
ue
->
proc
.
proc_rxtx
[
ue
->
current_thread_id
[
Ns
>>
1
]].
frame_rx
%
1024
),
T_INT
(
ue
->
proc
.
proc_rxtx
[
ue
->
current_thread_id
[
Ns
>>
1
]].
subframe_rx
),
T_INT
(
0
),
T_BUFFER
(
&
ue
->
common_vars
.
common_vars_rx_data_per_thread
[
ue
->
current_thread_id
[
Ns
>>
1
]].
dl_ch_estimates_time
[
eNB_offset
][
0
][
0
],
512
*
4
));
return
(
0
);
}
...
...
openair1/PHY/LTE_ESTIMATION/lte_ue_measurements.c
View file @
4e580adc
...
...
@@ -69,7 +69,7 @@ int16_t get_PL(module_id_t Mod_id,uint8_t CC_id,uint8_t eNB_index)
RSoffset = 3;
*/
LOG_D
(
PHY
,
"get_PL :
Frame %d : rsrp %f dBm/RE (%f), eNB power %d dBm/RE
\n
"
,
ue
->
proc
.
proc_rxtx
[
0
].
frame_rx
,
LOG_D
(
PHY
,
"get_PL :
rsrp %f dBm/RE (%f), eNB power %d dBm/RE
\n
"
,
(
1
.
0
*
dB_fixed_times10
(
ue
->
measurements
.
rsrp
[
eNB_index
])
-
(
10
.
0
*
ue
->
rx_total_gain_dB
))
/
10
.
0
,
10
*
log10
((
double
)
ue
->
measurements
.
rsrp
[
eNB_index
]),
ue
->
frame_parms
.
pdsch_config_common
.
referenceSignalPower
);
...
...
@@ -343,7 +343,7 @@ void ue_rrc_measurements(PHY_VARS_UE *ue,
for
(
l
=
0
,
nu
=
0
;
l
<=
(
4
-
ue
->
frame_parms
.
Ncp
);
l
+=
(
4
-
ue
->
frame_parms
.
Ncp
),
nu
=
3
)
{
k
=
(
nu
+
nushift
)
%
6
;
//#ifdef DEBUG_MEAS_RRC
LOG_D
(
PHY
,
"[UE %d]
Frame %d subframe %d Doing ue_rrc_measurements rsrp/rssi (Nid_cell %d, nushift %d, eNB_offset %d, k %d, l %d)
\n
"
,
ue
->
Mod_id
,
ue
->
proc
.
proc_rxtx
[
subframe
&
1
].
frame_rx
,
subframe
,
Nid_cell
,
nushift
,
LOG_D
(
PHY
,
"[UE %d]
subframe %d Doing ue_rrc_measurements rsrp/rssi (Nid_cell %d, nushift %d, eNB_offset %d, k %d, l %d)
\n
"
,
ue
->
Mod_id
,
subframe
,
Nid_cell
,
nushift
,
eNB_offset
,
k
,
l
);
//#endif
...
...
@@ -426,15 +426,15 @@ void ue_rrc_measurements(PHY_VARS_UE *ue,
if
(
eNB_offset
==
0
)
LOG_D
(
PHY
,
"[UE %d]
Frame %d,
subframe %d RRC Measurements => rssi %3.1f dBm (digital: %3.1f dB, gain %d), N0 %d dBm
\n
"
,
ue
->
Mod_id
,
ue
->
proc
.
proc_rxtx
[
subframe
&
1
].
frame_rx
,
subframe
,
10
*
log10
(
ue
->
measurements
.
rssi
)
-
ue
->
rx_total_gain_dB
,
LOG_D
(
PHY
,
"[UE %d] subframe %d RRC Measurements => rssi %3.1f dBm (digital: %3.1f dB, gain %d), N0 %d dBm
\n
"
,
ue
->
Mod_id
,
subframe
,
10
*
log10
(
ue
->
measurements
.
rssi
)
-
ue
->
rx_total_gain_dB
,
10
*
log10
(
ue
->
measurements
.
rssi
),
ue
->
rx_total_gain_dB
,
ue
->
measurements
.
n0_power_tot_dBm
);
LOG_D
(
PHY
,
"[UE %d]
Frame %d,
subframe %d RRC Measurements (idx %d, Cell id %d) => rsrp: %3.1f dBm/RE (%d), rsrq: %3.1f dB
\n
"
,
LOG_D
(
PHY
,
"[UE %d] subframe %d RRC Measurements (idx %d, Cell id %d) => rsrp: %3.1f dBm/RE (%d), rsrq: %3.1f dB
\n
"
,
ue
->
Mod_id
,
ue
->
proc
.
proc_rxtx
[
subframe
&
1
].
frame_rx
,
subframe
,
eNB_offset
,
subframe
,
eNB_offset
,
(
eNB_offset
>
0
)
?
ue
->
measurements
.
adj_cell_id
[
eNB_offset
-
1
]
:
ue
->
frame_parms
.
Nid_cell
,
10
*
log10
(
ue
->
measurements
.
rsrp
[
eNB_offset
])
-
ue
->
rx_total_gain_dB
,
ue
->
measurements
.
rsrp
[
eNB_offset
],
...
...
openair1/PHY/LTE_UE_TRANSPORT/dlsch_demodulation.c
View file @
4e580adc
...
...
@@ -185,7 +185,7 @@ int rx_pdsch(PHY_VARS_UE *ue,
printf
(
"[DEMOD] I am assuming only TB1 is active, it is in cw %d
\n
"
,
dlsch0_harq
->
codeword
);
#endif
}
else
{
LOG_E
(
PHY
,
"[UE][FATAL]
Frame %d subframe %d: no active DLSCH
\n
"
,
ue
->
proc
.
proc_rxtx
[
0
].
frame_rx
,
subframe
);
LOG_E
(
PHY
,
"[UE][FATAL]
subframe %d: no active DLSCH
\n
"
,
subframe
);
return
(
-
1
);
}
...
...
@@ -193,7 +193,7 @@ int rx_pdsch(PHY_VARS_UE *ue,
break
;
default:
LOG_E
(
PHY
,
"[UE][FATAL]
Frame %d subframe %d: Unknown PDSCH format %d
\n
"
,
ue
->
proc
.
proc_rxtx
[
0
].
frame_rx
,
subframe
,
type
);
LOG_E
(
PHY
,
"[UE][FATAL]
subframe %d: Unknown PDSCH format %d
\n
"
,
subframe
,
type
);
return
(
-
1
);
break
;
}
...
...
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