Commit Graph

239 Commits

Author SHA1 Message Date
Ismael Gomez 17f9ff326b Expose in-sync and out-of-sync constants to ue.conf 2020-01-29 11:46:55 +01:00
Andre Puschmann 77522a6b69 add srsUE parameter to change netns before creating TUN in GW 2020-01-14 20:52:09 +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 1a68fbc460 fix wrong setting for RF log level 2019-10-18 13:00:30 +02:00
Andre Puschmann 35307a047a make UE switch_on non-blocking
this allows a simpler main that just signals NAS to switch on the UE
but doesn't block until the action is completed.

For making sure the UE also attached if the first attempt failed
the NAS needs to be extended to support the correct timers.
2019-10-15 10:13:21 +02:00
Xavier Arteaga dedf0f2f78 Added initial time to delay channel simulator 2019-09-20 16:20:31 +02:00
Pedro Alvarez 1ae8ccda8c Added EIA3 and EEA3 to default UE capabilities to srsUE. Added parsers for EEA3/EIA3 config options in srsENB and srsEPC 2019-09-10 13:46:21 +02:00
Xavier Arteaga d64264d954 SRSUE: Added init test and ue.conf.example integrity. Solved CLang Tidy warnings. 2019-07-18 22:05:44 +02:00
Andre Puschmann 886858a30a remove expert config and split into PHY and general config, cleanup ue.conf.example 2019-07-15 06:18:34 -04:00
Xavier Arteaga 20823e191d SRSUE: Added UL force amplitude optional parameter 2019-07-12 13:05:10 +02:00
Xavier Arteaga 4a0ebe0cca SRSUE: reviewed UE capabilities for 64QAM according to 3GPP 36.306 2019-07-02 16:36:06 +02:00
Francisco Paisana 10a56e2a84 moved GW out of the UE stack. This is important to keep concurrency out of the stack once it becomes single-threaded 2019-06-20 15:26:52 +02:00
Xavier Arteaga 1f4cf8121b SRSUE: Initial UL channel simulator 2019-06-11 12:06:11 +02:00
Xavier Arteaga 2ffa1f9f1e SRSUE: Added RLF simulator in channel emulator and integrated it in SRSUE. Removed Zeros Command 2019-05-30 13:07:23 +02:00
Xavier Arteaga 7c97e40e63 SRSUE: Improved internal channel emulator help 2019-05-30 13:07:23 +02:00
Xavier Arteaga 9ab2b2de81 SRSUE: Created delay channel emulator and added fading to the UE 2019-05-30 13:07:23 +02:00
Andre Puschmann af8564e376 add ue_lte_phy_base and move logger out of UE class 2019-05-22 11:40:23 +02:00
Andre Puschmann 65f50cd7ba introduce new UE layer design
- abstract UE object now consists of a radio, a PHY, and a stack layer
- add new stack abstraction layer that combines MAC, RLC, RRC, PDCP, NAS and GW
- PHY layer now has a single stack interface and does not talk to MAC and RRC seperatly
2019-05-17 17:46:28 +02:00
Andre Puschmann 3a6dd9b164 move UE RRC into own folder 2019-05-17 17:25:50 +02:00
Andre Puschmann 703937ec01 move sanity check for MBMS parameters to parse_args to avoid segfault on mismatch 2019-05-03 14:24:42 +02:00
yagoda 3842beab0f - fixing pmch file test for standard LTE rates
- adding special value for MTCH stop
- adding error messages for config values incompatible with MBMS
2019-04-29 12:04:42 +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 7d95766c7b fix line break in command line arguments 2019-04-25 16:31:41 +02:00
Andre Puschmann c8f8c16d50
make EIA and EEA algorithms configurable (#323)
this patch allows to configure the EIA and EEA algorithms
the UE uses and announces during attach. They can
be specified as a comma-separated list.

The patch also removes a dedicated NAS config class and uses
the default nas_args_t type for this. There was a full
duplication of members before.

The patch also converts nas_args_t and usim_args_t into a class
with a default constructor that initialize all booleans.
2019-02-08 22:37:16 +01:00
Xavier Arteaga c782ef2aa5 Solved unitialised values in UE (up to prach) and free 2019-01-22 12:23:57 +01:00
Pedro Alvarez c5dad67a16 Adding catch to boost program options parser. 2019-01-18 12:38:56 +00:00
Francisco Paisana 0204db2e12 new asn1 rrc library 2019-01-17 17:43:13 +01:00
Andre Puschmann 15953d011e fix possible mem leak when parsing embms cmd line input 2019-01-15 16:34:04 +01:00
Joseph Giovatto af6de04806 added dl_earfcn_list to ue config
dl_earfcn_list = 2100,2200,3400
2018-12-17 12:14:49 +01:00
Andre Puschmann 652d5c5942 fix typo 2018-12-14 16:57:58 +01:00
Andre Puschmann df7ab7ffe8 Merge branch 'master' into next 2018-12-14 16:54:46 +01:00
rubund b801c3dd4e Fix some spelling errors detected by lintian (#271) 2018-12-03 10:36:15 +01:00
Pedro Alvarez ac1c300126 Adding the ability to set the interface local link IPv6 address. 2018-10-26 11:42:27 +02:00
Pedro Alvarez 25108e2e2b Added configuration options to UE for IPv6 PDN. Starting to send PDN connectivity requesting IPv6. 2018-10-26 11:42:27 +02:00
Pedro Alvarez 3cddad79cc Adding ability to configure names of TUN interfaces. (#277)
* added config option for tun dev names vs fixed names added config option for M1-U interface addr

* Added options to sgi_mb tun name.

* Added some comments to mbms.conf.example

* Added some comments to example configs to explain the new values.
2018-10-05 11:12:31 +02:00
Andre Puschmann 0380c83175 remove RF device calibration settings from UE/eNB config
- this remove RF calibration parameters that were an extra
  section in the eNB/UE config but were hardly used (only old bladeRF)
- a better way to pass those parameter would be through the
  device args in the normal rf config section
2018-10-01 21:59:07 +02:00
Ismael Gomez bc9d342959
New optimization on the PHY for both UE and eNodeB (#251)
* New parallel Turbodecoder implementation in SSE/AVX 16-bit and 8-bit

* Optimised UL Interleaver

* Include TB CRC calculation in FEC encoder

* New threading priorities
2018-09-04 17:51:35 +02:00
Andre Puschmann 3b8371d090 add detach support (for switch off) 2018-08-06 11:10:12 +02: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
Andre Puschmann 3dc5a40caf handle config parsing error gracefully and fix op/opc selection issue 2018-06-29 14:53:00 +02:00
Pedro Alvarez f301bb6373 Merging next into op_vs_opc and resolving conflicts. 2018-06-26 11:36:40 +01:00
Pedro Alvarez 50f497dcdc Small fix in srsUE for reading OPc from config file. 2018-06-25 17:25:55 +01:00
Pedro Alvarez 8d07709069 Revert "Changed ue.conf op to opc"
This reverts commit 3631c4a83f.
2018-06-19 18:15:58 +01:00
Andre Puschmann 01f6395d70 add option to force IMSI attach by not loading NAS ctxt from file 2018-06-19 14:23:47 +02:00
Pedro Alvarez b9c50a93a8 Fixed bug in writing OPc into user_db.csv. 2018-06-18 20:03:57 +01:00
Pedro Alvarez bd39d8bac2 Fixed bug in getting OPc. Removed debug print. Fixed test12345. UE is still having re-synch issues. 2018-06-18 19:32:50 +01:00
Pedro Alvarez ea5445f999 Adding options for OP and OPc in the UE. They cannot be simultanoulsy set. 2018-06-18 14:49:07 +01:00
Ismael Gomez 3631c4a83f Changed ue.conf op to opc 2018-06-04 16:41:39 +02:00
Andre Puschmann 36c650399b rework app startup to search for config files in user's home directory 2018-06-01 15:33:15 +02:00
Ismael Gomez 9cfa3c0cc4 Fix UE reattaching after going to IDLE 2018-05-31 14:59:13 +02:00
Ismael Gomez 132580ad42 Disable UTRA measurements from UECapabilities default value 2018-05-31 14:35:22 +02:00
Ismael Gomez 08654efd1c minor changes 2018-05-25 12:14:54 +02:00
Andre Puschmann cb15dee3d4 Merge branch 'embms_merge_final' into next 2018-05-23 21:25:37 +02:00
Merlin Chlosta 52f1a3b508 Add SIM Card Reader Selection, if multiple readers connected.
If no reader specified (default), try all available card readers. If reader specified, use this device only.
2018-05-23 15:39:32 +02:00
Andre Puschmann 61d525ea80 Merge branch 'next' into embms_merge_final 2018-05-22 10:39:05 +02:00
Ismael Gomez 467ba4e326 Average sampling offset estimate before adjusting timing to be more robust against EVA and ETU fading 2018-05-21 23:00:57 +02:00
yagoda 65f2747a8e removing mch handler in rlc, fixing embms autostart 2018-05-20 19:24:44 +02:00
yagoda 0ae22e0822 fixing scheduling issues for mbms 2018-05-17 20:20:20 +02:00
yagoda fac8bb7b7a adding mbms-gw broadcast support, adding parameter for automatic mbms service start 2018-05-17 16:25:17 +02:00
yagoda a113d5164f facilitate automatic mbms service start 2018-05-17 10:19:25 +02:00
Andre Puschmann 9ce3be974a Merge branch 'next' into embms_merge_final 2018-05-15 22:32:56 +02:00
yagoda 12c9f50ba9 adding upper layer embms support to the UE 2018-05-15 17:20:51 +02:00
Andre Puschmann d0457211ad adding support for CHAP auth 2018-05-15 12:40:29 +02:00
Andre Puschmann 3fe6dad323 adding hard SIM card support using PCSC 2018-05-15 12:40:29 +02:00
Ismael Gomez 81f33ef92b Set PDSCH CSI enabled by default 2018-05-04 13:58:38 +02:00
Ismael Gomez 3ab74fb552 Exposed continuous TX mode to ue.conf 2018-04-27 10:23:38 +02:00
Ismael Gomez 49c0455b4a Expose print buffer state option to ue.conf and disable by default 2018-04-25 18:08:32 +02:00
Ismael Gomez 208871b251 Changed liblte structs to simple structs and initialized nas/rrc uses. 2018-04-25 18:01:37 +02:00
Ismael Gomez 35e8b1ca76 Attach only once from main 2018-04-25 13:07:27 +02:00
Ismael Gomez ffb8337be7 Merge branch 'next' into sync_states 2018-04-12 18:30:19 +02:00
Xavier Arteaga 15173c5c30 Added gaussian filter configuration options in srsue.conf 2018-04-10 13:25:26 +02:00
Ismael Gomez edd9cbf4dc Merge branch 'next' into sync_states 2018-04-10 09:35:21 +02:00
David Rupprecht 06d4559294 Change include path absolut to project dir 2018-04-01 18:08:24 +02:00
Andre Puschmann 3db9ddcd36 remove various debug prints 2018-03-29 13:44:42 +02:00
Ismael Gomez b3be54b274 Attach and paging ok. Reselection on IDLE not working 2018-03-21 10:46:24 +01:00
Ismael Gomez f88f465c97 Refactored NAS/RRC/PHY cell_search/selection procedures 2018-03-19 14:14:51 +01:00
Ismael Gomez 86d4ce52e0 Make intra-frequency measurement period/length a parameter 2018-03-15 12:27:55 +01:00
Ismael Gomez f9d770e50e Added option for Doppler frequency correction 2018-03-14 17:30:55 +01:00
Ismael Gomez c2098ad626 Removed unused sample offset correction 2018-03-13 18:52:21 +01:00
Andre Puschmann 3afb93fcb9 exit the UE with q in console 2018-03-09 17:05:46 +01:00
Ismael Gomez 3adc6b5cbc
Merge pull request #158 from softwareradiosystems/csi
Csi
2018-03-07 14:40:57 +01:00
Paul Sutton 57505725e0
Merge pull request #157 from softwareradiosystems/issue_154fix
Issue 154fix
2018-03-06 12:51:02 +01:00
Ismael Gomez dc65061dbb Print buffer pool status every 10s (Debugging commit) 2018-03-06 12:37:45 +01:00
Xavier Arteaga 8cabfa82cf Added CSI report enable option in SRS UE 2018-02-28 12:30:34 +01:00
Ismael Gomez aced809146 Set rx_gain_offset for B210 2018-02-24 21:28:05 +01:00
Ismael Gomez 56df710d1f Add rx_gain_offset interface for RSRP calibration 2018-02-21 11:51:55 +01:00
Andre Puschmann b2ce6ec9a9
Merge pull request #139 from mrlnc/apn_cfg
Add APN to config and PDN connectivity request
2018-02-16 09:43:20 +01:00
Xavier Arteaga 42c561e77e UE channel estimator averages in sf by default 2018-02-09 12:27:22 +01:00
Ismael Gomez a279ab47f0 Improved neighbour cell accuracy. Changed RRC to avoid segfault when neighbour cell addition 2018-02-02 19:31:22 +01:00
Pedro Alvarez e4b1525982 Removed AMF from USIM configuration. AMF is exctracted from the authentication request now. 2018-02-01 14:08:16 +00:00
Andre Puschmann dbe0fa6f4e calculate actual period for metrics logging 2018-01-31 13:28:45 +01:00
Ismael Gomez 684a4c37dc Do not catch SIGKILL 2018-01-30 13:11:44 +01:00
Andre Puschmann 03e7d9c199 register handler for SIGTERM and SIGKILL in UE, eNB and EPC 2018-01-26 16:18:49 +01:00
Andre Puschmann 253e7502e8 fix csv output with newline instead of endl to avoid forced flush 2018-01-26 14:17:12 +01:00
Andre Puschmann 44e9a5bd11 fix stdin bug returning eof in input loop 2018-01-26 10:39:23 +01:00
Merlin Chlosta fcedeb0278 Add APN to config and PDN connectivity request 2018-01-22 19:12:02 +01:00
Ismael Gomez 3be48c40c8 Added rotating log to srsUE and srsENB 2018-01-16 12:44:22 +01:00
Ismael Gomez a799098784 Merge branch 'next' into merge_patch 2017-12-21 11:28:18 +01:00
yagoda 23afd44a7d modifications to enable phy lib logging 2017-12-20 14:57:22 +00:00
Ismael Gomez 23718aebad Forced kill of UE and ENB by typing ctrl
+c multiple times
2017-12-19 18:15:10 +01:00
Ismael Gomez 9355cd5732 Improved CFO loop. Fixed issue with sinusoid tolerance 2017-12-16 12:46:29 +01:00
Ismael Gomez 082da2f7b6 Added filter for maximum PSS CFO detection value. Increased averaging for PSS CFO estimation 2017-12-13 10:00:38 +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 9a255b477a Merge branch 'crypto' into mobility_crypto 2017-12-02 12:23:05 +01:00
Ismael Gomez c0e79477b5 Fixed cell reselection when radio-link failure 2017-12-01 14:05:54 +01: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
Paul Sutton 84724d2ab1 NAS-plane encryption working (thanks to David Rupprecht) 2017-11-30 17:09:12 +00:00
Ismael Gomez aacd9e1e5b Revert "Use CP-based CFO estimation only for DL and UL. Estimate every subframe. Calibrated EMA to 0.3 highest valid for low SNR"
This reverts commit 6196c096af.
2017-11-27 18:27:48 +01:00
Ismael Gomez d428760b20 Merge branch 'next' into mobility 2017-11-24 12:02:41 +01:00
Paul Sutton 4877c7ab07 Adding support for GUTI attach 2017-11-23 18:42:48 +00:00
Ismael Gomez 053f5a619d Merge branch 'next' of github.com:softwareradiosystems/srsLTE into next 2017-11-23 12:38:48 +01:00
Ismael Gomez 6196c096af Use CP-based CFO estimation only for DL and UL. Estimate every subframe. Calibrated EMA to 0.3 highest valid for low SNR 2017-11-23 12:36:16 +01:00
Xavier Arteaga 176dae270c Fixes #105. Added backtrace print in 'srsLTE.backtrace.crash' 2017-11-22 16:00:07 +01:00
Ismael Gomez 12d8b373c7 srsUE takes and reports intra-frequency measurements correctly 2017-11-20 10:02:39 +01:00
Ismael Gomez c6e947e7ca Enable S-TMSI attach 2017-11-15 13:18:15 +01:00
Ismael Gomez 641eceb328 Merge branch 'next' into mobility 2017-11-07 17:13:57 -08:00
Ismael Gomez 9c04bf2848 Removed metrics period from listener 2017-10-28 16:13:17 -07:00
Ismael Gomez 3cbe526cbc Revert "Disable RSSI sensor by default"
This reverts commit c14393b24f.
2017-10-20 12:43:04 -04:00
Ismael Gomez 85571c47cd Added option to ue.conf to configure CFO EMA (set default to 0.4) 2017-10-20 12:34:34 -04:00
Ismael Gomez c14393b24f Disable RSSI sensor by default 2017-10-19 19:39:54 -04:00
Ismael Gomez 12877fe296 Missing ip_netmask configuration file 2017-10-18 16:33:19 -04:00
Ismael Gomez c4c1c62360 stable connection. Runs out of samples in ringbuffer if clock differences 2017-10-13 17:59:12 +02:00
Ismael Gomez fda886407b Added option to force the DL/UL frequency at the UE 2017-10-10 12:33:10 +02:00
Andre Puschmann 15d89c3e95 add CSV metrics to UE 2017-09-24 13:36:31 +02:00
Andre Puschmann f92728ad6e add console message when prenting metrics in RRC_IDLE 2017-09-22 15:00:07 +02:00
Andre Puschmann 0636aa289c use metrics_hub in UE 2017-09-22 13:01:06 +02:00
Ismael Gomez 4753366096 Added option to ue.conf/enb.conf to forward logs to stdout 2017-09-21 21:21:35 +02:00
Ismael Gomez b771c35371 add freq_offset option to ue.conf 2017-09-06 15:05:57 +02:00
Ismael Gomez 9ae21dfd5d reattaching cells with different IDs and PRB 2017-09-04 12:26:58 +02:00
Ismael Gomez a51b6b09dd Merged with next. Attach successful 2017-09-01 19:32:57 +02:00
Andre Puschmann f26969db8b adding UE base class
- this patch moves common code shared between multiple UE types, i.e.,
  UEs for different RATs into a commong base class
- it also introduces a switch during UE startup to instantiate the
  selected UE type
2017-07-04 17:46:50 +02:00
Ismael Gomez fa9eaee498 new NAS/RRC structure. Attaching and ping working 2017-06-23 19:15:30 +02:00
Ismael Gomez 79e9bccbd8 fixed indent 2017-06-21 12:32:00 +02:00
Ismael Gomez a4498aeb1e defaulted cpu affinity to all cores 2017-06-02 12:35:31 +02:00
Andre Puschmann 928ef71b82 adding remaining srsUE code 2017-05-30 15:50:48 +02:00