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
3fa4cabb
Commit
3fa4cabb
authored
Nov 22, 2023
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
8254b5dd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
47 deletions
+47
-47
software/ors-amarisoft/config/out/enb.cfg
software/ors-amarisoft/config/out/enb.cfg
+21
-21
software/ors-amarisoft/slapos-render-config.py
software/ors-amarisoft/slapos-render-config.py
+26
-26
No files found.
software/ors-amarisoft/config/out/enb.cfg
View file @
3fa4cabb
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
// XXX vvv <- ru.txrx_active ? XXX how to handle txrx_active for SDR ?
// 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)
// (tx_gain=-1000 does not work - it still sets tx_gain to min.possible value 14)
name: "sdr",
name: "sdr",
// _CELL
1
_a_ru 4T2R (sdr)
// _CELL_a_ru 4T2R (sdr)
args: "dev0=/dev/sdr0,dev1=/dev/sdr1",
args: "dev0=/dev/sdr0,dev1=/dev/sdr1",
rx_antenna:"tx_rx",
rx_antenna:"tx_rx",
tdd_tx_mod: 1,
tdd_tx_mod: 1,
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
// LTE cells
// LTE cells
cell_list: [
cell_list: [
// CELL
1_a (_CELL1
_a_ru)
// CELL
_a (_CELL
_a_ru)
{
{
rf_port: 0,
rf_port: 0,
n_antenna_dl: 4,
n_antenna_dl: 4,
...
@@ -65,14 +65,14 @@
...
@@ -65,14 +65,14 @@
// Intra-ENB HO
// Intra-ENB HO
{
{
rat: "eutra",
rat: "eutra",
cell_id: 0x1A2D002, // -> CELL
1
_b
cell_id: 0x1A2D002, // -> CELL_b
n_id_cell: 2,
n_id_cell: 2,
dl_earfcn: 38100,
dl_earfcn: 38100,
tac: 0x0001,
tac: 0x0001,
},
},
{
{
rat: "nr",
rat: "nr",
cell_id: 0x03, // -> CELL
1
_c
cell_id: 0x03, // -> CELL_c
},
},
// Inter-ENB HO
// Inter-ENB HO
...
@@ -103,14 +103,14 @@
...
@@ -103,14 +103,14 @@
// Carrier Aggregation: LTE + LTE
// Carrier Aggregation: LTE + LTE
scell_list: [
scell_list: [
{
{
cell_id: 0x02, // + CELL
1
_b
cell_id: 0x02, // + CELL_b
cross_carrier_scheduling: false,
cross_carrier_scheduling: false,
},
},
],
],
// Carrier Aggregation: LTE + NR
// Carrier Aggregation: LTE + NR
en_dc_scg_cell_list: [
en_dc_scg_cell_list: [
{
{
cell_id: 0x03, // + CELL
1
_c
cell_id: 0x03, // + CELL_c
},
},
],
],
...
@@ -149,17 +149,17 @@
...
@@ -149,17 +149,17 @@
},
},
manual_ref_signal_power: true,
manual_ref_signal_power: true,
drb_config: "CELL
1
_a-drb.cfg",
drb_config: "CELL_a-drb.cfg",
sib_sched_list: [
sib_sched_list: [
{
{
filename: "CELL
1
_a-sib23.asn",
filename: "CELL_a-sib23.asn",
si_periodicity: 16,
si_periodicity: 16,
},
},
],
],
},
},
// CELL
1_b (_CELL1
_a_ru)
// CELL
_b (_CELL
_a_ru)
{
{
rf_port: 0,
rf_port: 0,
n_antenna_dl: 4,
n_antenna_dl: 4,
...
@@ -177,14 +177,14 @@
...
@@ -177,14 +177,14 @@
// Intra-ENB HO
// Intra-ENB HO
{
{
rat: "eutra",
rat: "eutra",
cell_id: 0x1A2D001, // -> CELL
1
_a
cell_id: 0x1A2D001, // -> CELL_a
n_id_cell: 1,
n_id_cell: 1,
dl_earfcn: 38050,
dl_earfcn: 38050,
tac: 0x0001,
tac: 0x0001,
},
},
{
{
rat: "nr",
rat: "nr",
cell_id: 0x03, // -> CELL
1
_c
cell_id: 0x03, // -> CELL_c
},
},
// Inter-ENB HO
// Inter-ENB HO
...
@@ -215,14 +215,14 @@
...
@@ -215,14 +215,14 @@
// Carrier Aggregation: LTE + LTE
// Carrier Aggregation: LTE + LTE
scell_list: [
scell_list: [
{
{
cell_id: 0x01, // + CELL
1
_a
cell_id: 0x01, // + CELL_a
cross_carrier_scheduling: false,
cross_carrier_scheduling: false,
},
},
],
],
// Carrier Aggregation: LTE + NR
// Carrier Aggregation: LTE + NR
en_dc_scg_cell_list: [
en_dc_scg_cell_list: [
{
{
cell_id: 0x03, // + CELL
1
_c
cell_id: 0x03, // + CELL_c
},
},
],
],
...
@@ -261,11 +261,11 @@
...
@@ -261,11 +261,11 @@
},
},
manual_ref_signal_power: true,
manual_ref_signal_power: true,
drb_config: "CELL
1
_b-drb.cfg",
drb_config: "CELL_b-drb.cfg",
sib_sched_list: [
sib_sched_list: [
{
{
filename: "CELL
1
_b-sib23.asn",
filename: "CELL_b-sib23.asn",
si_periodicity: 16,
si_periodicity: 16,
},
},
],
],
...
@@ -366,7 +366,7 @@
...
@@ -366,7 +366,7 @@
// NR cells
// NR cells
nr_cell_list: [
nr_cell_list: [
// CELL
1_c (_CELL1
_a_ru)
// CELL
_c (_CELL
_a_ru)
{
{
rf_port: 0,
rf_port: 0,
n_antenna_dl: 4,
n_antenna_dl: 4,
...
@@ -390,14 +390,14 @@
...
@@ -390,14 +390,14 @@
// Intra-ENB HO
// Intra-ENB HO
{
{
rat: "eutra",
rat: "eutra",
cell_id: 0x1A2D001, // -> CELL
1
_a
cell_id: 0x1A2D001, // -> CELL_a
n_id_cell: 1,
n_id_cell: 1,
dl_earfcn: 38050,
dl_earfcn: 38050,
tac: 0x0001,
tac: 0x0001,
},
},
{
{
rat: "eutra",
rat: "eutra",
cell_id: 0x1A2D002, // -> CELL
1
_b
cell_id: 0x1A2D002, // -> CELL_b
n_id_cell: 2,
n_id_cell: 2,
dl_earfcn: 38100,
dl_earfcn: 38100,
tac: 0x0001,
tac: 0x0001,
...
@@ -434,10 +434,10 @@
...
@@ -434,10 +434,10 @@
// Carrier Aggregation: NR + LTE
// Carrier Aggregation: NR + LTE
nr_dc_scg_cell_list: [
nr_dc_scg_cell_list: [
{
{
cell_id: 0x01, // + CELL
1
_a
cell_id: 0x01, // + CELL_a
},
},
{
{
cell_id: 0x02, // + CELL
1
_b
cell_id: 0x02, // + CELL_b
},
},
],
],
...
@@ -582,7 +582,7 @@
...
@@ -582,7 +582,7 @@
},
},
drb_config: "CELL
1
_c-drb.cfg",
drb_config: "CELL_c-drb.cfg",
},
},
],
],
...
...
software/ors-amarisoft/slapos-render-config.py
View file @
3fa4cabb
...
@@ -78,7 +78,7 @@ def ref_of_shared(ishared):
...
@@ -78,7 +78,7 @@ def ref_of_shared(ishared):
# 3 cells sharing SDR-based RU consisting of 2 SDR boards (4tx + 4rx ports max)
# 3 cells sharing SDR-based RU consisting of 2 SDR boards (4tx + 4rx ports max)
# RU definition is embedded into cell for simplicity of management
# RU definition is embedded into cell for simplicity of management
def
iRU1_SDR_tLTE2_tNR
(
ienb
):
def
iRU1_SDR_tLTE2_tNR
(
ienb
):
RU
1
=
{
RU
=
{
'ru_type'
:
'sdr'
,
'ru_type'
:
'sdr'
,
'ru_link_type'
:
'sdr'
,
'ru_link_type'
:
'sdr'
,
'sdr_dev_list'
:
[
0
,
1
],
'sdr_dev_list'
:
[
0
,
1
],
...
@@ -88,30 +88,30 @@ def iRU1_SDR_tLTE2_tNR(ienb):
...
@@ -88,30 +88,30 @@ def iRU1_SDR_tLTE2_tNR(ienb):
'rx_gain'
:
52
,
'rx_gain'
:
52
,
}
}
ienb
.
ishared
(
'CELL
1
_a'
,
{
ienb
.
ishared
(
'CELL_a'
,
{
'cell_type'
:
'lte'
,
'cell_type'
:
'lte'
,
'rf_mode'
:
'tdd'
,
'rf_mode'
:
'tdd'
,
'bandwidth'
:
'5 MHz'
,
'bandwidth'
:
'5 MHz'
,
'dl_earfcn'
:
38050
,
# 2600 MHz
'dl_earfcn'
:
38050
,
# 2600 MHz
'pci'
:
1
,
'pci'
:
1
,
'cell_id'
:
'0x01'
,
'cell_id'
:
'0x01'
,
'ru'
:
RU
1
,
# RU definition embedded into CELL
'ru'
:
RU
,
# RU definition embedded into CELL
})
})
ienb
.
ishared
(
'CELL
1
_b'
,
{
ienb
.
ishared
(
'CELL_b'
,
{
'cell_type'
:
'lte'
,
'cell_type'
:
'lte'
,
'rf_mode'
:
'tdd'
,
'rf_mode'
:
'tdd'
,
'bandwidth'
:
'5 MHz'
,
'bandwidth'
:
'5 MHz'
,
'dl_earfcn'
:
38100
,
# 2605 MHz
'dl_earfcn'
:
38100
,
# 2605 MHz
'pci'
:
2
,
'pci'
:
2
,
'cell_id'
:
'0x02'
,
'cell_id'
:
'0x02'
,
'ru'
:
{
# CELL
1_b shares RU with CELL1
_a referring to it via cell
'ru'
:
{
# CELL
_b shares RU with CELL
_a referring to it via cell
'ru_type'
:
'ruincell_ref'
,
'ru_type'
:
'ruincell_ref'
,
'ruincell_ref'
:
'CELL
1
_a'
'ruincell_ref'
:
'CELL_a'
}
}
})
})
ienb
.
ishared
(
'CELL
1
_c'
,
{
ienb
.
ishared
(
'CELL_c'
,
{
'cell_type'
:
'nr'
,
'cell_type'
:
'nr'
,
'rf_mode'
:
'tdd'
,
'rf_mode'
:
'tdd'
,
'bandwidth'
:
10
,
'bandwidth'
:
10
,
...
@@ -120,16 +120,16 @@ def iRU1_SDR_tLTE2_tNR(ienb):
...
@@ -120,16 +120,16 @@ def iRU1_SDR_tLTE2_tNR(ienb):
'pci'
:
3
,
'pci'
:
3
,
'cell_id'
:
'0x03'
,
'cell_id'
:
'0x03'
,
'ru'
:
{
'ru'
:
{
'ru_type'
:
'ruincell_ref'
,
# CELL
1_c shares RU with CELL1_a and CELL1
_b
'ru_type'
:
'ruincell_ref'
,
# CELL
_c shares RU with CELL_a and CELL
_b
'ruincell_ref'
:
'CELL
1_b'
# referring to RU via CELL1_b -> CELL1
_a
'ruincell_ref'
:
'CELL
_b'
# referring to RU via CELL_b -> CELL
_a
}
}
})
})
# LTE + NR cells that use CPRI-based Lopcomm radio units
# LTE + NR cells that use CPRI-based Lopcomm radio units
# here we instantiate RUs separately since embedding RU into a cell is demonstrated by CELL
1
_a above
# here we instantiate RUs separately since embedding RU into a cell is demonstrated by CELL_a above
def
iRU2_LOPCOMM_fLTE_fNR
(
ienb
):
def
iRU2_LOPCOMM_fLTE_fNR
(
ienb
):
RU
2_a
=
{
RU
1
=
{
'ru_type'
:
'lopcomm'
,
'ru_type'
:
'lopcomm'
,
'ru_link_type'
:
'cpri'
,
'ru_link_type'
:
'cpri'
,
'mac_addr'
:
'XXX'
,
'mac_addr'
:
'XXX'
,
...
@@ -148,29 +148,29 @@ def iRU2_LOPCOMM_fLTE_fNR(ienb):
...
@@ -148,29 +148,29 @@ def iRU2_LOPCOMM_fLTE_fNR(ienb):
'rx_gain'
:
-
22
,
'rx_gain'
:
-
22
,
}
}
RU2
_b
=
copy
.
deepcopy
(
RU2_a
)
RU2
=
copy
.
deepcopy
(
RU1
)
RU2
_b
[
'mac_addr'
]
=
'YYY'
RU2
[
'mac_addr'
]
=
'YYY'
RU2
_b
[
'cpri_link'
][
'sfp_port'
]
=
1
RU2
[
'cpri_link'
][
'sfp_port'
]
=
1
RU2
_b
[
'tx_gain'
]
+=
10
RU2
[
'tx_gain'
]
+=
10
RU2
_b
[
'rx_gain'
]
+=
10
RU2
[
'rx_gain'
]
+=
10
ienb
.
ishared
(
'RU
2_a'
,
RU2_a
)
ienb
.
ishared
(
'RU
1'
,
RU1
)
ienb
.
ishared
(
'RU2
_b'
,
RU2_b
)
ienb
.
ishared
(
'RU2
'
,
RU2
)
ienb
.
ishared
(
'CELL
2
_a'
,
{
ienb
.
ishared
(
'CELL_a'
,
{
'cell_type'
:
'lte'
,
'cell_type'
:
'lte'
,
'rf_mode'
:
'fdd'
,
'rf_mode'
:
'fdd'
,
'bandwidth'
:
'5 MHz'
,
'bandwidth'
:
'5 MHz'
,
'dl_earfcn'
:
3350
,
# 2680 MHz
'dl_earfcn'
:
3350
,
# 2680 MHz
'pci'
:
21
,
'pci'
:
21
,
'cell_id'
:
'0x21'
,
'cell_id'
:
'0x21'
,
'ru'
:
{
# CELL
2_a links to RU2_a
by its reference
'ru'
:
{
# CELL
_a links to RU1
by its reference
'ru_type'
:
'ru_ref'
,
'ru_type'
:
'ru_ref'
,
'ru_ref'
:
'RU
2_a
'
'ru_ref'
:
'RU
1
'
}
}
})
})
ienb
.
ishared
(
'CELL
2
_b'
,
{
ienb
.
ishared
(
'CELL_b'
,
{
'cell_type'
:
'nr'
,
'cell_type'
:
'nr'
,
'rf_mode'
:
'fdd'
,
'rf_mode'
:
'fdd'
,
'bandwidth'
:
5
,
'bandwidth'
:
5
,
...
@@ -180,7 +180,7 @@ def iRU2_LOPCOMM_fLTE_fNR(ienb):
...
@@ -180,7 +180,7 @@ def iRU2_LOPCOMM_fLTE_fNR(ienb):
'cell_id'
:
'0x22'
,
'cell_id'
:
'0x22'
,
'ru'
:
{
'ru'
:
{
'ru_type'
:
'ru_ref'
,
'ru_type'
:
'ru_ref'
,
'ru_ref'
:
'RU2
_b
'
'ru_ref'
:
'RU2'
}
}
})
})
...
@@ -199,7 +199,7 @@ def iRU3_SDR1_fLTE2(ienb):
...
@@ -199,7 +199,7 @@ def iRU3_SDR1_fLTE2(ienb):
'rx_gain'
:
61
,
'rx_gain'
:
61
,
}
}
ienb
.
ishared
(
'CELL
3
_a'
,
{
ienb
.
ishared
(
'CELL_a'
,
{
'cell_type'
:
'lte'
,
'cell_type'
:
'lte'
,
'rf_mode'
:
'fdd'
,
'rf_mode'
:
'fdd'
,
'bandwidth'
:
'5 MHz'
,
'bandwidth'
:
'5 MHz'
,
...
@@ -209,7 +209,7 @@ def iRU3_SDR1_fLTE2(ienb):
...
@@ -209,7 +209,7 @@ def iRU3_SDR1_fLTE2(ienb):
'ru'
:
RU
,
'ru'
:
RU
,
})
})
ienb
.
ishared
(
'CELL
3
_b'
,
{
ienb
.
ishared
(
'CELL_b'
,
{
'cell_type'
:
'lte'
,
'cell_type'
:
'lte'
,
'rf_mode'
:
'fdd'
,
'rf_mode'
:
'fdd'
,
'bandwidth'
:
'5 MHz'
,
'bandwidth'
:
'5 MHz'
,
...
@@ -218,7 +218,7 @@ def iRU3_SDR1_fLTE2(ienb):
...
@@ -218,7 +218,7 @@ def iRU3_SDR1_fLTE2(ienb):
'cell_id'
:
'0x02'
,
'cell_id'
:
'0x02'
,
'ru'
:
{
'ru'
:
{
'ru_type'
:
'ruincell_ref'
,
'ru_type'
:
'ruincell_ref'
,
'ruincell_ref'
:
'CELL
3
_a'
'ruincell_ref'
:
'CELL_a'
}
}
})
})
...
...
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