osmo-trx/Transceiver52M
Vadim Yanitskiy 4d9b59c3ef Transceiver.cpp: properly zero-terminate received commands
Previously it was assumed that a sender should zero-terminate
each command being sent. Otherwise, this could cause to printing
garbage. Let's do this manually, using the length of received
data as a position for '\0'.

Change-Id: I69f413f33156c38a853efc5a8cdc66fbfb0ca6af
2018-03-14 21:12:30 +00:00
..
arm Build Transceiver52M/common as an .la lib 2018-03-08 14:53:13 +01:00
common Build Transceiver52M/common as an .la lib 2018-03-08 14:53:13 +01:00
x86 Build Transceiver52M/common as an .la lib 2018-03-08 14:53:13 +01:00
Channelizer.cpp Remove unused headers 2018-01-04 14:31:54 +01:00
Channelizer.h mcbts: Add multi-ARFCN channelizing filters 2016-07-01 03:07:27 -07:00
ChannelizerBase.cpp transceiver: Fix mismatched allocations and deallocations 2016-10-26 08:54:13 +02:00
ChannelizerBase.h mcbts: Add multi-ARFCN channelizing filters 2016-07-01 03:07:27 -07:00
Complex.h Alexander's patches: 2012-11-23 08:37:32 +00:00
Makefile.am Build Transceiver52M/common as an .la lib 2018-03-08 14:53:13 +01: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 sigProcLib: Replace dynamically allocated resampling buffers 2017-06-22 17:39:44 +00:00
Resampler.h sigProcLib: Replace dynamically allocated resampling buffers 2017-06-22 17:39:44 +00:00
Synthesis.cpp Remove unused headers 2018-01-04 14:31:54 +01:00
Synthesis.h mcbts: Add multi-ARFCN channelizing filters 2016-07-01 03:07:27 -07:00
Transceiver.cpp Transceiver.cpp: properly zero-terminate received commands 2018-03-14 21:12:30 +00:00
Transceiver.h Move enums required by VTY to a separate header 2018-03-05 17:16:05 +01:00
UHDDevice.cpp UHDDevice: Initialize async_event_thrd in constructor 2018-02-09 16:20:39 +01:00
USRPDevice.cpp Add support to set Rx/TxAntenna 2018-02-07 13:43:42 +01:00
USRPDevice.h Fix USRP1 build with support for setting Rx/TxAntenna 2018-02-27 22:35:37 +01: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 osmo-trx: Re-introduce -l cmd line parameter 2018-03-06 18:41:29 +01:00
pulseApproximate.m Adding in the missing Transceiver52M directory 2011-10-12 07:44:40 +00:00
radioBuffer.cpp transceiver: Fix mismatched allocations and deallocations 2016-10-26 08:54:13 +02:00
radioBuffer.h radioBuffer: Remove extra ; at the end of inline function definitions. 2017-03-20 18:41:02 +00: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 Move enums required by VTY to a separate header 2018-03-05 17:16:05 +01:00
radioInterface.cpp radioInterface: Remove UmTRX 'diversity' option 2017-05-19 17:25:44 +00:00
radioInterface.h radioInterface: Remove UmTRX 'diversity' option 2017-05-19 17:25:44 +00:00
radioInterfaceMulti.cpp mcbts: Allow out of order channel setup 2016-07-08 14:46:25 -07:00
radioInterfaceResamp.cpp uhd: Update USRP2/N200/N210 for 4 SPS Rx 2016-07-20 16:36:27 -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 sigProcLib: Specify standard namespace for isnan() 2017-06-22 18:03:29 +00:00
sigProcLib.h sigProcLib: Remove unused functions from public interface 2017-06-14 16:30:28 +00:00
signalVector.cpp signalVector: Implement segment(). 2017-03-24 01:22:40 +00:00
signalVector.h signalVector: Implement segment(). 2017-03-24 01:22:40 +00: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.