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
ZhouShuya
OpenXG-RAN
Commits
863e9404
Commit
863e9404
authored
Aug 04, 2017
by
Anta Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add additional cell config info to flexran API and message
parent
3cc3762e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
6 deletions
+53
-6
openair2/ENB_APP/MESSAGES/V2/config_messages.proto
openair2/ENB_APP/MESSAGES/V2/config_messages.proto
+4
-0
openair2/ENB_APP/flexran_agent_common.c
openair2/ENB_APP/flexran_agent_common.c
+14
-2
openair2/ENB_APP/flexran_agent_ran_api.c
openair2/ENB_APP/flexran_agent_ran_api.c
+21
-2
openair2/ENB_APP/flexran_agent_ran_api.h
openair2/ENB_APP/flexran_agent_ran_api.h
+14
-2
No files found.
openair2/ENB_APP/MESSAGES/V2/config_messages.proto
View file @
863e9404
...
...
@@ -39,6 +39,10 @@ message flex_cell_config {
optional
uint32
enable_64QAM
=
33
;
// One of the FLEQ_* enum values
optional
uint32
carrier_index
=
34
;
// Carrier component index
optional
uint32
op_dl_freq
=
35
;
// operating downlink frequency
optional
uint32
op_ul_freq
=
36
;
// operating uplink frequency
optional
uint32
op_eutra_band
=
37
;
// operating band
optional
int32
op_dl_pdsch_power
=
38
;
// operating downlink power
optional
int32
op_ul_pusch_power
=
39
;
// operating uplink power
}
message
flex_ue_config
{
...
...
openair2/ENB_APP/flexran_agent_common.c
View file @
863e9404
...
...
@@ -1013,10 +1013,22 @@ int flexran_agent_enb_config_reply(mid_t mod_id, const void *params, Protocol__F
cell_conf
[
i
]
->
srs_mac_up_pts
=
flexran_get_srs_MaxUpPts
(
enb_id
,
i
);
cell_conf
[
i
]
->
has_srs_mac_up_pts
=
1
;
cell_conf
[
i
]
->
op_dl_freq
=
flexran_agent_get_operating_dl_freq
(
i
);
cell_conf
[
i
]
->
op_dl_freq
=
flexran_agent_get_operating_dl_freq
(
enb_id
,
i
);
cell_conf
[
i
]
->
has_op_dl_freq
=
1
;
cell_conf
[
i
]
->
op_ul_freq
=
flexran_agent_get_operating_ul_freq
(
enb_id
,
i
);
cell_conf
[
i
]
->
has_op_ul_freq
=
1
;
cell_conf
[
i
]
->
op_eutra_band
=
flexran_agent_get_operating_eutra_band
(
enb_id
,
i
);
cell_conf
[
i
]
->
has_op_eutra_band
=
1
;
cell_conf
[
i
]
->
op_dl_pdsch_power
=
flexran_agent_get_operating_pdsch_refpower
(
enb_id
,
i
);
cell_conf
[
i
]
->
has_op_dl_pdsch_power
=
1
;
cell_conf
[
i
]
->
op_ul_pusch_power
=
flexran_agent_get_operating_pusch_p0
(
enb_id
,
i
);
cell_conf
[
i
]
->
has_op_ul_pusch_power
=
1
;
if
(
flexran_get_enable64QAM
(
enb_id
,
i
)
==
0
)
{
cell_conf
[
i
]
->
enable_64qam
=
PROTOCOL__FLEX_QAM__FLEQ_MOD_16QAM
;
}
else
if
(
flexran_get_enable64QAM
(
enb_id
,
i
)
==
1
)
{
...
...
openair2/ENB_APP/flexran_agent_ran_api.c
View file @
863e9404
...
...
@@ -958,9 +958,28 @@ int flexran_get_antenna_ports(mid_t mod_id, int CC_id){
}
float
flexran_agent_get_operating_dl_freq
(
mid_t
cc_id
)
{
float
flexran_agent_get_operating_dl_freq
(
mid_t
mod_id
,
int
cc_id
)
{
const
Enb_properties_array_t
*
enb_properties
=
enb_config_get
();
return
(
enb_properties
->
properties
[
0
]
->
downlink_frequency
[
cc_id
]
/
1000000
);
return
(
enb_properties
->
properties
[
mod_id
]
->
downlink_frequency
[
cc_id
]
/
1000000
);
}
float
flexran_agent_get_operating_ul_freq
(
mid_t
mod_id
,
int
cc_id
)
{
const
Enb_properties_array_t
*
enb_properties
=
enb_config_get
();
return
((
enb_properties
->
properties
[
mod_id
]
->
downlink_frequency
[
cc_id
]
+
enb_properties
->
properties
[
0
]
->
uplink_frequency_offset
[
cc_id
])
/
1000000
);
}
int
flexran_agent_get_operating_eutra_band
(
mid_t
mod_id
,
int
cc_id
)
{
const
Enb_properties_array_t
*
enb_properties
=
enb_config_get
();
return
enb_properties
->
properties
[
mod_id
]
->
eutra_band
[
cc_id
];
}
int
flexran_agent_get_operating_pdsch_refpower
(
mid_t
mod_id
,
int
cc_id
)
{
const
Enb_properties_array_t
*
enb_properties
=
enb_config_get
();
return
enb_properties
->
properties
[
mod_id
]
->
pdsch_referenceSignalPower
[
cc_id
];
}
int
flexran_agent_get_operating_pusch_p0
(
mid_t
mod_id
,
int
cc_id
)
{
const
Enb_properties_array_t
*
enb_properties
=
enb_config_get
();
return
enb_properties
->
properties
[
mod_id
]
->
pusch_p0_Nominal
[
cc_id
];
}
openair2/ENB_APP/flexran_agent_ran_api.h
View file @
863e9404
...
...
@@ -300,5 +300,17 @@ int flexran_get_lcg(mid_t ue_id, mid_t lc_id);
/* Get direction of logical channel with id lc_id */
int
flexran_get_direction
(
mid_t
ue_id
,
mid_t
lc_id
);
/*Gety downlink frequency*/
float
flexran_agent_get_operating_dl_freq
(
mid_t
cc_id
);
\ No newline at end of file
/*Get downlink frequency*/
float
flexran_agent_get_operating_dl_freq
(
mid_t
mod_id
,
int
cc_id
);
/*Get uplink frequency*/
float
flexran_agent_get_operating_ul_freq
(
mid_t
mod_id
,
int
cc_id
);
/*Get eutra band*/
int
flexran_agent_get_operating_eutra_band
(
mid_t
mod_id
,
int
cc_id
);
/*Get downlink ref signal power*/
int
flexran_agent_get_operating_pdsch_refpower
(
mid_t
mod_id
,
int
cc_id
);
/*Get uplink power*/
int
flexran_agent_get_operating_pusch_p0
(
mid_t
mod_id
,
int
cc_id
);
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