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
3a002e2c
Commit
3a002e2c
authored
5 years ago
by
Nick Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finish the debug of src in MAC
parent
4269152f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
7 deletions
+15
-7
cmake_targets/CMakeLists.txt
cmake_targets/CMakeLists.txt
+8
-0
openair2/LAYER2/MAC/config_NB_IoT.c
openair2/LAYER2/MAC/config_NB_IoT.c
+3
-3
openair2/LAYER2/MAC/eNB_scheduler_RA_NB_IoT.c
openair2/LAYER2/MAC/eNB_scheduler_RA_NB_IoT.c
+1
-1
openair2/LAYER2/MAC/eNB_scheduler_ulsch_NB_IoT.c
openair2/LAYER2/MAC/eNB_scheduler_ulsch_NB_IoT.c
+3
-3
No files found.
cmake_targets/CMakeLists.txt
View file @
3a002e2c
...
...
@@ -1424,6 +1424,7 @@ set (MAC_SRC
#${PHY_INTERFACE_DIR}/phy_stub_UE.c
${
PHY_INTERFACE_DIR
}
/IF_Module.c
${
MAC_DIR
}
/main.c
${
MAC_DIR
}
/main_NB_IoT.c
#${MAC_DIR}/main_ue.c
#${MAC_DIR}/ue_procedures.c
#${MAC_DIR}/ra_procedures.c
...
...
@@ -1431,16 +1432,23 @@ set (MAC_SRC
${
MAC_DIR
}
/rar_tools.c
#${MAC_DIR}/rar_tools_ue.c
${
MAC_DIR
}
/eNB_scheduler.c
${
MAC_DIR
}
/eNB_scheduler_NB_IoT.c
${
MAC_DIR
}
/eNB_scheduler_dlsch.c
${
MAC_DIR
}
/eNB_scheduler_dlsch_NB_IoT.c
${
MAC_DIR
}
/eNB_scheduler_ulsch.c
${
MAC_DIR
}
/eNB_scheduler_ulsch_NB_IoT.c
${
MAC_DIR
}
/eNB_scheduler_mch.c
${
MAC_DIR
}
/eNB_scheduler_bch.c
${
MAC_DIR
}
/eNB_scheduler_bch_NB_IoT.c
${
MAC_DIR
}
/eNB_scheduler_primitives.c
${
MAC_DIR
}
/eNB_scheduler_RA.c
${
MAC_DIR
}
/eNB_scheduler_RA_NB_IoT.c
${
MAC_DIR
}
/eNB_scheduler_fairRR.c
${
MAC_DIR
}
/eNB_scheduler_phytest.c
${
MAC_DIR
}
/pre_processor.c
${
MAC_DIR
}
/config.c
${
MAC_DIR
}
/config_NB_IoT.c
${
MAC_DIR
}
/schedule_tool_NB_IoT.c
#${MAC_DIR}/config_ue.c
)
...
...
This diff is collapsed.
Click to expand it.
openair2/LAYER2/MAC/config_NB_IoT.c
View file @
3a002e2c
...
...
@@ -404,7 +404,7 @@ void rrc_mac_config_req_NB_IoT(
mac_inst
->
npdcch_config_common
[
0
].
R_max
=
rmax
[
nprach_parameter
->
npdcch_NumRepetitions_RA_r13
];
mac_inst
->
npdcch_config_common
[
0
].
G
=
gvalue
[
nprach_parameter
->
npdcch_StartSF_CSS_RA_r13
];
mac_inst
->
npdcch_config_common
[
0
].
a_offset
=
pdcchoffset
[
nprach_parameter
->
npdcch_Offset_RA_r13
];
LOG_I
(
MAC
,
"NPRACH CE 0 setting: Rmax: %
l
u G: %lf a: %lf
\n
"
,
mac_inst
->
npdcch_config_common
[
0
].
R_max
,
mac_inst
->
npdcch_config_common
[
0
].
G
,
mac_inst
->
npdcch_config_common
[
0
].
a_offset
);
LOG_I
(
MAC
,
"NPRACH CE 0 setting: Rmax: %u G: %lf a: %lf
\n
"
,
mac_inst
->
npdcch_config_common
[
0
].
R_max
,
mac_inst
->
npdcch_config_common
[
0
].
G
,
mac_inst
->
npdcch_config_common
[
0
].
a_offset
);
}
//CE level 1
if
(
radioResourceConfigCommon
->
nprach_Config_r13
.
nprach_ParametersList_r13
.
list
.
array
[
1
]
!=
NULL
)
...
...
@@ -418,7 +418,7 @@ void rrc_mac_config_req_NB_IoT(
mac_inst
->
npdcch_config_common
[
1
].
R_max
=
rmax
[
nprach_parameter
->
npdcch_NumRepetitions_RA_r13
];
mac_inst
->
npdcch_config_common
[
1
].
G
=
gvalue
[
nprach_parameter
->
npdcch_StartSF_CSS_RA_r13
];
mac_inst
->
npdcch_config_common
[
1
].
a_offset
=
pdcchoffset
[
nprach_parameter
->
npdcch_Offset_RA_r13
];
LOG_I
(
MAC
,
"NPRACH CE 1 setting: Rmax: %
l
u G: %lf a: %lf
\n
"
,
mac_inst
->
npdcch_config_common
[
1
].
R_max
,
mac_inst
->
npdcch_config_common
[
1
].
G
,
mac_inst
->
npdcch_config_common
[
1
].
a_offset
);
LOG_I
(
MAC
,
"NPRACH CE 1 setting: Rmax: %u G: %lf a: %lf
\n
"
,
mac_inst
->
npdcch_config_common
[
1
].
R_max
,
mac_inst
->
npdcch_config_common
[
1
].
G
,
mac_inst
->
npdcch_config_common
[
1
].
a_offset
);
}
//CE level 2
if
(
radioResourceConfigCommon
->
nprach_Config_r13
.
nprach_ParametersList_r13
.
list
.
array
[
2
]
!=
NULL
)
...
...
@@ -432,7 +432,7 @@ void rrc_mac_config_req_NB_IoT(
mac_inst
->
npdcch_config_common
[
2
].
R_max
=
rmax
[
nprach_parameter
->
npdcch_NumRepetitions_RA_r13
];
mac_inst
->
npdcch_config_common
[
2
].
G
=
gvalue
[
nprach_parameter
->
npdcch_StartSF_CSS_RA_r13
];
mac_inst
->
npdcch_config_common
[
2
].
a_offset
=
pdcchoffset
[
nprach_parameter
->
npdcch_Offset_RA_r13
];
LOG_I
(
MAC
,
"NPRACH CE 2 setting: Rmax: %
l
u G: %lf a: %lf
\n
"
,
mac_inst
->
npdcch_config_common
[
2
].
R_max
,
mac_inst
->
npdcch_config_common
[
2
].
G
,
mac_inst
->
npdcch_config_common
[
2
].
a_offset
);
LOG_I
(
MAC
,
"NPRACH CE 2 setting: Rmax: %u G: %lf a: %lf
\n
"
,
mac_inst
->
npdcch_config_common
[
2
].
R_max
,
mac_inst
->
npdcch_config_common
[
2
].
G
,
mac_inst
->
npdcch_config_common
[
2
].
a_offset
);
}
config_sib2_fapi_NB_IoT
(
carrier
->
physCellId
,
radioResourceConfigCommon
);
...
...
This diff is collapsed.
Click to expand it.
openair2/LAYER2/MAC/eNB_scheduler_RA_NB_IoT.c
View file @
3a002e2c
...
...
@@ -183,7 +183,7 @@ void schedule_rar_NB_IoT(eNB_MAC_INST_NB_IoT *mac_inst, int abs_subframe){
uint32_t
Iru
=
0
,
mcs
,
Nru
;
uint32_t
Nrep_UL
=
0
;
// need a table here
uint32_t
mappedMcsIndex
=
4
;
// assume all ue supported multi-tone
//
uint32_t mappedMcsIndex = 4; // assume all ue supported multi-tone
//mcs = mapped_mcs[msg2_nodes->ce_level][mappedMcsIndex]; // assume all ue supported multi-tone
mcs
=
2
;
Nrep_UL
=
ULrep
[
rep
];
...
...
This diff is collapsed.
Click to expand it.
openair2/LAYER2/MAC/eNB_scheduler_ulsch_NB_IoT.c
View file @
3a002e2c
...
...
@@ -183,7 +183,7 @@ void rx_sdu_NB_IoT(module_id_t module_id, int CC_id, frame_t frame, sub_frame_t
unsigned
char
rx_ces
[
5
],
num_ce
=
0
,
num_sdu
=
0
,
*
payload_ptr
,
i
;
// MAX Control element
unsigned
char
rx_lcids
[
5
];
//for NB_IoT-IoT, NB_IoT_RB_MAX should be fixed to 5 (2 DRB+ 3SRB)
unsigned
short
rx_lengths
[
5
];
//
int UE_id = 0;
int
UE_id
=
0
;
int
BSR_index
=
0
;
int
DVI_index
=
0
;
int
PHR
=
0
;
...
...
@@ -253,12 +253,12 @@ void rx_sdu_NB_IoT(module_id_t module_id, int CC_id, frame_t frame, sub_frame_t
module_id
,
CC_id
,
frame
,
subframe
,
UE_id
,
rnti
,
CCCH
,
(
uint8_t
*
)
payload_ptr
,
rx_lengths
[
i
],
1
,
module_id
,
0
,
0
);
LOG_D
(
MAC
,
"rx_lengths : %d
\n
"
,
rx_lengths
[
i
]);
msg4_rrc_pdu
=
mac_rrc_msg3_ind_NB_IoT
(
payload_ptr
,
rnti
,
rx_lengths
[
i
]);
...
...
This diff is collapsed.
Click to expand it.
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