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
f88a7906
Commit
f88a7906
authored
Oct 17, 2023
by
Marwan Hammouda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix updating TA value more frequenct
parent
7d86bb5f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
19 deletions
+21
-19
openair1/SCHED_NR_UE/fapi_nr_ue_l1.c
openair1/SCHED_NR_UE/fapi_nr_ue_l1.c
+3
-1
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
+0
-6
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
+18
-12
No files found.
openair1/SCHED_NR_UE/fapi_nr_ue_l1.c
View file @
f88a7906
...
...
@@ -377,11 +377,13 @@ void configure_ta_command(PHY_VARS_NR_UE *ue, fapi_nr_ta_command_pdu *ta_command
int
ta_slot_temp
=
ta_command_pdu
->
ta_slot
+
ul_tx_timing_adjustment
+
NTN_UE_slot_Rx_to_Tx
;
ue
->
ta_slot
=
ta_slot_temp
%
slots_per_frame
;
/*
if (ta_slot_temp > slots_per_frame)
ue->ta_frame = (ta_command_pdu->ta_frame + ta_slot_temp/slots_per_frame) % 1024;
else
ue->ta_frame = ta_command_pdu->ta_frame;
*/
ue
->
ta_frame
=
(
ta_command_pdu
->
ta_frame
+
ta_slot_temp
/
slots_per_frame
)
%
1024
;
ue
->
ta_command
=
ta_command_pdu
->
ta_command
;
LOG_D
(
PHY
,
"TA command received in Frame.Slot %d.%d -- Starting UL time alignment procedures. TA update will be applied at frame %d slot %d
\n
"
,
ta_command_pdu
->
ta_frame
,
ta_command_pdu
->
ta_slot
,
ue
->
ta_frame
,
ue
->
ta_slot
);
...
...
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
View file @
f88a7906
...
...
@@ -233,16 +233,10 @@ int get_tx_amp_prach(int power_dBm, int power_max_dBm, int N_RB_UL){
// - Application of timing adjustment according to TS 38.213 p4.2
// todo:
// - handle RAR TA application as per ch 4.2 TS 38.213
static
uint64_t
idx
=
0
;
static
int
lastFrame
;
void
ue_ta_procedures
(
PHY_VARS_NR_UE
*
ue
,
int
slot_tx
,
int
frame_tx
)
{
//if ( (frame_tx == ue->ta_frame && slot_tx == ue->ta_slot && idx == 0) ||
//(frame_tx == ue->ta_frame && slot_tx == ue->ta_slot && (frame_tx - lastFrame) == 100) ) {
if
(
frame_tx
==
ue
->
ta_frame
&&
slot_tx
==
ue
->
ta_slot
){
lastFrame
=
frame_tx
;
idx
=
1
;
uint16_t
ofdm_symbol_size
=
ue
->
frame_parms
.
ofdm_symbol_size
;
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
View file @
f88a7906
...
...
@@ -3685,7 +3685,12 @@ void nr_ue_process_mac_pdu(nr_downlink_indication_t *dl_info,
const
int
ta
=
((
NR_MAC_CE_TA
*
)
pduP
)[
1
].
TA_COMMAND
;
const
int
tag
=
((
NR_MAC_CE_TA
*
)
pduP
)[
1
].
TAGID
;
NR_UL_TIME_ALIGNMENT_t
*
ul_time_alignment
=
&
mac
->
ul_time_alignment
;
static
int
firstTime
=
0
;
if
((
frameP
==
(
ul_time_alignment
->
frame
+
100
)
%
1024
)
||
firstTime
==
0
)
{
firstTime
=
1
;
ul_time_alignment
->
ta_total
+=
ta
-
31
;
ul_time_alignment
->
tag_id
=
tag
;
ul_time_alignment
->
ta_command
=
ta
;
...
...
@@ -3693,6 +3698,7 @@ void nr_ue_process_mac_pdu(nr_downlink_indication_t *dl_info,
ul_time_alignment
->
slot
=
slot
;
LOG_D
(
NR_MAC
,
"ul_time_alignment->frame: %d, ul_time_alignment->slot: %d
\n
"
,
ul_time_alignment
->
frame
,
ul_time_alignment
->
slot
);
ul_time_alignment
->
ta_apply
=
true
;
/*
#ifdef DEBUG_HEADER_PARSING
LOG_D(MAC, "[UE] CE %d : UE Timing Advance : %d\n", i, pduP[1]);
...
...
@@ -3703,7 +3709,7 @@ void nr_ue_process_mac_pdu(nr_downlink_indication_t *dl_info,
LOG_D
(
NR_MAC
,
"[%d.%d] Received TA_COMMAND %u TAGID %u CC_id %d TA total %d
\n
"
,
frameP
,
slot
,
ta
,
tag
,
CC_id
,
ul_time_alignment
->
ta_total
);
else
LOG_I
(
NR_MAC
,
"[%d.%d] Received TA_COMMAND %u TAGID %u CC_id %d TA total %d
\n
"
,
frameP
,
slot
,
ta
,
tag
,
CC_id
,
ul_time_alignment
->
ta_total
);
}
break
;
case
DL_SCH_LCID_CON_RES_ID
:
// Clause 5.1.5 and 6.1.3.3 of 3GPP TS 38.321 version 16.2.1 Release 16
...
...
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