summaryrefslogtreecommitdiffstats
path: root/suites/register/register_band_1900.py
blob: 3e0f6c3c896260af18d5b80d75843d5ef6893b64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env python3
from osmo_gsm_tester.test import *

nitb = suite.nitb()
arfcn = suite.reserve_arfcn(band='GSM-1900')
bts = suite.bts(arfcn)
ms = suite.modem()

print('start nitb and bts...')
nitb.bts_add(bts)
nitb.start()
bts.start()

nitb.subscriber_add(ms)

ms.connect(nitb.mcc_mnc())

ms.log_info()

print('waiting for modems to attach...')
wait(ms.is_connected, nitb.mcc_mnc())
wait(nitb.subscriber_attached, ms)