Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos
Commits
170e2bbe
Commit
170e2bbe
authored
Aug 15, 2023
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
9d44a4eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
46 deletions
+18
-46
software/ors-amarisoft/config/enb.jinja2.cfg
software/ors-amarisoft/config/enb.jinja2.cfg
+18
-46
No files found.
software/ors-amarisoft/config/enb.jinja2.cfg
View file @
170e2bbe
...
...
@@ -11,6 +11,12 @@
{# XXX rrh_list ? #}
{# lte_cell_tdd_config returns tdd_config for an lte cell #}
{%- macro lte_cell_tdd_config(cell} %}
{%- set _ = {'[Configuration 2] 5ms 2UL 6DL (default)': 2,
'[Configuration 6] 5ms 5UL 3DL (maximum uplink)': 6} %}
{{ _[cell.get('tdd_ul_dl_config', '[Configuration 2] 5ms 2UL 6DL (default)')] }}
{%- endmacro %}
{%- set cell_count = cell_list|length %}
...
...
@@ -20,11 +26,6 @@
{%- set tdd_config = 6 %}
{%- endif %}
{% if rf_mode == 'tdd' %}
#define TDD 1
{% else %}
#define TDD 0
{% endif %}
{%- if slapparameter_dict.get('bandwidth', slap_configuration['configuration.default_lte_bandwidth']) == '1.4 MHz' %}
#define N_RB_DL 6
{%- elif slapparameter_dict.get('bandwidth', slap_configuration['configuration.default_lte_bandwidth']) == '3 MHz' %}
...
...
@@ -162,6 +163,9 @@
{%- if cell['cell_type'] == 'cell_lte' %}
{
rf_port: XXX get from rrh,
n_antenna_dl: N_ANTENNA_DL, # XXX from rrh
n_antenna_ul: N_ANTENNA_UL, # XXX from rrh
cell_id: {{ cell['cell_id'] }},
tac: {{ cell['tac'] }},
n_id_cell: {{ cell['pci'] }},
...
...
@@ -177,43 +181,18 @@
},
{%- endif %}
{%- endfor %}
]
],
{# radio tuning #}
{%- set tdd = (cell['rf_mode'] == 'tdd') %}
{%- if tdd %}
uldl_config: {{ lte_cell_tdd_config(cell} }},
sp_config: 7,
{%- endif %}
n_rb_dl: N_RB_DL,
},
{%- endif %}
{%- endfor %}
{%- for i, k in enumerate(cell_list) %}
{%- if i == 0 -%}
{
{%- else -%}
, {
{%- endif %}
rf_port: {{ i }}, # <-> rrh
cell_id: {{ cell_list[k].get('cell_id', slapparameter_dict.get('cell_id', '0x0' + i|string)) }},
tac: {{ cell_list[k].get('tac', slapparameter_dict.get('tac', '0x0001')) }},
n_id_cell: {{ cell_list[k].get('pci', slapparameter_dict.get('pci', i)) }},
root_sequence_index: 204,
dl_earfcn: {{ cell_list[k].get('dl_earfcn', slapparameter_dict.get('dl_earfcn', earfcn)) }},
{%- set scell_list = [] %}
{%- for j, l in enumerate(cell_list) %}
{%- if j != i %}
{%- do scell_list.append([j, l]) %}
{%- endif %}
{%- endfor %}
scell_list: [
{%- for j, l in enumerate(scell_list) %}
{%- if j == 0 -%}
{
{%- else -%}
, {
{%- endif %}
cell_id: {{ cell_list[l[1]].get('cell_id', '0x0' + l[0]|string) }},
cross_carrier_scheduling: false,
}
{%- endfor %}
],
}
{%- endfor %}
],
cell_default: {
...
...
@@ -234,16 +213,9 @@
"00101",
{% endif %}
],
n_antenna_dl: N_ANTENNA_DL, # XXX -> cell
n_antenna_ul: N_ANTENNA_UL, # XXX -> cell
{% if slapparameter_dict.get('rrh', 'ORS') == "ORS" %}
manual_ref_signal_power: true,
{% endif %}
#if TDD == 1 # XXX -> cell
uldl_config: {{ tdd_config }},
sp_config: 7,
#endif
n_rb_dl: N_RB_DL,
cyclic_prefix: "normal",
phich_duration: "normal",
...
...
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