fake_trx/ctrl_if_(bb|bts).py: add FAKE_TOA command
commit5ab622d2b72ac6df9d71d42736a6a65ac76cfab5
authorHarald Welte <laforge@gnumonks.org>
Thu, 22 Feb 2018 21:24:19 +0000 (22 22:24 +0100)
committerVadim Yanitskiy <axilirator@gmail.com>
Wed, 28 Feb 2018 17:17:24 +0000 (1 00:17 +0700)
tree3e01d0574533db0beefb1213d2c79d4ad59bdc79
parent7de70009f63f5c923aaebd35aa9549931357c2c2
fake_trx/ctrl_if_(bb|bts).py: add FAKE_TOA command

FAKE_TOA is an auxilary CTRL command, which may be used to update
the ToA (Timing of Arrival) value of forwarded bursts at runtime.
This is useful for testing the measurement processing
code in OsmoBTS.

The command is implemented for both BTS and BB CTRL interfaces
in two absolute and relative forms:

  CMD FAKE_TOA <BASE> <THRESH>
  CMD FAKE_TOA <+-BASE_DELTA>

The first form overwrites both ToA value and its treshold.
The second one is relative, and applies a delta
to the current ToA value.

The command affects Downlink bursts if sent on BTS CTRL
interface, and Uplink bursts if sent on the BB CTRL.

Change-Id: Ia23becec4104d47e7b22350db67b8834d6f1ad1b
src/target/fake_trx/ctrl_if_bb.py
src/target/fake_trx/ctrl_if_bts.py