Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos
Commits
c34a07e4
Commit
c34a07e4
authored
Jan 03, 2024
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
0815ac90
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
21 deletions
+13
-21
software/ors-amarisoft/test/test.py
software/ors-amarisoft/test/test.py
+13
-21
No files found.
software/ors-amarisoft/test/test.py
View file @
c34a07e4
...
@@ -43,13 +43,6 @@ def yload(path):
...
@@ -43,13 +43,6 @@ def yload(path):
# XXX explain CELL_xy ...
CELL_4t
=
LTE_TDD
(
38050
,
5
)
# 2600 MHz
CELL_5t
=
NR_TDD
(
523020
,
41
,
10
)
# 2615.1 MHz
CELL_4f
=
LTE_FDD
(
3350
,
5
)
# 2680 MHz
CELL_5f
=
NR_FDD
(
537200
,
7
,
5
)
# 2686 MHz
# XXX common enb
# XXX common enb
_
=
{
_
=
{
'cell_kind'
:
'enb'
,
'cell_kind'
:
'enb'
,
...
@@ -102,32 +95,31 @@ PEERCELL5 = {
...
@@ -102,32 +95,31 @@ PEERCELL5 = {
# XXX explain ENB does not support mixing SDR + CPRI
# XXX explain ENB does not support mixing SDR + CPRI
# {LTE,NR}_{TDD,FDD} return basic parameters for an LTE/NR cell given downlink frequency and bandwidth.
# TDD/FDD are basic parameters to indicate a TDD/FDD mode.
TDD
=
{
'rf_mode'
:
'tdd'
}
FDD
=
{
'rf_mode'
:
'fdd'
}
# LTE/NR return basic parameters for an LTE/NR cell with given downlink frequency and bandwidth.
def
LTE
(
dl_earfcn
,
bandwidth
):
def
LTE
(
dl_earfcn
,
bandwidth
):
return
{
return
{
'cell_type'
:
'lte'
,
'cell_type'
:
'lte'
,
'dl_earfcn'
:
dl_earfcn
,
'dl_earfcn'
:
dl_earfcn
,
'bandwidth'
:
'%g MHz'
%
bandwidth
,
'bandwidth'
:
'%g MHz'
%
bandwidth
,
}
}
def
LTE_TDD
(
dl_earfcn
,
bandwidth
):
def
NR
(
dl_nr_arfcn
,
nr_band
,
bandwidth
):
_
=
LTE
(
dl_earfcn
,
bandwidth
)
_
[
'rf_mode'
]
=
'tdd'
return
_
def
LTE_FDD
(
dl_earfcn
,
bandwidth
):
_
=
LTE_TDD
(
dl_earfcn
,
bandwidth
);
_
[
'rf_mode'
]
=
'fdd'
return
_
def
NR_TDD
(
dl_nr_arfcn
,
nr_band
,
bandwidth
):
return
{
return
{
'cell_type'
:
'nr'
,
'cell_type'
:
'nr'
,
'rf_mode'
:
'tdd'
,
'dl_nr_arfcn'
:
dl_nr_arfcn
,
'dl_nr_arfcn'
:
dl_nr_arfcn
,
'nr_band'
:
nr_band
,
'nr_band'
:
nr_band
,
'bandwidth'
:
bandwidth
,
'bandwidth'
:
bandwidth
,
}
}
def
NR_FDD
(
dl_nr_arfcn
,
nr_band
,
bandwidth
):
_
=
NR_TDD
(
dl_nr_arfcn
,
nr_band
,
bandwidth
);
_
[
'rf_mode'
]
=
'fdd'
# XXX explain CELL_xy ... XXX goes away
return
_
CELL_4t
=
LTE
(
38050
,
5
)
|
TDD
# 2600 MHz
CELL_5t
=
NR
(
523020
,
41
,
10
)
|
TDD
# 2615.1 MHz
CELL_4f
=
LTE
(
3350
,
5
)
|
FDD
# 2680 MHz
CELL_5f
=
NR
(
537200
,
7
,
5
)
|
FDD
# 2686 MHz
# XXX doc
# XXX doc
class
ENBTestCase
(
AmariTestCase
):
class
ENBTestCase
(
AmariTestCase
):
...
...
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