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
e5ee5196
Commit
e5ee5196
authored
Mar 09, 2021
by
rmagueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add temporary LOGs for Msg2
parent
45b86847
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
4 deletions
+61
-4
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
+21
-4
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
+40
-0
No files found.
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
View file @
e5ee5196
...
...
@@ -2362,8 +2362,26 @@ int nr_ue_process_rar(nr_downlink_indication_t *dl_info, NR_UL_TIME_ALIGNMENT_t
rnti
=
mac
->
crnti
;
}
#ifdef DEBUG_RAR
LOG_D
(
MAC
,
"In %s:[%d.%d]: [UE %d] Received RAR with t_alloc %d f_alloc %d ta_command %d mcs %d freq_hopping %d tpc_command %d csi_req %d t_crnti %x
\n
"
,
// FIXME: To be removed
LOG_I
(
NR_MAC
,
"rarh->E = 0x%x
\n
"
,
rarh
->
E
);
LOG_I
(
NR_MAC
,
"rarh->T = 0x%x
\n
"
,
rarh
->
T
);
LOG_I
(
NR_MAC
,
"rarh->RAPID = 0x%x (%i)
\n
"
,
rarh
->
RAPID
,
rarh
->
RAPID
);
LOG_I
(
NR_MAC
,
"rar->R = 0x%x
\n
"
,
rar
->
R
);
LOG_I
(
NR_MAC
,
"rar->TA1 = 0x%x
\n
"
,
rar
->
TA1
);
LOG_I
(
NR_MAC
,
"rar->TA2 = 0x%x
\n
"
,
rar
->
TA2
);
LOG_I
(
NR_MAC
,
"rar->UL_GRANT_1 = 0x%x
\n
"
,
rar
->
UL_GRANT_1
);
LOG_I
(
NR_MAC
,
"rar->UL_GRANT_2 = 0x%x
\n
"
,
rar
->
UL_GRANT_2
);
LOG_I
(
NR_MAC
,
"rar->UL_GRANT_3 = 0x%x
\n
"
,
rar
->
UL_GRANT_3
);
LOG_I
(
NR_MAC
,
"rar->UL_GRANT_4 = 0x%x
\n
"
,
rar
->
UL_GRANT_4
);
LOG_I
(
NR_MAC
,
"rar->TCRNTI_1 = 0x%x
\n
"
,
rar
->
TCRNTI_1
);
LOG_I
(
NR_MAC
,
"rar->TCRNTI_2 = 0x%x
\n
"
,
rar
->
TCRNTI_2
);
//#ifdef DEBUG_RAR
LOG_I
(
NR_MAC
,
"In %s:[%d.%d]: [UE %d] Received RAR with t_alloc %d f_alloc %d ta_command %d mcs %d freq_hopping %d tpc_command %d t_crnti %x
\n
"
,
__FUNCTION__
,
frame
,
slot
,
...
...
@@ -2374,9 +2392,8 @@ int nr_ue_process_rar(nr_downlink_indication_t *dl_info, NR_UL_TIME_ALIGNMENT_t
rar_grant
.
mcs
,
rar_grant
.
freq_hopping
,
tpc_command
,
csi_req
,
ra
->
t_crnti
);
#endif
//
#endif
// Schedule Msg3
ret
=
nr_ue_pusch_scheduler
(
mac
,
is_Msg3
,
frame
,
slot
,
&
frame_tx
,
&
slot_tx
,
rar_grant
.
Msg3_t_alloc
);
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
View file @
e5ee5196
...
...
@@ -1427,4 +1427,44 @@ void nr_fill_rar(uint8_t Mod_idP,
rar
->
UL_GRANT_3
=
(
uint8_t
)
(
ul_grant
>>
8
)
&
0xff
;
rar
->
UL_GRANT_4
=
(
uint8_t
)
ul_grant
&
0xff
;
// FIXME: To be removed
LOG_I
(
NR_MAC
,
"rarh->E = 0x%x
\n
"
,
rarh
->
E
);
LOG_I
(
NR_MAC
,
"rarh->T = 0x%x
\n
"
,
rarh
->
T
);
LOG_I
(
NR_MAC
,
"rarh->RAPID = 0x%x (%i)
\n
"
,
rarh
->
RAPID
,
rarh
->
RAPID
);
LOG_I
(
NR_MAC
,
"rar->R = 0x%x
\n
"
,
rar
->
R
);
LOG_I
(
NR_MAC
,
"rar->TA1 = 0x%x
\n
"
,
rar
->
TA1
);
LOG_I
(
NR_MAC
,
"rar->TA2 = 0x%x
\n
"
,
rar
->
TA2
);
LOG_I
(
NR_MAC
,
"rar->UL_GRANT_1 = 0x%x
\n
"
,
rar
->
UL_GRANT_1
);
LOG_I
(
NR_MAC
,
"rar->UL_GRANT_2 = 0x%x
\n
"
,
rar
->
UL_GRANT_2
);
LOG_I
(
NR_MAC
,
"rar->UL_GRANT_3 = 0x%x
\n
"
,
rar
->
UL_GRANT_3
);
LOG_I
(
NR_MAC
,
"rar->UL_GRANT_4 = 0x%x
\n
"
,
rar
->
UL_GRANT_4
);
LOG_I
(
NR_MAC
,
"rar->TCRNTI_1 = 0x%x
\n
"
,
rar
->
TCRNTI_1
);
LOG_I
(
NR_MAC
,
"rar->TCRNTI_2 = 0x%x
\n
"
,
rar
->
TCRNTI_2
);
int
mcs
=
(
unsigned
char
)
(
rar
->
UL_GRANT_4
>>
4
);
// time alloc
int
Msg3_t_alloc
=
(
unsigned
char
)
(
rar
->
UL_GRANT_3
&
0x07
);
// frequency alloc
int
Msg3_f_alloc
=
(
uint16_t
)
((
rar
->
UL_GRANT_3
>>
4
)
|
(
rar
->
UL_GRANT_2
<<
4
)
|
((
rar
->
UL_GRANT_1
&
0x03
)
<<
12
));
// frequency hopping
int
freq_hopping
=
(
unsigned
char
)
(
rar
->
UL_GRANT_1
>>
2
);
// TA command
int
ta_command
=
rar
->
TA2
+
(
rar
->
TA1
<<
5
);
// TC-RNTI
int
t_crnti
=
rar
->
TCRNTI_2
+
(
rar
->
TCRNTI_1
<<
8
);
LOG_I
(
NR_MAC
,
"In %s: Transmitted RAR with t_alloc %d f_alloc %d ta_command %d mcs %d freq_hopping %d tpc_command %d csi_req %d t_crnti %x
\n
"
,
__FUNCTION__
,
Msg3_t_alloc
,
Msg3_f_alloc
,
ta_command
,
mcs
,
freq_hopping
,
tpc_command
,
csi_req
,
t_crnti
);
}
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