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
f757d140
Commit
f757d140
authored
Sep 14, 2020
by
Haruki NAOI
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: SNR feedback to PUSCH TPC and PUCCH TPC of default scheduler.
parent
7003bb77
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
+1
-1
openair2/LAYER2/MAC/eNB_scheduler_phytest.c
openair2/LAYER2/MAC/eNB_scheduler_phytest.c
+1
-1
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
+2
-2
No files found.
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
View file @
f757d140
...
@@ -1082,7 +1082,7 @@ schedule_ue_spec(module_id_t module_idP,
...
@@ -1082,7 +1082,7 @@ schedule_ue_spec(module_id_t module_idP,
// this is the snr
// this is the snr
// unit is not dBm, it's special from nfapi
// unit is not dBm, it's special from nfapi
// converting to dBm
// converting to dBm
int
snr
=
(
5
*
ue_sched_ctrl
->
pucch1_snr
[
CC_id
]
-
640
)
/
10
;
int
snr
=
ue_sched_ctrl
->
pucch1_snr
[
CC_id
]
;
int
target_snr
=
eNB
->
puCch10xSnr
/
10
;
int
target_snr
=
eNB
->
puCch10xSnr
/
10
;
// 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
...
...
openair2/LAYER2/MAC/eNB_scheduler_phytest.c
View file @
f757d140
...
@@ -254,7 +254,7 @@ void schedule_ulsch_phy_test(module_id_t module_idP,frame_t frameP,sub_frame_t s
...
@@ -254,7 +254,7 @@ void schedule_ulsch_phy_test(module_id_t module_idP,frame_t frameP,sub_frame_t s
//power control
//power control
//compute the expected ULSCH RX power (for the stats)
//compute the expected ULSCH RX power (for the stats)
// this is the snr and this should be constant (regardless of mcs)
// this is the snr and this should be constant (regardless of mcs)
snr
=
(
5
*
UE_sched_ctrl
->
pusch_snr
[
CC_id
]
-
640
)
/
10
;
snr
=
UE_sched_ctrl
->
pusch_snr
[
CC_id
]
;
// new transmission
// new transmission
ndi
=
1
-
UE_template
->
oldNDI_UL
[
harq_pid
];
ndi
=
1
-
UE_template
->
oldNDI_UL
[
harq_pid
];
UE_template
->
oldNDI_UL
[
harq_pid
]
=
ndi
;
UE_template
->
oldNDI_UL
[
harq_pid
]
=
ndi
;
...
...
openair2/LAYER2/MAC/eNB_scheduler_ulsch.c
View file @
f757d140
...
@@ -1505,7 +1505,7 @@ schedule_ulsch_rnti(module_id_t module_idP,
...
@@ -1505,7 +1505,7 @@ schedule_ulsch_rnti(module_id_t module_idP,
* This is the normalized RX snr and this should be constant (regardless
* This is the normalized RX snr and this should be constant (regardless
* of mcs) Is not in dBm, unit from nfapi, converting to dBm
* of mcs) Is not in dBm, unit from nfapi, converting to dBm
*/
*/
const
int32_t
snr
=
(
5
*
UE_sched_ctrl_ptr
->
pusch_snr
[
CC_id
]
-
640
)
/
10
;
const
int32_t
snr
=
UE_sched_ctrl_ptr
->
pusch_snr
[
CC_id
]
;
const
int32_t
target_snr
=
mac
->
puSch10xSnr
/
10
;
const
int32_t
target_snr
=
mac
->
puSch10xSnr
/
10
;
/*
/*
...
@@ -2100,7 +2100,7 @@ void schedule_ulsch_rnti_emtc(module_id_t module_idP,
...
@@ -2100,7 +2100,7 @@ void schedule_ulsch_rnti_emtc(module_id_t module_idP,
cqi_req
=
0
;
cqi_req
=
0
;
/* Power control: compute the expected ULSCH RX snr (for the stats) */
/* Power control: compute the expected ULSCH RX snr (for the stats) */
/* This is the normalized snr and this should be constant (regardless of mcs) */
/* This is the normalized snr and this should be constant (regardless of mcs) */
snr
=
(
5
*
UE_sched_ctrl
->
pusch_snr
[
CC_id
]
-
640
)
/
10
;
snr
=
UE_sched_ctrl
->
pusch_snr
[
CC_id
]
;
target_snr
=
eNB
->
puSch10xSnr
/
10
;
/* TODO: target_rx_power was 178, what to put? */
target_snr
=
eNB
->
puSch10xSnr
/
10
;
/* TODO: target_rx_power was 178, what to put? */
/* 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 */
...
...
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