Commit Graph

2487 Commits

Author SHA1 Message Date
Andre Puschmann d65ae322d3 ue,rrc: fix UL center freq setting 2022-02-07 12:41:16 +01:00
Andre Puschmann 1fb4a54b28 srsue,rrc_nr_procedures: only send reconfig complete in SA mode 2022-02-07 12:10:20 +01:00
Andre Puschmann bb2777536a rrc_nr: reduce loglevel to debug for some reconfig parsing messages 2022-02-07 12:10:20 +01:00
Andre Puschmann 83ad98c58b srsue,rrc_nr: add helper to configure default PHY layer parameters 2022-02-04 15:34:06 +01:00
Andre Puschmann 98494a1ea2 srsue,rrc: remove timer stopping in main RRC class as this is done in procedures 2022-02-03 13:29:24 +01:00
Andre Puschmann 1b891bb600 srsue,rrc: check present flag before parsing UCI PUSCH scaling info 2022-02-03 13:29:24 +01:00
Andre Puschmann 82429d1742 srsue,rrc: fix PHY config updates in SA/NSA mode
* in SA the entire PHY config is applied immediately
* for NSA (in some scenarios) parts of the config are applied after the RA complete

This fixes #3842
2022-02-03 13:29:24 +01:00
Andre Puschmann 96ef1beaf2 srsue,phy,nr: only read metrics for NR rat 2022-02-01 20:38:06 +01:00
Andre Puschmann 8cf6c851e1 srsue,rrc: remove phy_cfg_default header
* address Xicos comment in https://github.com/softwareradiosystems/srsLTE/pull/3836
2022-02-01 20:38:06 +01:00
Andre Puschmann 7c63da9e4d srsue,rrc_nr: expose main carrier parameters as config
* remove hard-coded ARFCN, SCS, etc
* use PCI deteceted in cell search for carrier config
2022-02-01 20:38:06 +01:00
Andre Puschmann 8464a6ed63 srsue: refactor SA mode in RRC, don't initilize NSA-5G in NSA mode 2022-02-01 20:38:06 +01:00
Andre Puschmann 71f48ee7f2 ue,rrc: refactor PHY parameter derivation for SA
* expose carrier/SSB config in RRC args
* provide hard-coded values until exposed as param
* remove coreless option
2022-02-01 20:38:06 +01:00
Bedran Karakoc d448eac941 ue,rrc_nr: Add dummy handler for RRC Release to avoid logging an unhandled message error 2022-01-31 16:19:20 +01:00
Bedran Karakoc 84c842f8c3 lib,nas_5g: Fix logging in configuration update complete message 2022-01-31 16:19:20 +01:00
Andre Puschmann e3b95de5e0 ue,metrics_test: add testcases for EUTRA,NSA, and SA mode 2022-01-27 15:17:00 +01:00
Andre Puschmann 4890ee9875 ue,rrc: add RRC metrics and fix stdout 2022-01-27 15:17:00 +01:00
Andre Puschmann d71f4152cd ue: register PDU session at bearer manager to NAS doesn't trigger service request
* forward service request to NAS 5G in SA mode
* register PDU session at bearer manager so service request isn't triggered in the first place
* remove [TTI] from GW logs
2022-01-27 12:49:13 +01:00
Bedran Karakoc efa13290a9 ue,rrc_nr,nas_5g: Introduce NR AS Key derivation and update context handling in 5G NAS 2022-01-25 14:24:58 +01:00
Bedran Karakoc a8eaf1cdd8 ue,nas_5g: Add get_k_amf() helper function and security context flag 2022-01-25 14:24:58 +01:00
Andre Puschmann d035a57ed5 ue,rrc_nr: various smaller refactors to allow SA attach 2022-01-24 11:57:46 +01:00
Andre Puschmann 4f8991e41a ue,rrc_nr: temporarily add hard-coded SIB1 message for cell select
this will be remove shortly when SI reception is implemented but its
required right now to have the PLMN read correctly and to avoid
changes in the meas_cell_list class, etc. that require valid
values.
2022-01-24 11:57:46 +01:00
Andre Puschmann 9c9db176d5 ue: set NAS-5G args in ue module using NAS-LTE arguments 2022-01-24 11:57:46 +01:00
Andre Puschmann b5a39f9d9f ue,rrc_nr_proc: if bug connection_setup_proc that cause procedure to fail 2022-01-24 11:57:46 +01:00
Andre Puschmann f3fa0d6d46 ue,rrc_nr: add RRC Reconfig Complete sender 2022-01-24 11:57:46 +01:00
Xavier Arteaga 57b50edbe2 Fix initial buffer data and removed unimplemented method 2022-01-24 10:09:17 +01:00
Fabian Eckermann 12cc7cb4d7 Add support for RRC redirect. 2022-01-21 09:46:56 +01:00
Andre Puschmann 4cda49a037 ue,rrc_nr: cosmetic changes, typo 2022-01-19 18:37:24 +01:00
Andre Puschmann 486483da13 nas_5g: small typo fixes 2022-01-19 18:37:24 +01:00
Andre Puschmann 09b8d3ba6b ue,rrc_nr: add message handler/sender for SA until security mode command 2022-01-19 18:37:24 +01:00
Xavier Arteaga 0812a90d21 Removed unused attribute and fix end-of-burst in NR UE SA PHY 2022-01-19 18:33:39 +01:00
Xavier Arteaga d089653bd2 Fix concurrent access in UE NR PHY clear pending states 2022-01-19 18:33:39 +01:00
Andre Puschmann e9252c731e ue,rrc: fix cell selection and RRC setup procedure
* fix event processing in RRC procedures
* add UE timer and constants
* parse SRB setup
2022-01-18 18:20:04 +01:00
Andre Puschmann c13797d287 ue,mac: remove double newlines in logs 2022-01-18 18:20:04 +01:00
Francisco 3c25b6cb24 asn1: remove presence flag for lists and octet strings, as the size of the latter implicitly tell if the asn1 field is present 2022-01-17 11:58:00 +00:00
Xavier Arteaga ae0fb4f4fc UE NR PHY cell select minor fixes 2022-01-17 10:55:38 +01:00
Xavier Arteaga 8854ba49b9 UE RRC NR includes cell search in the initial cell selection procedure 2022-01-17 10:55:38 +01:00
Xavier Arteaga c26f030edb UE PHY SA Slot synchronization integrated 2022-01-17 10:55:38 +01:00
Xavier Arteaga d661db032d Ammended UE NR RRC to perform cell selection without a procedure 2022-01-17 10:55:38 +01:00
Xavier Arteaga 98f304bfa8 Add in srsue and srsenb SSB configuration in log 2022-01-17 10:55:38 +01:00
Ismael Gomez 89f910e79e srsue,phy: do not queue set_scell command in background if running from set_cells_to_meas comman 2022-01-13 22:01:23 +01:00
Ismael Gomez 552e0816f7 ue: store new EARFCN in the foreground of cell_select to avoid race conditions with the other cmd_worker 2022-01-13 17:25:20 +01:00
faluco 1ec8e8a94e Raise C++ version to 14 and fix ill-formed code that is considered by this new standard. 2022-01-13 13:35:58 +00:00
Xavier Arteaga 2c7287e4d4 Fix successful related typos 2022-01-12 10:27:33 +01:00
Xavier Arteaga e8095529d7 Fix NR UE SFN Sync 2022-01-12 10:27:33 +01:00
Xavier Arteaga db19941985 Minor changes on UE SA PHY 2022-01-12 10:27:33 +01:00
Xavier Arteaga e2b2007293 Fix srsue compilation 2022-01-12 10:27:33 +01:00
Xavier Arteaga 5760080b27 Fix multiple nr_phy_test tests 2022-01-12 10:27:33 +01:00
Xavier Arteaga d6ee282796 Created dummy radio and moved UE dummy PHY into real UE SA PHY 2022-01-12 10:27:33 +01:00
Xavier Arteaga 3b396c8a9a Implement and test initial SFN synchronization for UE standalone mode 2022-01-12 10:27:33 +01:00
Xavier Arteaga 4f86c2fac7 Added more information in NR PHY SA cell search test 2022-01-12 10:27:33 +01:00
Xavier Arteaga d4fd4c8350 Fix deadlock 2022-01-12 10:27:33 +01:00
Xavier Arteaga a5130673f6 More cell search development 2022-01-12 10:27:33 +01:00
Francisco Paisana 61e225d762 asn1: move setup_release_c from rrc_nr_asn1 to asn1_utils and improved interface 2022-01-11 22:59:38 +00:00
Fabian Eckermann 4182a9f164 Add cell group update without random access. 2022-01-10 21:09:03 +01:00
Fabian Eckermann cb6809c9b2 Add SA RRC reconfiguration test. 2022-01-10 21:09:03 +01:00
Fabian Eckermann a6c1098afe Add decoding of RRC reconfiguration. 2022-01-10 21:09:03 +01:00
Fabian Eckermann a9724fced1 Remove unused code from test. 2022-01-10 21:09:03 +01:00
Xavier Arteaga 6c4c1ea155 NR UE PHY: interfaced fix wideband CQI reporting in nr_phy_test 2022-01-10 18:50:53 +01:00
Ismael Gomez 4d382905fd ue,lte: run parse_meas_config after RACH is complete to avoid race condition with PHY reset 2021-12-22 22:41:24 +01:00
Ismael Gomez 2d31e11144 ue,lte: update rx_gain_offset more frequently. Avoid calling UHD driver when getting rx_gain 2021-12-22 22:41:24 +01:00
Ismael Gomez 120ad5c72f ue: store new EARFCN in the foreground of cell_select to avoid race conditions with the other cmd_worker 2021-12-22 22:41:24 +01:00
Robert Falkenberg 226001709d srsUE: refactor option to filter N_id_1 / SSS to configuration
* pick the cell with strongest peak (instead of last match)
* proper selection if N_id_2 was forced too
* add comment explaining potential occlusion of cells
2021-12-22 17:13:21 +01:00
Matan Perelman 0dff58613f srsUE: Add option to filter N_id_1 / SSS to configuration 2021-12-22 17:13:21 +01:00
Andre Puschmann dd28f173b0 ue: log fixes 2021-12-15 12:15:33 +01:00
Fabian Eckermann 7f6fd45b1f Add NSA TDD/FDD tests for new RRC reconfiguration interface. 2021-12-14 18:00:49 +01:00
Fabian Eckermann 6252d94ef4 Change NSA RRC reconfiguration interface to prepare for SA. 2021-12-14 18:00:49 +01:00
Fabian Eckermann 1407983c75 Add decoding of RRC setup. 2021-12-14 18:00:49 +01:00
Fabian Eckermann 93210d9bb3 Add unit tests for new functions. 2021-12-14 18:00:49 +01:00
Fabian Eckermann affdacd9b4 Add decoding of sib1. 2021-12-14 18:00:49 +01:00
Ismael Gomez 0ea7dbee2d srsue,phy: initialize NR PHY only if NR carriers are defined in ue.conf 2021-12-09 21:15:16 +01:00
Andre Puschmann 2e70256548 ue,nsa,rrc: fix RRC's unfinished PHY config for CSI in NSA mode
if this commit brakes the attach in SA, we need to investigate again
and provide another fix that works for both NSA/SA.
2021-12-09 12:58:28 +01:00
Ismael Gomez f04227c3fb srsue,nr: add default NAS 5G ia5g and ea5g arguments 2021-12-03 12:49:38 +01:00
Ismael Gomez 825d363d44 srsue,nr: fix crnti mac CE not being added in msg3 2021-12-03 11:29:23 +01:00
Ismael Gomez 3c929ed24c ue,sa: Sends PRACH and receives RAR, then Msg4, resolves contention resolution and pushes ConnectionSetup to RRC 2021-12-01 22:36:10 +01:00
Ismael Gomez 15025f5d57 Merge remote-tracking branch 'origin/sa_ue_rrc2' into feature_nr_sa_igm 2021-12-01 10:50:27 +01:00
Ismael Gomez 46f4be458a ue,sa: can sync and receive pbch successfully 2021-12-01 10:18:27 +01:00
Andre Puschmann 38da5a9c94 ue,rrc,test: add RRC conn setup testcase 2021-11-30 18:13:31 +01:00
Andre Puschmann 28bd93be40 ue,sa: add minimal cell selection and setup request procedure
skeleton based on EUTRA procedures
2021-11-30 18:13:23 +01:00
Ismael Gomez 219bae4fd3 srsue,sa: dummy rrc_nr to initiate dummy cell_select and phy_cfg 2021-11-30 14:45:26 +01:00
Ismael Gomez c71ab70b83 Completed basic sync module with bypass camping. Removed ue_phy_nr and ue_phy_lte base classes 2021-11-30 14:45:26 +01:00
Ismael Gomez 6947f87bcb Add minimum NR SA logic in parent PHY class 2021-11-30 14:45:26 +01:00
Ismael Gomez fb897d2998 Refactor PHY interfaces to remove difference between SA and NSA PHY 2021-11-30 14:45:26 +01:00
Ismael Gomez 58ab8086ff Added multi gNb simulation and RF 2021-11-30 14:45:26 +01:00
Xavier Arteaga f5446422bc UE NR SA interface expects PBCH message instead of spare fields 2021-11-30 14:45:26 +01:00
Xavier Arteaga fb17e3326f More development in UE NR SA cell search 2021-11-30 14:45:26 +01:00
Xavier Arteaga 47b857db25 Initial gnb emulator 2021-11-30 14:45:26 +01:00
Xavier Arteaga b1bcc1a8c0 Initial UE NR SA PHY classes 2021-11-30 14:45:26 +01:00
Andre Puschmann 7227f03314 ue,rrc_nr: refactor reconfig procedure to own source file
preparation to add next procedure
2021-11-29 12:44:32 +01:00
Andre Puschmann ccd4334672 rrc_nr: add basic interface for NAS 2021-11-29 12:44:32 +01:00
Andre Puschmann a15962c817 ue,rrc: move NR RRC into own folder 2021-11-29 12:44:32 +01:00
Fabian Eckermann 8bac4eceda Add ue MAC procedures for PDCCH orders. 2021-11-18 14:56:31 +01:00
Fabian Eckermann d0c07fc86e Add packing of dci format 1A for pdcch orders. 2021-11-18 14:56:31 +01:00
Francisco e8beb2ef81 nr,rrc: redesign fetching of asn1 obj ids for comparison and addmod/rem to asn1 lists 2021-11-16 19:04:51 +00:00
Andre Puschmann b687f58ff0 ue,cc_worker: print coreset info in debug mode 2021-11-16 12:57:20 +01:00
Carlo Galiotto 2eaf9add48 rrc,nr: rename boolean variable 2021-11-03 19:31:47 +01:00
Carlo Galiotto ba50bbfb76 rlc,rrc,nr: remove rb_type from rlc_um_config
Signed-off-by: Carlo Galiotto <carlo@srs.io>
2021-11-03 19:31:47 +01:00
Carlo Galiotto 9c2099f680 rrc,rlc,nr: fix RB label in RLC-NR for UE logs + ..
add rb_type in rlc_um_config

Signed-off-by: Carlo Galiotto <carlo@srs.io>
2021-11-03 19:31:47 +01:00
faluco dfd16718fe Fix data race in proc_sr_nr. 2021-10-29 12:45:47 +02:00
faluco 3b2f0d2f65 Fix several issues in GW class:
- Avoid triggering an assertion when the  gw thread is pending termination.
- Re-order gw::stop method to avoid a race condition when closing the TUN device while the gw thread is still running.
2021-10-28 17:42:08 +02:00
Alejandro Leal Conejos eb889d740d Fixes coverity 369513 2021-10-27 19:47:45 +02:00