Commit Graph
11292 Commits
Author SHA1 Message Date
Ahmed Hussein 53e6a5223c Minor Fixes in ulsim 2019-08-23 16:08:57 +02:00
Ahmed Hussein f398e4999b Set start_rb to 0
- start_rb was set to 30, and nb_rb was set to 50 with NB_RB_DL = 106.
- When the DC subcarrier is included in the RB allocation,
  this causes errors in FFT/IFFT operations arounf the DC subcarrier
- This leads to errors in unscrambling and decoding
2019-08-23 16:08:57 +02:00
Ahmed Hussein 2660f4ea4f Added frame loop to ulsim 2019-08-23 16:08:57 +02:00
Ahmed Hussein 0e78faa744 TBS fix at UE side + minor restructuring in "phy_procedures_nrUE_TX"
- TBS calculation was performed 2 times. Once in "phy_procedures_nrUE_TX" and
  another in "nr_ue_ulsch_procedures". The TBS calculation was wrong in "phy_procedures_nrUE_TX"
  and correct in "nr_ue_ulsch_procedures".

- The data generation was performed in "phy_procedures_nrUE_TX" with a wrongly
  calculated TBS because "ulsch_ue->nb_re_dmrs" wasn't set to a value, so the calculated
  TBS would be more than it should be. This doesn't create a problem in the test because
  the comparison between the TX and RX data is made using the correctly calculated TBS
  which is smaller.

- Solution was to perform data generation in "nr_ue_ulsch_procedures", and remove TBS calculation
  in "phy_procedures_nrUE_TX"
2019-08-23 16:08:57 +02:00
Ahmed Hussein 294e425645 Minor fixes and edits in ulsch_decoding 2019-08-23 16:08:57 +02:00
Khalid Ahmed 1d35890259 Add macro to print CRC OK at gNB PUSCH 2019-08-23 16:08:57 +02:00
Khalid Ahmed c4ae0b0691 Fixing TDD mode using USRP x300 2019-08-23 16:08:57 +02:00
Khalid Ahmed bb2efbe42c optimizing nr_ue_ulsch_procedures 2019-08-23 16:08:57 +02:00
Ahmed Hussein 779e8996e3 Minor fixes
- removing "Nsymb_pusch" and "Nsc_pusch" from "NR_UE_ULSCH_t"
- using "number_of_symbols" from "NR_UL_UE_HARQ_t" instead
- removing "generate_ue_ulsch_params"
2019-08-23 16:08:57 +02:00
Khalid Ahmed fc2bbeef69 Adding VCD liberaries to nr-softmodem/nr-uesoftmodem 2019-08-23 16:08:56 +02:00
Khalid Ahmed 69abec3df1 Fix ulsim and PUSCH in rf-simulator
- initialize PUSCH parameters properly
2019-08-23 16:08:56 +02:00
Thomas Schlichter 34899cd404 fix compilation of phy simulators introduced from the usage of get_band() 2019-08-23 16:08:56 +02:00
Khalid Ahmed 9148716641 TDD fixes in real-time environment 2019-08-23 16:08:56 +02:00
Khalid Ahmed d12a824433 TDD in rfsimulator 2019-08-23 16:08:56 +02:00
Khalid Ahmed 2b94608329 handle tx_offset with negative value 2019-08-23 16:08:56 +02:00
Khalid Ahmed 35b85d456c fixing a memory leak in nr_ue_ulsch_procedures 2019-08-23 16:08:56 +02:00
Khalid Ahmed f9b583e06e PUSCH running with rfsimulator 2019-08-23 16:08:56 +02:00
Thomas Schlichter 4541922258 fix crashes in nr_ulsch_decoding
- initialize p_decParams->Z from harq_process not only in round 0
- do not set opp_enabled=1, this crashes in LDPC encoder
2019-08-23 16:08:56 +02:00
Thomas Schlichter f51796180d fix gNB linker error and various warnings 2019-08-23 16:08:56 +02:00
Ahmed Hussein abfd072376 channel estimation, compensation, etc ..
Added the following folder:
- ../openair1/PHY/NR_ESTIMATION/

Added the following file to CMakelists.txt:
- ../openair1/PHY/NR_ESTIMATION/nr_ul_channel_estimation.c

Added the following functions:
- nr_pusch_dmrs_rx
- nr_gold_pusch
- nr_ulsch_channel_level
- nr_ulsch_channel_compensation
- nr_ulsch_scale_channel is commented out (I think only used for downlink)

Changes from Khalid Ahmed Mahmoud Mohamed:
- nr_pusch_channel_estimation is used
- nr_ulsch_scale_channel is used
- nr_ulsch_channel_level is used
- nr_ulsch_channel_compensation is used
- multiple logging options for channel and signal magnitude
2019-08-23 16:08:56 +02:00
Ahmed Hussein 9d27079f05 adding PUSCH procedures to gNB side in RT with some logs
- removed gNB RT from "ru_procedures.c" to "nr_ru_procedures"
- added a new thread "nr_feprx_thread"
- added some functionalities for fep for rx in "nr_ru_procedures.c"
2019-08-23 16:08:56 +02:00
Khalid Ahmed 978f683eca using LOG_I instead of LOG_D in RT PUSCH UE side 2019-08-23 16:08:56 +02:00
Khalid Ahmed 9d4f5b4de7 Adding Frame tx to LOG_D for debugging 2019-08-23 16:08:56 +02:00
Khalid Ahmed 8effb52c84 Restrict UL transmission to NR_UPLINK_SLOT 2019-08-23 16:08:56 +02:00
Thomas Schlichter ece26036e6 Consolidate header files for nr_phy_scope 2019-08-23 16:08:56 +02:00
Khalid Ahmed 705f2c1e42 enabling PUSCH UE side in RT 2019-08-23 16:08:56 +02:00
Florian Kaltenberger 26f1e090c5 fixing a bug in the allocation of the UE HARQ structures that was causing a segfault. Fixing some compiler warnings 2019-08-23 14:06:46 +02:00
Florian Kaltenberger ca1759b9e3 Merge branch '441-problems-transmitting-data-via-nr-pdsch' into 'develop-nr'
Resolve "Problems transmitting data via NR-PDSCH"

