Commit 2d65d675 authored by Joanne Hugé's avatar Joanne Hugé

ors-amarisoft: add B40 and B41 bands and set default rx_gain to 25

parent 2c8da742
Pipeline #36812 failed with stage
in 0 seconds
...@@ -39,66 +39,82 @@ configuration = $${slap-configuration:configuration} ...@@ -39,66 +39,82 @@ configuration = $${slap-configuration:configuration}
init = init =
import subprocess import subprocess
range_map = { range_map = {
"B28": "758MHz - 803MHz",
"B38": "2570MHz - 2620MHz", "B38": "2570MHz - 2620MHz",
"B39": "1880MHz - 1920MHz", "B39": "1880MHz - 1920MHz",
"B40": "2300MHz - 2400MHz",
"B41": "2496MHz - 2690MHz",
"B42": "3400MHz - 3600MHz", "B42": "3400MHz - 3600MHz",
"B43": "3600MHz - 3800MHz", "B43": "3600MHz - 3800MHz",
"B28": "758MHz - 803MHz",
"N77": "3300MHz - 4200MHz", "N77": "3300MHz - 4200MHz",
"N79": "4400MHz - 5000MHz", "N79": "4400MHz - 5000MHz",
"UNKNOWN": "Information not available for this band", "UNKNOWN": "Information not available for this band",
} }
default_tx_gain_map = { default_tx_gain_map = {
"B28": (60, 62),
"B38": (59, 65), "B38": (59, 65),
"B39": (59, 64), "B39": (59, 64),
"B40": (59, 64),
"B41": (59, 64),
"B42": (63, 62), "B42": (63, 62),
"B43": (63, 62), "B43": (63, 62),
"B28": (60, 62),
"N77": (60, 62), "N77": (60, 62),
"N79": (60, 62), "N79": (60, 62),
"UNKNOWN": (60, 62), "UNKNOWN": (60, 62),
} }
default_rx_gain_map = { default_rx_gain_map = {
"B38": (43, 43), "B28": (25, 25),
"B39": (43, 43), "B38": (25, 25),
"B42": (43, 43), "B39": (25, 25),
"B43": (43, 43), "B40": (25, 25),
"B28": (43, 43), "B41": (25, 25),
"N77": (43, 43), "B42": (25, 25),
"N79": (43, 43), "B43": (25, 25),
"UNKNOWN": (43, 43), "N77": (25, 25),
"N79": (25, 25),
"UNKNOWN": (25, 25),
} }
default_earfcn_map = { default_earfcn_map = {
"B28": 9550,
"B38": 38050, "B38": 38050,
"B39": 38350, "B39": 38350,
"B40": 39150,
"B41": 40620,
"B42": 42590, "B42": 42590,
"B43": 44590, "B43": 44590,
"B28": 9550,
"N77": 0, "N77": 0,
"N79": 0, "N79": 0,
"UNKNOWN": 0, "UNKNOWN": 0,
} }
default_nr_arfcn_map = { default_nr_arfcn_map = {
"B28": 0,
"B38": 519000, "B38": 519000,
"B39": 378000, "B39": 378000,
"B40": 470000,
"B41": 518600,
"B42": 632628, "B42": 632628,
"B43": 646666, "B43": 646666,
"B28": 0,
"N77": 660000, "N77": 660000,
"N79": 720000, "N79": 720000,
"UNKNOWN": 0, "UNKNOWN": 0,
} }
default_nr_band_map = { default_nr_band_map = {
"B28": 0,
"B38": 41, "B38": 41,
"B39": 39, "B39": 39,
"B40": 40,
"B41": 41,
"B42": 78, "B42": 78,
"B43": 78, "B43": 78,
"B28": 0,
"N77": 77, "N77": 77,
"N79": 79, "N79": 79,
"UNKNOWN": 0, "UNKNOWN": 0,
} }
power_map = { power_map = {
"B28": (
lambda x: "UNKNOWN",
lambda x: "UNKNOWN",
),
"B38": ( "B38": (
lambda x: (-0.008712931375092506) * x**2 + (2.1973585140044642) * x + (-94.29420762479742), lambda x: (-0.008712931375092506) * x**2 + (2.1973585140044642) * x + (-94.29420762479742),
lambda x: (-0.004472751640641793) * x**2 + (1.6308290630103919) * x + (-81.84549245154561), lambda x: (-0.004472751640641793) * x**2 + (1.6308290630103919) * x + (-81.84549245154561),
...@@ -107,6 +123,14 @@ init = ...@@ -107,6 +123,14 @@ init =
lambda x: (-0.008712931375092506) * x**2 + (2.1973585140044642) * x + (-94.29420762479742), lambda x: (-0.008712931375092506) * x**2 + (2.1973585140044642) * x + (-94.29420762479742),
lambda x: (-0.0022523817802900985) * x**2 + (1.2674016231310092) * x + (-66.57165215468584), 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": ( "B42": (
lambda x: (-0.014198126839751619) * x**2 + (2.980758813262773) * x + (-125.25800492285738), lambda x: (-0.014198126839751619) * x**2 + (2.980758813262773) * x + (-125.25800492285738),
lambda x: (0.003977721774394756) * x**2 + (0.527208191717173) * x + (-42.761142655285376), lambda x: (0.003977721774394756) * x**2 + (0.527208191717173) * x + (-42.761142655285376),
...@@ -115,10 +139,6 @@ init = ...@@ -115,10 +139,6 @@ init =
lambda x: (-0.014198126839751619) * x**2 + (2.980758813262773) * x + (-125.25800492285738), lambda x: (-0.014198126839751619) * x**2 + (2.980758813262773) * x + (-125.25800492285738),
lambda x: (-0.0036530114002551943) * x**2 + (1.510856844601873) * x + (-74.58790185136355), lambda x: (-0.0036530114002551943) * x**2 + (1.510856844601873) * x + (-74.58790185136355),
), ),
"B28": (
lambda x: "UNKNOWN",
lambda x: "UNKNOWN",
),
"N77": ( "N77": (
lambda x: "UNKNOWN", lambda x: "UNKNOWN",
lambda x: "UNKNOWN", lambda x: "UNKNOWN",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment