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
7dfa4afa
Commit
7dfa4afa
authored
May 17, 2017
by
Nick Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start implementing UL_Indication
parent
0e098e12
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
35 deletions
+44
-35
cmake_targets/CMakeLists.txt
cmake_targets/CMakeLists.txt
+1
-0
openair2/LAYER2/MAC/IF_Module_nb_iot.c
openair2/LAYER2/MAC/IF_Module_nb_iot.c
+35
-0
openair2/PHY_INTERFACE/IF_Module_nb_iot.c
openair2/PHY_INTERFACE/IF_Module_nb_iot.c
+0
-30
openair2/PHY_INTERFACE/IF_Module_nb_iot.h
openair2/PHY_INTERFACE/IF_Module_nb_iot.h
+4
-2
record.txt
record.txt
+4
-3
No files found.
cmake_targets/CMakeLists.txt
View file @
7dfa4afa
...
...
@@ -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
...
...
openair2/LAYER2/MAC/IF_Module_nb_iot.c
0 → 100644
View file @
7dfa4afa
//#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
);
}
openair2/PHY_INTERFACE/IF_Module_nb_iot.c
deleted
100644 → 0
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
View file @
7dfa4afa
...
...
@@ -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
();
...
...
record.txt
View file @
7dfa4afa
...
...
@@ -40,12 +40,13 @@ Functions: Add NB_schedule_RA()
Parameters: Add DCI unpacked format in openair1/PHY/LTE_TRANSPORT/defs.h
5/16
Add: openai
r2/PHY_Interface/IF_m
odule_nb_iot.c
Add: openair2/PHY_Interface/IF_
m
odule_nb_iot.h
Add: openai
ir2/LAYER2/IF_M
odule_nb_iot.c
Add: openair2/PHY_Interface/IF_
M
odule_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
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