Commit 7dfa4afa authored by Nick Ho's avatar Nick Ho

Start implementing UL_Indication

parent 0e098e12
......@@ -1129,6 +1129,7 @@ set(L2_SRC
set (MAC_SRC
${MAC_DIR}/lte_transport_init.c
${MAC_DIR}/main.c
${MAC_DIR}/IF_Module_nb_iot.c
${MAC_DIR}/ue_procedures.c
${MAC_DIR}/ra_procedures.c
${MAC_DIR}/l1_helpers.c
......
//#include "LAYER2/MAC/defs_nb_iot.h"
#include "LAYER2/MAC/extern.h"
#include "LAYER2/MAC/proto_nb_iot.h"
#include "openair2/PHY_INTERFACE/IF_Module_nb_iot.h"
#include "platform_types.h"
void UL_indication(UL_IND_t UL_INFO, frame_t frame, sub_frame_t subframe, module_id_t module_id)
{
int i=0;
UL_INFO.test=1;
if(UL_INFO.test == 1)
{
for(i=0;i<UL_INFO.UE_NUM;i++)
{
/*For MSG3, Normal Uplink Data, NAK*/
if(UL_INFO.UL_SPEC_Info[i].rntiP)
NB_rx_sdu(UL_INFO.module_id,
UL_INFO.CC_id,
UL_INFO.frame,
UL_INFO.subframe,
UL_INFO.UL_SPEC_Info[i].rntiP,
UL_INFO.UL_SPEC_Info[i].sdu,
UL_INFO.UL_SPEC_Info[i].sdu_lenP,
UL_INFO.UL_SPEC_Info[i].harq_pidP,
UL_INFO.UL_SPEC_Info[i].msg3_flagP
);
}
}
NB_eNB_dlsch_ulsch_scheduler(module_id,0,frame,subframe);
}
#include "LAYER2/MAC/defs-nb.h"
#include "LAYER2/MAC/extern.h"
#include "LAYER2/MAC/proto_nb_iot"
#include "IF_Module-nb.h"
#define Preamble_list 1;
#define ACK_NAK 2;
#define UL_SDU 3;
void UL_indication(UL_IND_t UL_INFO)
{
/*Process Uplink Indication*/
/*if(UL_MSG_flag)
{
switch(UL_MSG_flag)
{
case Preamble_list:
NB_initiate_ra_proc(module_idP,CC_id,frameP,preamble_index,timing_offset,subframeP);
break;
case UL_SDU:
NB_rx_sdu(module_idP,CC_id,frameP,subframeP,rntiP,*sduP,sdu_lenP.harq_pidP,*msg3_flag);
}
} */
}
\ No newline at end of file
......@@ -38,7 +38,7 @@ typedef struct{
//ACK/NAK
boolean_t ACK_INFO;
boolean_t NAK;
}UL_SPEC_t;
......@@ -46,6 +46,8 @@ typedef struct{
typedef struct{
/*Start at the common part*/
int test;
//Module ID
module_id_t module_id;
//CC ID
......@@ -67,7 +69,7 @@ typedef struct{
*Parameters:
*Parameters:
*/
void UL_indication(UL_IND_t UL_info);
void UL_indication(UL_IND_t UL_INFO, frame_t frame, sub_frame_t subframe, module_id_t module_id);
/*Interface for Downlink, transmitting the DLSCH SDU, DCI SDU*/
void Schedule_Response();
......
......@@ -40,12 +40,13 @@ Functions: Add NB_schedule_RA()
Parameters: Add DCI unpacked format in openair1/PHY/LTE_TRANSPORT/defs.h
5/16
Add: openair2/PHY_Interface/IF_module_nb_iot.c
Add: openair2/PHY_Interface/IF_module_nb_iot.h
Add: openaiir2/LAYER2/IF_Module_nb_iot.c
Add: openair2/PHY_Interface/IF_Module_nb_iot.h
Add: openair1/PHY/sched/phy_procedures_lte_eNB_nb_iot.c
Comment: Modify NB_phy_procedures_uespec_RX, change the way using primitive, use UL_IND data structure to store the needed parameters.
Functions: NB_phy_procedures_uespec_RX()
Add the implementation for UL_INDICATION, it handles the Uplink information from PHY, also trigger the scheduler.
Functions: NB_phy_procedures_uespec_RX(), UL_INDICATION()
Parameters: UL_IND for Interface Module
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment