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
promise
OpenXG-RAN
Commits
4b021014
Commit
4b021014
authored
Dec 15, 2020
by
Francesco Mani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scheduling msg2 in fr2 according to beam
parent
48ad90bc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
35 deletions
+29
-35
openair1/SCHED_NR/phy_procedures_nr_gNB.c
openair1/SCHED_NR/phy_procedures_nr_gNB.c
+1
-1
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
+28
-34
No files found.
openair1/SCHED_NR/phy_procedures_nr_gNB.c
View file @
4b021014
...
@@ -137,7 +137,7 @@ void nr_common_signal_procedures (PHY_VARS_gNB *gNB,int frame, int slot) {
...
@@ -137,7 +137,7 @@ void nr_common_signal_procedures (PHY_VARS_gNB *gNB,int frame, int slot) {
LOG_W
(
PHY
,
"beamforming currently not supported for more than one SSB per slot
\n
"
);
LOG_W
(
PHY
,
"beamforming currently not supported for more than one SSB per slot
\n
"
);
}
}
else
if
(
ssb_per_slot
==
1
)
{
else
if
(
ssb_per_slot
==
1
)
{
LOG_
I
(
PHY
,
"slot %d, ssb_index %d, beam %d
\n
"
,
slot
,
ssb_index
,
cfg
->
ssb_table
.
ssb_beam_id_list
[
ssb_index
].
beam_id
.
value
);
LOG_
D
(
PHY
,
"slot %d, ssb_index %d, beam %d
\n
"
,
slot
,
ssb_index
,
cfg
->
ssb_table
.
ssb_beam_id_list
[
ssb_index
].
beam_id
.
value
);
for
(
int
j
=
0
;
j
<
fp
->
symbols_per_slot
;
j
++
)
for
(
int
j
=
0
;
j
<
fp
->
symbols_per_slot
;
j
++
)
gNB
->
common_vars
.
beam_id
[
0
][
slot
*
fp
->
symbols_per_slot
+
j
]
=
cfg
->
ssb_table
.
ssb_beam_id_list
[
ssb_index
].
beam_id
.
value
;
gNB
->
common_vars
.
beam_id
[
0
][
slot
*
fp
->
symbols_per_slot
+
j
]
=
cfg
->
ssb_table
.
ssb_beam_id_list
[
ssb_index
].
beam_id
.
value
;
}
}
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
View file @
4b021014
...
@@ -349,7 +349,8 @@ void nr_schedule_msg2(uint16_t rach_frame, uint16_t rach_slot,
...
@@ -349,7 +349,8 @@ void nr_schedule_msg2(uint16_t rach_frame, uint16_t rach_slot,
uint16_t
*
msg2_frame
,
uint16_t
*
msg2_slot
,
uint16_t
*
msg2_frame
,
uint16_t
*
msg2_slot
,
NR_ServingCellConfigCommon_t
*
scc
,
NR_ServingCellConfigCommon_t
*
scc
,
uint16_t
monitoring_slot_period
,
uint16_t
monitoring_slot_period
,
uint16_t
monitoring_offset
,
uint8_t
index
,
uint8_t
num_active_ssb
){
uint16_t
monitoring_offset
,
uint8_t
beam_index
,
int16_t
*
tdd_beam_association
){
// preferentially we schedule the msg2 in the mixed slot or in the last dl slot
// preferentially we schedule the msg2 in the mixed slot or in the last dl slot
// if they are allowed by search space configuration
// if they are allowed by search space configuration
...
@@ -366,38 +367,6 @@ void nr_schedule_msg2(uint16_t rach_frame, uint16_t rach_slot,
...
@@ -366,38 +367,6 @@ void nr_schedule_msg2(uint16_t rach_frame, uint16_t rach_slot,
if
((
scc
->
tdd_UL_DL_ConfigurationCommon
->
pattern1
.
nrofDownlinkSymbols
>
0
)
||
(
scc
->
tdd_UL_DL_ConfigurationCommon
->
pattern1
.
nrofUplinkSymbols
>
0
))
if
((
scc
->
tdd_UL_DL_ConfigurationCommon
->
pattern1
.
nrofDownlinkSymbols
>
0
)
||
(
scc
->
tdd_UL_DL_ConfigurationCommon
->
pattern1
.
nrofUplinkSymbols
>
0
))
tdd_period_slot
++
;
tdd_period_slot
++
;
// computing start of next period
/*
int FR = *scc->downlinkConfigCommon->frequencyInfoDL->frequencyBandList.list.array[0] >= 257 ? nr_FR2 : nr_FR1;
uint8_t start_next_period;
if (FR==nr_FR1) {
start_next_period = (rach_slot-(rach_slot%tdd_period_slot)+tdd_period_slot)%nr_slots_per_frame[mu];
*msg2_slot = start_next_period + last_dl_slot_period; // initializing scheduling of slot to next mixed (or last dl) slot
*msg2_frame = (*msg2_slot>(rach_slot))? rach_frame : (rach_frame +1);
}
else {
// in FR2 we need to wait till the second half frame for msg2 since all beams are taken in first half frame by SSBs
if (rach_slot<30) start_next_period = 40;
else start_next_period = 50;
*msg2_slot = start_next_period;
*msg2_frame = (*msg2_slot>(rach_slot))? rach_frame : (rach_frame +1);
}
*/
uint8_t
start_next_period
=
(
rach_slot
-
(
rach_slot
%
tdd_period_slot
)
+
tdd_period_slot
)
%
nr_slots_per_frame
[
mu
];
*
msg2_slot
=
start_next_period
+
last_dl_slot_period
;
// initializing scheduling of slot to next mixed (or last dl) slot
*
msg2_frame
=
(
*
msg2_slot
>
(
rach_slot
))
?
rach_frame
:
(
rach_frame
+
1
);
// we can't schedule msg2 before sl_ahead since prach
int
eff_slot
=
*
msg2_slot
+
(
*
msg2_frame
-
rach_frame
)
*
nr_slots_per_frame
[
mu
];
if
((
eff_slot
-
rach_slot
)
<=
sl_ahead
)
{
*
msg2_slot
=
(
*
msg2_slot
+
tdd_period_slot
)
%
nr_slots_per_frame
[
mu
];
*
msg2_frame
=
(
*
msg2_slot
>
(
rach_slot
))
?
rach_frame
:
(
rach_frame
+
1
);
}
switch
(
response_window
){
switch
(
response_window
){
case
NR_RACH_ConfigGeneric__ra_ResponseWindow_sl1
:
case
NR_RACH_ConfigGeneric__ra_ResponseWindow_sl1
:
slot_window
=
1
;
slot_window
=
1
;
...
@@ -432,6 +401,31 @@ void nr_schedule_msg2(uint16_t rach_frame, uint16_t rach_slot,
...
@@ -432,6 +401,31 @@ void nr_schedule_msg2(uint16_t rach_frame, uint16_t rach_slot,
uint8_t
slot_limit
=
(
rach_slot
+
slot_window
)
%
nr_slots_per_frame
[
mu
];
uint8_t
slot_limit
=
(
rach_slot
+
slot_window
)
%
nr_slots_per_frame
[
mu
];
uint8_t
frame_limit
=
(
slot_limit
>
(
rach_slot
))
?
rach_frame
:
(
rach_frame
+
1
);
uint8_t
frame_limit
=
(
slot_limit
>
(
rach_slot
))
?
rach_frame
:
(
rach_frame
+
1
);
// computing start of next period
int
FR
=
*
scc
->
downlinkConfigCommon
->
frequencyInfoDL
->
frequencyBandList
.
list
.
array
[
0
]
>=
257
?
nr_FR2
:
nr_FR1
;
uint8_t
start_next_period
=
(
rach_slot
-
(
rach_slot
%
tdd_period_slot
)
+
tdd_period_slot
)
%
nr_slots_per_frame
[
mu
];
*
msg2_slot
=
start_next_period
+
last_dl_slot_period
;
// initializing scheduling of slot to next mixed (or last dl) slot
*
msg2_frame
=
(
*
msg2_slot
>
(
rach_slot
))
?
rach_frame
:
(
rach_frame
+
1
);
// we can't schedule msg2 before sl_ahead since prach
int
eff_slot
=
*
msg2_slot
+
(
*
msg2_frame
-
rach_frame
)
*
nr_slots_per_frame
[
mu
];
if
((
eff_slot
-
rach_slot
)
<=
sl_ahead
)
{
*
msg2_slot
=
(
*
msg2_slot
+
tdd_period_slot
)
%
nr_slots_per_frame
[
mu
];
*
msg2_frame
=
(
*
msg2_slot
>
(
rach_slot
))
?
rach_frame
:
(
rach_frame
+
1
);
}
if
(
FR
==
nr_FR2
)
{
int
num_tdd_period
=
*
msg2_slot
/
tdd_period_slot
;
while
((
tdd_beam_association
[
num_tdd_period
]
!=-
1
)
&&
(
tdd_beam_association
[
num_tdd_period
]
!=
beam_index
))
{
*
msg2_slot
=
(
*
msg2_slot
+
tdd_period_slot
)
%
nr_slots_per_frame
[
mu
];
*
msg2_frame
=
(
*
msg2_slot
>
(
rach_slot
))
?
rach_frame
:
(
rach_frame
+
1
);
num_tdd_period
=
*
msg2_slot
/
tdd_period_slot
;
}
if
(
tdd_beam_association
[
num_tdd_period
]
==
-
1
)
tdd_beam_association
[
num_tdd_period
]
=
beam_index
;
}
// go to previous slot if the current scheduled slot is beyond the response window
// go to previous slot if the current scheduled slot is beyond the response window
// and if the slot is not among the PDCCH monitored ones (38.213 10.1)
// and if the slot is not among the PDCCH monitored ones (38.213 10.1)
while
(((
*
msg2_slot
>
slot_limit
)
&&
(
*
msg2_frame
>
frame_limit
))
||
((
*
msg2_frame
*
nr_slots_per_frame
[
mu
]
+*
msg2_slot
-
monitoring_offset
)
%
monitoring_slot_period
!=
0
))
{
while
(((
*
msg2_slot
>
slot_limit
)
&&
(
*
msg2_frame
>
frame_limit
))
||
((
*
msg2_frame
*
nr_slots_per_frame
[
mu
]
+*
msg2_slot
-
monitoring_offset
)
%
monitoring_slot_period
!=
0
))
{
...
@@ -524,7 +518,7 @@ void nr_initiate_ra_proc(module_id_t module_idP,
...
@@ -524,7 +518,7 @@ void nr_initiate_ra_proc(module_id_t module_idP,
&
monitoring_slot_period
,
&
monitoring_slot_period
,
&
monitoring_offset
);
&
monitoring_offset
);
nr_schedule_msg2
(
frameP
,
slotP
,
&
msg2_frame
,
&
msg2_slot
,
scc
,
monitoring_slot_period
,
monitoring_offset
,
beam_index
,
cc
->
num_active_ssb
);
nr_schedule_msg2
(
frameP
,
slotP
,
&
msg2_frame
,
&
msg2_slot
,
scc
,
monitoring_slot_period
,
monitoring_offset
,
beam_index
,
nr_mac
->
tdd_beam_association
);
ra
->
Msg2_frame
=
msg2_frame
;
ra
->
Msg2_frame
=
msg2_frame
;
ra
->
Msg2_slot
=
msg2_slot
;
ra
->
Msg2_slot
=
msg2_slot
;
...
...
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