annotate README @ 6:3ab5e2e17da2 default tip

add README
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 29 Aug 2024 14:56:30 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 The hack program in this repository is intended to run on a lab machine (which
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 can be RPi etc) that drives an E1 BTS by way of an icE1usb adapter and osmo-e1d.
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 When a traditional E1 BTS activates a speech or data TCH, it starts transmitting
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5 TRAU-UL frames on the E1 subslot corresponding to the activated TDMA ts, and it
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 expects to receive back TRAU-DL frames shortly thereafter. If those TRAU-DL
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 frames don't appear as expected, the BTS declares remote transcoder failure and
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 ends the call attempt - hence a lab test setup has to include a TRAU emulator
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 to keep the BTS happy, even if the only objective is to keep the call open and
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 capture TRAU-UL output.
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 The standard solution in Osmocom is to run OsmoMGW in E1 interface mode.
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 However, my primary objective was to capture the byte stream coming from the
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 TRAU-frame-carrying E1 timeslot and record it into a file for later analysis
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 offline - and I found it too difficult to hack this function into OsmoMGW.
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 Therefore, I took a different approach:
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 * Because OsmoBSC still needs its associated OsmoMGW, I do run the latter, but
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 I point it at a fake E1 interface (vpair in osmo-e1d) instead of the real one.
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 (OsmoBSC still talks to the real E1 for OML and RSL.)
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22 * The hack program contained in this repository opens the real timeslot on the
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23 real E1 and acts as a fake TRAU, reacting to TRAU-UL output from the BTS and
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24 responding with TRAU-DL frames. This faketrau program also implements the
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25 recording function.
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
26
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
27 The only version currently implemented is faketrau-16k: it opens a single E1 ts
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
28 and treats it as four 16 kbit/s subslots. It acts like real TRAUs in that it
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
29 needs to receive TRAU-UL frames from the BTS in order to activate a channel,
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
30 and the TRAU-UL frame type in bits C1-C5 indicates the codec type (FR or EFR),
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
31 selecting the type of TRAU-DL frames that need to be sent back to the BTS.
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
32
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
33 The stream of TRAU-DL frames sent to the BTS by faketrau-16k consists of
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
34 GSM 06.11 silence frames in the case of FRv1 or decoder homing frames in the
3ab5e2e17da2 add README
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
35 case of EFR.