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
lizhongxiao
OpenXG-RAN
Commits
8458c8fc
Commit
8458c8fc
authored
May 23, 2017
by
shahab SHARIAT BAGHERI
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uplink mac parser
parent
042a16d1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
14 deletions
+17
-14
openair2/ENB_APP/CONTROL_MODULES/MAC/flexran_agent_mac_internal.c
.../ENB_APP/CONTROL_MODULES/MAC/flexran_agent_mac_internal.c
+4
-1
openair2/LAYER2/MAC/flexran_agent_scheduler_dlsch_ue.c
openair2/LAYER2/MAC/flexran_agent_scheduler_dlsch_ue.c
+2
-2
openair2/LAYER2/MAC/flexran_agent_scheduler_ulsch_ue.c
openair2/LAYER2/MAC/flexran_agent_scheduler_ulsch_ue.c
+9
-9
openair2/RRC/LITE/extern.h
openair2/RRC/LITE/extern.h
+2
-2
No files found.
openair2/ENB_APP/CONTROL_MODULES/MAC/flexran_agent_mac_internal.c
View file @
8458c8fc
...
...
@@ -607,7 +607,10 @@ int parse_mac_config(mid_t mod_id, yaml_parser_t *parser) {
}
else
if
(
strcmp
((
char
*
)
event
.
data
.
scalar
.
value
,
"ul_scheduler"
)
==
0
)
{
// Call the proper handler
LOG_D
(
ENB_APP
,
"This is for the ul_scheduler subsystem
\n
"
);
goto
error
;
if
(
parse_dl_scheduler_config
(
mod_id
,
parser
)
==
-
1
)
{
LOG_D
(
ENB_APP
,
"An error occured
\n
"
);
goto
error
;
}
// TODO
}
else
if
(
strcmp
((
char
*
)
event
.
data
.
scalar
.
value
,
"ra_scheduler"
)
==
0
)
{
// Call the proper handler
...
...
openair2/LAYER2/MAC/flexran_agent_scheduler_dlsch_ue.c
View file @
8458c8fc
...
...
@@ -88,8 +88,8 @@ typedef enum {
// number of active slices for past and current time
static
int
n_active_slices
=
1
;
static
int
n_active_slices_current
=
1
;
int
n_active_slices
=
1
;
int
n_active_slices_current
=
1
;
// ue to slice mapping
int
slicing_strategy
=
UEID_TO_SLICEID
;
...
...
openair2/LAYER2/MAC/flexran_agent_scheduler_ulsch_ue.c
View file @
8458c8fc
...
...
@@ -58,8 +58,8 @@
#include "T.h"
/* number of active slices for past and current time*/
static
int
n_active_slices
=
1
;
static
int
n_active_slices
_current
=
1
;
int
n_active_slices_uplink
=
1
;
int
n_active_slices_uplink
_current
=
1
;
/* RB share for each slice for past and current time*/
float
slice_percentage_uplink
[
MAX_NUM_SLICES
]
=
{
1
.
0
,
0
.
0
,
0
.
0
,
0
.
0
};
...
...
@@ -406,7 +406,7 @@ flexran_schedule_ue_ul_spec_default(mid_t mod_id,
flexran_agent_mac_create_empty_ul_config
(
mod_id
,
ul_info
);
for
(
i
=
0
;
i
<
n_active_slices
;
i
++
)
{
for
(
i
=
0
;
i
<
n_active_slices
_uplink
;
i
++
)
{
// Load any updated functions
if
(
update_ul_scheduler
[
i
]
>
0
)
{
...
...
@@ -419,16 +419,16 @@ flexran_schedule_ue_ul_spec_default(mid_t mod_id,
}
// check if the number of slices has changed, and log
if
(
n_active_slices_
current
!=
n_active_slices
){
if
((
n_active_slices
>
0
)
&&
(
n_active_slices
<=
MAX_NUM_SLICES
))
{
if
(
n_active_slices_
uplink_current
!=
n_active_slices_uplink
){
if
((
n_active_slices
_uplink
>
0
)
&&
(
n_active_slices_uplink
<=
MAX_NUM_SLICES
))
{
LOG_N
(
MAC
,
"[eNB %d]frame %d subframe %d: number of active slices has changed: %d-->%d
\n
"
,
mod_id
,
frame
,
subframe
,
n_active_slices_
current
,
n_active_slices
);
mod_id
,
frame
,
subframe
,
n_active_slices_
uplink_current
,
n_active_slices_uplink
);
n_active_slices_
current
=
n_active_slices
;
n_active_slices_
uplink_current
=
n_active_slices_uplink
;
}
else
{
LOG_W
(
MAC
,
"invalid number of slices %d, revert to the previous value %d
\n
"
,
n_active_slices
,
n_active_slices
_current
);
n_active_slices
=
n_active_slices
_current
;
LOG_W
(
MAC
,
"invalid number of slices %d, revert to the previous value %d
\n
"
,
n_active_slices
_uplink
,
n_active_slices_uplink
_current
);
n_active_slices
_uplink
=
n_active_slices_uplink
_current
;
}
}
...
...
openair2/RRC/LITE/extern.h
View file @
8458c8fc
...
...
@@ -93,8 +93,8 @@ extern uint16_t N310[8];
extern
uint16_t
N311
[
8
];
extern
uint32_t
T304
[
8
];
extern
uint32_t
timeToTrigger_ms
[
16
];
extern
float
RSRP_meas_mapping
[
100
];
extern
float
RSRQ_meas_mapping
[
3
3
];
extern
float
RSRP_meas_mapping
[
98
];
extern
float
RSRQ_meas_mapping
[
3
5
];
#endif
...
...
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