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
63d6b59f
Commit
63d6b59f
authored
Mar 24, 2020
by
cig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enabled check on UE mode to start either ULSCH and PRACH procedures:
- ULSCH is temporary disabled
parent
d6f597ce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
+18
-18
No files found.
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
View file @
63d6b59f
...
...
@@ -2243,12 +2243,8 @@ void phy_procedures_nrUE_TX(PHY_VARS_NR_UE *ue,
start_meas
(
&
ue
->
phy_proc_tx
);
#endif
nr_ue_ulsch_procedures
(
ue
,
harq_pid
,
frame_tx
,
slot_tx
,
thread_id
,
gNB_id
);
if
(
ue
->
UE_mode
[
gNB_id
]
==
PUSCH
){
nr_ue_ulsch_procedures
(
ue
,
harq_pid
,
frame_tx
,
slot_tx
,
thread_id
,
gNB_id
);
/*
if (ue->UE_mode[eNB_id] == PUSCH) {
...
...
@@ -2266,6 +2262,7 @@ void phy_procedures_nrUE_TX(PHY_VARS_NR_UE *ue,
thread_id
,
gNB_id
,
&
ue
->
frame_parms
);
}
/* RACH */
...
...
@@ -2451,7 +2448,7 @@ void restart_phy(PHY_VARS_NR_UE *ue,UE_nr_rxtx_proc_t *proc, uint8_t eNB_id,uint
}
#endif //(0)
void
nr_ue_pbch_procedures
(
uint8_t
e
NB_id
,
void
nr_ue_pbch_procedures
(
uint8_t
g
NB_id
,
PHY_VARS_NR_UE
*
ue
,
UE_nr_rxtx_proc_t
*
proc
,
uint8_t
abstraction_flag
)
...
...
@@ -2470,20 +2467,23 @@ void nr_ue_pbch_procedures(uint8_t eNB_id,
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_UE_PBCH_PROCEDURES
,
VCD_FUNCTION_IN
);
//LOG_I(PHY,"[UE %d] Frame %d, Trying PBCH %d (NidCell %d,
eNB_id %d)\n",ue->Mod_id,frame_rx,pbch_phase,ue->frame_parms.Nid_cell,e
NB_id);
//LOG_I(PHY,"[UE %d] Frame %d, Trying PBCH %d (NidCell %d,
gNB_id %d)\n",ue->Mod_id,frame_rx,pbch_phase,ue->frame_parms.Nid_cell,g
NB_id);
ret
=
nr_rx_pbch
(
ue
,
proc
,
ue
->
pbch_vars
[
e
NB_id
],
ue
->
pbch_vars
[
g
NB_id
],
&
ue
->
frame_parms
,
e
NB_id
,
g
NB_id
,
(
ue
->
frame_parms
.
ssb_index
)
&
7
,
SISO
,
ue
->
high_speed_flag
);
if
(
ret
==
0
)
{
ue
->
pbch_vars
[
e
NB_id
]
->
pdu_errors_conseq
=
0
;
ue
->
pbch_vars
[
g
NB_id
]
->
pdu_errors_conseq
=
0
;
// Switch to PRACH state if it is first PBCH after initial synch and no timing correction is performed
if
(
ue
->
UE_mode
[
gNB_id
]
==
NOT_SYNCHED
&&
ue
->
no_timing_correction
==
1
)
ue
->
UE_mode
[
gNB_id
]
=
PRACH
;
#ifdef DEBUG_PHY_PROC
uint16_t
frame_tx
;
...
...
@@ -2513,25 +2513,25 @@ void nr_ue_pbch_procedures(uint8_t eNB_id,
exit(-1);
*/
ue
->
pbch_vars
[
e
NB_id
]
->
pdu_errors_conseq
++
;
ue
->
pbch_vars
[
e
NB_id
]
->
pdu_errors
++
;
ue
->
pbch_vars
[
g
NB_id
]
->
pdu_errors_conseq
++
;
ue
->
pbch_vars
[
g
NB_id
]
->
pdu_errors
++
;
if
(
ue
->
pbch_vars
[
e
NB_id
]
->
pdu_errors_conseq
>=
100
)
{
if
(
ue
->
pbch_vars
[
g
NB_id
]
->
pdu_errors_conseq
>=
100
)
{
LOG_E
(
PHY
,
"More that 100 consecutive PBCH errors! Exiting!
\n
"
);
exit_fun
(
"More that 100 consecutive PBCH errors! Exiting!
\n
"
);
}
}
if
(
frame_rx
%
100
==
0
)
{
ue
->
pbch_vars
[
eNB_id
]
->
pdu_fer
=
ue
->
pbch_vars
[
eNB_id
]
->
pdu_errors
-
ue
->
pbch_vars
[
e
NB_id
]
->
pdu_errors_last
;
ue
->
pbch_vars
[
eNB_id
]
->
pdu_errors_last
=
ue
->
pbch_vars
[
e
NB_id
]
->
pdu_errors
;
ue
->
pbch_vars
[
gNB_id
]
->
pdu_fer
=
ue
->
pbch_vars
[
gNB_id
]
->
pdu_errors
-
ue
->
pbch_vars
[
g
NB_id
]
->
pdu_errors_last
;
ue
->
pbch_vars
[
gNB_id
]
->
pdu_errors_last
=
ue
->
pbch_vars
[
g
NB_id
]
->
pdu_errors
;
}
#ifdef DEBUG_PHY_PROC
LOG_D
(
PHY
,
"[UE %d] frame %d, slot %d, PBCH errors = %d, consecutive errors = %d!
\n
"
,
ue
->
Mod_id
,
frame_rx
,
nr_tti_rx
,
ue
->
pbch_vars
[
e
NB_id
]
->
pdu_errors
,
ue
->
pbch_vars
[
e
NB_id
]
->
pdu_errors_conseq
);
ue
->
pbch_vars
[
g
NB_id
]
->
pdu_errors
,
ue
->
pbch_vars
[
g
NB_id
]
->
pdu_errors_conseq
);
#endif
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_UE_PBCH_PROCEDURES
,
VCD_FUNCTION_OUT
);
}
...
...
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