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
7155c4b3
Commit
7155c4b3
authored
Feb 09, 2024
by
Marwan Hammouda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UE: resetting timing advance for Msg1
parent
ce3a64a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
executables/nr-ue.c
executables/nr-ue.c
+5
-4
openair2/LAYER2/NR_MAC_UE/nr_ra_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ra_procedures.c
+1
-1
No files found.
executables/nr-ue.c
View file @
7155c4b3
...
...
@@ -907,14 +907,13 @@ void *UE_thread(void *arg)
if
(
UE
->
is_synchronized
)
{
if
(
tshift
)
{
int
diff
=
0
;
// drift in one frame
UE
->
TO_I_Ctrl
=
round
(
TO_init_rate
/
TO_IScaling
);
int
diff
=
0
;
// drift in one frame
if
(
TO_IScaling
!=
0
)
UE
->
TO_I_Ctrl
=
round
(
TO_init_rate
/
TO_IScaling
);
UE
->
rx_offset_TO
=
(
TO_PScaling
*
diff
)
+
(
UE
->
TO_I_Ctrl
*
TO_IScaling
);
//PI controller
UE
->
rx_offset_slot
=
1
;
UE
->
rx_offset
+=
(
UE
->
init_sync_frame
+
trashed_frames
)
*
TO_init_rate
;
int
ta_shift
=
(
UE
->
init_sync_frame
+
trashed_frames
)
*
2
*
TO_init_rate
;
UE
->
rx_offset_comp
=
0
;
UE
->
timing_advance
+=
ta_shift
;
}
// Still unknown why need to reset timing_advance in RFsim to avoid:
// Received RAR preamble (38) doesn't match the intended RAPID (37)
...
...
@@ -1060,6 +1059,8 @@ void *UE_thread(void *arg)
}
UE
->
timing_advance
+=
UL_TO_Tx_ofs
;
if
(
mac
->
ra
.
ra_state
==
GENERATE_PREAMBLE
)
UE
->
timing_advance
=
get_nrUE_params
()
->
timing_advance
;
extern
uint64_t
RFsim_PropDelay
;
LOG_D
(
PHY
,
"RFsim_PropDelay: %lu, TA: %d, diff: %d, PI_Out: %d, offset_slot: %d, offset_UL: %d, acc_UL_To_TX: %d
\n
"
,
...
...
openair2/LAYER2/NR_MAC_UE/nr_ra_procedures.c
View file @
7155c4b3
...
...
@@ -786,7 +786,7 @@ uint8_t nr_ue_get_rach(module_id_t mod_id,
}
else
if
(
ra
->
RA_window_cnt
>
0
)
{
LOG_
I
(
MAC
,
"[UE %d][%d.%d]: RAR not received yet (RA window count %d)
\n
"
,
mod_id
,
frame
,
nr_slot_tx
,
ra
->
RA_window_cnt
);
LOG_
D
(
MAC
,
"[UE %d][%d.%d]: RAR not received yet (RA window count %d)
\n
"
,
mod_id
,
frame
,
nr_slot_tx
,
ra
->
RA_window_cnt
);
// Fill in preamble and PRACH resources
ra
->
RA_window_cnt
--
;
...
...
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