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
zzha zzha
OpenXG-RAN
Commits
e494c11b
Commit
e494c11b
authored
May 17, 2022
by
Arash Sahbafard
Committed by
laurent
Aug 26, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store TA total in UE
parent
f23f4355
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
openair1/PHY/defs_nr_UE.h
openair1/PHY/defs_nr_UE.h
+1
-0
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
+8
-3
No files found.
openair1/PHY/defs_nr_UE.h
View file @
e494c11b
...
@@ -641,6 +641,7 @@ typedef struct NR_UL_TIME_ALIGNMENT {
...
@@ -641,6 +641,7 @@ typedef struct NR_UL_TIME_ALIGNMENT {
char
ta_slot
;
char
ta_slot
;
/// TA command and TAGID received from the gNB
/// TA command and TAGID received from the gNB
uint16_t
ta_command
;
uint16_t
ta_command
;
uint32_t
ta_total
;
uint8_t
tag_id
;
uint8_t
tag_id
;
}
NR_UL_TIME_ALIGNMENT_t
;
}
NR_UL_TIME_ALIGNMENT_t
;
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
View file @
e494c11b
...
@@ -3711,9 +3711,12 @@ void nr_ue_process_mac_pdu(nr_downlink_indication_t *dl_info,
...
@@ -3711,9 +3711,12 @@ void nr_ue_process_mac_pdu(nr_downlink_indication_t *dl_info,
/*uint8_t ta_command = ((NR_MAC_CE_TA *)pduP)[1].TA_COMMAND;
/*uint8_t ta_command = ((NR_MAC_CE_TA *)pduP)[1].TA_COMMAND;
uint8_t tag_id = ((NR_MAC_CE_TA *)pduP)[1].TAGID;*/
uint8_t tag_id = ((NR_MAC_CE_TA *)pduP)[1].TAGID;*/
const
int
ta
=
((
NR_MAC_CE_TA
*
)
pduP
)[
1
].
TA_COMMAND
;
const
int
tag
=
((
NR_MAC_CE_TA
*
)
pduP
)[
1
].
TAGID
;
ul_time_alignment
->
apply_ta
=
1
;
ul_time_alignment
->
apply_ta
=
1
;
ul_time_alignment
->
ta_command
=
((
NR_MAC_CE_TA
*
)
pduP
)[
1
].
TA_COMMAND
;
ul_time_alignment
->
ta_command
=
ta
;
//here
ul_time_alignment
->
tag_id
=
((
NR_MAC_CE_TA
*
)
pduP
)[
1
].
TAGID
;
ul_time_alignment
->
ta_total
+=
ta
-
31
;
ul_time_alignment
->
tag_id
=
tag
;
/*
/*
#ifdef DEBUG_HEADER_PARSING
#ifdef DEBUG_HEADER_PARSING
...
@@ -4094,7 +4097,9 @@ int nr_ue_process_rar(nr_downlink_indication_t *dl_info, NR_UL_TIME_ALIGNMENT_t
...
@@ -4094,7 +4097,9 @@ int nr_ue_process_rar(nr_downlink_indication_t *dl_info, NR_UL_TIME_ALIGNMENT_t
// TA command
// TA command
ul_time_alignment
->
apply_ta
=
1
;
ul_time_alignment
->
apply_ta
=
1
;
ul_time_alignment
->
ta_command
=
31
+
rar
->
TA2
+
(
rar
->
TA1
<<
5
);
const
int
ta
=
rar
->
TA2
+
(
rar
->
TA1
<<
5
);
ul_time_alignment
->
ta_command
=
31
+
ta
;
ul_time_alignment
->
ta_total
=
ta
;
#ifdef DEBUG_RAR
#ifdef DEBUG_RAR
// CSI
// CSI
...
...
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