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
80941b0c
Commit
80941b0c
authored
Mar 29, 2021
by
rmagueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor LOG improvements
parent
b43c054f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
20 deletions
+20
-20
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
+14
-15
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
+2
-1
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
+4
-4
No files found.
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
View file @
80941b0c
...
...
@@ -2372,7 +2372,7 @@ int nr_ue_process_rar(nr_downlink_indication_t *dl_info, NR_UL_TIME_ALIGNMENT_t
rnti
=
mac
->
crnti
;
}
// FIXME: To be removed
#ifdef DEBUG_RAR
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
);
...
...
@@ -2390,20 +2390,19 @@ int nr_ue_process_rar(nr_downlink_indication_t *dl_info, NR_UL_TIME_ALIGNMENT_t
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
,
mod_id
,
rar_grant
.
Msg3_t_alloc
,
rar_grant
.
Msg3_f_alloc
,
ul_time_alignment
->
ta_command
,
rar_grant
.
mcs
,
rar_grant
.
freq_hopping
,
tpc_command
,
ra
->
t_crnti
);
//#endif
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
,
mod_id
,
rar_grant
.
Msg3_t_alloc
,
rar_grant
.
Msg3_f_alloc
,
ul_time_alignment
->
ta_command
,
rar_grant
.
mcs
,
rar_grant
.
freq_hopping
,
tpc_command
,
ra
->
t_crnti
);
#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 @
80941b0c
...
...
@@ -1519,7 +1519,7 @@ 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
#ifdef DEBUG_RAR
//LOG_I(NR_MAC, "rarbi->E = 0x%x\n", rarbi->E);
//LOG_I(NR_MAC, "rarbi->T = 0x%x\n", rarbi->T);
//LOG_I(NR_MAC, "rarbi->R = 0x%x\n", rarbi->R);
...
...
@@ -1541,6 +1541,7 @@ void nr_fill_rar(uint8_t Mod_idP,
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
);
#endif
int
mcs
=
(
unsigned
char
)
(
rar
->
UL_GRANT_4
>>
4
);
// time alloc
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
View file @
80941b0c
...
...
@@ -249,7 +249,7 @@ void nr_process_mac_pdu(
// Check if it is a valid CCCH1 message, we get all 00's messages very often
if
(
pdu_len
!=
9
)
{
//LOG_E(
MAC, "%s() Invalid CCCH1 message!, pdu_len: %d\n", __func__, pdu_len);
LOG_D
(
NR_
MAC
,
"%s() Invalid CCCH1 message!, pdu_len: %d
\n
"
,
__func__
,
pdu_len
);
return
;
}
}
else
{
...
...
@@ -517,7 +517,7 @@ void nr_rx_sdu(const module_id_t gnb_mod_idP,
// random access pusch with TC-RNTI
if
(
ra
->
rnti
!=
current_rnti
)
{
LOG_W
(
NR_MAC
,
"expected TC
-
RNTI %04x to match current RNTI %04x
\n
"
,
"expected TC
_
RNTI %04x to match current RNTI %04x
\n
"
,
ra
->
rnti
,
current_rnti
);
continue
;
...
...
@@ -554,7 +554,7 @@ void nr_rx_sdu(const module_id_t gnb_mod_idP,
LOG_I
(
NR_MAC
,
"[RAPROC] RA-Msg3 received (sdu_lenP %d)
\n
"
,
sdu_lenP
);
LOG_D
(
NR_MAC
,
"[RAPROC] Received Msg3:
\n
"
);
for
(
int
k
=
0
;
k
<
sdu_lenP
;
k
++
)
{
LOG_
I
(
NR_MAC
,
"(%i): 0x%x
\n
"
,
k
,
sduP
[
k
]);
LOG_
D
(
NR_MAC
,
"(%i): 0x%x
\n
"
,
k
,
sduP
[
k
]);
}
// UE Contention Resolution Identity
...
...
@@ -567,7 +567,7 @@ void nr_rx_sdu(const module_id_t gnb_mod_idP,
ra
->
state
=
Msg4
;
ra
->
Msg4_frame
=
(
frameP
+
2
)
%
1024
;
ra
->
Msg4_slot
=
1
;
LOG_I
(
MAC
,
"Scheduling RA-Msg4 for TC-
RNTI %04x (state %d, frame %d, slot %d)
\n
"
,
ra
->
rnti
,
ra
->
state
,
ra
->
Msg4_frame
,
ra
->
Msg4_slot
);
LOG_I
(
NR_MAC
,
"Scheduling RA-Msg4 for TC_
RNTI %04x (state %d, frame %d, slot %d)
\n
"
,
ra
->
rnti
,
ra
->
state
,
ra
->
Msg4_frame
,
ra
->
Msg4_slot
);
}
return
;
...
...
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