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
alex037yang
OpenXG-RAN
Commits
66395ff7
Commit
66395ff7
authored
May 08, 2020
by
cig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set RA offset at UE to compensate for 2 frames offset introduced by gNB
parent
8394ee82
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
openair2/LAYER2/NR_MAC_UE/mac_defs.h
openair2/LAYER2/NR_MAC_UE/mac_defs.h
+2
-0
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
+2
-0
openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.c
openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.c
+1
-1
No files found.
openair2/LAYER2/NR_MAC_UE/mac_defs.h
View file @
66395ff7
...
@@ -188,6 +188,8 @@ typedef struct {
...
@@ -188,6 +188,8 @@ typedef struct {
/* Random Access parameters */
/* Random Access parameters */
/// state of RA procedure
/// state of RA procedure
RA_state_t
ra_state
;
RA_state_t
ra_state
;
/// RA rx frame offset: compensate RA rx offset introduced by OAI gNB.
uint8_t
RA_offset
;
/// RA-rnti
/// RA-rnti
uint16_t
ra_rnti
;
uint16_t
ra_rnti
;
/// Temporary CRNTI
/// Temporary CRNTI
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
View file @
66395ff7
...
@@ -887,6 +887,8 @@ void nr_ue_prach_scheduler(module_id_t module_idP, frame_t frameP, sub_frame_t s
...
@@ -887,6 +887,8 @@ void nr_ue_prach_scheduler(module_id_t module_idP, frame_t frameP, sub_frame_t s
NR_RACH_ConfigGeneric_t
*
rach_ConfigGeneric
=
&
setup
->
rach_ConfigGeneric
;
NR_RACH_ConfigGeneric_t
*
rach_ConfigGeneric
=
&
setup
->
rach_ConfigGeneric
;
config_index
=
rach_ConfigGeneric
->
prach_ConfigurationIndex
;
config_index
=
rach_ConfigGeneric
->
prach_ConfigurationIndex
;
mac
->
RA_offset
=
2
;
// to compensate the rx frame offset at the gNB
if
(
is_nr_UL_slot
(
scc
,
slotP
))
{
if
(
is_nr_UL_slot
(
scc
,
slotP
))
{
if
(
setup
->
msg1_SubcarrierSpacing
)
if
(
setup
->
msg1_SubcarrierSpacing
)
...
...
openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.c
View file @
66395ff7
...
@@ -120,7 +120,7 @@ int nr_ue_ul_indication(nr_uplink_indication_t *ul_info){
...
@@ -120,7 +120,7 @@ int nr_ue_ul_indication(nr_uplink_indication_t *ul_info){
if
(
mac
->
generate_nr_prach
){
if
(
mac
->
generate_nr_prach
){
uint16_t
monitoring_slot_period
,
monitoring_offset
;
uint16_t
monitoring_slot_period
,
monitoring_offset
;
uint16_t
rach_frame
=
mac
->
scheduled_response
.
ul_config
->
sfn
;
uint16_t
rach_frame
=
mac
->
scheduled_response
.
ul_config
->
sfn
;
uint16_t
rx_rach_frame
=
(
rach_frame
+
2
)
%
MAX_FRAME_NUMBER
;
// compensate 2 frames offset delay at gNB side
uint16_t
rx_rach_frame
=
(
rach_frame
+
mac
->
RA_offset
)
%
MAX_FRAME_NUMBER
;
// compensate 2 frames offset delay at gNB side
uint16_t
rach_slot
=
mac
->
scheduled_response
.
ul_config
->
slot
;
uint16_t
rach_slot
=
mac
->
scheduled_response
.
ul_config
->
slot
;
nr_ue_msg2_scheduler
(
module_id
,
rx_rach_frame
,
rach_slot
,
&
mac
->
msg2_rx_frame
,
&
mac
->
msg2_rx_slot
);
nr_ue_msg2_scheduler
(
module_id
,
rx_rach_frame
,
rach_slot
,
&
mac
->
msg2_rx_frame
,
&
mac
->
msg2_rx_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