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
wangjie
OpenXG-RAN
Commits
f1d4f4b9
Commit
f1d4f4b9
authored
Jan 30, 2017
by
Xenofon Foukas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed behavior of API for PUCCH power reports
parent
9224d361
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
37 deletions
+33
-37
openair2/ENB_APP/flexran_agent_common.c
openair2/ENB_APP/flexran_agent_common.c
+28
-28
openair2/LAYER2/MAC/flexran_agent_scheduler_dlsch_ue.c
openair2/LAYER2/MAC/flexran_agent_scheduler_dlsch_ue.c
+5
-9
No files found.
openair2/ENB_APP/flexran_agent_common.c
View file @
f1d4f4b9
...
@@ -725,11 +725,11 @@ int flexran_get_p0_pucch_dbm(mid_t mod_id, mid_t ue_id, int CC_id) {
...
@@ -725,11 +725,11 @@ int flexran_get_p0_pucch_dbm(mid_t mod_id, mid_t ue_id, int CC_id) {
return
-
1
;
return
-
1
;
}
}
if
(
eNB_UE_stats
->
Po_PUCCH_update
==
1
)
{
//
if(eNB_UE_stats->Po_PUCCH_update == 1) {
return
eNB_UE_stats
->
Po_PUCCH_dBm
;
return
eNB_UE_stats
->
Po_PUCCH_dBm
;
}
//
}
else
//
else
return
-
1
;
//
return -1;
}
}
int
flexran_get_p0_nominal_pucch
(
mid_t
mod_id
,
int
CC_id
)
{
int
flexran_get_p0_nominal_pucch
(
mid_t
mod_id
,
int
CC_id
)
{
...
...
openair2/LAYER2/MAC/flexran_agent_scheduler_dlsch_ue.c
View file @
f1d4f4b9
...
@@ -1390,21 +1390,17 @@ flexran_schedule_ue_spec_common(mid_t mod_id,
...
@@ -1390,21 +1390,17 @@ flexran_schedule_ue_spec_common(mid_t mod_id,
// do PUCCH power control
// do PUCCH power control
// this is the normalized RX power
// this is the normalized RX power
//normalized_rx_power = flexran_get_p0_pucch_dbm(mod_id,UE_id, CC_id); //eNB_UE_stats->Po_PUCCH_dBm;
normalized_rx_power
=
flexran_get_p0_pucch_dbm
(
mod_id
,
UE_id
,
CC_id
);
//eNB_UE_stats->Po_PUCCH_dBm;
// target_rx_power = flexran_get_p0_nominal_pucch(mod_id, CC_id) + 10; //mac_xface->get_target_pucch_rx_power(mod_id, CC_id) + 10;
target_rx_power
=
flexran_get_p0_nominal_pucch
(
mod_id
,
CC_id
)
+
20
;
//mac_xface->get_target_pucch_rx_power(mod_id, CC_id) + 20;
eNB_UE_stats
=
mac_xface
->
get_eNB_UE_stats
(
mod_id
,
CC_id
,
rnti
);
normalized_rx_power
=
eNB_UE_stats
->
Po_PUCCH_dBm
;
target_rx_power
=
mac_xface
->
get_target_pucch_rx_power
(
mod_id
,
CC_id
)
+
20
;
// this assumes accumulated tpc
// this assumes accumulated tpc
// 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_list
->
UE_template
[
CC_id
][
UE_id
].
pucch_tpc_tx_frame
*
10
+
UE_list
->
UE_template
[
CC_id
][
UE_id
].
pucch_tpc_tx_subframe
;
int32_t
framex10psubframe
=
UE_list
->
UE_template
[
CC_id
][
UE_id
].
pucch_tpc_tx_frame
*
10
+
UE_list
->
UE_template
[
CC_id
][
UE_id
].
pucch_tpc_tx_subframe
;
if
(((
framex10psubframe
+
10
)
<=
(
frame
*
10
+
subframe
))
||
//normal case
if
(((
framex10psubframe
+
10
)
<=
(
frame
*
10
+
subframe
))
||
//normal case
((
framex10psubframe
>
(
frame
*
10
+
subframe
))
&&
(((
10240
-
framex10psubframe
+
frame
*
10
+
subframe
)
>=
10
))))
//frame wrap-around
((
framex10psubframe
>
(
frame
*
10
+
subframe
))
&&
(((
10240
-
framex10psubframe
+
frame
*
10
+
subframe
)
>=
10
))))
//frame wrap-around
if
(
eNB_UE_stats
->
Po_PUCCH_update
==
1
){
//
flexran_get_p0_pucch_status(mod_id, UE_id, CC_id) == 1) {
if
(
flexran_get_p0_pucch_status
(
mod_id
,
UE_id
,
CC_id
)
==
1
)
{
//
flexran_update_p0_pucch(mod_id, UE_id, CC_id);
flexran_update_p0_pucch
(
mod_id
,
UE_id
,
CC_id
);
eNB_UE_stats
->
Po_PUCCH_update
=
0
;
UE_list
->
UE_template
[
CC_id
][
UE_id
].
pucch_tpc_tx_frame
=
frame
;
UE_list
->
UE_template
[
CC_id
][
UE_id
].
pucch_tpc_tx_frame
=
frame
;
UE_list
->
UE_template
[
CC_id
][
UE_id
].
pucch_tpc_tx_subframe
=
subframe
;
UE_list
->
UE_template
[
CC_id
][
UE_id
].
pucch_tpc_tx_subframe
=
subframe
;
...
...
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