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
104
Merge Requests
104
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
1739750e
Commit
1739750e
authored
Feb 05, 2025
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simpleran: clean up and update ors_version with new values
Add new measurements for bands B40, N77, N79
parent
b3e96f8e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
142 additions
and
122 deletions
+142
-122
software/simpleran/buildout.hash.cfg
software/simpleran/buildout.hash.cfg
+2
-2
software/simpleran/instance-ors.cfg
software/simpleran/instance-ors.cfg
+140
-120
No files found.
software/simpleran/buildout.hash.cfg
View file @
1739750e
...
...
@@ -20,7 +20,7 @@ md5sum = 109828c2a97c09b0976d266aaba00328
[template-ors]
filename = instance-ors.cfg
md5sum =
307e38207945a9adcfea0263cba9d3a6
md5sum =
a0117291dedbd2c6d60012696a716735
[slaplte.jinja2]
_update_hash_filename_ = slaplte.jinja2
...
...
@@ -60,7 +60,7 @@ md5sum = 52da9fe3a569199e35ad89ae1a44c30e
[template-enb]
_update_hash_filename_ = instance-enb.jinja2.cfg
md5sum =
de757719d6cf4bd731394f50dbce8d99
md5sum =
22c399fc3a84aeec0f6545fe72fbf2f3
[template-ors-enb]
_update_hash_filename_ = instance-ors-enb.jinja2.cfg
...
...
software/simpleran/instance-ors.cfg
View file @
1739750e
...
...
@@ -51,119 +51,137 @@ configuration = $${slap-configuration:configuration}
sdr-dir = $${sdr:dir}
init =
import subprocess
range_map = {
"B28": "758MHz - 803MHz",
"B38": "2570MHz - 2620MHz",
"B39": "1880MHz - 1920MHz",
"B40": "2300MHz - 2400MHz",
"B41": "2496MHz - 2690MHz",
"B42": "3400MHz - 3600MHz",
"B43": "3600MHz - 3800MHz",
"N77": "3800MHz - 4000MHz",
"N79": "4600MHz - 5000MHz",
"UNKNOWN": "Information not available for this band",
}
default_tx_gain_map = {
"B28": (60, 62),
"B38": (59, 65),
"B39": (59, 64),
"B40": (59, 64),
"B41": (59, 64),
"B42": (63, 62),
"B43": (63, 62),
"N77": (60, 62),
"N79": (60, 62),
"UNKNOWN": (60, 62),
}
default_rx_gain_map = {
"B28": (25, 25),
"B38": (25, 25),
"B39": (25, 25),
"B40": (25, 25),
"B41": (25, 25),
"B42": (25, 25),
"B43": (25, 25),
"N77": (25, 25),
"N79": (25, 25),
"UNKNOWN": (25, 25),
}
default_earfcn_map = {
"B28": 9550,
"B38": 38050,
"B39": 38350,
"B40": 39150,
"B41": 40620,
"B42": 42590,
"B43": 44590,
"N77": 0,
"N79": 0,
"UNKNOWN": 0,
}
default_nr_arfcn_map = {
"B28": 0,
"B38": 519000,
"B39": 378000,
"B40": 470000,
"B41": 518600,
"B42": 632628,
"B43": 646666,
"N77": 660000,
"N79": 720000,
"UNKNOWN": 0,
}
default_nr_band_map = {
"B28": 0,
"B38": 41,
"B39": 39,
"B40": 40,
"B41": 41,
"B42": 78,
"B43": 78,
"N77": 77,
"N79": 79,
"UNKNOWN": 0,
}
power_map = {
"B28": (
lambda x: "UNKNOWN",
lambda x: "UNKNOWN",
),
"B38": (
lambda x: (-0.008712931375092506) * x**2 + (2.1973585140044642) * x + (-94.29420762479742),
lambda x: (-0.004472751640641793) * x**2 + (1.6308290630103919) * x + (-81.84549245154561),
),
"B39": (
lambda x: (-0.008712931375092506) * x**2 + (2.1973585140044642) * x + (-94.29420762479742),
lambda x: (-0.0022523817802900985) * x**2 + (1.2674016231310092) * x + (-66.57165215468584),
),
"B40": (
lambda x: "UNKNOWN",
lambda x: "UNKNOWN",
),
"B41": (
lambda x: "UNKNOWN",
lambda x: "UNKNOWN",
),
"B42": (
lambda x: (-0.014198126839751619) * x**2 + (2.980758813262773) * x + (-125.25800492285738),
lambda x: (0.003977721774394756) * x**2 + (0.527208191717173) * x + (-42.761142655285376),
),
"B43": (
lambda x: (-0.014198126839751619) * x**2 + (2.980758813262773) * x + (-125.25800492285738),
lambda x: (-0.0036530114002551943) * x**2 + (1.510856844601873) * x + (-74.58790185136355),
),
"N77": (
lambda x: "UNKNOWN",
lambda x: "UNKNOWN",
),
"N79": (
lambda x: "UNKNOWN",
lambda x: "UNKNOWN",
),
"UNKNOWN": (
lambda x: "UNKNOWN",
lambda x: "UNKNOWN",
),
default_map = {
"B28": {
"range": "758MHz - 803MHz",
"dl_earfcn": 9550,
"dl_nr_arfcn": 158400,
"nr_band": 28,
"tx_gain": [60, 62],
"rx_gain": [25, 25],
"rf_mode": "fdd",
"power_estimation": (
lambda x: "UNKNOWN",
lambda x: (-0.004711416231164319) * x**2 + (1.5976906979683085) * x + (-67.71316951508676),
),
},
"B38": {
"range": "2570MHz - 2620MHz",
"dl_earfcn": 38050,
"dl_nr_arfcn": 519000,
"nr_band": 41,
"tx_gain": [59, 65],
"rx_gain": [25, 25],
"rf_mode": "tdd",
"power_estimation": (
lambda x: (-0.008712931375092506) * x**2 + (2.1973585140044642) * x + (-94.29420762479742),
lambda x: (-0.004472751640641793) * x**2 + (1.6308290630103919) * x + (-81.84549245154561),
),
},
"B39": {
"range": "1880MHz - 1920MHz",
"dl_earfcn": 38350,
"dl_nr_arfcn": 378000,
"nr_band": 39,
"tx_gain": [59, 64],
"rx_gain": [25, 25],
"rf_mode": "tdd",
"power_estimation": (
lambda x: (-0.008712931375092506) * x**2 + (2.1973585140044642) * x + (-94.29420762479742),
lambda x: (-0.0022523817802900985) * x**2 + (1.2674016231310092) * x + (-66.57165215468584),
),
},
"B40": {
"range": "2300MHz - 2400MHz",
"dl_earfcn": 39150,
"dl_nr_arfcn": 470000,
"nr_band": 40,
"tx_gain": [59, 64],
"rx_gain": [25, 25],
"rf_mode": "tdd",
"power_estimation": (
lambda x: "UNKNOWN",
lambda x: (-0.0016475305254340404) * x**2 + (1.1580162105112186) * x + (-62.10679297527826),
),
},
"B41": {
"range": "2496MHz - 2690MHz",
"dl_earfcn": 40620,
"dl_nr_arfcn": 518600,
"nr_band": 41,
"tx_gain": [59, 64],
"rx_gain": [25, 25],
"rf_mode": "tdd",
"power_estimation": (
lambda x: "UNKNOWN",
lambda x: "UNKNOWN",
),
},
"B42": {
"range": "3400MHz - 3600MHz",
"dl_earfcn": 42590,
"dl_nr_arfcn": 632628,
"nr_band": 78,
"tx_gain": [63, 62],
"rx_gain": [25, 25],
"rf_mode": "tdd",
"power_estimation": (
lambda x: (-0.014198126839751619) * x**2 + (2.980758813262773) * x + (-125.25800492285738),
lambda x: (0.003977721774394756) * x**2 + (0.527208191717173) * x + (-42.761142655285376),
),
},
"B43": {
"range": "3600MHz - 3800MHz",
"dl_earfcn": 44590,
"dl_nr_arfcn": 646666,
"nr_band": 78,
"tx_gain": [63, 62],
"rx_gain": [25, 25],
"rf_mode": "tdd",
"power_estimation": (
lambda x: (-0.014198126839751619) * x**2 + (2.980758813262773) * x + (-125.25800492285738),
lambda x: (-0.0036530114002551943) * x**2 + (1.510856844601873) * x + (-74.58790185136355),
),
},
"N77": {
"range": "3800MHz - 4000MHz",
"dl_earfcn": 0,
"dl_nr_arfcn": 660000,
"nr_band": 77,
"tx_gain": [60, 62],
"rx_gain": [25, 25],
"rf_mode": "tdd",
"power_estimation": (
lambda x: "UNKNOWN",
lambda x: lambda x: (-0.003358281211508112) * x**2 + (1.4533760798172672) * x + (-70.18774498873421),
),
},
"N79": {
"range": "4600MHz - 5000MHz",
"dl_earfcn": 0,
"dl_nr_arfcn": 720000,
"nr_band": 79,
"tx_gain": [60, 62],
"rx_gain": [25, 25],
"rf_mode": "tdd",
"power_estimation": (
lambda x: "UNKNOWN",
lambda x: (-0.004745509248998074) * x**2 + (1.659474968728413) * x + (-76.46937551110834),
),
},
"UNKNOWN": {
"range": "Information not available for this band",
"dl_earfcn": 0,
"dl_nr_arfcn": 0,
"nr_band": 0,
"tx_gain": [60, 62],
"rx_gain": [25, 25],
"rf_mode": "tdd",
"power_estimation": (
lambda x: "UNKNOWN",
lambda x: "UNKNOWN",
),
},
}
def get_sdr_info(cmd):
if options['configuration'].get('testing', False):
...
...
@@ -181,18 +199,20 @@ init =
options['band'],
"2x1W" if options['one-watt'] else "2x0.5W",
)
default_tx_gain = default_tx_gain_map [options['band']][int(options['one-watt'])]
default_rx_gain = default_rx_gain_map [options['band']][int(options['one-watt'])]
default_earfcn = default_earfcn_map [options['band']]
default_nr_arfcn = default_nr_arfcn_map[options['band']]
default_nr_band = default_nr_band_map [options['band']]
options['range'] = range_map [options['band']]
default_tx_gain = default_map[options['band']]['tx_gain' ][int(options['one-watt'])]
default_rx_gain = default_map[options['band']]['rx_gain' ][int(options['one-watt'])]
default_earfcn = default_map[options['band']]['dl_earfcn' ]
default_nr_arfcn = default_map[options['band']]['dl_nr_arfcn']
default_nr_band = default_map[options['band']]['nr_band' ]
default_rf_mode = default_map[options['band']]['rf_mode' ]
options['range'] = default_map[options['band']]['range']
options['current-tx-gain'] = options['configuration'].get('tx_gain' , default_tx_gain )
options['current-rx-gain'] = options['configuration'].get('rx_gain' , default_rx_gain )
options['current-earfcn'] = options['configuration'].get('dl_earfcn' , default_earfcn )
options['current-nr-arfcn'] = options['configuration'].get('dl_nr_arfcn', default_nr_arfcn)
options['current-nr-band'] = options['configuration'].get('nr_band' , default_nr_band )
power_estimate_dbm = power_map[options['band']][int(options['one-watt'])](float(options['current-tx-gain']))
options['current-rf-mode'] = options['configuration'].get('rf_mode' , default_rf_mode )
power_estimate_dbm = default_map[options['band']]['power_estimation'][int(options['one-watt'])](float(options['current-tx-gain']))
if power_estimate_dbm == "UNKNOWN":
power_estimate = "Information not available for this band"
else:
...
...
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