Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OAI-RAN-5G-sheduler_MaxTBS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
MAQ5G-PFC
OAI-RAN-5G-sheduler_MaxTBS
Commits
8d2bb6cb
Commit
8d2bb6cb
authored
8 years ago
by
hbilel
Browse files
Options
Downloads
Patches
Plain Diff
[OAI-UE] fix pusch/pucch power control part 1
parent
3bf8768d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
openair1/SCHED/defs.h
+1
-1
1 addition, 1 deletion
openair1/SCHED/defs.h
openair1/SCHED/phy_procedures_lte_ue.c
+3
-3
3 additions, 3 deletions
openair1/SCHED/phy_procedures_lte_ue.c
openair1/SCHED/pusch_pc.c
+1
-1
1 addition, 1 deletion
openair1/SCHED/pusch_pc.c
with
5 additions
and
5 deletions
openair1/SCHED/defs.h
+
1
−
1
View file @
8d2bb6cb
...
@@ -431,7 +431,7 @@ UE_MODE_t get_ue_mode(uint8_t Mod_id,uint8_t CC_id,uint8_t eNB_index);
...
@@ -431,7 +431,7 @@ UE_MODE_t get_ue_mode(uint8_t Mod_id,uint8_t CC_id,uint8_t eNB_index);
@param pucch_fmt Format of PUCCH that is being transmitted
@param pucch_fmt Format of PUCCH that is being transmitted
@returns Transmit power
@returns Transmit power
*/
*/
int
8
_t
pucch_power_cntl
(
PHY_VARS_UE
*
ue
,
UE_rxtx_proc_t
*
proc
,
uint8_t
subframe
,
uint8_t
eNB_id
,
PUCCH_FMT_t
pucch_fmt
);
int
16
_t
pucch_power_cntl
(
PHY_VARS_UE
*
ue
,
UE_rxtx_proc_t
*
proc
,
uint8_t
subframe
,
uint8_t
eNB_id
,
PUCCH_FMT_t
pucch_fmt
);
/*! \brief This function implements the power control mechanism for PUCCH from 36.213.
/*! \brief This function implements the power control mechanism for PUCCH from 36.213.
@param phy_vars_ue PHY variables
@param phy_vars_ue PHY variables
...
...
This diff is collapsed.
Click to expand it.
openair1/SCHED/phy_procedures_lte_ue.c
+
3
−
3
View file @
8d2bb6cb
...
@@ -205,8 +205,8 @@ unsigned int get_tx_amp(int power_dBm, int power_max_dBm, int N_RB_UL, int nb_rb
...
@@ -205,8 +205,8 @@ unsigned int get_tx_amp(int power_dBm, int power_max_dBm, int N_RB_UL, int nb_rb
int
gain_dB
=
power_dBm
-
power_max_dBm
;
int
gain_dB
=
power_dBm
-
power_max_dBm
;
double
gain_lin
;
double
gain_lin
;
if
(
gain_dB
<
-
20
)
//
if (gain_dB < -20)
return
(
AMP
/
10
);
//
return(AMP/10);
gain_lin
=
pow
(
10
,.
1
*
gain_dB
);
gain_lin
=
pow
(
10
,.
1
*
gain_dB
);
if
((
nb_rb
>
0
)
&&
(
nb_rb
<=
N_RB_UL
))
{
if
((
nb_rb
>
0
)
&&
(
nb_rb
<=
N_RB_UL
))
{
...
@@ -1569,7 +1569,7 @@ void ue_pucch_procedures(PHY_VARS_UE *ue,UE_rxtx_proc_t *proc,uint8_t eNB_id,uin
...
@@ -1569,7 +1569,7 @@ void ue_pucch_procedures(PHY_VARS_UE *ue,UE_rxtx_proc_t *proc,uint8_t eNB_id,uin
int
Mod_id
=
ue
->
Mod_id
;
int
Mod_id
=
ue
->
Mod_id
;
int
CC_id
=
ue
->
CC_id
;
int
CC_id
=
ue
->
CC_id
;
int
tx_amp
;
int
tx_amp
;
int
8
_t
Po_PUCCH
;
int
16
_t
Po_PUCCH
;
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_PHY_PROCEDURES_UE_TX_PUCCH
,
VCD_FUNCTION_IN
);
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_PHY_PROCEDURES_UE_TX_PUCCH
,
VCD_FUNCTION_IN
);
...
...
This diff is collapsed.
Click to expand it.
openair1/SCHED/pusch_pc.c
+
1
−
1
View file @
8d2bb6cb
...
@@ -137,7 +137,7 @@ void pusch_power_cntl(PHY_VARS_UE *ue,UE_rxtx_proc_t *proc,uint8_t eNB_id,uint8_
...
@@ -137,7 +137,7 @@ void pusch_power_cntl(PHY_VARS_UE *ue,UE_rxtx_proc_t *proc,uint8_t eNB_id,uint8_
proc
->
subframe_tx
);
proc
->
subframe_tx
);
uint8_t
nb_rb
=
ue
->
ulsch
[
eNB_id
]
->
harq_processes
[
harq_pid
]
->
nb_rb
;
uint8_t
nb_rb
=
ue
->
ulsch
[
eNB_id
]
->
harq_processes
[
harq_pid
]
->
nb_rb
;
int
8
_t
PL
;
int
16
_t
PL
;
// P_pusch = 10*log10(nb_rb + P_opusch(j)+ alpha(u)*PL + delta_TF(i) + f(i))
// P_pusch = 10*log10(nb_rb + P_opusch(j)+ alpha(u)*PL + delta_TF(i) + f(i))
...
...
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