Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lu Xu
slapos
Commits
8f931619
Commit
8f931619
authored
Sep 13, 2023
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
60cd9df3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
83 additions
and
31 deletions
+83
-31
software/ors-amarisoft/config/enb.cfg
software/ors-amarisoft/config/enb.cfg
+34
-20
software/ors-amarisoft/config/enb.jinja2.cfg
software/ors-amarisoft/config/enb.jinja2.cfg
+49
-11
No files found.
software/ors-amarisoft/config/enb.cfg
View file @
8f931619
...
...
@@ -61,7 +61,7 @@
dl_earfcn: 38050,
root_sequence_index: 204,
// Handover
// Handover
XXX same code for both LTE and NR
ncell_list: [
// Intra-ENB HO
{
...
...
@@ -107,6 +107,8 @@
],
uldl_config: 2,
sp_config: 7,
n_rb_dl: 25,
...
...
@@ -652,7 +654,7 @@
dl_earfcn: 38100,
root_sequence_index: 205,
// Handover
// Handover
XXX same code for both LTE and NR
ncell_list: [
// Intra-ENB HO
{
...
...
@@ -698,6 +700,8 @@
],
uldl_config: 2,
sp_config: 7,
n_rb_dl: 25,
...
...
@@ -1243,7 +1247,7 @@
dl_earfcn: 3350,
root_sequence_index: 206,
// Handover
// Handover
XXX same code for both LTE and NR
ncell_list: [
// Intra-ENB HO
{
...
...
@@ -1289,6 +1293,8 @@
],
n_rb_dl: 25,
si_coderate: 0.2,
...
...
@@ -1830,7 +1836,7 @@
dl_earfcn: 3410,
root_sequence_index: 207,
// Handover
// Handover
XXX same code for both LTE and NR
ncell_list: [
// Intra-ENB HO
{
...
...
@@ -1876,6 +1882,8 @@
],
n_rb_dl: 25,
si_coderate: 0.2,
...
...
@@ -2504,4 +2512,10 @@
},
// NR cells (TODO)
nr_cell_list: [
],
}
\ No newline at end of file
software/ors-amarisoft/config/enb.jinja2.cfg
View file @
8f931619
...
...
@@ -9,9 +9,15 @@
'gnb_id': '0x12345',
'gnb_id_bits': 28,
'cell': {
'cell
/lte
': {
'pci': 1,
'tac': "0x0001",
'tdd_ul_dl_config': '[Configuration 2] 5ms 2UL 6DL (default)',
},
'cell/nr': {
'pci': 500,
'ssb_pos_bitmap': '10000000',
'tdd_ul_dl_config': '5ms 2UL 7DL 4/6 (default)',
},
'cpri_link': {
'mapping': 'hw',
...
...
@@ -116,7 +122,7 @@
{%- do iru_dict.update({ref: iru}) %}
{%- elif 'cell_type' in _ %}
{%- set icell = slave %}
{%- for k, v in defaults['cell
'].items()
%}
{%- for k, v in defaults['cell
/' + _['cell_type']].items()
%}
{%- do _.setdefault(k, v) %}
{%- endfor %}
{%- do icell_dict.update({ref: icell}) %}
...
...
@@ -137,7 +143,7 @@
{#- do print('\n>>> iru_dict:'), pprint(iru_dict) #}
{#- do print('\n>>> icell_dict:'), pprint(icell_dict) #}
{#- XXX verify cell_type = lte|nr #}
{#- XXX verify cell_type = lte|nr
XXX no - this should be verified by json-schema
#}
{#- verify that there is no dangling cell->ru references #}
{#- XXX also verify that there is no dangling cell -> cell refs in ruincell_ref #}
...
...
@@ -172,6 +178,12 @@
sync: "gps",
{%- endif %}
{#- XXX emit big warning if both cpri and sdr are present
to protect users from unclear eNB failues
see https://support.amarisoft.com/issues/26021 for details
XXX belowe we continue as if sdr and cpri are both supported by enb simultaneously #}
{%- set dev_argv = [] %}
{%- set ru_sdr_dict = {} %} {# dev -> ru for ru with ru_type = sdr #}
{%- set ru_cpri_dict = {} %} {# dev -> ru for ru with link_kind = cpri #}
...
...
@@ -314,7 +326,7 @@
slapparameter_dict.get('root_sequence_index',
204 + i)) }},
// Handover
// Handover
XXX same code for both LTE and NR
ncell_list: [
// Intra-ENB HO
{%- for cell2_ref, icell2 in icell_dict|dictsort %}
...
...
@@ -369,6 +381,8 @@
{%- endfor %}
],
{# tune LTE parameters for the cell #}
{%- set tdd = (cell['rf_mode'] == 'tdd') %}
{%- if tdd %}
...
...
@@ -551,6 +565,30 @@
},
// NR cells (TODO)
{#- XXX + nr_cell_list #}
nr_cell_list: [
{%- for i, (cell_ref, icell) in enumerate(icell_dict|dictsort) %}
{% set cell = icell['_'] %}
{%- if cell['cell_type'] == 'nr' %}
{%- set ru_ref = J(jcell_ru_ref(icell)) %}
{%- set iru = iru_dict[ru_ref] %}
{%- set ru = iru['_'] %}
// {{ J(jref_of_shared(icell)) }}
{
rf_port: {{ ru['.rf_port'] }},
n_antenna_dl: {{ ru['n_antenna_dl'] }},
n_antenna_ul: {{ ru['n_antenna_ul'] }},
cell_id: {{ cell['cell_id'] }},
n_id_cell: {{ cell['pci'] }},
band: {{ cell['nr_band'] }},
dl_nr_arfcn: {{ cell['dl_nr_arfcn'] }},
bandwidth: {{ cell['bandwidth'] }},
subcarrier_spacing: 30,
ssb_pos_bitmap: {{ cell['ssb_pos_bitmap'] }},
},
{%- endif %}
{%- endfor %}
],
{#- XXX + nr_cell_default #}
}
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