OpenBTS/Transceiver52M
Thomas Tsou 360ba2f1f8 Transceiver52M: Update to UHD streamer interface
This patch is long overdue and can now be merged after better understanding
of timestamp stability issues. UHD tick / timespec conversions were
generally used with the streamer interface, though these calls are actually
independent change sets. The combination would lead to internal rounding
errors and a timing drift most notably on B100 running at GSM symbol
rate multiples. There are no known issues, however, with the streamer code
itself.

The aforementioned issue was discovered in test code only, which was never
merged to mainline.

Signed-off-by: Thomas Tsou <tom@tsou.cc>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@6718 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2013-10-17 06:17:14 +00:00
..
Complex.h Alexander's patches: 2012-11-23 08:37:32 +00:00
DummyLoad.cpp Martin Hauke's build/typo bug fixes 2013-10-11 19:47:27 +00:00
DummyLoad.h Adding in the missing Transceiver52M directory 2011-10-12 07:44:40 +00:00
inband-signaling-usb Adding in the missing Transceiver52M directory 2011-10-12 07:44:40 +00:00
Makefile.am cleaned up makefiles, and now can is confflags="--with-uhd" dpkg-buildpackage -B to build the uhd version. There's still an issue with linking uhd though, I have to test on a real install. 2013-07-09 07:22:26 +00:00
pulseApproximate.m Adding in the missing Transceiver52M directory 2011-10-12 07:44:40 +00:00
radioClock.cpp transceiver: separate radio clock and vector interfaces 2011-11-26 03:18:30 +00:00
radioClock.h transceiver: separate radio clock and vector interfaces 2011-11-26 03:18:30 +00:00
radioDevice.h Transceiver52M: UHD: Setup option to pass arguments from command line 2012-10-22 00:07:14 +00:00
radioInterface.cpp transceiver: clean variable init of radio interface constructor 2011-11-26 03:18:49 +00:00
radioInterface.h transceiver: make the transmit drive loop bus dependent 2011-11-26 03:18:55 +00:00
radioIO.cpp transceiver: separate I/O portion of radio interface implementation 2011-11-26 03:18:34 +00:00
radioIOResamp.cpp transceiver, resamp: enlarge transmit resampler output buffer 2011-11-26 03:19:33 +00:00
radioVector.cpp transceiver: rename getting radio vector time to getTime() 2011-11-26 03:18:43 +00:00
radioVector.h transceiver: rename getting radio vector time to getTime() 2011-11-26 03:18:43 +00:00
rcvLPF_651.h transceiver, resamp: insert missing filter values 2011-11-26 03:19:28 +00: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
README.Talgorithm Adding in the missing Transceiver52M directory 2011-10-12 07:44:40 +00:00
runTransceiver.cpp Missed some stuff. Suggested by Chris Newman 2013-09-05 05:49:56 +00:00
sendLPF_961.h transceiver, resamp: insert missing filter values 2011-11-26 03:19:28 +00:00
sigProcLib.cpp Transceiver52M: Fix calculation of TS correlation for 2 sps and higher 2013-04-04 23:35:08 +00:00
sigProcLib.h transceiver: separate radio clock and vector interfaces 2011-11-26 03:18:30 +00:00
sigProcLibTest.cpp Adding in the missing Transceiver52M directory 2011-10-12 07:44:40 +00:00
std_inband.rbf Adding in the missing Transceiver52M directory 2011-10-12 07:44:40 +00:00
Transceiver.cpp sync of openbts 2013-08-14 00:52:14 +00:00
Transceiver.h sync of openbts 2013-08-14 00:52:14 +00:00
UHDDevice.cpp Transceiver52M: Update to UHD streamer interface 2013-10-17 06:17:14 +00:00
USRPDevice.cpp Transceiver52M: UHD: Setup option to pass arguments from command line 2012-10-22 00:07:14 +00:00
USRPDevice.h Transceiver52M: UHD: Setup option to pass arguments from command line 2012-10-22 00:07:14 +00:00
USRPping.cpp Transceiver52M: UHD: Setup option to pass arguments from command line 2012-10-22 00:07:14 +00:00

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.