[PATCH] osmo-gsm-tester[master]: nanobts: Add support to run nanobts on the 900 band

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Wed Mar 28 11:06:29 UTC 2018


Review at  https://gerrit.osmocom.org/7546

nanobts: Add support to run nanobts on the 900 band

Change-Id: I13b494630ea835f4bed38ccc77f6a4d5e18326af
---
M example/defaults.conf
M example/resources.conf.prod
M example/resources.conf.rnd
M src/osmo_gsm_tester/bts_nanobts.py
4 files changed, 20 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/46/7546/1

diff --git a/example/defaults.conf b/example/defaults.conf
index 45c734a..c110dde 100644
--- a/example/defaults.conf
+++ b/example/defaults.conf
@@ -41,7 +41,3 @@
     - phys_chan_config: TCH/F
     - phys_chan_config: PDCH
     - phys_chan_config: PDCH
-
-nanobts:
-  trx_list:
-  - arfcn: 531
diff --git a/example/resources.conf.prod b/example/resources.conf.prod
index 230976d..230f95d 100644
--- a/example/resources.conf.prod
+++ b/example/resources.conf.prod
@@ -44,7 +44,7 @@
   - hw_addr: 00:0c:90:2e:80:1e
     net_device: enp2s0
 
-- label: NanoBTS
+- label: NanoBTS-ONW-1900
   type: nanobts
   ipa_unit_id: 9
   addr: 10.42.42.53
@@ -54,6 +54,16 @@
     device: '01:01:4d:98:24'
     port: '1'
 
+- label: NanoBTS-ONW-900
+  type: nanobts
+  ipa_unit_id: 10
+  addr: 10.42.42.54
+  band: GSM-900
+  power_supply:
+    type: 'sispm'
+    device: '01:01:4d:98:24'
+    port: '2'
+
 arfcn:
   - arfcn: 512
     band: GSM-1800
diff --git a/example/resources.conf.rnd b/example/resources.conf.rnd
index 8ccf749..c263bf3 100644
--- a/example/resources.conf.rnd
+++ b/example/resources.conf.rnd
@@ -27,7 +27,7 @@
   launch_trx: true
   ciphers: [a5_0, a5_1]
 
-- label: NanoBTS
+- label: NanoBTS-ONW-1900
   type: nanobts
   ipa_unit_id: 9
   addr: 10.42.42.53
diff --git a/src/osmo_gsm_tester/bts_nanobts.py b/src/osmo_gsm_tester/bts_nanobts.py
index f42bc6e..1d4a14a 100644
--- a/src/osmo_gsm_tester/bts_nanobts.py
+++ b/src/osmo_gsm_tester/bts_nanobts.py
@@ -70,6 +70,14 @@
         sgsn_conf = {} if self.sgsn is None else self.sgsn.conf_for_client()
         config.overlay(values, sgsn_conf)
 
+        # Hack until we have proper ARFCN resource allocation support (OS#2230)
+        band = values.get('band')
+        trx_list = values.get('trx_list')
+        if band == 'GSM-1900':
+            config.overlay(trx_list[0], { 'arfcn' : '531' })
+        elif band == 'GSM-900':
+            config.overlay(trx_list[0], { 'arfcn' : '50' })
+
         config.overlay(values, { 'osmobsc_bts_type': 'nanobts' })
 
         self.dbg(conf=values)

-- 
To view, visit https://gerrit.osmocom.org/7546
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I13b494630ea835f4bed38ccc77f6a4d5e18326af
Gerrit-PatchSet: 1
Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>



More information about the gerrit-log mailing list