From 099b0eb1eaaa2c2c922de62e54d82c593086e8ab Mon Sep 17 00:00:00 2001 From: ismagom Date: Sat, 8 Aug 2015 13:33:45 +0200 Subject: [PATCH] Set preamble to 0.35ms --- matlab/tests/pusch_decode_test.m | 8 ++++---- matlab/tests/pusch_test.m | 8 ++++---- srsapps/radio/include/srsapps/radio/radio_uhd.h | 2 +- srsapps/radio/src/radio_uhd.cc | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/matlab/tests/pusch_decode_test.m b/matlab/tests/pusch_decode_test.m index 908dfe280..345e1f967 100644 --- a/matlab/tests/pusch_decode_test.m +++ b/matlab/tests/pusch_decode_test.m @@ -1,8 +1,8 @@ -ueConfig=struct('NCellID',1,'NULRB',25,'NSubframe',8,'RNTI',85,'CyclicPrefixUL','Normal','NTxAnts',1,'Shortened',0); -puschConfig=struct('NTurboDecIts',5,'NLayers',1,'OrthCover','Off','PRBSet',[23 24]','Modulation','16QAM','RV',0); +ueConfig=struct('NCellID',1,'NULRB',25,'NSubframe',2,'RNTI',62,'CyclicPrefixUL','Normal','NTxAnts',1,'Shortened',0); +puschConfig=struct('NTurboDecIts',5,'NLayers',1,'OrthCover','Off','PRBSet',(0:24)','Modulation','16QAM','RV',3); -TBS=696; -cfo=0; +TBS=9144; +cfo=1000; %t0=1; %x=[rx(t0:end); zeros(t0-1,1)]; diff --git a/matlab/tests/pusch_test.m b/matlab/tests/pusch_test.m index f3495407b..75ab5d81d 100644 --- a/matlab/tests/pusch_test.m +++ b/matlab/tests/pusch_test.m @@ -1,14 +1,14 @@ -ueConfig=struct('NCellID',1,'NULRB',25,'RNTI',84,'CyclicPrefixUL','Normal','NTxAnts',1,'Shortened',0); -puschConfig=struct('NLayers',1,'OrthCover','Off','PRBSet',[23 24]','Shortened',0); +ueConfig=struct('NCellID',1,'NULRB',25,'RNTI',64,'CyclicPrefixUL','Normal','NTxAnts',1,'Shortened',0); +puschConfig=struct('NLayers',1,'OrthCover','Off','PRBSet',(0:23)','Shortened',0); addpath('../../build/srslte/lib/phch/test') -TBs=696; +TBs=9144; cqilen=0; rvs=0; mods={'16QAM'}; betas=0; -subf=2; +subf=5; for i=1:length(TBs) for m=1:length(mods) diff --git a/srsapps/radio/include/srsapps/radio/radio_uhd.h b/srsapps/radio/include/srsapps/radio/radio_uhd.h index c8be0aabb..9de56eb36 100644 --- a/srsapps/radio/include/srsapps/radio/radio_uhd.h +++ b/srsapps/radio/include/srsapps/radio/radio_uhd.h @@ -81,7 +81,7 @@ namespace srslte { void *uhd; static const double lo_offset = 8e6; // LO offset (in Hz) - static const double burst_settle_time = 0.4e-3; // Start of burst settle time (off->on RF transition time) + static const double burst_settle_time = 0.35e-3; // Start of burst settle time (off->on RF transition time) const static uint32_t burst_settle_max_samples = 30720000; // 30.72 MHz is maximum frequency srslte_timestamp_t end_of_burst_time; diff --git a/srsapps/radio/src/radio_uhd.cc b/srsapps/radio/src/radio_uhd.cc index 2afe32711..58b621eea 100644 --- a/srsapps/radio/src/radio_uhd.cc +++ b/srsapps/radio/src/radio_uhd.cc @@ -119,7 +119,7 @@ bool radio_uhd::tx(void* buffer, uint32_t nof_samples, srslte_timestamp_t tx_tim bool radio_uhd::tx_end() { save_trace(2, &end_of_burst_time); - cuhd_send_timed2(uhd, zeros, 10, end_of_burst_time.full_secs, end_of_burst_time.frac_secs, false, true); + cuhd_send_timed2(uhd, zeros, 0, end_of_burst_time.full_secs, end_of_burst_time.frac_secs, false, true); is_start_of_burst = true; }