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
canghaiwuhen
OpenXG-RAN
Commits
113621db
Commit
113621db
authored
Dec 10, 2020
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
REMOVE Add some logs for HARQ debugging
parent
dfd943aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
+9
-0
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c
+4
-2
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
View file @
113621db
...
@@ -642,6 +642,15 @@ void nr_schedule_ue_spec(module_id_t module_id,
...
@@ -642,6 +642,15 @@ void nr_schedule_ue_spec(module_id_t module_id,
harq
->
round
,
harq
->
round
,
harq
->
ndi
);
harq
->
ndi
);
}
else
{
/* initial transmission */
}
else
{
/* initial transmission */
LOG_I
(
MAC
,
"%d.%2d new DL transmission RNTI %04x HARQ PID %d round %d NDI %d feedback_slot %d
\n
"
,
frame
,
slot
,
rnti
,
current_harq_pid
,
harq
->
round
,
harq
->
ndi
,
harq
->
feedback_slot
);
/* reserve space for timing advance of UE if necessary,
/* reserve space for timing advance of UE if necessary,
* nr_generate_dlsch_pdu() checks for ta_apply and add TA CE if necessary */
* nr_generate_dlsch_pdu() checks for ta_apply and add TA CE if necessary */
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c
View file @
113621db
...
@@ -328,9 +328,10 @@ void handle_nr_uci_pucch_0_1(module_id_t mod_id,
...
@@ -328,9 +328,10 @@ void handle_nr_uci_pucch_0_1(module_id_t mod_id,
// toggle NDI and reset round
// toggle NDI and reset round
sched_ctrl
->
harq_processes
[
harq_idx
].
ndi
^=
1
;
sched_ctrl
->
harq_processes
[
harq_idx
].
ndi
^=
1
;
sched_ctrl
->
harq_processes
[
harq_idx
].
round
=
0
;
sched_ctrl
->
harq_processes
[
harq_idx
].
round
=
0
;
}
}
else
{
else
LOG_E
(
MAC
,
"%4d.%2d HARQ not received or bad confidence for harq_idx %d (feedback_slot %d)
\n
"
,
frame
,
slot
,
harq_idx
,
sched_ctrl
->
harq_processes
[
harq_idx
].
feedback_slot
);
sched_ctrl
->
harq_processes
[
harq_idx
].
round
++
;
sched_ctrl
->
harq_processes
[
harq_idx
].
round
++
;
}
sched_ctrl
->
harq_processes
[
harq_idx
].
is_waiting
=
0
;
sched_ctrl
->
harq_processes
[
harq_idx
].
is_waiting
=
0
;
harq_idx_s
=
harq_idx
+
1
;
harq_idx_s
=
harq_idx
+
1
;
// if the max harq rounds was reached
// if the max harq rounds was reached
...
@@ -345,6 +346,7 @@ void handle_nr_uci_pucch_0_1(module_id_t mod_id,
...
@@ -345,6 +346,7 @@ void handle_nr_uci_pucch_0_1(module_id_t mod_id,
else
if
(
sched_ctrl
->
harq_processes
[
harq_idx
].
feedback_slot
!=
-
1
else
if
(
sched_ctrl
->
harq_processes
[
harq_idx
].
feedback_slot
!=
-
1
&&
(
slot
-
1
)
>
sched_ctrl
->
harq_processes
[
harq_idx
].
feedback_slot
&&
(
slot
-
1
)
>
sched_ctrl
->
harq_processes
[
harq_idx
].
feedback_slot
&&
sched_ctrl
->
harq_processes
[
harq_idx
].
is_waiting
)
{
&&
sched_ctrl
->
harq_processes
[
harq_idx
].
is_waiting
)
{
LOG_E
(
MAC
,
"%4d.%2d HARQ not discarded for harq_idx %d (feedback_slot %d)
\n
"
,
frame
,
slot
,
harq_idx
,
sched_ctrl
->
harq_processes
[
harq_idx
].
feedback_slot
);
sched_ctrl
->
harq_processes
[
harq_idx
].
feedback_slot
=
-
1
;
sched_ctrl
->
harq_processes
[
harq_idx
].
feedback_slot
=
-
1
;
sched_ctrl
->
harq_processes
[
harq_idx
].
round
++
;
sched_ctrl
->
harq_processes
[
harq_idx
].
round
++
;
if
(
sched_ctrl
->
harq_processes
[
harq_idx
].
round
==
max_harq_rounds
)
{
if
(
sched_ctrl
->
harq_processes
[
harq_idx
].
round
==
max_harq_rounds
)
{
...
...
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