Commit Graph

9479 Commits

Author SHA1 Message Date
Pedro Alvarez be9bb344a4 Starting to add handle_data_pdu to RLC NR entity. 2021-11-17 10:50:35 +00:00
Pedro Alvarez 7121152cff Added basic functionality for read_pdu to RLC AM NR entity. 2021-11-17 10:50:35 +00:00
Pedro Alvarez 4196abafee Added get_buffer_status to RLC AM NR entity 2021-11-17 10:50:35 +00:00
Andre Puschmann fe0db905c2 sched_nr: move DCI config for SIB to fill_dci_sib() 2021-11-17 10:28:31 +01:00
Andre Puschmann c73a77330f gnb,rrc,sched: backporting tiny fixes to make COTS UE PRACH
* use carrier PCI instead of cell_id
* fix coreset0 config
* use hard-coded SSB subcarrier offset
2021-11-17 10:28:31 +01:00
Ismael Gomez 7ce71c0e4d nr,sched: propagate offset_rb to PDCCH ctx 2021-11-17 10:28:31 +01:00
Ismael Gomez ebeb46b230 nr,pdcch_dmrs: take into account offset_rb in DMRS mapping 2021-11-17 10:28:31 +01:00
Ismael Gomez 4f65c644f0 sched,nr: copy coreset0_bw to dci struct before calculating grant 2021-11-17 10:28:31 +01:00
Ismael Gomez f699694538 nr,sched: use coreset0_bw when calculating SIB freq domain allocation 2021-11-17 10:28:31 +01:00
Francisco 91f47de3cc nr,gnb,rrc: forward nas pdu from rrc setup complete to ngap for the initial ue message 2021-11-16 19:32:53 +00:00
Francisco a58420a530 nr,gnb,rrc: implement basic NR RRC bearer addition and reconf message sending 2021-11-16 19:32:53 +00:00
Francisco c75a161f03 nr,gnb,rrc: implement DL/UL Information Transfer procedure in RRC 2021-11-16 19:32:53 +00:00
Francisco 716ff982c8 nr,gnb,rrc: add code to derive master cell config bearers from asn1 radio bearer cfg 2021-11-16 19:32:53 +00:00
Francisco 0c733f7ea3 nr,ngap: use const_byte_spans instead of unique_byte_buffers in ngap interface to avoid intermediate copies 2021-11-16 19:32:53 +00: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 7f6abb8d6f gnb,mac: add compile-time parameter to write SIBs to MAC PCAP
set to disabled by default
2021-11-16 17:19:09 +01:00
Francisco 3b3630d444 nr,gnb,rrc: remove redundant code, and update rrc_nr_test to use default rrc nr cfg generator 2021-11-16 17:17:53 +01:00
Francisco b2a4ff1bbb nr,gnb,rrc: add pmax config to SIB1 2021-11-16 17:17:53 +01:00
Francisco 2b68ea322d nr,gnb,rrc: fix uplinkConfigCommon of SIB1 2021-11-16 17:17:53 +01:00
Francisco 84a60da146 nr,gnb,rrc: fix sib1 offsetToPointA derivation 2021-11-16 17:17:53 +01:00
Francisco f705445f21 nr,gnb,rrc: use rrc_nr_cfg to generate sib1 and mib 2021-11-16 17:17:53 +01:00
faluco 86d2eb853c Change the column order for the enb stdout metrics so that rat is first and pci second. 2021-11-16 14:46:51 +01:00
faluco 453a7760b3 Port misc SSN changes to dev. 2021-11-16 14:46:51 +01:00
Andre Puschmann 0ee82ed0f6 ue_dl_nr_file_test: add option to select ue specific search space
* add option to select search space: ue and common1
* print coreset info
2021-11-16 12:57:20 +01:00
Andre Puschmann b687f58ff0 ue,cc_worker: print coreset info in debug mode 2021-11-16 12:57:20 +01:00
Andre Puschmann b7f9dd5d75 phy_common_nr: add helper method to print coreset info to string 2021-11-16 12:57:20 +01:00
Francisco 4aa5fe41df nr,gnb,rrc: add extra fields to RRC setup and RRC setup complete messages. 2021-11-16 09:20:03 +00:00
Francisco 5a3e99fb58 nr,gnb,rrc: fix missing return for mib generation 2021-11-16 00:12:36 +00:00
Francisco 25a8ea53d3 nr,gnb,sched: pass mib config to scheduler so it is used during SSB allocation 2021-11-16 00:12:36 +00:00
Francisco fec97689a2 rrc,nr,gnb: refactored rrc nr cfg default and derived param generation to be mostly independent of parser 2021-11-16 00:12:36 +00:00
Francisco f2a5f00bb3 nr,gnb: fix abs freq ssb arfcn derivation 2021-11-15 15:47:31 +01:00
Francisco 0b8a6970f0 nr,gnb,rrc: fix ssb frequency derivation when coreset0 is active 2021-11-15 15:47:31 +01:00
Francisco 92c4e6e2d0 nr,gnb: account for CORESET#0 RB offset (See 38.213, table 13-1) in computation of SSB center frequency 2021-11-15 15:47:31 +01:00
Pedro Alvarez e68bdf3718 Added support to sending error indication when receiving some S1AP messages in the wrong state 2021-11-15 11:31:01 +00:00
Ismael Gomez 4836e90b2c Move place to apply reference_point_k_rb to dmrs 2021-11-15 09:50:39 +01:00
Andre Puschmann 883ddef4a6 ue_dl_nr_file_test: fix compilation on gcc 4.8 2021-11-15 09:50:39 +01:00
Andre Puschmann 66871b1e8e ue_dl_nr_file_test: disable failing file tests temporarily
they will be enabled again as soon as the decoding issues are solved
2021-11-15 09:50:39 +01:00
Ismael Gomez 798e9b7a5e ue_dl: reference point for DMRS varies for SIB 2021-11-15 09:50:39 +01:00
Ismael Gomez e7c2cea032 Fix data conversion parse in ue_dl_nr_file_test 2021-11-15 09:50:39 +01:00
Andre Puschmann 9c6f9f5949 dci_nr: print coreset0_bw when DCI is scrambled with SI-RNTI 2021-11-15 09:50:39 +01:00
Andre Puschmann d5a00fcdad dci_nr_test: add test for DCI 1_0 with SI-RNTI 2021-11-15 09:50:39 +01:00
Andre Puschmann 573b2f657a ssb_file_test: make duplex and SSB SCS configurable, add new unit test for FDD+15kHz SCS 2021-11-15 09:50:39 +01:00
Andre Puschmann 800933c38e slot_worker: disable baseband dump by default and don't exit after finishing 2021-11-15 09:50:39 +01:00
Andre Puschmann dd34f5b274 ue_dl_nr_file_test: fix coreset0 bandwidth when decoding SI-RNTI 2021-11-15 09:50:39 +01:00
Andre Puschmann 972e080e48 ue_dl_nr_file_test: update SSB/SIB TV
update capture and make sure its rv=0

