osmo-trx/Transceiver52M
Tom Tsou 28670fb5da iface: Add inner ring-buffer implementation
Two buffers, inner and outer, are used in the transceiver
implementation. The outer buffer interfaces with the device receive
interface to guarantee timestamp aligned and contiguously allocated
sample buffers. The inner buffer absorbs vector size differences between
GSM bursts (156 or 157 samples) and the resampler interface (typically
fixed multiples of 65).

Reimplement the inner buffer with a ring buffer that allows fixed size
segments on the outer (resampler) portion and variable lengths (GSM
side) on the inner side. Compared to the previous stack-like version,
this implementation removes unnecessary copying of buffer contents.

Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
2016-07-01 03:03:11 -07:00
..
arm Transceiver52M: Fix ARM build issues 2015-11-09 12:06:33 -08:00
common sigproc: Make convolution and convert input buffers immutable 2015-08-21 19:31:24 -07:00
x86 makefile: Fix build from an external path. 2016-06-22 14:27:00 -07:00
Complex.h Alexander's patches: 2012-11-23 08:37:32 +00:00
Makefile.am iface: Add inner ring-buffer implementation 2016-07-01 03:03:11 -07:00
README Adding in the missing Transceiver52M directory 2011-10-12 07:44:40 +00:00
README.DFEsymbolspaced Adding in the missing Transceiver52M directory 2011-10-12 07:44:40 +00:00
Resampler.cpp iface: Add inner ring-buffer implementation 2016-07-01 03:03:11 -07:00
Resampler.h iface: Add inner ring-buffer implementation 2016-07-01 03:03:11 -07:00
Transceiver.cpp transceiver: Do not report error on SETTSC when radio is on 2016-06-28 17:08:34 -07:00
Transceiver.h transceiver: Add an option to emulate a RACH delay in random filler mode. 2016-06-22 15:18:13 -07:00
UHDDevice.cpp radioInterface: Convert diversity argument to general type 2016-07-01 03:03:03 -07:00
USRPDevice.cpp EDGE: Setup variable sampling on receive path 2016-03-06 19:11:05 -08:00
USRPDevice.h EDGE: Setup variable sampling on receive path 2016-03-06 19:11:05 -08:00
inband-signaling-usb Adding in the missing Transceiver52M directory 2011-10-12 07:44:40 +00:00
laurent.m Transceiver52M: Add 4 samples-per-symbol Laurent pulse shape 2013-10-18 13:10:17 -04:00
osmo-trx.cpp radioInterface: Convert diversity argument to general type 2016-07-01 03:03:03 -07:00
pulseApproximate.m Adding in the missing Transceiver52M directory 2011-10-12 07:44:40 +00:00
radioBuffer.cpp iface: Add inner ring-buffer implementation 2016-07-01 03:03:11 -07:00
radioBuffer.h iface: Add inner ring-buffer implementation 2016-07-01 03:03:11 -07:00
radioClock.cpp Transceiver52M: Implement POWEROFF command 2014-12-15 16:20:15 -07:00
radioClock.h transceiver: separate radio clock and vector interfaces 2011-11-26 03:18:30 +00:00
radioDevice.h radioInterface: Convert diversity argument to general type 2016-07-01 03:03:03 -07:00
radioInterface.cpp iface: Add inner ring-buffer implementation 2016-07-01 03:03:11 -07:00
radioInterface.h iface: Add inner ring-buffer implementation 2016-07-01 03:03:11 -07:00
radioInterfaceDiversity.cpp iface: Add inner ring-buffer implementation 2016-07-01 03:03:11 -07:00
radioInterfaceResamp.cpp iface: Add inner ring-buffer implementation 2016-07-01 03:03:11 -07:00
radioVector.cpp Transceiver52M: Enable all warnings and resolve 2013-11-15 23:35:07 -05:00
radioVector.h Transceiver52M: Set const qualifier on appropriate radio vector methods 2013-11-15 23:35:07 -05:00
sigProcLib.cpp iface: Add inner ring-buffer implementation 2016-07-01 03:03:11 -07:00
sigProcLib.h transceiver: Add an option to emulate a RACH delay in random filler mode. 2016-06-22 15:18:13 -07:00
signalVector.cpp iface: Add inner ring-buffer implementation 2016-07-01 03:03:11 -07:00
signalVector.h iface: Add inner ring-buffer implementation 2016-07-01 03:03:11 -07:00
std_inband.rbf Adding in the missing Transceiver52M directory 2011-10-12 07:44:40 +00:00

README

The Transceiver

The transceiver consists of three modules:
   --- transceiver
   --- radioInterface
   --- USRPDevice

The USRPDevice module is basically a driver that reads/writes
packets to a USRP with two RFX900 daughterboards, board 
A is the Tx chain and board B is the Rx chain.  

The radioInterface module is basically an interface b/w the
transceiver and the USRP.   It operates the basestation clock
based upon the sample count of received USRP samples.  Packets 
from the USRP are queued and segmented into GSM bursts that are
passed up to the transceiver; bursts from the transceiver are
passed down to the USRP. 

The transceiver basically operates "layer 0" of the GSM stack,
performing the modulation, detection, and demodulation of GSM 
bursts.  It communicates with the GSM stack via three UDP sockets,
one socket for data, one for control messages, and one socket to
pass clocking information.  The transceiver contains a priority
queue to sort to-be-transmitted bursts, and a filler table to fill
in timeslots that do not have bursts in the priority queue.  The
transceiver tries to stay ahead of the basestation clock, adapting 
its latency when underruns are reported by the radioInterface/USRP.
Received bursts (from the radioInterface) pass through a simple 
energy detector, a RACH or midamble correlator, and a DFE-based demodulator.

NOTE: There's a SWLOOPBACK #define statement, where the USRP is replaced
with a memory buffer.  In this mode, data written to the USRP is actually stored 
in a buffer, and read commands to the USRP simply pull data from this buffer.
This was very useful in early testing, and still may be useful in testing basic
Transceiver and radioInterface functionality.