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
8846260b
Commit
8846260b
authored
Oct 22, 2017
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added prach background noise detection and threshold dependent on noise measurement.
parent
26d4ad2b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
26 deletions
+32
-26
openair1/PHY/LTE_TRANSPORT/prach.c
openair1/PHY/LTE_TRANSPORT/prach.c
+2
-2
openair1/PHY/defs.h
openair1/PHY/defs.h
+4
-3
openair1/SCHED/phy_procedures_lte_eNb.c
openair1/SCHED/phy_procedures_lte_eNb.c
+25
-21
targets/RT/USER/lte-enb.c
targets/RT/USER/lte-enb.c
+1
-0
No files found.
openair1/PHY/LTE_TRANSPORT/prach.c
View file @
8846260b
...
@@ -1648,13 +1648,13 @@ void rx_prach0(PHY_VARS_eNB *eNB,
...
@@ -1648,13 +1648,13 @@ void rx_prach0(PHY_VARS_eNB *eNB,
idft1024
(
prachF
,
prach_ifft_tmp
,
1
);
idft1024
(
prachF
,
prach_ifft_tmp
,
1
);
// compute energy and accumulate over receive antennas and repetitions for BR
// compute energy and accumulate over receive antennas and repetitions for BR
for
(
i
=
0
;
i
<
2048
;
i
++
)
for
(
i
=
0
;
i
<
2048
;
i
++
)
prach_ifft
[
i
]
+=
(
prach_ifft_tmp
[
i
<<
1
]
*
prach_ifft_tmp
[
i
<<
1
]
+
prach_ifft_tmp
[
1
+
(
i
<<
1
)]
*
prach_ifft_tmp
[
1
+
(
i
<<
1
)])
>>
1
5
;
prach_ifft
[
i
]
+=
(
prach_ifft_tmp
[
i
<<
1
]
*
prach_ifft_tmp
[
i
<<
1
]
+
prach_ifft_tmp
[
1
+
(
i
<<
1
)]
*
prach_ifft_tmp
[
1
+
(
i
<<
1
)])
>>
1
0
;
}
else
{
}
else
{
idft256
(
prachF
,
prach_ifft_tmp
,
1
);
idft256
(
prachF
,
prach_ifft_tmp
,
1
);
log2_ifft_size
=
8
;
log2_ifft_size
=
8
;
// compute energy and accumulate over receive antennas and repetitions for BR
// compute energy and accumulate over receive antennas and repetitions for BR
for
(
i
=
0
;
i
<
256
;
i
++
)
for
(
i
=
0
;
i
<
256
;
i
++
)
prach_ifft
[
i
]
+=
(
prach_ifft_tmp
[
i
<<
1
]
*
prach_ifft_tmp
[(
i
<<
1
)]
+
prach_ifft_tmp
[
1
+
(
i
<<
1
)]
*
prach_ifft_tmp
[
1
+
(
i
<<
1
)])
>>
1
5
;
prach_ifft
[
i
]
+=
(
prach_ifft_tmp
[
i
<<
1
]
*
prach_ifft_tmp
[(
i
<<
1
)]
+
prach_ifft_tmp
[
1
+
(
i
<<
1
)]
*
prach_ifft_tmp
[
1
+
(
i
<<
1
)])
>>
1
0
;
}
}
#ifdef PRACH_DEBUG
#ifdef PRACH_DEBUG
...
...
openair1/PHY/defs.h
View file @
8846260b
...
@@ -919,7 +919,8 @@ typedef struct {
...
@@ -919,7 +919,8 @@ typedef struct {
int
subband_cqi_dB
[
NUMBER_OF_UE_MAX
][
MAX_NUM_RU_PER_eNB
][
100
];
int
subband_cqi_dB
[
NUMBER_OF_UE_MAX
][
MAX_NUM_RU_PER_eNB
][
100
];
/// Total Subband CQI and RB
/// Total Subband CQI and RB
int
subband_cqi_tot_dB
[
NUMBER_OF_UE_MAX
][
100
];
int
subband_cqi_tot_dB
[
NUMBER_OF_UE_MAX
][
100
];
/// PRACH background noise level
int
prach_I0
;
}
PHY_MEASUREMENTS_eNB
;
}
PHY_MEASUREMENTS_eNB
;
...
@@ -1035,8 +1036,8 @@ typedef struct PHY_VARS_eNB_s {
...
@@ -1035,8 +1036,8 @@ typedef struct PHY_VARS_eNB_s {
/// if ==0 enables phy only test mode
/// if ==0 enables phy only test mode
int
mac_enabled
;
int
mac_enabled
;
/// counter to average prach energh over first 100 prach opportunities
int
prach_energy_counter
;
// PDSCH Varaibles
// PDSCH Varaibles
PDSCH_CONFIG_DEDICATED
pdsch_config_dedicated
[
NUMBER_OF_UE_MAX
];
PDSCH_CONFIG_DEDICATED
pdsch_config_dedicated
[
NUMBER_OF_UE_MAX
];
...
...
openair1/SCHED/phy_procedures_lte_eNb.c
View file @
8846260b
...
@@ -633,7 +633,8 @@ void prach_procedures(PHY_VARS_eNB *eNB,
...
@@ -633,7 +633,8 @@ void prach_procedures(PHY_VARS_eNB *eNB,
eNB->frame_parms.prach_emtc_config_common.prach_ConfigInfo.prach_numRepetitionPerPreambleAttempt[ce_level])) {
eNB->frame_parms.prach_emtc_config_common.prach_ConfigInfo.prach_numRepetitionPerPreambleAttempt[ce_level])) {
*/
*/
if
(
eNB
->
frame_parms
.
prach_emtc_config_common
.
prach_ConfigInfo
.
prach_CElevel_enable
[
0
]
==
1
){
if
(
eNB
->
frame_parms
.
prach_emtc_config_common
.
prach_ConfigInfo
.
prach_CElevel_enable
[
0
]
==
1
){
if
(
max_preamble_energy
[
0
]
>
350
)
{
if
((
eNB
->
prach_energy_counter
==
100
)
&&
(
max_preamble_energy
[
0
]
>
eNB
->
measurements
.
prach_I0
+
100
))
{
eNB
->
UL_INFO
.
rach_ind_br
.
number_of_preambles
++
;
eNB
->
UL_INFO
.
rach_ind_br
.
number_of_preambles
++
;
eNB
->
preamble_list_br
[
ind
].
preamble_rel8
.
timing_advance
=
max_preamble_delay
[
ind
];
//
eNB
->
preamble_list_br
[
ind
].
preamble_rel8
.
timing_advance
=
max_preamble_delay
[
ind
];
//
...
@@ -661,7 +662,8 @@ void prach_procedures(PHY_VARS_eNB *eNB,
...
@@ -661,7 +662,8 @@ void prach_procedures(PHY_VARS_eNB *eNB,
#endif
#endif
{
{
if
(
max_preamble_energy
[
0
]
>
350
)
{
if
((
eNB
->
prach_energy_counter
==
100
)
&&
(
max_preamble_energy
[
0
]
>
eNB
->
measurements
.
prach_I0
+
100
))
{
LOG_D
(
PHY
,
"[eNB %d/%d][RAPROC] Frame %d, subframe %d Initiating RA procedure with preamble %d, energy %d.%d dB, delay %d
\n
"
,
LOG_D
(
PHY
,
"[eNB %d/%d][RAPROC] Frame %d, subframe %d Initiating RA procedure with preamble %d, energy %d.%d dB, delay %d
\n
"
,
eNB
->
Mod_id
,
eNB
->
Mod_id
,
...
@@ -694,22 +696,13 @@ void prach_procedures(PHY_VARS_eNB *eNB,
...
@@ -694,22 +696,13 @@ void prach_procedures(PHY_VARS_eNB *eNB,
eNB
->
preamble_list
[
0
].
preamble_rel13
.
rach_resource_type
);
eNB
->
preamble_list
[
0
].
preamble_rel13
.
rach_resource_type
);
pthread_mutex_unlock
(
&
eNB
->
UL_INFO_mutex
);
pthread_mutex_unlock
(
&
eNB
->
UL_INFO_mutex
);
}
// max_preamble_energy > 350
}
// max_preamble_energy > prach_I0 + 100
else
{
eNB
->
measurements
.
prach_I0
=
((
eNB
->
measurements
.
prach_I0
*
900
)
>>
10
)
+
((
max_preamble_energy
[
0
]
*
124
)
>>
10
);
if
(
frame
==
0
)
LOG_I
(
PHY
,
"prach_I0 = %d.%d dB
\n
"
,
eNB
->
measurements
.
prach_I0
/
10
,
eNB
->
measurements
.
prach_I0
%
10
);
if
(
eNB
->
prach_energy_counter
<
100
)
eNB
->
prach_energy_counter
++
;
}
}
// else br_flag
}
// else br_flag
/*
mac_xface->initiate_ra_proc(eNB->Mod_id,
eNB->CC_id,
frame,
preamble_max,
preamble_delay_list[preamble_max]*update_TA/update_TA2,
0,subframe,0);*/
/* } else {
MSC_LOG_EVENT(MSC_PHY_ENB, "0 RA Failed add user, too many");
LOG_I(PHY,"[eNB %d][RAPROC] frame %d, subframe %d: Unable to add user, max user count reached\n",
eNB->Mod_id,frame, subframe);
}*/
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_PHY_ENB_PRACH_RX
,
0
);
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_PHY_ENB_PRACH_RX
,
0
);
}
}
...
@@ -1952,16 +1945,27 @@ void phy_procedures_eNB_uespec_RX(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc,const
...
@@ -1952,16 +1945,27 @@ void phy_procedures_eNB_uespec_RX(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc,const
// Call SRS first since all others depend on presence of SRS or lack thereof
// Call SRS first since all others depend on presence of SRS or lack thereof
srs_procedures
(
eNB
,
proc
);
srs_procedures
(
eNB
,
proc
);
lte_eNB_I0_measurements
(
eNB
,
subframe
,
0
,
eNB
->
first_run_I0_measurements
);
eNB
->
first_run_I0_measurements
=
0
;
eNB
->
first_run_I0_measurements
=
0
;
uci_procedures
(
eNB
,
proc
);
uci_procedures
(
eNB
,
proc
);
pusch_procedures
(
eNB
,
proc
);
pusch_procedures
(
eNB
,
proc
);
lte_eNB_I0_measurements
(
eNB
,
subframe
,
0
,
eNB
->
first_run_I0_measurements
);
int
min_I0
=
1000
,
max_I0
=
0
;
if
((
frame
==
0
)
&&
(
subframe
==
6
))
{
for
(
int
i
=
0
;
i
<
eNB
->
frame_parms
.
N_RB_UL
;
i
++
)
{
if
(
i
==
(
eNB
->
frame_parms
.
N_RB_UL
>>
1
)
-
1
)
i
+=
2
;
if
(
eNB
->
measurements
.
n0_subband_power_tot_dB
[
i
]
<
min_I0
)
min_I0
=
eNB
->
measurements
.
n0_subband_power_tot_dB
[
i
];
if
(
eNB
->
measurements
.
n0_subband_power_tot_dB
[
i
]
>
max_I0
)
max_I0
=
eNB
->
measurements
.
n0_subband_power_tot_dB
[
i
];
}
LOG_I
(
PHY
,
"max_I0 %d, min_I0 %d
\n
"
,
max_I0
,
min_I0
);
}
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_PHY_PROCEDURES_ENB_RX_UESPEC
,
0
);
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_PHY_PROCEDURES_ENB_RX_UESPEC
,
0
);
...
...
targets/RT/USER/lte-enb.c
View file @
8846260b
...
@@ -943,6 +943,7 @@ void init_eNB(int single_thread_flag,int wait_for_sync) {
...
@@ -943,6 +943,7 @@ void init_eNB(int single_thread_flag,int wait_for_sync) {
eNB
->
UL_INFO
.
harq_ind
.
harq_pdu_list
=
eNB
->
harq_pdu_list
;
eNB
->
UL_INFO
.
harq_ind
.
harq_pdu_list
=
eNB
->
harq_pdu_list
;
eNB
->
UL_INFO
.
cqi_ind
.
cqi_pdu_list
=
eNB
->
cqi_pdu_list
;
eNB
->
UL_INFO
.
cqi_ind
.
cqi_pdu_list
=
eNB
->
cqi_pdu_list
;
eNB
->
UL_INFO
.
cqi_ind
.
cqi_raw_pdu_list
=
eNB
->
cqi_raw_pdu_list
;
eNB
->
UL_INFO
.
cqi_ind
.
cqi_raw_pdu_list
=
eNB
->
cqi_raw_pdu_list
;
eNB
->
prach_energy_counter
=
0
;
}
}
}
}
...
...
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