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
86404e72
Commit
86404e72
authored
Sep 29, 2023
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
0bfca382
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
11 deletions
+43
-11
software/ors-amarisoft/config/lte.jinja2
software/ors-amarisoft/config/lte.jinja2
+9
-8
software/ors-amarisoft/config/ue.cfg
software/ors-amarisoft/config/ue.cfg
+33
-3
software/ors-amarisoft/slapos-render-config.py
software/ors-amarisoft/slapos-render-config.py
+1
-0
No files found.
software/ors-amarisoft/config/lte.jinja2
View file @
86404e72
...
@@ -289,14 +289,15 @@
...
@@ -289,14 +289,15 @@
{#- XXX -> nr ? #}
{#- XXX -> nr ? #}
{%- macro default_ssb_nr_arfcn(dl_nr_arfcn) %}
{%- macro default_ssb_nr_arfcn(dl_nr_arfcn) %}
{#- NOTE: rechecked computations wrt https://tech-academy.amarisoft.com/OutOfBox_UEsim_SA.html#Tips_SSB_Frequency #}
{#- NOTE: computations rechecked wrt https://tech-academy.amarisoft.com/OutOfBox_UEsim_SA.html#Tips_SSB_Frequency #}
{%- set f = nr.get_frequency(nrarfcn=dl_nr_arfcn) %}
{%- set nr = nrarfcn_module %}
{%- set gscn = nr.get_gscn_by_frequency(f) %}
{%- set f = nr.get_frequency(nrarfcn=dl_nr_arfcn) %}
{%- if nr.get_frequency_by_gscn(gscn) > f %}{# nrarfcn rounds up, amari down #}
{%- set gscn = nr.get_gscn_by_frequency(f) %}
{%- set gscn = gscn - 1 %}
{%- if nr.get_frequency_by_gscn(gscn) > f %}{# nrarfcn rounds up, amari down #}
{%- endif %}
{%- set gscn = gscn - 1 %}
{%- set fg = nr.get_frequency_by_gscn(gscn) %}
{%- endif %}
{%- set fg_arfcn = nr.get_nrarfcn(fg) %}
{%- set fg = nr.get_frequency_by_gscn(gscn) %}
{%- set fg_arfcn = nr.get_nrarfcn(fg) %}
{{- fg_arfcn }}
{{- fg_arfcn }}
{%- endmacro %}
{%- endmacro %}
...
...
software/ors-amarisoft/config/ue.cfg
View file @
86404e72
...
@@ -10,10 +10,14 @@
...
@@ -10,10 +10,14 @@
// Radio Units
// Radio Units
rf_driver: {
rf_driver: {
name: "sdr",
name: "sdr",
args: "",
// _UCELL1_ru 2T1R
// _UECELL2_ru 2T2R
args: "dev0=/dev/sdr0,dev1=/dev/sdr2",
rx_antenna:"tx_rx",
tdd_tx_mod: 1,
},
},
tx_gain: [],
tx_gain: [
41, 41, 31, 31
],
rx_gain: [],
rx_gain: [
42, 32, 32
],
cell_groups: [{
cell_groups: [{
...
@@ -22,6 +26,18 @@
...
@@ -22,6 +26,18 @@
multi_ue: true,
multi_ue: true,
cells: [
cells: [
// UCELL1
{
rf_port: 0,
n_antenna_dl: 2,
n_antenna_ul: 1,
dl_earfcn: 38050,
bandwidth: 25,
global_timing_advance: -1,
},
],
],
pdcch_decode_opt: false,
pdcch_decode_opt: false,
pdcch_decode_opt_threshold: 0.1,
pdcch_decode_opt_threshold: 0.1,
...
@@ -32,6 +48,20 @@
...
@@ -32,6 +48,20 @@
multi_ue: true,
multi_ue: true,
cells: [
cells: [
// UECELL2
{
rf_port: 1,
n_antenna_dl: 2,
n_antenna_ul: 2,
band: 7,
dl_nr_arfcn: 537200,
bandwidth: 5,
ssb_nr_arfcn: 537170,
subcarrier_spacing: 15,
},
]
]
}],
}],
...
...
software/ors-amarisoft/slapos-render-config.py
View file @
86404e72
...
@@ -16,6 +16,7 @@ def j2render(config, jcfg):
...
@@ -16,6 +16,7 @@ def j2render(config, jcfg):
for
k
,
v
in
ctx
.
items
():
for
k
,
v
in
ctx
.
items
():
textctx
+=
'json %s %s
\
n
'
%
(
k
,
json
.
dumps
(
v
))
textctx
+=
'json %s %s
\
n
'
%
(
k
,
json
.
dumps
(
v
))
textctx
+=
'import json_module json
\
n
'
textctx
+=
'import json_module json
\
n
'
textctx
+=
'import nrarfcn_module nrarfcn
\
n
'
buildout
=
None
# stub
buildout
=
None
# stub
r
=
jinja2_template
.
Recipe
(
buildout
,
"recipe"
,
{
r
=
jinja2_template
.
Recipe
(
buildout
,
"recipe"
,
{
'extensions'
:
'jinja2.ext.do'
,
'extensions'
:
'jinja2.ext.do'
,
...
...
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