Commit Graph
39 Commits
Author SHA1 Message Date
Thomas Schlichter a9132a2f79 NR UE: in nr_adjust_synch_ue() extend the peak search to +/- cyclic prefix size
esp. for LEO NTN scenarios the timing drifts during initial sync, which is mostly compensated with --ntn-initial-time-drift.
But there might be a residual time offset, and by extending the peak search window we make this more tolerant.
2025-04-10 13:56:20 +00:00
Thomas Schlichter 4039473a70 NR_UE: add PI controller to time sync
this allows to compensate larger continuous time drift in DL (e.g. large Doppler from LEO satellite)
2024-08-23 10:26:18 +02:00
francescomani efeb538490 harmonize usage of frequency range structures 2024-04-23 12:20:42 +02:00
Laurent THOMAS c5e4bea6b9 make explicit return of the clock drift to shift the corresponding number of samples
remove corresponding global variables
2024-03-07 15:28:22 +01:00
francescomani 9d9e6bf17f errors detected by undefined behavior sanitizer 2023-05-29 08:49:52 +02:00
Sakthivel Velumani 9825842e97 Adjust samples in time only when valid PBCH is present 2023-05-22 12:40:51 -04:00
francescomani fab5987754 remove ue mode 2022-12-15 16:00:57 +01:00
Robert Schmidt f54f1fd61d Merge remote-tracking branch 'origin/NR_UE_improve_RA' into integration_2022_wk46 2022-11-17 18:31:45 +01:00
Thomas Schlichter c5e68e146c NR_UE: increase the accuracy of the filtered peak position value 2022-11-03 09:42:57 +01:00
Thomas Schlichter f73fcd94ee NR_UE: fix/add some debugging in nr_adjust_synch_ue.c and nr_dl_channel_estimation.c 2022-11-03 09:41:51 +01:00
francescomani e0cdf278b5 remove init_msg1 and sync_frame from prach structure 2022-10-29 14:02:23 +02:00
Sakthivel Velumani a4c8fe029a Fixing bad memory allocation and initialization
This (sometimes) corrupts PBCH channel estimates leading to false time synchronization of received samples.
2022-04-05 15:28:23 +05:30
Laurent Thomas 4c62aef755 rebase on develop 2022-03-02 11:26:16 +01:00
Laurent THOMAS 53001d0d10 remove-NR_UE_PBCH scope to finish 2022-02-18 09:41:18 +01:00
luis_pereira87 f6c735f560 Revert to timing adjustment based on cyclic prefix and improves it 2022-01-07 18:54:31 +00:00
Thomas Schlichter 209d5f1131 NR_UE: reset max_pos_fil in timing synchronization whenever we add/remove a sample 2021-10-27 17:30:05 +02:00
Thomas Schlichter 2c2ba26553 NR_UE: fix bug in timing adjustment 2021-10-27 17:30:05 +02:00
Sakthivel Velumani 7f5009d7cc fixed SA issues 2021-08-17 17:59:41 +05:30
Thomas Schlichter 942037beb3 5G NR: move CIR peak to 0
The rotation compensating the shifted OFDM position _before_ the channel estimation makes the CIR peak move back to 0.
We have to take this into account on gNB side when calculating the timing advance command, and on UE side in the time adjustment.
2021-04-26 14:58:01 +02:00
Sakthivel Velumani 215f263a69 Making sample offset as cmd line parameter
for gNB its in L1 section of config file
for UE its a cmd line paramenter
2021-04-26 03:09:17 +02:00
Sakthivel Velumani 1991c2f9cd Revert "HACK: cut PUSCH and PDSCH OFDM symbol after complete CP"
This reverts commit 87b53883b2.
2021-04-23 15:42:16 +02:00
Thomas Schlichter 87b53883b2 HACK: cut PUSCH and PDSCH OFDM symbol after complete CP
Currently we cute the PUSCH and PDSCH OFDM symbols starting within the last 1/8th of the CP to avoid ISI.
This time shift leads to a rotation in frequency domain.
The current PRB based channel estimation does not compensate for the rotation _within_ a PRB, leading to bad performance.

This commit should _not_ make it into develop branch, it is just for testing!
Instead, we should do some compensating rotation before channel estimation.
2021-04-21 13:45:22 +02:00
Thomas Schlichter a9bfdb2d6e NR_UE: use 'do_ra' instead of 'mac_enabled' to enable RA procedure 2021-01-22 12:09:04 +01:00
Francesco Mani 29a56fe527 tentative fix for delayed RA procedure at UE 2020-12-04 16:21:45 +01:00
Francesco Mani 8a9e242856 Merge remote-tracking branch 'origin/develop' into NR_FR2_RRC_SSB 2020-11-27 11:33:52 +01:00
Hongzhi Wang ee949c97f4 timing drift fix for FR2 2020-11-23 17:57:24 +01:00
Hongzhi Wang 88a6a92c31 bug fix adjust sync 2020-11-19 15:34:48 +01:00
Thomas Schlichter 47ce347d7e NR UE cleanup: remove current_thread_id array, nr_tti_rx, nr_tti_tx, subframe_rx and subframe_tx 2020-11-13 17:29:02 +01:00
cig ec422f7050 Introduced a delay after a completed sync before starting msg1 generation:
- this was necessary because as soon as the gNB starts, it tries detecting
  the prach preambles and it mesaures the background noise. However, there is
  a delay of several dozens of frames before it considers the preables as
  detected.
- the solution at the UE consists in avoiding sending preamble as soon as the
  UE syncs by introducing an offset, this keeps the power measurements low at
  gNB side as long as the preamble detection counter is under threshold
2020-04-14 14:28:01 +02:00
Francesco Mani 3dc9ad0567 Merge branch 'develop' into NR_RRC_PRACH_procedures 2020-04-14 14:17:34 +02:00
Robert Schmidt ffc4f464f5 Remove useless mac_proto.h include
When a header is changed, all including files need to be recompiled,
too. Thus, including a header needlessly all over the place drives
compile times up without any reason.
2020-04-01 08:49:26 +02:00
cig 6982e6f443 Code cleanup and formatting 2020-03-26 18:54:58 +01:00
Hongzhi Wang 2bfec87cb8 using ssb for time tracking 2019-10-18 10:44:02 +02:00
Florian Kaltenberger 6db55b2f24 - UE channel estimation no longer done in slot_fep. Also created dedicated memory for channel estimates of different channels
- using nr_extract_dci_info instead of nr_generate_ue_ul_dlsch_params_from_dci as in phy_procedures_nr_ue. The latter was only a (poor) wrapper and not doing what the name suggests. also with FAPI things have to be done differently now. This will come in a next commit.
- other minor changes to remove warning
prepreatory changes
2019-04-03 11:40:26 +02:00
laurent d9c68d8b30 new thread model 2019-03-21 14:15:26 +01:00
Hongzhi 08f90879df pdcch and pdsch fix in phy_scope 2018-12-13 10:13:03 +01:00
Florian Kaltenberger 718417aaa1 fixing bug in adjust_sync, log cleanup 2018-12-04 08:58:30 +01:00
Hongzhi fbf0a42c9f ue fix thread id 2018-11-23 10:04:32 +01:00
hongzhi wang 4a218386fd add missing file for adjust synch 2018-11-20 16:10:12 +01:00