From 114ac4d1bb7d802bd95746699e3578aa60b9217b Mon Sep 17 00:00:00 2001 From: Bartosz Podrygajlo Date: Mon, 5 May 2025 15:18:49 +0200 Subject: [PATCH] Add metadata to UE time domain samples scope Also fix the unintentional one symbol time delay. --- executables/nr-ue.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/executables/nr-ue.c b/executables/nr-ue.c index 1939c4175b..0a40edf659 100644 --- a/executables/nr-ue.c +++ b/executables/nr-ue.c @@ -1138,7 +1138,8 @@ void *UE_thread(void *arg) const int readBlockSize = get_readBlockSize(slot_nr, fp) - iq_shift_to_apply; openair0_timestamp rx_timestamp; int tmp = UE->rfdevice.trx_read_func(&UE->rfdevice, &rx_timestamp, rxp, readBlockSize, fp->nb_antennas_rx); - UEscopeCopy(UE, ueTimeDomainSamples, rxp[0], sizeof(c16_t), 1, readBlockSize, 0); + metadata meta = {.slot = curMsg.proc.nr_slot_rx, .frame = curMsg.proc.frame_rx}; + UEscopeCopyWithMetadata(UE, ueTimeDomainSamples, rxp[0] - firstSymSamp * sizeof(c16_t), sizeof(c16_t), 1, readBlockSize, 0, &meta); AssertFatal(readBlockSize == tmp, ""); if(slot_nr == (nb_slot_frame - 1)) {