See merge request oai/openairinterface5g!658
2019-08-23 14:02:52 +02:00
Florian Kaltenberger f2f8d47384 hotfix: replacing msg with printf in unitary simulators (msg(...) was replaced with LOG_D(PHY,...) but it was used before log was initialized) 2019-08-20 09:13:02 +02:00
Raphael Defosseux 2ec61ea77e CI: fixing CI test flexran ctrl + basic simulator
Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr>
2019-08-20 16:43:23 +02:00
Raphael Defosseux e4632f204b CI: dummy commit to re-run CI job
Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr>
2019-07-26 15:37:55 +02:00
Ahmed Hussein e12c1ccc70 Adding PDCCH OK 2019-08-13 17:40:59 +02:00
Ahmed Hussein aca390e63f Fixed repeating CRC NOK for 7 times, as well as CRC NOK occuring a lot more than CRC OK
- changed Mdlharq to Mlimit when comparing with the round number
- Not incrementing the HARQ round in case of err_flag = 1, until HARQ is implemented
- Changed MAX_LDPC_ITERATIONS to 5 from 4 (provided better performance)
2019-08-13 17:40:59 +02:00
Ahmed Hussein 37015999e5 DL bug fixes
- Setting the payload to random data instead of all zeros at the Tx side

- Handling "nb_symb_sch" equal to 0 in "phy_procedures_nrUE_RX" which prevents
  entering "nr_ue_pdsch_procedures"

- Handling symbol loop problem in "nr_ue_pdsch_procedures"

- Handling resource block loop problem in "nr_rx_pdsch"
2019-08-13 17:37:42 +02:00
Florian Kaltenberger 6197de2373 Merge branch 'develop-nr-merge' into 'develop-nr'
Develop nr merge

See merge request oai/openairinterface5g!588
2019-08-13 15:46:39 +02:00
Cedric Roux de8e225797 bugfix: do not use memory on the stack in do_SIB1_MBMS, allocate it with malloc 2019-08-13 12:10:39 +02:00
Florian Kaltenberger 283207cdf2 Merge branch 'develop-nr-merge' of https://gitlab.eurecom.fr/oai/openairinterface5g into develop-nr-merge 2019-08-12 23:48:35 +02:00
Florian Kaltenberger 469afa4bb6 removing #ifdef XFORMS from nr-uesoftmodem.c 2019-08-12 23:47:51 +02:00
Cedric Roux 75778a76c2 bugfix: do not use memory on the stack in do_SIB1, allocate it with malloc 2019-08-12 16:57:19 +02:00
Florian Kaltenberger dcb0b5a452 Merge branch 'usrp_ref_locked' into 'develop-nr'
Usrp ref locked

See merge request oai/openairinterface5g!657
2019-08-12 11:23:00 +02:00
Florian Kaltenberger 1927e34312 Merge remote-tracking branch 'origin/develop-nr' into develop-nr-merge 2019-08-11 18:03:31 +02:00
Cedric Roux 2368c9096a Merge branch 'develop-nr-merge' of https://gitlab.eurecom.fr/oai/openairinterface5g into develop-nr-merge 2019-08-09 15:59:41 +02:00
Cedric Roux 7967701de1 lte-softmodem: fix if4p5 (maybe incorrect)
For whatever reason, ru->frame_parms was NULL and the RRU crashed.
Let's allocated memory.

Also, don't do fp = ru->frame_parms in ru_thread, it seems that it
takes the value before allocation (so: NULL) and the code crashes
later on.

Maybe it's not the correct solution. To be refined at some point.
2019-08-09 15:57:25 +02:00
Florian Kaltenberger 58eae03b48 1. NR RU was using wrong config file descriptor. It should be the same as for the LTE RU and we should remove the NR RU config file descriptor (todo)
2. NR RU was calling feptx_prec from LTE RU procedures, which it should not. In the older versions this function didn't do anything anyway as there was a check on num_eNB, which is 0 for gNB. Now NR RU is not calling this function at all, but we have to write such a function for NR RU (todo)
2019-08-09 15:31:54 +02:00
yilmazt 98757d7693 Merge branch 'develop-nr-merge' of https://gitlab.eurecom.fr/oai/openairinterface5g into develop-nr-merge 2019-08-08 17:44:58 +02:00
yilmazt 7bb5320716 develop-nr up-to-date as of 8.8.19 2019-08-08 17:44:19 +02:00
Cedric Roux 5265ea3135 fix some more valgrind errors 2019-08-08 17:14:07 +02:00
Cedric Roux 1737fdf3fa fix some valgrind issues 2019-08-08 17:09:29 +02:00
Florian Kaltenberger afc5020cca Merge branch 'integration_develop-nr_2019w32' into 'develop-nr'
Integration develop nr 2019w32

See merge request oai/openairinterface5g!656
2019-08-07 21:41:54 +02:00
Florian Kaltenberger ce74dd3e95 adding checking of external clock reference to usrp_lib.cpp 2019-08-07 17:41:16 +02:00