target/fake_trx: initial release of virtual transceiver
This is a set of tools for creating a virtual Um-interface between
OsmocomBB and OsmoBTS. It may be extremely useful for testing and
development of GSM stack, including both sides (MS and BTS). This
software implements OsmoTRX (Osmocom's fork of OpenBTS transceiver)
style clock (CLCK), control (CTRL) and data interfaces. So, OsmoBTS
source code doesn't require any modifications, while for OsmocomBB
you will need to use a new application - trxcon, which can be found
in the 'fixeria/sdr_phy' branch until one is merged to master.
Brief description of available applications:
- fake_trx.py - main application, that allows to connect both
OsmocomBB and OsmoBTS without actual RF hardware. Currently
only a single MS may work with a single BTS.
- clck_gen.py - a peripheral tool aimed to emulate TDMA frame
clock generator. Could be used for testing and clock
synchronization of multiple applications. It should be noted,
that one relays on generic system timer (via Python), so
a random clock jitter takes place.
- ctrl_cmd.py - another peripheral tool, which could be used
for sending CTRL commands directly in manual mode, and also
for application fuzzing.
Change-Id: Ib1fb80682002ac85a72fa6abef459a4c44f4ab97
2017-07-10 12:39:06 +00:00
|
|
|
#!/usr/bin/env python2
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2018-03-12 18:09:56 +00:00
|
|
|
# TRX Toolkit
|
target/fake_trx: initial release of virtual transceiver
This is a set of tools for creating a virtual Um-interface between
OsmocomBB and OsmoBTS. It may be extremely useful for testing and
development of GSM stack, including both sides (MS and BTS). This
software implements OsmoTRX (Osmocom's fork of OpenBTS transceiver)
style clock (CLCK), control (CTRL) and data interfaces. So, OsmoBTS
source code doesn't require any modifications, while for OsmocomBB
you will need to use a new application - trxcon, which can be found
in the 'fixeria/sdr_phy' branch until one is merged to master.
Brief description of available applications:
- fake_trx.py - main application, that allows to connect both
OsmocomBB and OsmoBTS without actual RF hardware. Currently
only a single MS may work with a single BTS.
- clck_gen.py - a peripheral tool aimed to emulate TDMA frame
clock generator. Could be used for testing and clock
synchronization of multiple applications. It should be noted,
that one relays on generic system timer (via Python), so
a random clock jitter takes place.
- ctrl_cmd.py - another peripheral tool, which could be used
for sending CTRL commands directly in manual mode, and also
for application fuzzing.
Change-Id: Ib1fb80682002ac85a72fa6abef459a4c44f4ab97
2017-07-10 12:39:06 +00:00
|
|
|
# BTS <-> BB burst forwarding
|
|
|
|
#
|
|
|
|
# (C) 2017 by Vadim Yanitskiy <axilirator@gmail.com>
|
|
|
|
#
|
|
|
|
# All Rights Reserved
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License along
|
|
|
|
# with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
|
2018-02-27 00:00:45 +00:00
|
|
|
import random
|
|
|
|
|
|
|
|
from data_msg import *
|
|
|
|
|
target/fake_trx: initial release of virtual transceiver
This is a set of tools for creating a virtual Um-interface between
OsmocomBB and OsmoBTS. It may be extremely useful for testing and
development of GSM stack, including both sides (MS and BTS). This
software implements OsmoTRX (Osmocom's fork of OpenBTS transceiver)
style clock (CLCK), control (CTRL) and data interfaces. So, OsmoBTS
source code doesn't require any modifications, while for OsmocomBB
you will need to use a new application - trxcon, which can be found
in the 'fixeria/sdr_phy' branch until one is merged to master.
Brief description of available applications:
- fake_trx.py - main application, that allows to connect both
OsmocomBB and OsmoBTS without actual RF hardware. Currently
only a single MS may work with a single BTS.
- clck_gen.py - a peripheral tool aimed to emulate TDMA frame
clock generator. Could be used for testing and clock
synchronization of multiple applications. It should be noted,
that one relays on generic system timer (via Python), so
a random clock jitter takes place.
- ctrl_cmd.py - another peripheral tool, which could be used
for sending CTRL commands directly in manual mode, and also
for application fuzzing.
Change-Id: Ib1fb80682002ac85a72fa6abef459a4c44f4ab97
2017-07-10 12:39:06 +00:00
|
|
|
class BurstForwarder:
|
2017-07-14 02:01:30 +00:00
|
|
|
# Timeslot filter (drop everything by default)
|
|
|
|
ts_pass = None
|
target/fake_trx: initial release of virtual transceiver
This is a set of tools for creating a virtual Um-interface between
OsmocomBB and OsmoBTS. It may be extremely useful for testing and
development of GSM stack, including both sides (MS and BTS). This
software implements OsmoTRX (Osmocom's fork of OpenBTS transceiver)
style clock (CLCK), control (CTRL) and data interfaces. So, OsmoBTS
source code doesn't require any modifications, while for OsmocomBB
you will need to use a new application - trxcon, which can be found
in the 'fixeria/sdr_phy' branch until one is merged to master.
Brief description of available applications:
- fake_trx.py - main application, that allows to connect both
OsmocomBB and OsmoBTS without actual RF hardware. Currently
only a single MS may work with a single BTS.
- clck_gen.py - a peripheral tool aimed to emulate TDMA frame
clock generator. Could be used for testing and clock
synchronization of multiple applications. It should be noted,
that one relays on generic system timer (via Python), so
a random clock jitter takes place.
- ctrl_cmd.py - another peripheral tool, which could be used
for sending CTRL commands directly in manual mode, and also
for application fuzzing.
Change-Id: Ib1fb80682002ac85a72fa6abef459a4c44f4ab97
2017-07-10 12:39:06 +00:00
|
|
|
|
2017-07-14 02:19:22 +00:00
|
|
|
# Freq. filter
|
|
|
|
bts_freq = None
|
|
|
|
bb_freq = None
|
|
|
|
|
2018-02-28 15:06:36 +00:00
|
|
|
# Randomization of RSSI
|
|
|
|
randomize_dl_rssi = False
|
|
|
|
randomize_ul_rssi = False
|
|
|
|
|
|
|
|
# Randomization of ToA
|
|
|
|
randomize_dl_toa256 = False
|
|
|
|
randomize_ul_toa256 = False
|
|
|
|
|
2018-02-28 12:01:56 +00:00
|
|
|
# Timing Advance value indicated by MS (0 by default)
|
|
|
|
# Valid range: 0..63, where each unit means
|
|
|
|
# one GSM symbol advance.
|
|
|
|
ta = 0
|
|
|
|
|
2018-02-28 13:25:44 +00:00
|
|
|
# Timing of Arrival values indicated by transceiver
|
|
|
|
# in units of 1/256 of GSM symbol periods. A pair of
|
|
|
|
# base and threshold values defines a range of ToA value
|
|
|
|
# randomization: from (base - threshold) to (base + threshold).
|
|
|
|
toa256_dl_base = 0
|
|
|
|
toa256_ul_base = 0
|
2018-02-27 00:00:45 +00:00
|
|
|
|
2018-02-28 13:25:44 +00:00
|
|
|
toa256_dl_threshold = 128
|
|
|
|
toa256_ul_threshold = 128
|
|
|
|
|
|
|
|
# RSSI values indicated by transceiver in dBm.
|
|
|
|
# A pair of base and threshold values defines a range of RSSI
|
|
|
|
# randomization: from (base - threshold) to (base + threshold).
|
|
|
|
rssi_dl_base = -60
|
|
|
|
rssi_ul_base = -70
|
|
|
|
|
|
|
|
rssi_dl_threshold = 10
|
|
|
|
rssi_ul_threshold = 5
|
2018-02-27 00:00:45 +00:00
|
|
|
|
target/fake_trx: initial release of virtual transceiver
This is a set of tools for creating a virtual Um-interface between
OsmocomBB and OsmoBTS. It may be extremely useful for testing and
development of GSM stack, including both sides (MS and BTS). This
software implements OsmoTRX (Osmocom's fork of OpenBTS transceiver)
style clock (CLCK), control (CTRL) and data interfaces. So, OsmoBTS
source code doesn't require any modifications, while for OsmocomBB
you will need to use a new application - trxcon, which can be found
in the 'fixeria/sdr_phy' branch until one is merged to master.
Brief description of available applications:
- fake_trx.py - main application, that allows to connect both
OsmocomBB and OsmoBTS without actual RF hardware. Currently
only a single MS may work with a single BTS.
- clck_gen.py - a peripheral tool aimed to emulate TDMA frame
clock generator. Could be used for testing and clock
synchronization of multiple applications. It should be noted,
that one relays on generic system timer (via Python), so
a random clock jitter takes place.
- ctrl_cmd.py - another peripheral tool, which could be used
for sending CTRL commands directly in manual mode, and also
for application fuzzing.
Change-Id: Ib1fb80682002ac85a72fa6abef459a4c44f4ab97
2017-07-10 12:39:06 +00:00
|
|
|
def __init__(self, bts_link, bb_link):
|
|
|
|
self.bts_link = bts_link
|
|
|
|
self.bb_link = bb_link
|
|
|
|
|
2018-02-28 18:02:11 +00:00
|
|
|
# Converts TA value from symbols to
|
|
|
|
# units of 1/256 of GSM symbol periods
|
|
|
|
def calc_ta256(self):
|
|
|
|
return self.ta * 256
|
|
|
|
|
2018-02-28 13:25:44 +00:00
|
|
|
# Calculates a random ToA value for Downlink bursts
|
|
|
|
def calc_dl_toa256(self):
|
2018-02-28 15:06:36 +00:00
|
|
|
# Check if randomization is required
|
|
|
|
if not self.randomize_dl_toa256:
|
|
|
|
return self.toa256_dl_base
|
|
|
|
|
2018-02-28 13:25:44 +00:00
|
|
|
# Calculate a range for randomization
|
|
|
|
toa256_min = self.toa256_dl_base - self.toa256_dl_threshold
|
|
|
|
toa256_max = self.toa256_dl_base + self.toa256_dl_threshold
|
|
|
|
|
|
|
|
# Generate a random ToA value
|
|
|
|
toa256 = random.randint(toa256_min, toa256_max)
|
|
|
|
|
|
|
|
return toa256
|
2018-02-27 00:00:45 +00:00
|
|
|
|
2018-02-28 13:25:44 +00:00
|
|
|
# Calculates a random ToA value for Uplink bursts
|
|
|
|
def calc_ul_toa256(self):
|
2018-02-28 15:06:36 +00:00
|
|
|
# Check if randomization is required
|
|
|
|
if not self.randomize_ul_toa256:
|
|
|
|
return self.toa256_ul_base
|
|
|
|
|
2018-02-28 13:25:44 +00:00
|
|
|
# Calculate a range for randomization
|
|
|
|
toa256_min = self.toa256_ul_base - self.toa256_ul_threshold
|
|
|
|
toa256_max = self.toa256_ul_base + self.toa256_ul_threshold
|
2018-02-27 00:00:45 +00:00
|
|
|
|
2018-02-28 12:01:56 +00:00
|
|
|
# Generate a random ToA value
|
2018-02-28 13:25:44 +00:00
|
|
|
toa256 = random.randint(toa256_min, toa256_max)
|
2018-02-28 12:01:56 +00:00
|
|
|
|
|
|
|
return toa256
|
|
|
|
|
2018-02-28 13:25:44 +00:00
|
|
|
# Calculates a random RSSI value for Downlink bursts
|
|
|
|
def calc_dl_rssi(self):
|
2018-02-28 15:06:36 +00:00
|
|
|
# Check if randomization is required
|
|
|
|
if not self.randomize_dl_rssi:
|
|
|
|
return self.rssi_dl_base
|
|
|
|
|
2018-02-28 13:25:44 +00:00
|
|
|
# Calculate a range for randomization
|
|
|
|
rssi_min = self.rssi_dl_base - self.rssi_dl_threshold
|
|
|
|
rssi_max = self.rssi_dl_base + self.rssi_dl_threshold
|
|
|
|
|
|
|
|
# Generate a random RSSI value
|
|
|
|
return random.randint(rssi_min, rssi_max)
|
|
|
|
|
|
|
|
# Calculates a random RSSI value for Uplink bursts
|
|
|
|
def calc_ul_rssi(self):
|
2018-02-28 15:06:36 +00:00
|
|
|
# Check if randomization is required
|
|
|
|
if not self.randomize_ul_rssi:
|
|
|
|
return self.rssi_ul_base
|
|
|
|
|
2018-02-28 13:25:44 +00:00
|
|
|
# Calculate a range for randomization
|
|
|
|
rssi_min = self.rssi_ul_base - self.rssi_ul_threshold
|
|
|
|
rssi_max = self.rssi_ul_base + self.rssi_ul_threshold
|
|
|
|
|
|
|
|
# Generate a random RSSI value
|
|
|
|
return random.randint(rssi_min, rssi_max)
|
|
|
|
|
2018-08-01 20:50:57 +00:00
|
|
|
# DL burst preprocessing
|
|
|
|
def preprocess_dl_burst(self, msg):
|
|
|
|
# Calculate both RSSI and ToA values
|
|
|
|
msg.toa256 = self.calc_dl_toa256()
|
|
|
|
msg.rssi = self.calc_dl_rssi()
|
|
|
|
|
|
|
|
# UL burst preprocessing
|
|
|
|
def preprocess_ul_burst(self, msg):
|
|
|
|
# Calculate both RSSI and ToA values,
|
|
|
|
# also apply Timing Advance
|
|
|
|
msg.toa256 = self.calc_ul_toa256()
|
|
|
|
msg.toa256 -= self.calc_ta256()
|
|
|
|
msg.rssi = self.calc_ul_rssi()
|
|
|
|
|
2018-02-27 00:00:45 +00:00
|
|
|
# Converts a L12TRX message to TRX2L1 message
|
2018-08-01 20:50:57 +00:00
|
|
|
def transform_msg(self, msg_raw):
|
2018-02-27 00:00:45 +00:00
|
|
|
# Attempt to parse a message
|
|
|
|
try:
|
|
|
|
msg_l12trx = DATAMSG_L12TRX()
|
|
|
|
msg_l12trx.parse_msg(bytearray(msg_raw))
|
|
|
|
except:
|
|
|
|
print("[!] Dropping unhandled DL message...")
|
|
|
|
return None
|
target/fake_trx: initial release of virtual transceiver
This is a set of tools for creating a virtual Um-interface between
OsmocomBB and OsmoBTS. It may be extremely useful for testing and
development of GSM stack, including both sides (MS and BTS). This
software implements OsmoTRX (Osmocom's fork of OpenBTS transceiver)
style clock (CLCK), control (CTRL) and data interfaces. So, OsmoBTS
source code doesn't require any modifications, while for OsmocomBB
you will need to use a new application - trxcon, which can be found
in the 'fixeria/sdr_phy' branch until one is merged to master.
Brief description of available applications:
- fake_trx.py - main application, that allows to connect both
OsmocomBB and OsmoBTS without actual RF hardware. Currently
only a single MS may work with a single BTS.
- clck_gen.py - a peripheral tool aimed to emulate TDMA frame
clock generator. Could be used for testing and clock
synchronization of multiple applications. It should be noted,
that one relays on generic system timer (via Python), so
a random clock jitter takes place.
- ctrl_cmd.py - another peripheral tool, which could be used
for sending CTRL commands directly in manual mode, and also
for application fuzzing.
Change-Id: Ib1fb80682002ac85a72fa6abef459a4c44f4ab97
2017-07-10 12:39:06 +00:00
|
|
|
|
2018-02-27 00:00:45 +00:00
|
|
|
# Compose a new message for L1
|
2018-08-01 20:50:57 +00:00
|
|
|
return msg_l12trx.gen_trx2l1()
|
target/fake_trx: initial release of virtual transceiver
This is a set of tools for creating a virtual Um-interface between
OsmocomBB and OsmoBTS. It may be extremely useful for testing and
development of GSM stack, including both sides (MS and BTS). This
software implements OsmoTRX (Osmocom's fork of OpenBTS transceiver)
style clock (CLCK), control (CTRL) and data interfaces. So, OsmoBTS
source code doesn't require any modifications, while for OsmocomBB
you will need to use a new application - trxcon, which can be found
in the 'fixeria/sdr_phy' branch until one is merged to master.
Brief description of available applications:
- fake_trx.py - main application, that allows to connect both
OsmocomBB and OsmoBTS without actual RF hardware. Currently
only a single MS may work with a single BTS.
- clck_gen.py - a peripheral tool aimed to emulate TDMA frame
clock generator. Could be used for testing and clock
synchronization of multiple applications. It should be noted,
that one relays on generic system timer (via Python), so
a random clock jitter takes place.
- ctrl_cmd.py - another peripheral tool, which could be used
for sending CTRL commands directly in manual mode, and also
for application fuzzing.
Change-Id: Ib1fb80682002ac85a72fa6abef459a4c44f4ab97
2017-07-10 12:39:06 +00:00
|
|
|
|
|
|
|
# Downlink handler: BTS -> BB
|
|
|
|
def bts2bb(self):
|
|
|
|
# Read data from socket
|
|
|
|
data, addr = self.bts_link.sock.recvfrom(512)
|
|
|
|
|
2017-07-14 02:19:22 +00:00
|
|
|
# BB is not connected / tuned
|
|
|
|
if self.bb_freq is None:
|
|
|
|
return None
|
|
|
|
|
|
|
|
# Freq. filter
|
|
|
|
if self.bb_freq != self.bts_freq:
|
|
|
|
return None
|
|
|
|
|
2018-02-27 00:00:45 +00:00
|
|
|
# Process a message
|
2018-08-01 20:50:57 +00:00
|
|
|
msg = self.transform_msg(data)
|
2018-02-27 00:00:45 +00:00
|
|
|
if msg is None:
|
|
|
|
return None
|
|
|
|
|
target/fake_trx: initial release of virtual transceiver
This is a set of tools for creating a virtual Um-interface between
OsmocomBB and OsmoBTS. It may be extremely useful for testing and
development of GSM stack, including both sides (MS and BTS). This
software implements OsmoTRX (Osmocom's fork of OpenBTS transceiver)
style clock (CLCK), control (CTRL) and data interfaces. So, OsmoBTS
source code doesn't require any modifications, while for OsmocomBB
you will need to use a new application - trxcon, which can be found
in the 'fixeria/sdr_phy' branch until one is merged to master.
Brief description of available applications:
- fake_trx.py - main application, that allows to connect both
OsmocomBB and OsmoBTS without actual RF hardware. Currently
only a single MS may work with a single BTS.
- clck_gen.py - a peripheral tool aimed to emulate TDMA frame
clock generator. Could be used for testing and clock
synchronization of multiple applications. It should be noted,
that one relays on generic system timer (via Python), so
a random clock jitter takes place.
- ctrl_cmd.py - another peripheral tool, which could be used
for sending CTRL commands directly in manual mode, and also
for application fuzzing.
Change-Id: Ib1fb80682002ac85a72fa6abef459a4c44f4ab97
2017-07-10 12:39:06 +00:00
|
|
|
# Timeslot filter
|
2018-02-27 00:00:45 +00:00
|
|
|
if msg.tn != self.ts_pass:
|
target/fake_trx: initial release of virtual transceiver
This is a set of tools for creating a virtual Um-interface between
OsmocomBB and OsmoBTS. It may be extremely useful for testing and
development of GSM stack, including both sides (MS and BTS). This
software implements OsmoTRX (Osmocom's fork of OpenBTS transceiver)
style clock (CLCK), control (CTRL) and data interfaces. So, OsmoBTS
source code doesn't require any modifications, while for OsmocomBB
you will need to use a new application - trxcon, which can be found
in the 'fixeria/sdr_phy' branch until one is merged to master.
Brief description of available applications:
- fake_trx.py - main application, that allows to connect both
OsmocomBB and OsmoBTS without actual RF hardware. Currently
only a single MS may work with a single BTS.
- clck_gen.py - a peripheral tool aimed to emulate TDMA frame
clock generator. Could be used for testing and clock
synchronization of multiple applications. It should be noted,
that one relays on generic system timer (via Python), so
a random clock jitter takes place.
- ctrl_cmd.py - another peripheral tool, which could be used
for sending CTRL commands directly in manual mode, and also
for application fuzzing.
Change-Id: Ib1fb80682002ac85a72fa6abef459a4c44f4ab97
2017-07-10 12:39:06 +00:00
|
|
|
return None
|
|
|
|
|
2018-08-01 20:50:57 +00:00
|
|
|
# Burst preprocessing
|
|
|
|
self.preprocess_dl_burst(msg)
|
|
|
|
|
2018-02-27 00:00:45 +00:00
|
|
|
# Validate and generate the payload
|
|
|
|
payload = msg.gen_msg()
|
|
|
|
|
|
|
|
# Append two unused bytes at the end
|
|
|
|
# in order to keep the compatibility
|
|
|
|
payload += bytearray(2)
|
|
|
|
|
target/fake_trx: initial release of virtual transceiver
This is a set of tools for creating a virtual Um-interface between
OsmocomBB and OsmoBTS. It may be extremely useful for testing and
development of GSM stack, including both sides (MS and BTS). This
software implements OsmoTRX (Osmocom's fork of OpenBTS transceiver)
style clock (CLCK), control (CTRL) and data interfaces. So, OsmoBTS
source code doesn't require any modifications, while for OsmocomBB
you will need to use a new application - trxcon, which can be found
in the 'fixeria/sdr_phy' branch until one is merged to master.
Brief description of available applications:
- fake_trx.py - main application, that allows to connect both
OsmocomBB and OsmoBTS without actual RF hardware. Currently
only a single MS may work with a single BTS.
- clck_gen.py - a peripheral tool aimed to emulate TDMA frame
clock generator. Could be used for testing and clock
synchronization of multiple applications. It should be noted,
that one relays on generic system timer (via Python), so
a random clock jitter takes place.
- ctrl_cmd.py - another peripheral tool, which could be used
for sending CTRL commands directly in manual mode, and also
for application fuzzing.
Change-Id: Ib1fb80682002ac85a72fa6abef459a4c44f4ab97
2017-07-10 12:39:06 +00:00
|
|
|
# Send burst to BB
|
|
|
|
self.bb_link.send(payload)
|
|
|
|
|
|
|
|
# Uplink handler: BB -> BTS
|
|
|
|
def bb2bts(self):
|
|
|
|
# Read data from socket
|
|
|
|
data, addr = self.bb_link.sock.recvfrom(512)
|
|
|
|
|
2017-07-14 02:19:22 +00:00
|
|
|
# BTS is not connected / tuned
|
|
|
|
if self.bts_freq is None:
|
|
|
|
return None
|
|
|
|
|
|
|
|
# Freq. filter
|
|
|
|
if self.bb_freq != self.bts_freq:
|
|
|
|
return None
|
|
|
|
|
2018-02-27 00:00:45 +00:00
|
|
|
# Process a message
|
2018-08-01 20:50:57 +00:00
|
|
|
msg = self.transform_msg(data)
|
2018-02-27 00:00:45 +00:00
|
|
|
if msg is None:
|
|
|
|
return None
|
|
|
|
|
2018-08-01 20:50:57 +00:00
|
|
|
# Burst preprocessing
|
|
|
|
self.preprocess_ul_burst(msg)
|
|
|
|
|
2018-02-27 00:00:45 +00:00
|
|
|
# Validate and generate the payload
|
|
|
|
payload = msg.gen_msg()
|
|
|
|
|
|
|
|
# Append two unused bytes at the end
|
|
|
|
# in order to keep the compatibility
|
|
|
|
payload += bytearray(2)
|
|
|
|
|
target/fake_trx: initial release of virtual transceiver
This is a set of tools for creating a virtual Um-interface between
OsmocomBB and OsmoBTS. It may be extremely useful for testing and
development of GSM stack, including both sides (MS and BTS). This
software implements OsmoTRX (Osmocom's fork of OpenBTS transceiver)
style clock (CLCK), control (CTRL) and data interfaces. So, OsmoBTS
source code doesn't require any modifications, while for OsmocomBB
you will need to use a new application - trxcon, which can be found
in the 'fixeria/sdr_phy' branch until one is merged to master.
Brief description of available applications:
- fake_trx.py - main application, that allows to connect both
OsmocomBB and OsmoBTS without actual RF hardware. Currently
only a single MS may work with a single BTS.
- clck_gen.py - a peripheral tool aimed to emulate TDMA frame
clock generator. Could be used for testing and clock
synchronization of multiple applications. It should be noted,
that one relays on generic system timer (via Python), so
a random clock jitter takes place.
- ctrl_cmd.py - another peripheral tool, which could be used
for sending CTRL commands directly in manual mode, and also
for application fuzzing.
Change-Id: Ib1fb80682002ac85a72fa6abef459a4c44f4ab97
2017-07-10 12:39:06 +00:00
|
|
|
# Send burst to BTS
|
|
|
|
self.bts_link.send(payload)
|