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
promise
OpenXG-RAN
Commits
d14c95b6
Commit
d14c95b6
authored
Dec 17, 2019
by
oai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
J chiechun
parent
c7439dcc
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
4 deletions
+21
-4
openair1/PHY/LTE_TRANSPORT/ulsch_demodulation_NB_IoT.c
openair1/PHY/LTE_TRANSPORT/ulsch_demodulation_NB_IoT.c
+1
-1
openair2/LAYER2/MAC/eNB_scheduler_ulsch_NB_IoT.c
openair2/LAYER2/MAC/eNB_scheduler_ulsch_NB_IoT.c
+7
-1
openair2/LAYER2/MAC/extern_NB_IoT.h
openair2/LAYER2/MAC/extern_NB_IoT.h
+1
-1
openair2/LAYER2/MAC/vars_NB_IoT.h
openair2/LAYER2/MAC/vars_NB_IoT.h
+2
-0
openair2/PHY_INTERFACE/IF_Module_L2_primitives_NB_IoT.c
openair2/PHY_INTERFACE/IF_Module_L2_primitives_NB_IoT.c
+8
-0
openair2/RRC/LITE/L2_interface_NB_IoT.c
openair2/RRC/LITE/L2_interface_NB_IoT.c
+1
-0
openair2/RRC/LITE/MESSAGES/asn1_msg_NB_IoT.c
openair2/RRC/LITE/MESSAGES/asn1_msg_NB_IoT.c
+1
-1
No files found.
openair1/PHY/LTE_TRANSPORT/ulsch_demodulation_NB_IoT.c
View file @
d14c95b6
...
...
@@ -1676,7 +1676,7 @@ uint32_t turbo_decoding_NB_IoT(PHY_VARS_eNB *eNB,
int
x
=
0
;
LOG_N
(
PHY
,
"Show the undecoded data: "
);
for
(
x
=
0
;
x
<
18
;
x
++
)
for
(
x
=
0
;
x
<
ulsch_harq
->
TBS
;
x
++
)
printf
(
"%02x "
,
ulsch_harq
->
b
[
x
]);
printf
(
"
\n
"
);
fill_crc_indication_NB_IoT
(
eNB
,
0
,
rx_frame
,
rx_subframe
,
0
);
// indicate NAK to MAC
...
...
openair2/LAYER2/MAC/eNB_scheduler_ulsch_NB_IoT.c
View file @
d14c95b6
...
...
@@ -56,6 +56,7 @@ int schedule_UL_NB_IoT(eNB_MAC_INST_NB_IoT *mac_inst,UE_TEMPLATE_NB_IoT *UE_info
return
-
1
;
}
TBS
=
get_TBS_UL_NB_IoT
(
mcs
,
UE_info
->
multi_tone
,
Iru
);
LOG_I
(
MAC
,
"Initial TBS : %d UL_buffer: %d
\n
"
,
TBS
,
UE_info
->
ul_total_buffer
);
...
...
@@ -99,6 +100,11 @@ int schedule_UL_NB_IoT(eNB_MAC_INST_NB_IoT *mac_inst,UE_TEMPLATE_NB_IoT *UE_info
mcs
=
mapped_mcs
[
UE_info
->
CE_level
][
mappedMcsIndex
];
if
((
UE_state_machine
==
rach_for_next
)
&&
(
UE_info
->
ul_total_buffer
==
22
))
{
mcs
=
6
;
}
//mcs = 2;
while
((
TBS
<
UE_info
->
ul_total_buffer
)
&&
(
Iru
<=
7
))
{
...
...
@@ -300,7 +306,7 @@ void rx_sdu_NB_IoT(module_id_t module_id, int CC_id, frame_t frame, sub_frame_t
// trigger DL scheduler
if
(
UE_info
!=
NULL
)
{
UE_info
->
direction
=
1
;
//1 for DL scheduler
//
UE_info->direction = 1; //1 for DL scheduler
LOG_I
(
MAC
,
"After receive Msg5, change the UE scheduling direction to DL
\n
"
);
}
}
else
if
(
UE_state_machine
==
rach_for_auth_rsp
)
...
...
openair2/LAYER2/MAC/extern_NB_IoT.h
View file @
d14c95b6
...
...
@@ -120,5 +120,5 @@ extern int extend_space[2];
extern
int
extend_alpha_offset
[
2
];
extern
const
int
si_repetition_pattern
[
4
];
extern
int
waiting_flag_from_RLC
;
#endif //DEF_H
openair2/LAYER2/MAC/vars_NB_IoT.h
View file @
d14c95b6
...
...
@@ -144,6 +144,8 @@ rach_state_t UE_state_machine = initial_access;
const
int
si_repetition_pattern
[
4
]
=
{
20
,
40
,
80
,
160
};
int
waiting_flag_from_RLC
=
0
;
#endif
openair2/PHY_INTERFACE/IF_Module_L2_primitives_NB_IoT.c
View file @
d14c95b6
...
...
@@ -81,6 +81,7 @@ void UL_indication_NB_IoT(UL_IND_NB_IoT_t *UL_INFO)
uint32_t
abs_subframe
;
Sched_Rsp_NB_IoT_t
*
SCHED_info
=
&
mac_inst
->
Sched_INFO
;
UE_TEMPLATE_NB_IoT
*
ue_info
=
(
UE_TEMPLATE_NB_IoT
*
)
0
;
uint16_t
tmp_rnti
;
enable_preamble_simulation
(
UL_INFO
,
0
);
...
...
@@ -197,6 +198,13 @@ void UL_indication_NB_IoT(UL_IND_NB_IoT_t *UL_INFO)
LOG_D
(
MAC
,
"IF L2 hypersfn:%d frame: %d ,subframe: %d
\n
"
,
UL_INFO
->
hypersfn
,
UL_INFO
->
frame
,
UL_INFO
->
subframe
);
}
if
(
waiting_flag_from_RLC
==
1
)
{
tmp_rnti
=
0x0101
;
ue_info
=
get_ue_from_rnti
(
mac_inst
,
tmp_rnti
);
ue_info
->
direction
=
1
;
waiting_flag_from_RLC
=
2
;
}
abs_subframe
=
UL_INFO
->
hypersfn
*
10240
+
UL_INFO
->
frame
*
10
+
UL_INFO
->
subframe
+
4
;
//abs_subframe = UL_INFO->frame*10+UL_INFO->subframe +4;
...
...
openair2/RRC/LITE/L2_interface_NB_IoT.c
View file @
d14c95b6
...
...
@@ -2616,6 +2616,7 @@ rlc_op_status_t rlc_data_req_NB_IoT (const protocol_ctxt_t* const ctxt_pP,
}
printf("\n");
*/
waiting_flag_from_RLC
=
1
;
return
RLC_OP_STATUS_OK
;
}
else
{
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_RLC_DATA_REQ
,
VCD_FUNCTION_OUT
);
...
...
openair2/RRC/LITE/MESSAGES/asn1_msg_NB_IoT.c
View file @
d14c95b6
...
...
@@ -1115,7 +1115,7 @@ uint8_t do_RRCConnectionSetup_NB_IoT(
//*periodicBSR_Timer = 2; // PeriodicBSR_Timer_NB_r13_pp8
//logicalChannelSR_Config = CALLOC(1,sizeof(*logicalChannelSR_Config));
mac_main_config_NB_IoT
->
choice
.
explicitValue_r13
.
logicalChannelSR_Config_r13
->
choice
.
setup
.
logicalChannelSR_ProhibitTimer_r13
=
4
;
//MAC_MainConfig_NB_r13__logicalChannelSR_Config_r13__setup__logicalChannelSR_ProhibitTimer_r13_pp8
mac_main_config_NB_IoT
->
choice
.
explicitValue_r13
.
logicalChannelSR_Config_r13
->
choice
.
setup
.
logicalChannelSR_ProhibitTimer_r13
=
5
;
//MAC_MainConfig_NB_r13__logicalChannelSR_Config_r13__setup__logicalChannelSR_ProhibitTimer_r13_pp8
mac_main_config_NB_IoT
->
choice
.
explicitValue_r13
.
logicalChannelSR_Config_r13
->
present
=
MAC_MainConfig_NB_r13__logicalChannelSR_Config_r13_PR_setup
;
//ul_SCH_Config = CALLOC(1,sizeof(*ul_SCH_Config));
...
...
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