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
wangjie
OpenXG-RAN
Commits
2ccbef43
Commit
2ccbef43
authored
Jun 16, 2017
by
Nick Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the compilation option NB_IOT
parent
711a4fb9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
10 deletions
+18
-10
cmake_targets/CMakeLists.txt
cmake_targets/CMakeLists.txt
+6
-0
openair2/LAYER2/MAC/extern.h
openair2/LAYER2/MAC/extern.h
+5
-4
openair2/LAYER2/MAC/vars.h
openair2/LAYER2/MAC/vars.h
+2
-3
targets/RT/USER/lte-softmodem.c
targets/RT/USER/lte-softmodem.c
+5
-3
No files found.
cmake_targets/CMakeLists.txt
View file @
2ccbef43
...
@@ -567,6 +567,12 @@ add_boolean_option(MESSAGE_CHART_GENERATOR_PHY False "trace some PHY exchang
...
@@ -567,6 +567,12 @@ add_boolean_option(MESSAGE_CHART_GENERATOR_PHY False "trace some PHY exchang
add_boolean_option
(
FLEXRAN_AGENT_SB_IF False
"enable FlexRAN agent to inteface with a SDN controller"
)
add_boolean_option
(
FLEXRAN_AGENT_SB_IF False
"enable FlexRAN agent to inteface with a SDN controller"
)
################################################################
# NB-IOT
################################################################
add_boolean_option
(
NB_IOT True
"Enabling NB-IoT code"
)
########################
########################
# Include order
# Include order
##########################
##########################
...
...
openair2/LAYER2/MAC/extern.h
View file @
2ccbef43
...
@@ -38,7 +38,6 @@
...
@@ -38,7 +38,6 @@
#endif //USER_MODE
#endif //USER_MODE
#include "PHY/defs.h"
#include "PHY/defs.h"
#include "defs.h"
#include "defs.h"
#include "defs_nb_iot.h"
#include "COMMON/mac_rrc_primitives.h"
#include "COMMON/mac_rrc_primitives.h"
#ifdef PHY_EMUL
#ifdef PHY_EMUL
//#include "SIMULATION/simulation_defs.h"
//#include "SIMULATION/simulation_defs.h"
...
@@ -46,9 +45,13 @@
...
@@ -46,9 +45,13 @@
#include "PHY_INTERFACE/defs.h"
#include "PHY_INTERFACE/defs.h"
#include "RRC/LITE/defs.h"
#include "RRC/LITE/defs.h"
//NB-IoT
#ifdef NB_IOT
#include "defs_nb_iot.h"
//NB-IoT
extern
IF_Module_t
*
if_inst
;
extern
IF_Module_t
*
if_inst
;
extern
eNB_MAC_INST_NB
*
eNB_mac_inst_NB
;
#endif
extern
const
uint32_t
BSR_TABLE
[
BSR_TABLE_SIZE
];
extern
const
uint32_t
BSR_TABLE
[
BSR_TABLE_SIZE
];
//extern uint32_t EBSR_Level[63];
//extern uint32_t EBSR_Level[63];
...
@@ -69,8 +72,6 @@ extern UE_MAC_INST *ue_mac_inst;
...
@@ -69,8 +72,6 @@ extern UE_MAC_INST *ue_mac_inst;
extern
MAC_RLC_XFACE
*
Mac_rlc_xface
;
extern
MAC_RLC_XFACE
*
Mac_rlc_xface
;
extern
uint8_t
Is_rrc_registered
;
extern
uint8_t
Is_rrc_registered
;
//NB-IoT
extern
eNB_MAC_INST_NB
*
eNB_mac_inst_NB
;
extern
eNB_ULSCH_INFO
eNB_ulsch_info
[
NUMBER_OF_eNB_MAX
][
MAX_NUM_CCs
][
NUMBER_OF_UE_MAX
];
// eNBxUE = 8x8
extern
eNB_ULSCH_INFO
eNB_ulsch_info
[
NUMBER_OF_eNB_MAX
][
MAX_NUM_CCs
][
NUMBER_OF_UE_MAX
];
// eNBxUE = 8x8
extern
eNB_DLSCH_INFO
eNB_dlsch_info
[
NUMBER_OF_eNB_MAX
][
MAX_NUM_CCs
][
NUMBER_OF_UE_MAX
];
// eNBxUE = 8x8
extern
eNB_DLSCH_INFO
eNB_dlsch_info
[
NUMBER_OF_eNB_MAX
][
MAX_NUM_CCs
][
NUMBER_OF_UE_MAX
];
// eNBxUE = 8x8
...
...
openair2/LAYER2/MAC/vars.h
View file @
2ccbef43
...
@@ -41,9 +41,11 @@
...
@@ -41,9 +41,11 @@
#include "PHY_INTERFACE/defs.h"
#include "PHY_INTERFACE/defs.h"
#include "COMMON/mac_rrc_primitives.h"
#include "COMMON/mac_rrc_primitives.h"
#ifdef NB_IOT
//NB-IoT
//NB-IoT
eNB_MAC_INST_NB
*
eNB_mac_inst_NB
;
eNB_MAC_INST_NB
*
eNB_mac_inst_NB
;
IF_Module_t
*
if_inst
;
IF_Module_t
*
if_inst
;
#endif
const
uint32_t
BSR_TABLE
[
BSR_TABLE_SIZE
]
=
{
0
,
10
,
12
,
14
,
17
,
19
,
22
,
26
,
31
,
36
,
42
,
49
,
57
,
67
,
78
,
91
,
const
uint32_t
BSR_TABLE
[
BSR_TABLE_SIZE
]
=
{
0
,
10
,
12
,
14
,
17
,
19
,
22
,
26
,
31
,
36
,
42
,
49
,
57
,
67
,
78
,
91
,
105
,
125
,
146
,
171
,
200
,
234
,
274
,
321
,
376
,
440
,
515
,
603
,
706
,
826
,
967
,
1132
,
105
,
125
,
146
,
171
,
200
,
234
,
274
,
321
,
376
,
440
,
515
,
603
,
706
,
826
,
967
,
1132
,
...
@@ -103,9 +105,6 @@ MAC_RLC_XFACE *Mac_rlc_xface;
...
@@ -103,9 +105,6 @@ MAC_RLC_XFACE *Mac_rlc_xface;
/// Primary component carrier index of eNB
/// Primary component carrier index of eNB
int
pCC_id
[
NUMBER_OF_eNB_MAX
];
int
pCC_id
[
NUMBER_OF_eNB_MAX
];
//NB-IoT
eNB_MAC_INST_NB
*
eNB_mac_inst_NB
;
eNB_ULSCH_INFO
eNB_ulsch_info
[
NUMBER_OF_eNB_MAX
][
MAX_NUM_CCs
][
NUMBER_OF_UE_MAX
];
// eNBxUE = 8x8
eNB_ULSCH_INFO
eNB_ulsch_info
[
NUMBER_OF_eNB_MAX
][
MAX_NUM_CCs
][
NUMBER_OF_UE_MAX
];
// eNBxUE = 8x8
eNB_DLSCH_INFO
eNB_dlsch_info
[
NUMBER_OF_eNB_MAX
][
MAX_NUM_CCs
][
NUMBER_OF_UE_MAX
];
// eNBxUE = 8x8
eNB_DLSCH_INFO
eNB_dlsch_info
[
NUMBER_OF_eNB_MAX
][
MAX_NUM_CCs
][
NUMBER_OF_UE_MAX
];
// eNBxUE = 8x8
...
...
targets/RT/USER/lte-softmodem.c
View file @
2ccbef43
...
@@ -1623,9 +1623,11 @@ int main( int argc, char **argv ) {
...
@@ -1623,9 +1623,11 @@ int main( int argc, char **argv ) {
//this is eNB
//this is eNB
PHY_vars_eNB_g
=
malloc
(
sizeof
(
PHY_VARS_eNB
**
));
PHY_vars_eNB_g
=
malloc
(
sizeof
(
PHY_VARS_eNB
**
));
PHY_vars_eNB_g
[
0
]
=
malloc
(
sizeof
(
PHY_VARS_eNB
*
));
PHY_vars_eNB_g
[
0
]
=
malloc
(
sizeof
(
PHY_VARS_eNB
*
));
#ifdef NB_IOT
// do the initialization for the IF Module
// do the initialization for the IF Module
if_inst
=
malloc
(
sizeof
(
IF_Module_t
*
));
if_inst
=
malloc
(
sizeof
(
IF_Module_t
*
));
#endif
for
(
CC_id
=
0
;
CC_id
<
MAX_NUM_CCs
;
CC_id
++
)
{
for
(
CC_id
=
0
;
CC_id
<
MAX_NUM_CCs
;
CC_id
++
)
{
PHY_vars_eNB_g
[
0
][
CC_id
]
=
init_lte_eNB
(
frame_parms
[
CC_id
],
0
,
frame_parms
[
CC_id
]
->
Nid_cell
,
node_function
[
CC_id
],
abstraction_flag
);
PHY_vars_eNB_g
[
0
][
CC_id
]
=
init_lte_eNB
(
frame_parms
[
CC_id
],
0
,
frame_parms
[
CC_id
]
->
Nid_cell
,
node_function
[
CC_id
],
abstraction_flag
);
PHY_vars_eNB_g
[
0
][
CC_id
]
->
ue_dl_rb_alloc
=
0x1fff
;
PHY_vars_eNB_g
[
0
][
CC_id
]
->
ue_dl_rb_alloc
=
0x1fff
;
...
@@ -1852,10 +1854,10 @@ int main( int argc, char **argv ) {
...
@@ -1852,10 +1854,10 @@ int main( int argc, char **argv ) {
PHY_vars_UE_g
[
0
][
CC_id
]
->
rf_map
.
chain
=
CC_id
+
chain_offset
;
PHY_vars_UE_g
[
0
][
CC_id
]
->
rf_map
.
chain
=
CC_id
+
chain_offset
;
}
}
}
else
{
}
else
{
#ifdef NB_IOT
printf
(
"Initializing IF Module in PHY layer
\n
"
);
printf
(
"Initializing IF Module in PHY layer
\n
"
);
IF_Module_init_L1
();
IF_Module_init_L1
();
#endif
printf
(
"Initializing eNB threads
\n
"
);
printf
(
"Initializing eNB threads
\n
"
);
init_eNB
(
node_function
,
node_timing
,
1
,
eth_params
,
single_thread_flag
,
wait_for_sync
);
init_eNB
(
node_function
,
node_timing
,
1
,
eth_params
,
single_thread_flag
,
wait_for_sync
);
...
...
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