blob: fb1e9604bbf6f550620e6f42e49cfb8f41067d8f [file] [log] [blame]
Pau Espin Pedrol46560ea2018-09-20 15:03:19 +02001[[trx_backends]]
2== OsmoTRX backend support
3
Pau Espin Pedrol6b50b622018-09-19 17:05:30 +02004[[backend_uhd]]
Pau Espin Pedrol46560ea2018-09-20 15:03:19 +02005=== `osmo-trx-uhd` for UHD based Transceivers
Pau Espin Pedrold06172c2018-07-05 18:26:52 +02006
7This OsmoTRX model uses _libuhd_ (UHD, USRP Hardware Driver) to drive the
8device, that is configuring it and reading/writing samples from/to it.
9
10So far, this backend has been mostly used to drive devices such as the Ettus
11B200 family and Fairwaves UmTRX family, and used to be the default backend used
12for legacy @osmo-trx@ binary when per-backend binaries didn't exist yet.
13
14Any device providing generic support for UHD should theoretically be able to be
15run through this backend without much effort, but pracitcal experience showed
16that some devices don't play well with it, such as the LimeSDR family of
17devices, which showed far better results when using its native interface.
18
19Related code can be found in the _Transceiver52M/device/uhd/_ directory in
20_osmo-trx.git_.
21
Pau Espin Pedrol6b50b622018-09-19 17:05:30 +020022[[backend_lms]]
Pau Espin Pedrol46560ea2018-09-20 15:03:19 +020023=== `osmo-trx-lms` for LimeSuite based Transceivers
Pau Espin Pedrold06172c2018-07-05 18:26:52 +020024
25This OsmoTRX model uses LimeSuite API and library to drive the device, that is
26configuring it and reading/writing samples from/to it.
27
28This backend was developed in order to be used together with LimeSDR-USB and
29LimeSDR-mini devices, due to to the poor results obtained with the UHD backend,
30and to simplify the stack.
31
32Related code can be found in the _Transceiver52M/device/lms/_ directory in
33_osmo-trx.git_.
34
Pau Espin Pedrol6b50b622018-09-19 17:05:30 +020035[[backend_usrp1]]
Pau Espin Pedrol46560ea2018-09-20 15:03:19 +020036=== `osmo-trx-usrp1` for libusrp based Transceivers
Pau Espin Pedrold06172c2018-07-05 18:26:52 +020037
38This OsmoTRX model uses the legacy libusrp driver provided in GNU Radio 3.4.2.
39
40As this code was dropped from GNU Radio at some point and was found very
41difficult to build, some work was done to create a standalone libusrp which can
42be nowadays found as a separate git repository together with other osmocom git
43repositories, in https://git.osmocom.org/libusrp/
44
45Related code can be found in the _Transceiver52M/device/usrp1/_ directory in
46_osmo-trx.git_.
Pau Espin Pedrol06d3ba02019-07-30 17:56:03 +020047
48The USRPDevice module is basically a driver that reads/writes packets to a USRP
49with two RFX900 daughterboards, board A is the Tx chain and board B is the Rx
50chain.
51
52The `radioInterface` module is basically an interface between the transceiver
53and the USRP. It operates the basestation clock based upon the sample count of
54received USRP samples. Packets from the USRP are queued and segmented into GSM
55bursts that are passed up to the transceiver; bursts from the transceiver are
56passed down to the USRP.
57
58The transceiver basically operates "layer 0" of the GSM stack, performing the
59modulation, detection, and demodulation of GSM bursts. It communicates with the
60GSM stack via three UDP sockets, one socket for data, one for control messages,
61and one socket to pass clocking information. The transceiver contains a priority
62queue to sort to-be-transmitted bursts, and a filler table to fill in timeslots
63that do not have bursts in the priority queue. The transceiver tries to stay
64ahead of the basestation clock, adapting its latency when underruns are reported
65by the radioInterface/USRP. Received bursts (from the radioInterface) pass
66through a simple energy detector, a RACH or midamble correlator, and a DFE-based
67demodulator.
68
69NOTE: There's a `SWLOOPBACK` #define statement, where the USRP is replaced
70with a memory buffer. In this mode, data written to the USRP is actually stored
71in a buffer, and read commands to the USRP simply pull data from this buffer.
72This was very useful in early testing, and still may be useful in testing basic
73Transceiver and radioInterface functionality.