srsRAN/README.md

118 lines
4.8 KiB
Markdown
Raw Normal View History

2015-03-18 10:52:46 +00:00
srsLTE
2014-01-28 11:41:17 +00:00
========
2015-03-18 10:52:46 +00:00
srsLTE is a free and open-source LTE library for SDR UE and eNodeB. The library is highly modular with minimum inter-module or external dependencies. It is entirely written in C and, if available in the system, uses the acceleration library VOLK distributed in GNURadio.
2015-01-21 18:17:19 +00:00
2015-11-16 13:06:03 +00:00
**srsLTE is used by srsUE, a full stack (PHY to IP) implementation of an LTE UE. srsUE is available at https://github.com/srslte/srsue**
2015-05-26 09:53:24 +00:00
The srsLTE software license is AGPLv3.
2015-01-21 18:17:19 +00:00
Current Features:
* LTE Release 8 compliant
* FDD configuration
2015-12-02 11:54:57 +00:00
* Tested bandwidths: 1.4, 3, 5, 10, 15 and 20 MHz
2015-01-21 18:17:19 +00:00
* Transmission mode 1 (single antenna) and 2 (transmit diversity)
* Cell search and synchronization procedure for the UE
2015-07-06 15:12:57 +00:00
* All DL channels/signals are supported for UE and eNodeB side: PSS, SSS, PBCH, PCFICH, PHICH, PDCCH, PDSCH
* All UL channels/signals are supported for UE side: PRACH, PUSCH, PUCCH, SRS
2015-11-10 10:55:32 +00:00
* Frequency-based ZF and MMSE
* Highly optimized Turbo Decoder available in Intel SSE4.1/AVX (+100 Mbps) and standard C (+25 Mbps)
2015-01-21 18:17:19 +00:00
* MATLAB and OCTAVE MEX library generation for many components
* UE receiver tested and verified with Amarisoft LTE 100 eNodeB and commercial LTE networks (Telefonica Spain, Three.ie and Eircom in Ireland)
2014-03-08 12:26:01 +00:00
2015-07-06 15:12:57 +00:00
Missing Features:
2015-11-10 10:51:11 +00:00
* Closed-loop power control
2015-09-23 15:11:32 +00:00
* Semi-Persistent Scheduling
* Aperiodic CQI reports
2015-07-06 15:12:57 +00:00
2014-03-08 12:26:01 +00:00
Hardware
========
2014-07-21 16:05:39 +00:00
The library currently uses Ettus Universal Hardware Driver (UHD). Thus, any hardware supported by UHD can be used. There is no sampling rate conversion, therefore the hardware should support 30.72 MHz clock in order to work correctly with LTE sampling frequencies and decode signals from live LTE base stations. We are using the B210 USRP.
2014-03-08 12:26:01 +00:00
2016-01-09 20:31:22 +00:00
*News*: We have recently added support for the bladeRF in the `next` branch. It's still experimental so any feedback will be very appreciated.
2015-12-16 18:48:05 +00:00
2014-01-30 15:14:41 +00:00
Download & Install Instructions
=================================
2015-03-19 16:16:20 +00:00
* Mandatory dependencies:
2015-03-19 16:17:12 +00:00
* libfftw
2015-03-19 16:16:20 +00:00
* Optional requirements:
2015-04-01 14:56:32 +00:00
* srsgui: for real-time plotting. Download it here: https://github.com/srslte/srsgui
2015-03-19 16:16:20 +00:00
* VOLK: if the VOLK library and headers are detected, they will be used for accelerating some signal processing functions.
* Matlab/Octave: if found by CMake, MEX files will also be generated and installed. If you find any compilation issue with MEX and you don't need them, pass -DDisableMEX=ON to cmake to disable them.
2015-03-19 16:16:20 +00:00
Download and build srsLTE:
2014-01-30 15:14:41 +00:00
```
2015-03-18 10:54:07 +00:00
git clone https://github.com/srsLTE/srsLTE.git
cd srsLTE
2014-01-30 15:14:41 +00:00
mkdir build
cd build
cmake ../
make
```
2014-03-08 12:26:01 +00:00
The library can also be installed using the command ```sudo make install```.
2014-01-30 15:14:41 +00:00
2015-03-18 10:52:46 +00:00
Running srsLTE Examples
2015-01-21 18:17:19 +00:00
========================
2014-01-30 15:14:41 +00:00
2015-01-21 18:17:19 +00:00
* SIB1 reception and UE measurement from commercial LTE networks:
```
lte/examples/pdsch_ue -f [frequency_in_Hz]
```
Where -f is the LTE channel frequency.
* eNodeB to UE Downlink PHY test
2014-01-30 15:14:41 +00:00
2015-04-20 08:57:50 +00:00
You will need two computers, each equipped with a USRP. At the transmitter side, run:
2014-01-30 15:14:41 +00:00
2014-03-08 12:26:01 +00:00
```
2015-01-21 18:17:19 +00:00
lte/examples/pdsch_enodeb -f [frequency_in_Hz] [-h for more commands]
2014-03-08 12:26:01 +00:00
```
2014-01-30 15:14:41 +00:00
2015-01-21 18:17:19 +00:00
At the receiver run:
2014-01-30 15:14:41 +00:00
```
2015-01-21 18:17:19 +00:00
lte/examples/pdsch_ue -r 1234 -f [frequency_in_Hz]
2014-01-30 15:14:41 +00:00
```
2015-01-21 18:17:19 +00:00
At the transmitter console, it is possible to change the Modulation and Coding Scheme (MCS) by typing a new number (between 0 and 28) and pressing Enter.
The output at the receiver should look something similar to the following video. In this example, we removed the transmitter and receiver antennas in the middle of the demonstration, showing how reception is still possible (despite with some erros).
2014-03-08 12:26:01 +00:00
https://www.dropbox.com/s/txh1nuzdb0igq5n/demo_pbch.ogv
![Screenshopt of the PBCH example output](pbch_capture.png "Screenshopt of the PBCH example output")
2015-01-21 18:17:19 +00:00
* Video over Downlink PHY (eNodeB to UE)
2014-03-08 12:33:26 +00:00
2015-01-21 18:17:19 +00:00
The previous example sends random bits to the UE. It is possible to open a TCP socket and stream video over the LTE PHY DL wireless connection. At the transmitter side, run the following command:
2014-07-21 16:05:39 +00:00
```
2015-01-21 18:17:19 +00:00
lte/examples/pdsch_enodeb -f [frequency_in_Hz] -u 2000 [-h for more commands]
2014-07-21 16:05:39 +00:00
```
2015-01-21 18:17:19 +00:00
The argument -u 2000 will open port 2000 for listening for TCP connections. Set a high-order MCS, like 16 by typing 16 in the eNodeB console and pressing Enter.
2014-03-08 12:33:26 +00:00
2015-01-21 18:17:19 +00:00
```
lte/examples/pdsch_ue -r 1234 -u 2001 -U 127.0.0.1 -f [frequency_in_Hz]
```
The arguments -u 2001 -U 127.0.0.1 will forward the data that was injected at the eNodeB to address:port indicated by the argument. Once you have the system running, you can transmit some useful data, like a video stream. At the transmitter side, run:
```
avconv -f video4linux2 -i /dev/video0 -c:v mp4 -f mpegts tcp://127.0.0.1:2000
```
to stream the video captured from the webcam throught the local host port 2000. At the receiver, run:
```
avplay tcp://127.0.0.1:2001?listen -analyzeduration 100 -loglevel verbose
```
to watch the video.
2014-03-08 12:26:27 +00:00
Support
========
2015-03-18 10:52:46 +00:00
Mailing list: http://www.softwareradiosystems.com/mailman/listinfo/srslte-users