Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bin He
openairinterface5G
Commits
c9a92150
Commit
c9a92150
authored
5 years ago
by
Robert Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
TEST: TPC + TA cleaned up in DLSCH
parent
fd2e5fee
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
+4
-12
4 additions, 12 deletions
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
with
4 additions
and
12 deletions
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
+
4
−
12
View file @
c9a92150
...
@@ -543,18 +543,15 @@ schedule_ue_spec(module_id_t module_idP,
...
@@ -543,18 +543,15 @@ schedule_ue_spec(module_id_t module_idP,
sub_frame_t
subframeP
)
sub_frame_t
subframeP
)
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
{
{
int
ta_len
=
0
;
unsigned
char
dlsch_buffer
[
MAX_DLSCH_PAYLOAD_BYTES
];
unsigned
char
dlsch_buffer
[
MAX_DLSCH_PAYLOAD_BYTES
];
eNB_MAC_INST
*
eNB
=
RC
.
mac
[
module_idP
];
eNB_MAC_INST
*
eNB
=
RC
.
mac
[
module_idP
];
COMMON_channels_t
*
cc
=
eNB
->
common_channels
;
COMMON_channels_t
*
cc
=
eNB
->
common_channels
;
UE_info_t
*
UE_info
=
&
eNB
->
UE_info
;
UE_info_t
*
UE_info
=
&
eNB
->
UE_info
;
int
tpc
=
1
;
const
int
dl_Bandwidth
=
cc
[
CC_id
].
mib
->
message
.
dl_Bandwidth
;
const
int
dl_Bandwidth
=
cc
[
CC_id
].
mib
->
message
.
dl_Bandwidth
;
const
int
N_RB_DL
=
to_prb
(
dl_Bandwidth
);
const
int
N_RB_DL
=
to_prb
(
dl_Bandwidth
);
const
int
N_RBG
=
to_rbg
(
eNB
->
common_channels
[
CC_id
].
mib
->
message
.
dl_Bandwidth
);
const
int
N_RBG
=
to_rbg
(
eNB
->
common_channels
[
CC_id
].
mib
->
message
.
dl_Bandwidth
);
int
total_nb_available_rb
=
N_RB_DL
;
int
total_nb_available_rb
=
N_RB_DL
;
nfapi_dl_config_request_body_t
*
dl_req
=
&
eNB
->
DL_req
[
CC_id
].
dl_config_request_body
;
nfapi_dl_config_request_body_t
*
dl_req
=
&
eNB
->
DL_req
[
CC_id
].
dl_config_request_body
;
int
ta_update
;
start_meas
(
&
eNB
->
schedule_dlsch
);
start_meas
(
&
eNB
->
schedule_dlsch
);
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_SCHEDULE_DLSCH
,
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_SCHEDULE_DLSCH
,
...
@@ -850,6 +847,7 @@ schedule_ue_spec(module_id_t module_idP,
...
@@ -850,6 +847,7 @@ schedule_ue_spec(module_id_t module_idP,
if
(
ue_sched_ctrl
->
ta_timer
)
if
(
ue_sched_ctrl
->
ta_timer
)
ue_sched_ctrl
->
ta_timer
--
;
ue_sched_ctrl
->
ta_timer
--
;
int
ta_update
=
31
;
if
(
ue_sched_ctrl
->
ta_timer
==
0
)
{
if
(
ue_sched_ctrl
->
ta_timer
==
0
)
{
ta_update
=
ue_sched_ctrl
->
ta_update
;
ta_update
=
ue_sched_ctrl
->
ta_update
;
...
@@ -860,11 +858,9 @@ schedule_ue_spec(module_id_t module_idP,
...
@@ -860,11 +858,9 @@ schedule_ue_spec(module_id_t module_idP,
/* reset ta_update */
/* reset ta_update */
ue_sched_ctrl
->
ta_update
=
31
;
ue_sched_ctrl
->
ta_update
=
31
;
}
else
{
ta_update
=
31
;
}
}
ta_len
=
(
ta_update
!=
31
)
?
2
:
0
;
int
ta_len
=
(
ta_update
!=
31
)
?
2
:
0
;
int
num_sdus
=
0
;
int
num_sdus
=
0
;
...
@@ -1092,8 +1088,9 @@ schedule_ue_spec(module_id_t module_idP,
...
@@ -1092,8 +1088,9 @@ schedule_ue_spec(module_id_t module_idP,
// make sure that we are only sending a tpc update once a frame, otherwise the control loop will freak out
// make sure that we are only sending a tpc update once a frame, otherwise the control loop will freak out
int32_t
framex10psubframe
=
ue_template
->
pucch_tpc_tx_frame
*
10
+
ue_template
->
pucch_tpc_tx_subframe
;
int32_t
framex10psubframe
=
ue_template
->
pucch_tpc_tx_frame
*
10
+
ue_template
->
pucch_tpc_tx_subframe
;
int
tpc
=
1
;
if
(
framex10psubframe
+
10
<=
(
frameP
*
10
)
+
subframeP
||
//normal case
if
(
framex10psubframe
+
10
<=
(
frameP
*
10
)
+
subframeP
||
//normal case
(
framex10psubframe
>
(
frameP
*
10
)
+
subframeP
&&
10240
-
framex10psubframe
+
(
frameP
*
10
)
+
subframeP
>=
10
))
//frame wrap-around
(
framex10psubframe
>
(
frameP
*
10
)
+
subframeP
&&
10240
-
framex10psubframe
+
(
frameP
*
10
)
+
subframeP
>=
10
))
{
//frame wrap-around
if
(
ue_sched_ctrl
->
pucch1_cqi_update
[
CC_id
]
==
1
)
{
if
(
ue_sched_ctrl
->
pucch1_cqi_update
[
CC_id
]
==
1
)
{
ue_sched_ctrl
->
pucch1_cqi_update
[
CC_id
]
=
0
;
ue_sched_ctrl
->
pucch1_cqi_update
[
CC_id
]
=
0
;
ue_template
->
pucch_tpc_tx_frame
=
frameP
;
ue_template
->
pucch_tpc_tx_frame
=
frameP
;
...
@@ -1116,11 +1113,6 @@ schedule_ue_spec(module_id_t module_idP,
...
@@ -1116,11 +1113,6 @@ schedule_ue_spec(module_id_t module_idP,
snr
,
snr
,
target_snr
);
target_snr
);
}
// Po_PUCCH has been updated
}
// Po_PUCCH has been updated
else
{
tpc
=
1
;
//0
}
// time to do TPC update
else
{
tpc
=
1
;
//0
}
}
nfapi_dl_config_request_pdu_t
*
dl_config_pdu
=
&
dl_req
->
dl_config_pdu_list
[
dl_req
->
number_pdu
];
nfapi_dl_config_request_pdu_t
*
dl_config_pdu
=
&
dl_req
->
dl_config_pdu_list
[
dl_req
->
number_pdu
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment