Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
canghaiwuhen
OpenXG-RAN
Commits
0e098e12
Commit
0e098e12
authored
May 17, 2017
by
Nick Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add IF_module structure and modify the PHY recieving data
parent
0bb24834
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
818 additions
and
1 deletion
+818
-1
cmake_targets/CMakeLists.txt
cmake_targets/CMakeLists.txt
+1
-0
openair1/SCHED/phy_procedures_lte_eNb_nb_iot.c
openair1/SCHED/phy_procedures_lte_eNb_nb_iot.c
+700
-0
openair2/PHY_INTERFACE/IF_Module_nb_iot.c
openair2/PHY_INTERFACE/IF_Module_nb_iot.c
+30
-0
openair2/PHY_INTERFACE/IF_Module_nb_iot.h
openair2/PHY_INTERFACE/IF_Module_nb_iot.h
+76
-0
record.txt
record.txt
+11
-1
No files found.
cmake_targets/CMakeLists.txt
View file @
0e098e12
...
...
@@ -956,6 +956,7 @@ add_library(SECU_CN ${SECU_CN_SRC})
################################"
set
(
SCHED_SRC
${
OPENAIR1_DIR
}
/SCHED/phy_procedures_lte_eNb.c
${
OPENAIR1_DIR
}
/SCHED/phy_procedures_lte_eNb_nb_iot.c
${
OPENAIR1_DIR
}
/SCHED/phy_procedures_lte_ue.c
${
OPENAIR1_DIR
}
/SCHED/phy_procedures_lte_common.c
${
OPENAIR1_DIR
}
/SCHED/phy_mac_stub.c
...
...
openair1/SCHED/phy_procedures_lte_eNb_nb_iot.c
0 → 100644
View file @
0e098e12
This diff is collapsed.
Click to expand it.
openair2/PHY_INTERFACE/IF_Module_nb_iot.c
0 → 100644
View file @
0e098e12
#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
openair2/PHY_INTERFACE/IF_Module_nb_iot.h
0 → 100644
View file @
0e098e12
/*This is the interface module between PHY
* this will trigger the corresponding function in MAC or PHY layer according to the type of the message
*
*
*
*/
#include "platform_types.h"
#define NUMBER_OF_UE_MAX 20
typedef
struct
{
//flag to show which message is
uint8_t
UL_MSG_flag
;
//preamble part
//index of the preamble
uint16_t
preamble_index
;
//timing offset by PHY
int16_t
timing_offset
;
//ULSCH SDU part
//rnti
rnti_t
rntiP
;
//Pointer to sdu
uint8_t
*
sdu
;
//Pointer to sdu length
uint16_t
sdu_lenP
;
//HARQ ID
int
harq_pidP
;
//MSG3 flag
uint8_t
*
msg3_flagP
;
//ACK/NAK
boolean_t
ACK_INFO
;
}
UL_SPEC_t
;
//UL_IND
typedef
struct
{
/*Start at the common part*/
//Module ID
module_id_t
module_id
;
//CC ID
int
CC_id
;
//frame
frame_t
frame
;
//subframe
sub_frame_t
subframe
;
//Number of availble UE
int
UE_NUM
;
/*UE specific part*/
UL_SPEC_t
UL_SPEC_Info
[
NUMBER_OF_UE_MAX
];
}
UL_IND_t
;
/*Interface for uplink, transmitting the Preamble(list), ULSCH SDU, ACK/NACK, Tick (trigger scheduler)
*Parameters:
*Parameters:
*/
void
UL_indication
(
UL_IND_t
UL_info
);
/*Interface for Downlink, transmitting the DLSCH SDU, DCI SDU*/
void
Schedule_Response
();
/*Interface for Configuration*/
void
Config_Request
();
record.txt
View file @
0e098e12
...
...
@@ -37,5 +37,15 @@ modified: openair2/LAYER2/MAC/proto_nb_iot.h
comment:
Functions: Add NB_schedule_RA()
Data Structure: Add DCI Upacked format in openair1/PHY/LTE_TRANSPORT/defs.h
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: 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()
Parameters: UL_IND for Interface Module
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment