From 3c48f728c2426c252bf6e458f05552611e05088c Mon Sep 17 00:00:00 2001 From: ismagom Date: Tue, 26 May 2015 16:20:01 +0200 Subject: [PATCH 1/2] Fixed pdsch_enodeb example with wrong UE C-RNTI --- srslte/examples/pdsch_enodeb.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/srslte/examples/pdsch_enodeb.c b/srslte/examples/pdsch_enodeb.c index 80a37211b..767b10f32 100644 --- a/srslte/examples/pdsch_enodeb.c +++ b/srslte/examples/pdsch_enodeb.c @@ -36,6 +36,10 @@ #include "srslte/srslte.h" + +#define UE_CRNTI 0x1234 + + #ifndef DISABLE_UHD #include "srslte/cuhd/cuhd.h" void *uhd; @@ -81,7 +85,6 @@ srslte_softbuffer_tx_t softbuffer; srslte_regs_t regs; srslte_ra_dl_dci_t ra_dl; - cf_t *sf_buffer = NULL, *output_buffer = NULL; int sf_n_re, sf_n_samples; @@ -254,7 +257,7 @@ void base_init() { exit(-1); } - srslte_pdsch_set_rnti(&pdsch, 4660); + srslte_pdsch_set_rnti(&pdsch, UE_CRNTI); if (srslte_softbuffer_tx_init(&softbuffer, cell)) { fprintf(stderr, "Error initiating soft buffer\n"); @@ -512,7 +515,7 @@ int main(int argc, char **argv) { /* Initiate valid DCI locations */ for (i=0;i Date: Tue, 26 May 2015 16:24:17 +0200 Subject: [PATCH 2/2] Fixed pdsch_enodeb example with wrong UE C-RNTI --- srslte/examples/pdsch_enodeb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srslte/examples/pdsch_enodeb.c b/srslte/examples/pdsch_enodeb.c index 767b10f32..759e2b280 100644 --- a/srslte/examples/pdsch_enodeb.c +++ b/srslte/examples/pdsch_enodeb.c @@ -55,7 +55,7 @@ char *output_file_name = NULL; #define DOWN_KEY 66 srslte_cell_t cell = { - 6, // nof_prb + 25, // nof_prb 1, // nof_ports 0, // bw idx 0, // cell_id @@ -471,7 +471,7 @@ int main(int argc, char **argv) { cell.phich_resources = SRSLTE_PHICH_R_1; sfn = 0; - prbset_num = (int) ceilf((float) cell.nof_prb / srslte_ra_type0_P(cell.nof_prb)); + prbset_num = (int) ceilf((float) cell.nof_prb / srslte_ra_type0_P(cell.nof_prb))/5; last_prbset_num = prbset_num; /* this *must* be called after setting slot_len_* */