Commit Graph

10190 Commits

Author SHA1 Message Date
Andre Puschmann aaceb029eb rlc_am_lte: fix wrong fmt string 2022-01-19 12:26:18 +01:00
dvdgrgrtt c9beba6f36 Use srsran_convert_dB_to_power
Instead of computing power using the power function.
2022-01-19 11:13:28 +01:00
dvdgrgrtt 3ffefe5ba7 Use copyright as file header 2022-01-19 11:13:28 +01:00
dvdgrgrtt a69fb1d50f ch_awgn: Improve API
The API of functions srsran_ch_awgn_X was causing confusion between
noise variance and standard deviation. Also, in the complex-valued case,
the noise variance did not take into account the fact that the signal is
two-dimensional.

All uses of these functions are modified accordingly.
2022-01-19 11:13:28 +01:00
Andre Puschmann 7dc2313957 gnb,rrc: fix compilation
caused by GH merge timing issue and remove asn1 call
2022-01-18 18:26:02 +01:00
Andre Puschmann 92a13294b2 rrc_nr_utils: set RAT for PDCP config for SRB to NR 2022-01-18 18:20:04 +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
Andre Puschmann 99c2d16c1b ue_nr_interface: include SRB ARFCN in cell search result 2022-01-18 18:20:04 +01:00
Andre Puschmann c49615c059 gnb,rrc: handle reestablishment complete
* add message handler
* rename internal calls
2022-01-18 18:07:21 +01:00
Andre Puschmann f17e77f391 gnb,rrc: add GTPU interface to RRC 2022-01-18 18:07:21 +01:00
Andre Puschmann 4923f0a07b gnb,mac: schedule CON_RES CE when handling CCCH
this avoids implicit CON_RES scheduling in the scheduler
2022-01-18 18:07:21 +01:00
Andre Puschmann db065239e0 sched_nr: add dl_mac_ce() method to allow MAC to schedule CE
MAC can give the scheduler hints as to when to schedule certain
CEs in the DL. For example when receiving a CCCH on SRB0.
2022-01-18 18:07:21 +01:00
Andre Puschmann 33378c32c0 gnb,rrc: fix key derivation in reestablishment 2022-01-18 18:07:21 +01:00
Andre Puschmann ee8d334aaa phy,nr: logging fix for PDCCH 2022-01-18 18:07:21 +01:00
Andre Puschmann 02cdc66302 security: fix k_gnb* derivation for 5G
add FC code for gNB KDF and fix ARFCN encoding (can be more than 2 bytes)
2022-01-18 18:07:21 +01:00
Andre Puschmann fb3416371b enb,rrc_nr: use SSB arfcn for key derivation for reestablishment 2022-01-18 18:07:21 +01:00
Andre Puschmann f012dce8b2 enb,rrc_nr: log freq config of NR cells on init 2022-01-18 18:07:21 +01:00
Andre Puschmann 9832ba4477 rrc_nr_config: add comment 2022-01-18 18:07:21 +01:00
Andre Puschmann bbe3ee41da rrc,nr_security: fixing a few typos for NR 2022-01-18 18:07:21 +01:00
Andre Puschmann 1616c09335 gnb,rrc: handle RRC reestablishment request
implement basic support for sending RRC reestablishment
2022-01-18 18:07:21 +01:00
Pedro Alvarez 9bd368e0a9 lib,rlc: changed back status and header logging helpers to log directly. Make sure RB name is automatically logged. 2022-01-18 11:53:37 +00:00
Pedro Alvarez 00a60dbb97 lib,rlc: removed duplicate rb_name in logs of rlc_am_base and rlc_tm 2022-01-18 11:53:37 +00:00
Pedro Alvarez 87607a4ea7 lib,rlc: changed RLC UM NR to use new logging macros 2022-01-18 11:53:37 +00:00
Pedro Alvarez b53da22eb1 lib,rlc: changed return of string helper functions from char* to std::string to avoid UB 2022-01-18 11:53:37 +00:00
Pedro Alvarez b46c5423f0 lib,rlc: make sure TM rb name is initialized. changed rlc_um_lte to use new logging macros 2022-01-18 11:53:37 +00:00
Pedro Alvarez e157806db2 lib,rlc_am_lte: removed RB_NAME macro. changed status and data pdu logging helpers to return C strings. Using new logging macros to make sure that RB name is included when logging status and amd pdus. 2022-01-18 11:53:37 +00:00
Pedro Alvarez 0f4b64f13f lib,rlc: added macros for hex logging that automatically add the rb_name. changed logging to use new macros in multiple places. 2022-01-18 11:53:37 +00:00
Pedro Alvarez b687072815 lib,rlc: added rb_name and logger to rlc_common. Added macros to help making sure bearer name is always included to the log to rlc_common.h. Started using said macros in TM, UM and AM entities. 2022-01-18 11:53:37 +00:00
Alejandro Leal 74d847efe9 Removed unneeded libraries in the test as srsran_phy already includes
srsran_phy_common
2022-01-17 15:43:20 +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 65255ecb4e Unpack MIB to update MIB 2022-01-17 10:55:38 +01: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
Xavier Arteaga c88774a3f4 Fix UE SYNC NR CFO feedback and periodicity 2022-01-17 10:55:38 +01:00
Xavier Arteaga 8694cc63ec Added SSB configuration conversion to string 2022-01-17 10:55:38 +01:00
faluco 634db621e4 Fix compiler error due to a bug in clang9. 2022-01-16 22:17:14 +01:00
sauka d5040540fb use NR type1 RIV function helper 2022-01-14 10:40:18 +01:00
sauka 9b24867bc4 set SCH configuration only for non SI-RNTI case. Fix formatting 2022-01-14 10:40:18 +01:00
sauka 870c3ab8c5 update TV, enable ue_dl_nr_file_test for c-rnti case
Cell:
nr_arfcn=368500 ul_nr_arfcn=349500 pci=500 mode=FDD rat=nr n_rb_dl=52 n_rb_ul=52 dl_mu=0 ul_mu=0 ssb_mu=0 ssb_arfcn=368410 ssb_prb=13:21 k_ssb=6 coreset0_prb=1:48 coreset0_idx=6

