From d74f2da9a8722fcc0f642b507caed4a5f375eae1 Mon Sep 17 00:00:00 2001
From: nepes <valecha@eurecom.fr>
Date: Mon, 25 Feb 2019 17:54:44 +0100
Subject: [PATCH] changes to configuration file for eMTC (pucch parameters)

---
 openair1/PHY/LTE_TRANSPORT/pucch.c                          | 2 +-
 openair1/SCHED/phy_procedures_lte_eNb.c                     | 2 +-
 openair2/LAYER2/MAC/eNB_scheduler_RA.c                      | 2 +-
 .../GENERIC-LTE-EPC/CONF/enb.band13.tm1.50PRB.emtc.conf     | 6 +++---
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/openair1/PHY/LTE_TRANSPORT/pucch.c b/openair1/PHY/LTE_TRANSPORT/pucch.c
index 48d35e5304..c3ffcfc016 100644
--- a/openair1/PHY/LTE_TRANSPORT/pucch.c
+++ b/openair1/PHY/LTE_TRANSPORT/pucch.c
@@ -978,7 +978,7 @@ uint32_t rx_pucch(PHY_VARS_eNB *eNB,
   m = (n1_pucch < thres) ? NRB2 : (((n1_pucch-thres)/(12*c/deltaPUCCH_Shift))+NRB2+((deltaPUCCH_Shift*Ncs1_div_deltaPUCCH_Shift)>>3)+rem);
 
 #ifdef DEBUG_PUCCH_RX
-  printf("[eNB] PUCCH: m %d\n",m);
+  printf("[eNB] PUCCH: m %d, thres %d, NRB2 %d\n",m,thres,NRB2);
 #endif
   nsymb = N_UL_symb<<1;
 
diff --git a/openair1/SCHED/phy_procedures_lte_eNb.c b/openair1/SCHED/phy_procedures_lte_eNb.c
index 099216048c..e3dc7d3f45 100644
--- a/openair1/SCHED/phy_procedures_lte_eNb.c
+++ b/openair1/SCHED/phy_procedures_lte_eNb.c
@@ -789,7 +789,7 @@ void uci_procedures(PHY_VARS_eNB *eNB,L1_rxtx_proc_t *proc)
                                ,uci->ue_type
 #endif
                                );
-
+          //dump_ulsch(eNB,frame,subframe,0,0); exit(-1);
 	  
 	  
 	  /* cancel SR detection if reception on n1_pucch0 is better than on SR PUCCH resource index, otherwise send it up to MAC */
diff --git a/openair2/LAYER2/MAC/eNB_scheduler_RA.c b/openair2/LAYER2/MAC/eNB_scheduler_RA.c
index 35fdca5877..3ba600f864 100644
--- a/openair2/LAYER2/MAC/eNB_scheduler_RA.c
+++ b/openair2/LAYER2/MAC/eNB_scheduler_RA.c
@@ -1351,7 +1351,7 @@ check_Msg4_retransmission(module_id_t module_idP, int CC_idP,
 	    }			// Msg4 frame/subframe
 	}			// regular LTE case
     } else {
-	LOG_D(MAC,
+	LOG_I(MAC,
 	      "[eNB %d][RAPROC] CC_id %d Frame %d, subframeP %d : Msg4 acknowledged\n",
 	      module_idP, CC_idP, frameP, subframeP);
 	ra->state = IDLE;
diff --git a/targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band13.tm1.50PRB.emtc.conf b/targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band13.tm1.50PRB.emtc.conf
index d33a9dc41f..2a1a80e8b0 100644
--- a/targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band13.tm1.50PRB.emtc.conf
+++ b/targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band13.tm1.50PRB.emtc.conf
@@ -48,9 +48,9 @@ eNBs =
       prach_zero_correlation                    = 1;
       prach_freq_offset                         = 1;
       pucch_delta_shift                         = 1;
-      pucch_nRB_CQI                             = 1;
+      pucch_nRB_CQI                             = 0;
       pucch_nCS_AN                              = 0;    
-      pucch_n1_AN                               = 32;
+      pucch_n1_AN                               = 0;
       pdsch_referenceSignalPower                = -27;
       pdsch_p_b                                 = 0;
       pusch_n_SB                                = 1;
@@ -262,7 +262,7 @@ eNBs =
           n1PUCCH_AN_InfoList_r13 = 
           (
               {
-                  pucch_info_value = 0;
+                  pucch_info_value = 33;
               }
           );
           
-- 
2.26.2