Commit Graph

156 Commits

Author SHA1 Message Date
Xavier Arteaga 9a2b0b7cc7 Standard vector allocation uses vector library 2020-04-02 20:49:58 +02:00
Xavier Arteaga e832769ae6 Updated copyright 2020-03-16 11:26:06 +01:00
Ismael Gomez 4e12405fff
Remove radio_multi class and organize channels, ports and carrier buffers (#1019) 2020-03-06 15:26:48 +01:00
Andre Puschmann 2e455908e8 fix issue compiling pssch_ue when RF driver wasn't found 2020-03-05 11:37:24 +01:00
Andre Puschmann e9e57153dc adding basic pssch_ue example 2020-03-03 16:22:51 +01:00
Andre Puschmann 8a33fde8e7 adding GPS sync support to USRP capture example 2020-02-10 20:25:54 +01:00
Andre Puschmann c7343cf6d8 protect sf_buffer from overrun in receive_samples
this patch adds a buffer len paramter to the receive_samples() call
that protects the (also) provided buffer from overflowing.

currently each call to srslte_ue_sync_zerocopy() which then calls receive_samples()
relies on a buffer that is "big enough". But that buffer is sometimes
2 subframes, sometimes 3 or 5, sometimes has space for the maximum PRB size, sometimes
only for 6 PRBs (i.e. during cell search).

By extending the interface to pass the buffer size we can make sure that
only samples are received that actually fit inside the provided buffer.
2020-02-07 10:21:30 +01:00
Xavier Arteaga c92dce71b7 srsLTE: AGC only uses boundaries for requesting gain to Radio 2019-12-23 22:57:37 +01:00
Andre Puschmann 476f970ee1 replace FIXME with TODO 2019-12-18 11:25:56 +01:00
Pedro Alvarez c5979f59eb Clang format UE, eNB and lib (#850)
* Clang-formated UE, eNB and lib.
* Fixed compiling errors from clang-format.
* Fix linking issues introduced by clang-format
* Fix poor formating in initializing arrays of arrays.
* Fix mistake in conflict resolution on rm_turbo.c
* Re-apply clang format to gtpc_ies.h
2019-12-16 16:04:22 +01:00
Andre Puschmann 8bec22ff11 fixed naming for ue_sync_nbiot 2019-12-10 16:53:44 +01:00
Andre Puschmann 447f71b8c9 fix compilation of zmq_remote_rx 2019-12-10 16:53:44 +01:00
Andre Puschmann 4dbbcaa668 add cell search and USRP capture examples for NB-IoT 2019-12-10 16:53:44 +01:00
Xavier Arteaga a51d989e2e Fixed static analysis float/double conversion 2019-12-05 09:41:12 +01:00
Ismael Gomez f7e6da050e
Adds PUB/SUB model to ZMQ and option to use sc16 sample type over the socket (#815)
* Adds PUB/SUB model to ZMQ and option to use sc16 sample type over the socket. Adds example application for remote RX RF head using ZMQ

* Addressed comments and other bugs

* Removed atoi atof
2019-12-03 09:57:12 +01:00
Ismael Gomez 2dbbd8b466 Minor esthetic changes 2019-12-02 17:51:09 +01:00
Xavier Arteaga 6d896ee453 Fixed more static code analysis warnings 2019-12-02 09:47:22 +01:00
Xavier Arteaga b48bb0d754 Removed atof, atoll and atoi calls 2019-12-02 09:47:22 +01:00
Xavier Arteaga 8dd1c59e18 Added amplitude and power conversions to dB and viceversa 2019-12-02 09:47:22 +01:00
Andre Puschmann 3e4bbbda5c fix PSS threshold value in cell_search 2019-10-01 16:54:42 +02:00
Andre Puschmann 2deaab8ded fix synch_file example to work with sample rates other than 1.92 2019-10-01 16:54:42 +02:00
David Rupprecht f9a668861a Fixed USRP capture sync due to missing channel ptr 2019-09-23 14:36:08 +02:00
Xavier Arteaga 8e17aba5d8 Improved SSS decoding and improved scell_search_test 2019-09-20 16:20:31 +02:00
Xavier Arteaga db5a21e659 Remove set_master_clock_rate from PHY RF API 2019-09-20 15:43:07 +02:00
Andre Puschmann a2ab043c0d fix memleaks and uninitialized vars found by cppcheck 2019-09-20 10:55:29 +02:00
Ismael Gomez bfddc55148
RRC-PHY interface (#639)
RRC-PHY interface refactor. Moved RRC-MAC interface to rrc_asn1_utils and created RRC-PHY interface also in rrc_asn1_utils. All ASN1 includes should be made from rrc_asn1_utils only keeping ue_interfaces clean of ASN1

Tested with different common and dedicated configurations (64QAM UL, 256QAM, CA, SRS enabled/disabled, etc)
2019-09-04 16:59:10 +02:00
Robert Falkenberg c75f314c3f Fixed incorrect DCI location assignment in pdsch_enodeb.c example 2019-08-29 20:49:16 +02:00
Andre Puschmann e0bd7f156d replace remaining warning macros with pragma message 2019-07-23 15:38:21 +02:00
Ismael Gomez 126f2efb5c
Radio and UHD fixes to avoid changing master clock rate and fixes X300 (#589)
* Fixes X300 MIMO

* Do not change sampling rate and calibrate time_adv_nsamples for b210
2019-07-16 18:22:09 +02:00
Guillem Foreman eab73829f6 Changes requested 2019-07-12 14:11:26 +02:00
Guillem Foreman db4127ca64 Fixes 256QAM, added pdsch table 2, fixed warnings 2019-07-04 15:49:43 +02:00
Ismael Gomez b31b668a8e Remove unnecessary find_package(GUI) 2019-06-04 13:31:31 +02:00
Andre Puschmann 4b01a2e4a0 update copyright notice 2019-04-29 09:20:02 +02:00
Ismael Gomez 7780b1aba5 add tdd/ca support 2019-04-25 20:57:58 +02:00
Andre Puschmann ef544e64c2 expose RF device as paramter for pdsch_enodeb/_ue 2019-01-31 15:31:33 +01:00
Andre Puschmann bdbdef41c0 fix compiler warning in pdsch_ue 2018-12-18 11:53:16 +01:00
yagoda 2acf282a8b adding fixes to embms channel estimation 2018-11-28 14:14:40 +01:00
Ismael Gomez 9e0d7281f5 Merge branch 'next' of github.com:softwareradiosystems/srsLTE into next 2018-07-16 15:17:07 +02:00
Ismael Gomez fda4c39590 pdsch_ue RSRP in dBm. Fix default rx_gain_offset in ue.conf differs from code 2018-07-16 15:16:52 +02:00
Pedro Alvarez 788dc7bd7a Fixed compilation issues introduced from the changes in the crash_handler. 2018-07-13 19:17:59 +01:00
Pedro Alvarez 597cf18b9d Changing common/debug.h to crash_handler.h 2018-07-13 11:57:15 +01:00
Pedro Alvarez 7aaa9a1789 Moved srslte_debug_handle_crash to common/debug.c 2018-07-09 14:33:50 +01:00
jctallon 50589108c6 Mbms fixes (#225)
* fixing the threading structure for mbms in the gtpu

fixing some leaks in pmch tests

fixing stack overflow caused by radio objext

* adding sib.conf.mbsfn.example

* creating a different thread_mch object for the gtpu

* Make mch_thread an isolated class

* excluding mbsfn subframes from noise estimation and cfo estimation

* fixing pdsch ue plotting to only show pmch constellation when mbsfn is activated.
2018-07-02 17:51:09 +02:00
Xavier Arteaga 22c0a67b97 Fixed minor issues 2018-06-25 14:57:11 +02:00
Xavier Arteaga 301415a00a Fixed AGC out of bounds gain 2018-06-11 13:14:47 +02:00
yagoda 326f987a14 small fix in the power levels in pdsch_enodeb 2018-06-01 12:49:36 +02:00
yagoda 9e8b68821c small cmake fix for disable_rf case 2018-05-28 16:13:10 +02:00
yagoda 54bdfd83ec adding support for mbsfn subframe configuration to pdsch examples 2018-05-22 16:03:25 +02:00
yagoda e4c3f0bc30 adding mbms-gw and mch generation tables 2018-05-15 17:27:10 +02:00
yagoda 9d7d6c9415 adding adaptations to the phy layer for mbms 2018-05-15 16:13:03 +02:00
Joseph Giovatto ab1d9e98f3 Format and typelimit warnings (#169)
* merge with origin 4fc7dbc3 8daa8346

* fixed whitespace diff

* added .gitignore

* added format warning flags to C_FLAGS
added typelimit check to C_FLAGS and CXX_CLAGS

* Revert "added format warning flags to C_FLAGS"

Apply to branch format_and_typelimt branch

This reverts commit bf7467e82ec7b056ad06dc50cc964fcce18be99b.

* check for format warnings to top level C_FLAGS
added typelimit warnings to top level C_FLAGS and CXX_FLAGS
beset effort attempt to remedy warnings
removed unused param names in hex_log baseclass methods due to multitude of unused-warnings
2018-04-29 17:26:35 +02:00
Ismael Gomez c574b8d8a4 Missed change during merge 2018-03-19 14:21:17 +01:00
Ismael Gomez f88f465c97 Refactored NAS/RRC/PHY cell_search/selection procedures 2018-03-19 14:14:51 +01:00
Xavier Arteaga a0fff683f2 Fixed pdsch_ue; it does not stop RF after cell search. 2018-03-08 14:39:42 +01:00
Xavier Arteaga a2129601df Noise level in MIMO is not divided by number of antennas 2018-02-15 03:16:07 +01:00
Ismael Gomez 7ae186d499 Typo in printing default pdsch_ue help 2018-02-08 20:58:00 +01:00
Ismael Gomez 2347fe0e6f Fixed incorrect DCI location bug. Make all calls to regs/pdcch atomic w.r.t. the CFI 2018-02-02 16:27:11 +01:00
Andre Puschmann 07cd9ae528 fix coverity issues 2018-02-01 16:34:38 +01:00
Xavier Arteaga 10fc1855d6 Fixed Coverity INFO/DEBUG messages with too many arguments and a few more 2018-01-31 12:43:48 +01:00
Andre Puschmann 8da4373d30 fix various coverity bugs 2018-01-30 17:33:20 +01:00
Andre Puschmann 51f1a6ef6c print RSRP in pdsch_ue 2018-01-30 12:01:01 +01:00
Xavier Arteaga a4c0cda237 Fixed pdsch_ue Rank indicator error messages for 4 antenna port cells 2018-01-22 11:59:10 +01:00
Ismael Gomez 0750ff3091 Option to not wrap when reading signal from file 2018-01-16 19:33:51 +01:00
yagoda 23afd44a7d modifications to enable phy lib logging 2017-12-20 14:57:22 +00:00
yagoda 1b1301101c adding support for phy(C level) logging to file 2017-12-18 19:04:47 +00:00
Ismael Gomez 6711387ad7 Disabled AGC for initial cell search. Copy CFO from search and disable CP based CFO after search to reduce overhead 2017-12-17 23:05:28 +01:00
Ismael Gomez 9355cd5732 Improved CFO loop. Fixed issue with sinusoid tolerance 2017-12-16 12:46:29 +01:00
Ismael Gomez 48dfc08fa3 Fixed SIC for PSS using channel estimates, added option to disable it (not usable on synchronous same-site cells). Use PSS CE in SSS decoding 2017-12-03 22:13:07 -06:00
Ismael Gomez 6b264732d2 Disabled subframe average 2017-12-01 11:25:27 +01:00
Ismael Gomez f1c6bcd252 Merge branch 'next' into mobility 2017-11-30 20:13:06 +01:00
Ismael Gomez dd8bacf466 Calibrated CFO loop default values 2017-11-30 20:01:35 +01:00
Ismael Gomez 46f15c19e6 Added subframe averaging option in chest_dl. Optional in pdsch_ue 2017-11-29 20:28:04 +01:00
Ismael Gomez a3a1d268b7 Improved CFO estimation/correction by filtering central 6 PRB. Cleaned ue_sync/sync/pss objects. Used const attr in vector and other objects 2017-11-29 18:30:21 +01:00
Ismael Gomez 3a0ab02264 S1/X2 handover tested and working 2017-11-27 13:57:05 +01:00
Ismael Gomez cfbea7a6c1 Restored non-guru DFT interface. Removed input buffer from ue_dl interface 2017-11-26 00:38:23 +01:00
Ismael Gomez d428760b20 Merge branch 'next' into mobility 2017-11-24 12:02:41 +01:00
Ismael Gomez 408545dab8 X2 (constant NCC) working 2017-11-23 19:46:34 +01:00
Xavier Arteaga 176dae270c Fixes #105. Added backtrace print in 'srsLTE.backtrace.crash' 2017-11-22 16:00:07 +01:00
Xavier Arteaga b23be658cc Added PDSCH decoder maximum bitrate (from DSP execution time) 2017-11-13 10:14:11 +01:00
Ismael Gomez 1d095b006a Removed unused nof_tb variable 2017-10-28 23:30:29 -07:00
Xavier Arteaga c8bba2f4d0 DFT optimization. memcpy removal (#76)
* Solved PHICH Segmentation fault for MIMO

* Initial Guru FFT optimitzation

* Guru (i)FFT implemented. All test passed!

* Integrated new DFT into pdsch_enodeb and pdsch_ue. Solved more DFT bugs.

* Solved Merge Errors and bugs

* Solved UL Guru bug (DC missing). Updated Init and OFDM calls for enb and ue (cell measurement too).
2017-10-20 10:09:27 -04:00
Ismael Gomez 576b2fb2fb Merge pull request #58 from softwareradiosystems/next_pmch_fix
Next pmch fix
2017-10-04 11:00:51 +01:00
Ismael Gomez b155ba4c28 Fixed segfault in pdsch_ue --help command 2017-10-04 12:00:31 +02:00
yagoda b1cbcec742 adding pmch tests and fixing pdsch_enb 2017-10-03 14:49:19 +01:00
Andre Puschmann d3916cec91 fix segfault when printing help message 2017-10-02 10:50:06 +02:00
Ismael Gomez 680ba2761c Fixed number of iterations calculation 2017-09-26 14:48:59 +02:00
Justin Tallon 774a456e31 adding phy layer support for mbms 2017-09-25 13:45:56 +02:00
Ismael Gomez 05da1ac480 Merge branch 'mobility' of github.com:softwareradiosystems/srsLTE into mobility 2017-09-13 13:39:17 +02:00
Xavier Arteaga afd2bbbfc2 Added periodic RI on PUCCH for TM3 and TM4 2017-09-13 13:37:48 +02:00
Xavier Arteaga 230eb63a97 Refactored grant: removed nof_tb from grant. Use tb_en instead. 2017-09-13 13:36:20 +02:00
Ismael Gomez 41188b409e cleaned up cfo set tolerance functions 2017-09-12 11:10:32 +02:00
Ismael Gomez b0639ab394 resolved merge conflicts 2017-09-05 15:26:36 +02:00
Ismael Gomez a51b6b09dd Merged with next. Attach successful 2017-09-01 19:32:57 +02:00
Ismael Gomez e5feec1934 Temporal commit before merge. Changed sequence objects to avoid reallocating memory. new NAS/RRC working with initial attachment 2017-09-01 13:29:11 +02:00
Andre Puschmann e8c41d4620 Revert "Soapy(lime) tx support"
This reverts commit 10c0f03f33.
2017-07-12 17:34:14 +02:00
yagoda 10c0f03f33 Soapy(lime) tx support 2017-07-06 12:32:54 +01:00
Ismael Gomez e92418d2da minor edit in cmake 2017-06-24 16:10:38 +02:00
Ismael Gomez 6037a2f2bd changed logger classes 2017-06-23 16:29:46 +02:00
Paul Sutton 94a54f226d Conditional srslte_rf linking for examples 2017-06-08 12:34:33 +01:00
Ismael Gomez f264b4d652 made srslte static srslte_rf shared. Deleted tutorial examples 2017-06-08 13:15:35 +02:00