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
49757da9
Commit
49757da9
authored
Jan 03, 2024
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
75a9a6b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
13 deletions
+21
-13
software/ors-amarisoft/test/test.py
software/ors-amarisoft/test/test.py
+21
-13
No files found.
software/ors-amarisoft/test/test.py
View file @
49757da9
...
...
@@ -63,9 +63,8 @@ def NR(dl_nr_arfcn, nr_band, bandwidth):
'bandwidth'
:
bandwidth
,
}
# CENB returns basic parameters to indicate a ENB-kind cell.
def
CENB
(
cell_id
,
pci
=
1
,
tac
=
0x1234
):
def
CENB
(
cell_id
,
pci
,
tac
):
return
{
'cell_kind'
:
'enb'
,
'cell_id'
:
'0x%02x'
%
cell_id
,
...
...
@@ -73,8 +72,25 @@ def CENB(cell_id, pci=1, tac=0x1234):
'tac'
:
'0x%x'
%
tac
,
}
# LTE_PEER/NR_PEER indicate an LTE/NR ENB-PEER-kind cell.
def
LTE_PEER
(
e_cell_id
,
pci
,
tac
):
return
{
'cell_kind'
:
'enb_peer'
'e_cell_id'
:
'0x%05x'
%
e_cell_id
,
'pci'
:
pci
,
'tac'
:
'0x%x'
%
tac
,
}
def
NR_PEER
(
nr_cell_id
,
gnb_id_bits
,
pci
,
tac
):
return
{
'cell_kind'
:
'enb_peer'
'nr_cell_id'
:
'0x77712'
,
'gnb_id_bits'
:
22
,
'pci'
:
75
,
'tac'
:
321
,
}
# CUE indicates a UE-kind cell.
CUE
=
{
'cell_kind'
:
'ue'
}
CUE
=
{
'cell_kind'
:
'ue'
}
# ----
...
...
@@ -90,16 +106,8 @@ PEER4 = {
'xn_addr'
:
'55.1.1.1'
,
}
PEERCELL4
=
{
'cell_type'
:
'lte'
,
'cell_kind'
:
'enb_peer'
,
'e_cell_id'
:
'0x12345'
,
'pci'
:
35
,
'dl_earfcn'
:
700
,
'bandwidth'
:
'10 MHz'
,
'tac'
:
123
,
}
PEERCELL4
=
LTE
(
700
,
10
)
|
LTE_PEER
(
0x12345
,
35
,
0x123
)
PEERCELL5
=
NR
(
520000
,
38
,
XXXbandwidth
)
|
NR_PEER
(
0x77712
,
75
,
0x321
)
PEERCELL5
=
{
'cell_type'
:
'nr'
,
...
...
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