OpenBTS/TransceiverRAD1
Kurtis Heimerl d3f0caf935 Alexander's patches:
1)I did an experiment and compiled OpenBTS with clang yesterday, which
immediately highlighted two potential bugs in the Transceiver52 code.
I'm not sure they are indeed bugs and not the intended behavior, but
they look very much like that. The first one is below and the second
one is in the following mail.

GSM::Time() arguments are defined like #define USB_LATENCY_INTRVL
(10,0), which means that they are expanded into GSM::Time((10,0)).
This expression is a GSM::Time() with a single parameter where (10,0)
return value of the last argument, 0 in this case. I.e.
GSM::Time((10,0)) is equivalent to  GSM::Time(0). I think this was not
the intention.

2) Printing \n after every complex number breaks output when you want to
print it in a single line, e.g. in many debug output.

I do not claim any copyright over this change, as it's very basic.
Looking forward to see it merged into mainline.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4515 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2012-11-23 08:37:32 +00:00
..
fpga FPGA source code. 2012-04-15 05:11:26 +00:00
ad9862.h Putting the actual OpenBTS P2.8 source code into the public SVN branch. 2011-10-07 02:40:51 +00:00
bytesex.h Putting the actual OpenBTS P2.8 source code into the public SVN branch. 2011-10-07 02:40:51 +00:00
commands.h Putting the actual OpenBTS P2.8 source code into the public SVN branch. 2011-10-07 02:40:51 +00:00
Complex.h Alexander's patches: 2012-11-23 08:37:32 +00:00
DummyLoad.cpp Putting the actual OpenBTS P2.8 source code into the public SVN branch. 2011-10-07 02:40:51 +00:00
DummyLoad.h Putting the actual OpenBTS P2.8 source code into the public SVN branch. 2011-10-07 02:40:51 +00:00
ezusb.ihx Merged in patches from features/SylvainsPatches. 2011-10-12 22:22:03 +00:00
fpga.rbf Merged in patches from features/SylvainsPatches. 2011-10-12 22:22:03 +00:00
fpga_regs.h Fixed the license notices. 2011-10-12 01:23:28 +00:00
fusb.cpp Putting the actual OpenBTS P2.8 source code into the public SVN branch. 2011-10-07 02:40:51 +00:00
fusb.h Fixed the license notices. 2011-10-12 01:23:28 +00:00
i2c.h Fixed the license notices. 2011-10-12 01:23:28 +00:00
ids.h Fixed the license notices. 2011-10-12 01:23:28 +00:00
interfaces.h Fixed the license notices. 2011-10-12 01:23:28 +00:00
Makefile.am Putting the actual OpenBTS P2.8 source code into the public SVN branch. 2011-10-07 02:40:51 +00:00
RAD1Cmd.cpp Putting the actual OpenBTS P2.8 source code into the public SVN branch. 2011-10-07 02:40:51 +00:00
RAD1Device.cpp Tweaks to enhance performance. 2012-02-01 18:57:42 +00:00
RAD1Device.h Adding MultiARFCN support to RAD1 radio. 2012-05-31 00:05:17 +00:00
RAD1ping.cpp Tweaks to enhance performance. 2012-02-01 18:57:42 +00:00
RAD1RxRawPower.cpp Putting the actual OpenBTS P2.8 source code into the public SVN branch. 2011-10-07 02:40:51 +00:00
RAD1SN.cpp Putting the actual OpenBTS P2.8 source code into the public SVN branch. 2011-10-07 02:40:51 +00:00
radioDevice.h Fixed the license notices. 2011-10-12 01:23:28 +00:00
radioInterface.cpp Adding MultiARFCN support to RAD1 radio. 2012-05-31 00:05:17 +00:00
radioInterface.h Adding MultiARFCN support to RAD1 radio. 2012-05-31 00:05:17 +00:00
README Putting the actual OpenBTS P2.8 source code into the public SVN branch. 2011-10-07 02:40:51 +00:00
README.Talgorithm Putting the actual OpenBTS P2.8 source code into the public SVN branch. 2011-10-07 02:40:51 +00:00
rnrad1.h Fixed the license notices. 2011-10-12 01:23:28 +00:00
rnrad1Core.cpp Adding MultiARFCN support to RAD1 radio. 2012-05-31 00:05:17 +00:00
rnrad1Core.h Fixed the license notices. 2011-10-12 01:23:28 +00:00
rnrad1Rx.cpp Putting the actual OpenBTS P2.8 source code into the public SVN branch. 2011-10-07 02:40:51 +00:00
rnrad1Tx.cpp Putting the actual OpenBTS P2.8 source code into the public SVN branch. 2011-10-07 02:40:51 +00:00
runTransceiver.cpp Adding MultiARFCN support to RAD1 radio. 2012-05-31 00:05:17 +00:00
sigProcLib.cpp Adding MultiARFCN support to RAD1 radio. 2012-05-31 00:05:17 +00:00
sigProcLib.h Fixed the license notices. 2011-10-12 01:23:28 +00:00
sigProcLibTest.cpp Putting the actual OpenBTS P2.8 source code into the public SVN branch. 2011-10-07 02:40:51 +00:00
spi.h Fixed the license notices. 2011-10-12 01:23:28 +00:00
Transceiver.cpp Adding MultiARFCN support to RAD1 radio. 2012-05-31 00:05:17 +00:00
Transceiver.h Adding MultiARFCN support to RAD1 radio. 2012-05-31 00:05:17 +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.