coreset1:
11:49:15.018 [PHY] DL 0001 01 0100   718.1 PDCCH: ss_id=1 cce_index=0 al=4 dci=1_0
	rb_alloc=0x5f
	time_domain_rsc=0
	vrb_to_prb_map=0
	mcs=10
	ndi=1
	rv_idx=0
	harq_process=0
	dai=0
	tpc_command=1
	pucch_rsc=0
	harq_feedback_timing=3
	dci_len=39
11:49:15.018 [PHY] DL 0001 01 0100   718.1 PDSCH: harq=0 prb=1:48 symb=1:13 k1=4 CW0: tb_len=960 mod=4 rv_idx=0 cr=0.33 retx=0
        0000:  43 03 bd c0 05 00 59 09  47 7e 29 e5 43 3d b6 2b  C.....Y.G~).C=.+
        0010:  e3 ed a1 43 3a 53 f2 23  d4 8b 23 a0 c9 5d ec 23  ...C:S.#..#..].#
        0020:  47 80 2b 64 0d f6 2a 11  bc 76 ed 0c 72 6a 7e c5  G.+d..*..v..rj~.
        0030:  4c 14 80 56 86 69 bf 27  60 9d 0b fd 23 22 4b d1  L..V.i.'`...#"K.
        0040:  45 a4 01 b0 50 f7 02 e2  3a ac 16 b3 b3 b8 e0 09  E...P...:.......
        ...
        0380:  f2 fa 54 f3 4e 3f 14 54  38 73 ab 4e bb d7 41 76  ..T.N?.T8s.N..Av
        0390:  47 19 31 b0 86 fb 7f 9f  1d 93 91 69 66 b8 ae 91  G.1........if...
        03a0:  8f 1e 4b 03 9e 7d 03 ae  93 77 a8 81 0a 8f 44 8b  ..K..}...w....D.
        03b0:  87 cf 76 59 11 1f 31 7d  aa 01 e3 9c 26 07 33 57  ..vY..1}....&.3W
2022-01-14 10:40:18 +01:00
sauka b9fb65e301 extend ue_dl_nr_filetest to specify PDSCH allocation in time-domain, add option to enable interleaved pdcch 2022-01-14 10:40:18 +01:00
Ismael Gomez e1313cce74 sidekiq: update cur_rx_gain_db inside card sub-module 2022-01-14 10:19:08 +01:00
Ismael Gomez fd2eef132d sidekiq: configure RFIC rx_gain with user values instead of using calibrated rx_gain offsets 2022-01-14 10:19:08 +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 67db8a2b75 srsenb: add support for A5 report 2022-01-13 17:35:20 +01:00
Ismael Gomez dcd94649ef enb,parser: add option to set a default tx gain per cell 2022-01-13 17:25:39 +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