// Cell 0x01: 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
20:43:31.997 [PHY] DL    - 01 ffff   784.0 PDSCH: harq=si prb=1:7 symb=2:12 CW0: tb_len=84 mod=2 rv_idx=0 cr=0.44
        0000:  74 81 01 70 10 40 04 02  00 00 c8 00 24 68 a0 38  t..p.@......$h.8
        0010:  05 01 00 40 1a 00 00 06  6c 6d 92 21 f3 70 40 20  ...@....lm.!.p@
        0020:  00 00 80 80 00 41 06 80  a0 90 9c 20 08 55 19 40  .....A..... .U.@
        0030:  00 00 33 a1 c6 d9 22 40  10 00 1e b8 94 63 c0 09  ..3..."@.....c..
        0040:  28 c4 1b 8a 36 e1 5b 1c  3a 01 3c 5b 46 14 00 00  (...6.[.:.<[F...
        0050:  00 00 00 00                                       ....
20:43:31.997 [PHY] DL    - 01 ffff   784.0 PDCCH: ss_id=0 cce_index=0 al=4 dci=1_0
	rb_alloc=0x120
	time_domain_rsc=0
	vrb_to_prb_map=0
	mcs=6
	rv_idx=0
	si_indicator=0
	dci_len=39
2021-11-15 09:50:39 +01:00
Andre Puschmann 7a64163aa4 ue_dl_nr_file_test: enable coreset0_idx=6 file test 2021-11-15 09:50:39 +01:00
Andre Puschmann 16b5f4c3db ue_dl_nr_file_test: add further IQ capture with coreset0_idx=6
Cell 0x01: 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
12:58:46.197 [PHY] DL    - 01 ffff   556.0 PDSCH: harq=si prb=1:7 symb=2:12 CW0: tb_len=84 mod=2 rv_idx=2 cr=0.44
        0000:  74 81 01 70 10 40 04 02  00 00 c8 00 24 68 a0 38  t..p.@......$h.8
        0010:  05 01 00 40 1a 00 00 06  6c 6d 92 21 f3 70 40 20  ...@....lm.!.p@
        0020:  00 00 80 80 00 41 06 80  a0 90 9c 20 08 55 19 40  .....A..... .U.@
        0030:  00 00 33 a1 c6 d9 22 40  10 00 1e b8 94 63 c0 09  ..3..."@.....c..
        0040:  28 c4 1b 8a 36 e1 5b 1c  3a 01 3c 5b 46 14 00 00  (...6.[.:.<[F...
        0050:  00 00 00 00                                       ....
12:58:46.197 [PHY] DL    - 01 ffff   556.0 PDCCH: ss_id=0 cce_index=0 al=4 dci=1_0
	rb_alloc=0x120
	time_domain_rsc=0
	vrb_to_prb_map=0
	mcs=6
	rv_idx=2
	si_indicator=0
	dci_len=39
2021-11-15 09:50:39 +01:00
Andre Puschmann d2fc11fbec ue_dl_nr_file_test: add missing parameter to existing file tests 2021-11-15 09:50:39 +01:00
Andre Puschmann 830cbcde08 ue_dl_nr_file_test: add all zero PDSCH check and let test fail in this case 2021-11-15 09:50:39 +01:00
Andre Puschmann 77269c055d ue_dl_nr_file_test: expose ARFCN for center and SSB and use it to derive RB offset 2021-11-15 09:50:39 +01:00