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
Labels
Merge Requests
104
Merge Requests
104
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
4c50a7a0
Commit
4c50a7a0
authored
Jun 27, 2023
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/ors-amarisoft: modify eNB/gNB config to improve radio link
parent
c8ae36ce
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
83 additions
and
33 deletions
+83
-33
software/ors-amarisoft/buildout.hash.cfg
software/ors-amarisoft/buildout.hash.cfg
+8
-8
software/ors-amarisoft/config/enb.jinja2.cfg
software/ors-amarisoft/config/enb.jinja2.cfg
+6
-3
software/ors-amarisoft/config/gnb.jinja2.cfg
software/ors-amarisoft/config/gnb.jinja2.cfg
+27
-9
software/ors-amarisoft/config/sib23.jinja2.asn
software/ors-amarisoft/config/sib23.jinja2.asn
+9
-0
software/ors-amarisoft/instance-enb-input-schema.json.jinja2
software/ors-amarisoft/instance-enb-input-schema.json.jinja2
+2
-2
software/ors-amarisoft/instance-enb.jinja2.cfg
software/ors-amarisoft/instance-enb.jinja2.cfg
+9
-1
software/ors-amarisoft/instance-fdd-enb-input-schema.json
software/ors-amarisoft/instance-fdd-enb-input-schema.json
+2
-2
software/ors-amarisoft/instance-gnb-input-schema.json.jinja2
software/ors-amarisoft/instance-gnb-input-schema.json.jinja2
+2
-2
software/ors-amarisoft/instance-gnb.jinja2.cfg
software/ors-amarisoft/instance-gnb.jinja2.cfg
+1
-0
software/ors-amarisoft/instance-tdd-gnb-input-schema.json
software/ors-amarisoft/instance-tdd-gnb-input-schema.json
+2
-2
software/ors-amarisoft/instance.cfg
software/ors-amarisoft/instance.cfg
+12
-1
software/ors-amarisoft/software-base.cfg
software/ors-amarisoft/software-base.cfg
+3
-3
No files found.
software/ors-amarisoft/buildout.hash.cfg
View file @
4c50a7a0
...
...
@@ -16,7 +16,7 @@
[template]
filename = instance.cfg
md5sum =
972db83abdb868e242a2ece1a052f800
md5sum =
dcb7298b5644197afc2e67a0367fddbc
[amarisoft-stats.jinja2.py]
_update_hash_filename_ = amarisoft-stats.jinja2.py
...
...
@@ -36,11 +36,11 @@ md5sum = b34fe47a73890097fbc6ea6374aeb38d
[template-enb]
_update_hash_filename_ = instance-enb.jinja2.cfg
md5sum =
040d9317773ff6e653a4edb9a8e484d2
md5sum =
ee5ad489462f1af19e9fdfebc08292a1
[template-gnb]
_update_hash_filename_ = instance-gnb.jinja2.cfg
md5sum =
89230ab64b3d4fa826ea47d6612de101
md5sum =
ac4571ca09ba47f9b82fefebd564e755
[template-core-network]
_update_hash_filename_ = instance-core-network.jinja2.cfg
...
...
@@ -64,15 +64,15 @@ md5sum = dcaac06553a3222b14c0013a13f4a149
[enb.jinja2.cfg]
filename = config/enb.jinja2.cfg
md5sum =
fa71282e06c0f097b67578e6c7578037
md5sum =
81fe1f49c9ecdd06a30a1ecbf77526c9
[sib23.asn]
filename = config/sib23.asn
md5sum =
b377dac7f1fcf94fb9ce9ebed617f36a
[sib23.
jinja2.
asn]
filename = config/sib23.
jinja2.
asn
md5sum =
5e782fd4b93dc621ddac936913c085f2
[gnb.jinja2.cfg]
filename = config/gnb.jinja2.cfg
md5sum =
91648b9f70a10eb8a89465a88d3975a
a
md5sum =
8f0dc5218bf6ae1574518a750ba00d8
a
[ltelogs.jinja2.sh]
filename = ltelogs.jinja2.sh
...
...
software/ors-amarisoft/config/enb.jinja2.cfg
View file @
4c50a7a0
...
...
@@ -15,7 +15,7 @@
{% endif %}
log_filename: "{{ directory['log'] }}/enb.log",
{% if slapparameter_dict.get('rrh', '') == "Lopcomm ORAN" %}
{% if slapparameter_dict.get('rrh', '
ORS
') == "Lopcomm ORAN" %}
rf_driver: {
name: "sdr",
args: "dev0=/dev/sdr0@0",
...
...
@@ -28,7 +28,7 @@
},
tx_gain: 0,
rx_gain: 0,
{% el
se
%}
{% el
if slapparameter_dict.get('rrh', 'ORS') == "ORS"
%}
rf_driver: {
name: "sdr",
args: "dev0=/dev/sdr0",
...
...
@@ -104,6 +104,9 @@
cell_default: {
n_antenna_dl: N_ANTENNA_DL,
n_antenna_ul: N_ANTENNA_UL,
{% if slapparameter_dict.get('rrh', 'ORS') == "ORS" %}
manual_ref_signal_power: true,
{% endif %}
#if TDD == 1
uldl_config: 2,
sp_config: 7,
...
...
@@ -121,7 +124,7 @@
si_window_length: 40,
sib_sched_list: [
{
filename: "{{ sib23 }}",
filename: "{{ sib23
_file
}}",
si_periodicity: 16,
},
],
...
...
software/ors-amarisoft/config/gnb.jinja2.cfg
View file @
4c50a7a0
{%- set tx_gain = slapparameter_dict.get('tx_gain', slap_configuration['configuration.default_nr_tx_gain']) %}
{%- if slapparameter_dict.get('tdd_ul_dl_config', '5ms 2UL 7DL 4/6 (default)') == '5ms 2UL 7DL 4/6 (default)' %}
{%- set tdd_config = 1 %}
{%- elif slapparameter_dict.get('tdd_ul_dl_config', '5ms 2UL 7DL 4/6 (default)') == '2.5ms 1UL 3DL 2/10' %}
{%- set tdd_config = 2 %}
{%- elif slapparameter_dict.get('tdd_ul_dl_config', '5ms 2UL 7DL 4/6 (default)') == '5ms 8UL 3DL 2/10 (maximum uplink)' %}
{%- set tdd_config = 3 %}
{%- endif %}
#define N_ANTENNA_DL {{ slapparameter_dict.get('n_antenna_dl', slap_configuration['configuration.default_n_antenna_dl']) }}
{% if slapparameter_dict.get('rrh', '') == "M2RU Sunwave" %}
{% if slapparameter_dict.get('rrh', '
ORS
') == "M2RU Sunwave" %}
#define N_ANTENNA_UL {{ slapparameter_dict.get('n_antenna_ul', 1) }}
{% else %}
#define N_ANTENNA_UL {{ slapparameter_dict.get('n_antenna_ul', slap_configuration['configuration.default_n_antenna_dl']) }}
...
...
@@ -11,7 +20,7 @@
log_options: "all.level=error,all.max_size=0,nas.level=debug,nas.max_size=1,ngap.level=debug,ngap.max_size=1,xnap.level=debug,xnap.max_size=1,rrc.level=debug,rrc.max_size=1,phy.level=info,file.rotate=1G,file.path=/dev/null",
{% endif %}
log_filename: "{{ directory['log'] }}/gnb.log",
{% if slapparameter_dict.get('rrh', '') == "M2RU Sunwave" %}
{% if slapparameter_dict.get('rrh', '
ORS
') == "M2RU Sunwave" %}
rf_driver: {
name: "sdr",
args: "dev0=/dev/sdr0@0",
...
...
@@ -34,7 +43,7 @@
rx_antenna: "tx_rx",
tdd_tx_mod: 1,
},
tx_gain: {{
slapparameter_dict.get('tx_gain', slap_configuration['configuration.default_nr_tx_gain'])
}},
tx_gain: {{
tx_gain
}},
rx_gain: {{ slapparameter_dict.get('rx_gain', slap_configuration['configuration.default_nr_rx_gain']) }},
{% endif %}
com_addr: "127.0.1.2:9001",
...
...
@@ -117,7 +126,15 @@
bandwidth: {{ slapparameter_dict.get('nr_bandwidth', slap_configuration['configuration.default_nr_bandwidth']) }},
n_antenna_dl: N_ANTENNA_DL,
n_antenna_ul: N_ANTENNA_UL,
{% if slapparameter_dict.get('tdd_ul_dl_config', '5ms 2UL 7DL 4/6 (default)') == '5ms 2UL 7DL 4/6 (default)' %}
{%- if slapparameter_dict.get('rrh', 'ORS') == "ORS" %}
manual_ref_signal_power: true,
{%- if one_watt == "True" %}
ss_pbch_block_power: {{ (tx_gain | int) - 54 }},
{%- else %}
ss_pbch_block_power: {{ (tx_gain | int) - 35 }},
{%- endif -%}
{%- endif %}
{% if tdd_config == 1 %}
tdd_ul_dl_config: {
pattern1: {
period: 5,
...
...
@@ -216,7 +233,7 @@
prach_config_index: 160,
msg1_subcarrier_spacing: 30,
msg1_fdm: 1,
{% if slapparameter_dict.get('rrh', '') == "M2RU Sunwave" %}
{% if slapparameter_dict.get('rrh', '
ORS
') == "M2RU Sunwave" %}
msg1_frequency_start: 0,
{% else %}
msg1_frequency_start: -1,
...
...
@@ -232,7 +249,7 @@
cb_preambles_per_ssb: 8,
},
pdcch: {
{% if slapparameter_dict.get('rrh', '') == "M2RU Sunwave" %}
{% if slapparameter_dict.get('rrh', '
ORS
') == "M2RU Sunwave" %}
n_rb_coreset0: 48,
n_symb_coreset0: 1,
{% endif %}
...
...
@@ -240,7 +257,7 @@
dedicated_coreset: {
rb_start: -1,
l_crb: -1,
{% if slapparameter_dict.get('rrh', '') == "M2RU Sunwave" %}
{% if slapparameter_dict.get('rrh', '
ORS
') == "M2RU Sunwave" %}
duration: 1,
{% else %}
duration: 0,
...
...
@@ -263,7 +280,7 @@
dmrs_add_pos: 1,
dmrs_type: 1,
dmrs_max_len: 1,
{% if slapparameter_dict.get('rrh', '') == "M2RU Sunwave" %}
{% if slapparameter_dict.get('rrh', '
ORS
') == "M2RU Sunwave" %}
k0: 0,
k1: [ 8, 7, 7, 6, 5, 4, 12, 11 ],
{% endif %}
...
...
@@ -470,6 +487,7 @@
],
},
pucch: {
dpc_snr_target: 25,
pucch_group_hopping: "neither",
hopping_id: -1,
p0_nominal: -90,
...
...
@@ -496,7 +514,7 @@
mcs_table: "qam256",
mcs_table_tp: "qam256",
ldpc_max_its: 5,
{% if slapparameter_dict.get('rrh', '') == "M2RU Sunwave" %}
{% if slapparameter_dict.get('rrh', '
ORS
') == "M2RU Sunwave" %}
k2: 4,
msg3_k2: 7,
{% endif %}
...
...
software/ors-amarisoft/config/sib23.asn
→
software/ors-amarisoft/config/sib23.
jinja2.
asn
View file @
4c50a7a0
{%- set tx_gain = slapparameter_dict.get('tx_gain', slap_configuration['configuration.default_lte_tx_gain']) %}
{
message c1: systemInformation: {
criticalExtensions systemInformation-r8: {
...
...
@@ -36,7 +37,15 @@
}
},
pdsch-ConfigCommon {
{% if slapparameter_dict.get('rrh', 'ORS') == "ORS" %}
{%- if one_watt == "True" %}
referenceSignalPower {{ (tx_gain | int) - 54 }}, /* patched by eNB */
{%- else %}
referenceSignalPower {{ (tx_gain | int) - 35 }}, /* patched by eNB */
{%- endif %}
{% else %}
referenceSignalPower -8, /* patched by eNB */
{% endif %}
p-b 1 /* patched by eNB */
},
pusch-ConfigCommon {
...
...
software/ors-amarisoft/instance-enb-input-schema.json.jinja2
View file @
4c50a7a0
...
...
@@ -8,9 +8,9 @@
"title": "RRH",
"description": "RRH",
"type": "string",
"default": "
SDR
",
"default": "
ORS
",
"enum": [
"
SDR
",
"
ORS
",
"Lopcomm ORAN"
]
},
...
...
software/ors-amarisoft/instance-enb.jinja2.cfg
View file @
4c50a7a0
...
...
@@ -288,10 +288,17 @@ context =
key slapparameter_dict slap-configuration:configuration
key gtp_addr_v6 slap-configuration:ipv6-random
raw gtp_addr_v4 {{ lan_ipv4 }}
raw
sib23 {{ sib23
}}
raw
one_watt {{ ors_version['one-watt']
}}
import netaddr netaddr
${:extra-context}
[sib-config]
<= config-base
url = {{ sib23_template }}
output = ${directory:etc}/sib23.cfg
extra-context =
raw rf_mode rf_mode
[enb-config]
<= config-base
{% if slapparameter_dict.get("enb_config_link", None) %}
...
...
@@ -302,6 +309,7 @@ url = {{ enb_template }}
output = ${directory:etc}/enb.cfg
extra-context =
raw rf_mode rf_mode
key sib23_file sib-config:output
[publish-connection-information]
<= monitor-publish
...
...
software/ors-amarisoft/instance-fdd-enb-input-schema.json
View file @
4c50a7a0
...
...
@@ -7,9 +7,9 @@
"title"
:
"RRH"
,
"description"
:
"RRH"
,
"type"
:
"string"
,
"default"
:
"
SDR
"
,
"default"
:
"
ORS
"
,
"enum"
:
[
"
SDR
"
,
"
ORS
"
,
"Lopcomm ORAN"
]
},
...
...
software/ors-amarisoft/instance-gnb-input-schema.json.jinja2
View file @
4c50a7a0
...
...
@@ -8,9 +8,9 @@
"title": "RRH",
"description": "RRH",
"type": "string",
"default": "
SDR
",
"default": "
ORS
",
"enum": [
"
SDR
",
"
ORS
",
"M2RU Sunwave"
]
},
...
...
software/ors-amarisoft/instance-gnb.jinja2.cfg
View file @
4c50a7a0
...
...
@@ -213,6 +213,7 @@ context =
key slapparameter_dict slap-configuration:configuration
key gtp_addr_v6 slap-configuration:ipv6-random
raw gtp_addr_v4 {{ lan_ipv4 }}
raw one_watt {{ ors_version['one-watt'] }}
import netaddr netaddr
[gnb-config]
...
...
software/ors-amarisoft/instance-tdd-gnb-input-schema.json
View file @
4c50a7a0
...
...
@@ -7,9 +7,9 @@
"title"
:
"RRH"
,
"description"
:
"RRH"
,
"type"
:
"string"
,
"default"
:
"
SDR
"
,
"default"
:
"
ORS
"
,
"enum"
:
[
"
SDR
"
,
"
ORS
"
,
"M2RU Sunwave"
]
},
...
...
software/ors-amarisoft/instance.cfg
View file @
4c50a7a0
...
...
@@ -51,6 +51,15 @@ init =
options['ims'] = path + "/ims"
options['ue'] = path + "/ue"
[ors-version]
recipe = slapos.recipe.build
init =
import subprocess
v = subprocess.check_output(["sudo", "-n", "/opt/amarisoft/get-sdr-info", "-v"])
v = float(v.decode())
options['version'] = v
options['one-watt'] = bool(v >= 4)
[lan-ip]
recipe = slapos.recipe.build
init =
...
...
@@ -93,10 +102,11 @@ filename = instance-enb.cfg
extensions = jinja2.ext.do
extra-context =
raw monitor_template ${monitor2-template:output}
section ors_version ors-version
key enb amarisoft:enb
key sdr amarisoft:sdr
raw enb_template ${enb.jinja2.cfg:target}
raw sib23
${sib23
.asn:target}
raw sib23
_template ${sib23.jinja2
.asn:target}
raw ltelogs_template ${ltelogs.jinja2.sh:target}
raw amarisoft_stats_template ${amarisoft-stats.jinja2.py:target}
raw amarisoft_rf_info_template ${amarisoft-rf-info.jinja2.py:target}
...
...
@@ -128,6 +138,7 @@ filename = instance-gnb.cfg
extensions = jinja2.ext.do
extra-context =
raw monitor_template ${monitor2-template:output}
section ors_version ors-version
key enb amarisoft:enb
key sdr amarisoft:sdr
raw gnb_template ${gnb.jinja2.cfg:target}
...
...
software/ors-amarisoft/software-base.cfg
View file @
4c50a7a0
...
...
@@ -29,7 +29,7 @@ parts +=
ue-nr.jinja2.cfg
CreateProcessingEle.jinja2.xml
cu_config.jinja2.xml
sib23.asn
sib23.
jinja2.
asn
monitor-httpd-extra-conf
# copy all gadget file
gadget
...
...
@@ -124,9 +124,9 @@ destination = ${buildout:directory}/gadget/${:_buildout_section_name_}
[enb.jinja2.cfg]
<= copy-config-to-instance
filename = enb.jinja2.cfg
[sib23.asn]
[sib23.
jinja2.
asn]
<= copy-config-to-instance
filename = sib23.asn
filename = sib23.
jinja2.
asn
[gnb.jinja2.cfg]
<= copy-config-to-instance
filename = gnb.jinja2.cfg
...
...
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