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
106
Merge Requests
106
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
2a29e7dc
Commit
2a29e7dc
authored
Oct 31, 2023
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
9436e340
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
10 deletions
+14
-10
software/ors-amarisoft/README.md
software/ors-amarisoft/README.md
+4
-4
software/ors-amarisoft/amari/lte.jinja2
software/ors-amarisoft/amari/lte.jinja2
+10
-6
No files found.
software/ors-amarisoft/README.md
View file @
2a29e7dc
...
...
@@ -11,6 +11,10 @@ How to deploy from scratch
## Generated buildout configurations and json input schemas
XXX update
*
instance-ue-input-schema.json
Since there are multiple ors-amarisoft softwares releases and software types, the following files are
generated with jinja2 templates with the render-templates script before being pushed to gitlab:
...
...
@@ -18,16 +22,12 @@ generated with jinja2 templates with the render-templates script before being pu
*
instance-fdd-enb-input-schema.json
*
software-fdd.cfg
*
software-tdd.cfg.json
*
instance-fdd-ue-nr-input-schema.json XXX kill x-ue
*
instance-tdd-gnb-input-schema.json
*
instance-tdd-ue-nr-input-schema.json
*
test/testFDD.py
*
test/testTDD.py
*
software-tdd.cfg
*
instance-tdd-ue-lte-input-schema.json
*
instance-fdd-gnb-input-schema.json
*
software-fdd.cfg.json
*
instance-fdd-ue-lte-input-schema.json
These files should not be modified directly, and the render-templates scripts should be run along
with update-hash before each commit.
...
...
software/ors-amarisoft/amari/lte.jinja2
View file @
2a29e7dc
{#- Package amari/lte provides helpers for configuring Amarisoft LTE services in SlapOS. XXX ...
{#- Package amari/lte provides helpers for configuring Amarisoft LTE services.
- ru_config emits RF driver configutation for specified Radio Units.
- cell_tdd_config and nr_cell_tdd_config return TDD configutation for LTE
and NR cells correspondingly.
- cell_n_rb_dl returns #(resource-blocks) for an LTE cell.
XXX overview
XXX amari/slap is assumed to be loaded and `import with context`
-#}
...
...
@@ -10,7 +14,8 @@
{%- macro ru_config(iru_dict, slapparameter_dict) %}
// Radio Units
rf_driver: {
// XXX vvv <- ru.txrx_active
// XXX vvv <- ru.txrx_active ? XXX how to handle txrx_active for SDR ?
// (tx_gain=-1000 does not work - it still sets tx_gain to min.possible value 14)
{%- if slapparameter_dict.get('disable_sdr', False) %}
name: "dummy",
{%- else %}
...
...
@@ -30,13 +35,12 @@
{%- set ru_sdr_dict = {} %} {#- dev -> ru for ru with ru_type = sdr #}
{%- set ru_cpri_dict = {} %} {#- dev -> ru for ru with link_type = cpri #}
{%- set tx_gainv = [] %} {#- tx_gain by tx channel #}
{%- set rx_gainv = [] %} {#- rx_gain by
t
x channel #}
{%- set rx_gainv = [] %} {#- rx_gain by
r
x channel #}
{%- for (ru_ref, iru) in iru_dict.items() | sort(attribute="1._._rf_port") %}
{%- set ru = iru['_'] %}
// {{ ru_ref }} {{ ru.n_antenna_dl }}T{{ ru.n_antenna_ul }}R ({{ ru.ru_type }})
{%- if ru.ru_type == 'sdr' %}
{%- do ru_sdr_dict.update({len(dev_argv): ru}) %}
{#- XXX move to ru/sdr ? #}
{%- for n in ru.sdr_dev_list %}
{%- do dev_argv.append("dev%d=/dev/sdr%d" % (len(dev_argv), n)) %}
{%- endfor %}
...
...
@@ -54,7 +58,7 @@
{#- emit sdr-related options if an sdr ru is present #}
{%- if len(ru_sdr_dict) > 0 %}
rx_antenna:"tx_rx",
{#- XXX -> ru/sdr ? #}
rx_antenna:"tx_rx",
tdd_tx_mod: 1,
{%- 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