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
d580bcea
Commit
d580bcea
authored
Oct 16, 2018
by
Nick Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finish timing issue for sib23
parent
8d862a56
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
13 deletions
+14
-13
openair1/PHY/LTE_TRANSPORT/SIB_NB_IoT.c
openair1/PHY/LTE_TRANSPORT/SIB_NB_IoT.c
+4
-0
openair1/SCHED/IF_Module_L1_primitives_NB_IoT.c
openair1/SCHED/IF_Module_L1_primitives_NB_IoT.c
+1
-1
openair2/LAYER2/MAC/config_NB_IoT.c
openair2/LAYER2/MAC/config_NB_IoT.c
+2
-5
openair2/LAYER2/MAC/eNB_scheduler_bch_NB_IoT.c
openair2/LAYER2/MAC/eNB_scheduler_bch_NB_IoT.c
+4
-4
openair2/RRC/LITE/rrc_eNB.c
openair2/RRC/LITE/rrc_eNB.c
+3
-3
No files found.
openair1/PHY/LTE_TRANSPORT/SIB_NB_IoT.c
View file @
d580bcea
...
...
@@ -96,6 +96,7 @@ int generate_SIB1(NB_IoT_eNB_NDLSCH_t *sib1_struct,
if
((
subframe
==
4
)
&&
(
frame
%
2
==
var
)
&&
(
born_inf
<=
frame
%
rep_val
)
&&
(
frame
%
rep_val
<
born_sup
))
{
LOG_D
(
PHY
,
"[%3d][%2d] Generating SIB1
\n
"
,
frame
,
subframe
);
int
G
=
get_G_SIB1_NB_IoT
(
frame_parms
,
operation_mode
);
if
(
frame
%
rep_val
==
var
)
...
...
@@ -158,6 +159,8 @@ int generate_SIB23(NB_IoT_eNB_NDLSCH_t *SIB23,
int
G
=
get_G_NB_IoT
(
frame_parms
);
uint8_t
Nsf
=
SIB23
->
resource_assignment
;
//value 2 or 8
LOG_D
(
PHY
,
"[%3d][%2d] Generating SIB23
\n
"
,
frame
,
subframe
);
if
(
counter_rep
==
rep
)
{
dlsch_encoding_NB_IoT
(
SIB23_pdu
,
...
...
@@ -190,6 +193,7 @@ int generate_SIB23(NB_IoT_eNB_NDLSCH_t *SIB23,
if
(
SIB23
->
counter_repetition_number
==
0
)
{
//printf("[%3d][%2d] Generate SIB23 done\n",frame,subframe);
SIB23
->
active
=
0
;
done
=
1
;
}
...
...
openair1/SCHED/IF_Module_L1_primitives_NB_IoT.c
View file @
d580bcea
...
...
@@ -187,7 +187,7 @@ void handle_nfapi_dlsch_pdu_NB_IoT(PHY_VARS_eNB *eNB,
//Independently if we have the PDU or not (first transmission or repetition) the process is activated for triggering the ndlsch_procedure
//LOG_I(PHY,"ACTIVE_NB_IoT\n");
ndlsch_harq23
->
status
=
ACTIVE_NB_IoT
;
//
LOG_I(PHY,"A NB-handle_nfapi_dlsch_pdu_NB_IoT SIB23\n");
LOG_I
(
PHY
,
"A NB-handle_nfapi_dlsch_pdu_NB_IoT SIB23
\n
"
);
}
//ue specific data or RAR (we already have received the DCI for this)
...
...
openair2/LAYER2/MAC/config_NB_IoT.c
View file @
d580bcea
...
...
@@ -422,14 +422,11 @@ void rrc_mac_config_req_NB_IoT(
if
(
sib1_NB_IoT
!=
NULL
)
{
mac_config
->
sib1_NB_IoT_sched_config
.
repetitions
=
4
;
mac_config
->
sib1_NB_IoT_sched_config
.
repetitions
=
8
;
//printf("[ASN Debug] SI P: %ld\n",sib1_NB_IoT->schedulingInfoList_r13.list.array[0]->si_Periodicity_r13);
//mac_config->sib1_NB_IoT_sched_config.starting_rf = *(sib1_NB_IoT->si_RadioFrameOffset_r13);
mac_config
->
sib1_NB_IoT_sched_config
.
starting_rf
=
1
;
mac_config
->
sib1_NB_IoT_sched_config
.
starting_rf
=
0
;
mac_config
->
si_window_length
=
ms160
;
...
...
openair2/LAYER2/MAC/eNB_scheduler_bch_NB_IoT.c
View file @
d580bcea
...
...
@@ -30,7 +30,7 @@ void schedule_sibs(eNB_MAC_INST_NB_IoT *mac_inst, uint32_t sibs_order, int start
uint8_t
SIB23_size
=
0
;
uint8_t
*
SIB23_pdu
=
get_NB_IoT_SIB23
();
int
residual_subframe
,
num_subframe
,
last_subframe
;
num_subframe
=
mac_inst
->
rrc_config
.
sibs_NB_IoT_sched
[
sibs_order
].
si_tb
;
num_subframe
=
(
mac_inst
->
rrc_config
.
sibs_NB_IoT_sched
[
sibs_order
].
si_tb
)
*
8
;
int
rmax
=
mac_inst
->
rrc_config
.
mac_NPRACH_ConfigSIB
[
0
].
mac_npdcch_NumRepetitions_RA_NB_IoT
;
rmax
=
(
rmax
*
10
)
>>
3
;
// x1.25
...
...
@@ -87,14 +87,14 @@ void schedule_sibs(eNB_MAC_INST_NB_IoT *mac_inst, uint32_t sibs_order, int start
new_node
->
direction
=
DL
;
new_node
->
DCI_release
=
(
j
==
i
);
new_node
->
channel
=
NPDSCH
;
new_node
->
rnti
=
SI_RNTI
;
new_node
->
rnti_type
=
3
;
new_node
->
rnti
=
65535
;
new_node
->
rnti_type
=
1
;
new_node
->
npusch_format
=
0
;
// useless
new_node
->
R_harq
=
0
;
// useless
new_node
->
next
=
(
schedule_result_t
*
)
0
;
new_node
->
DCI_pdu
=
(
void
*
)
sibs_dci
;
//new_node->debug_str = str[sibs_order];
LOG_D
(
MAC
,
"
for*1 %d %d %d %p
\n
"
,
pt
[
k
]
->
start_subframe
,
first_subframe
[
k
],
(
j
==
i
)
?
last_subframe
:
j
+
9
,
new_node
);
LOG_D
(
MAC
,
"
debug: pt[k]->start_subframe:%d output_subframe:%d end_subframe:%d rep:%d
\n
"
,
pt
[
k
]
->
start_subframe
,
first_subframe
[
k
],
(
j
==
i
)
?
last_subframe
:
j
+
9
,
si_repetition_pattern
[
mac_inst
->
rrc_config
.
sibs_NB_IoT_sched
[
sibs_order
].
si_repetition_pattern
]
);
fill_resource_DL
(
mac_inst
,
pt
[
k
],
first_subframe
[
k
],
(
j
==
i
)
?
last_subframe
:
j
+
9
,
new_node
);
LOG_D
(
MAC
,
"for*2
\n
"
);
}
...
...
openair2/RRC/LITE/rrc_eNB.c
View file @
d580bcea
...
...
@@ -161,10 +161,10 @@ uint8_t *get_NB_IoT_SIB1(uint8_t Mod_id, int CC_id,
{
if
(
frame
%
64
==
1
&&
subframe
==
0
)
{
//
if(frame%64==1 && subframe ==0)
//
{
do_SIB1_NB_IoT_x
(
Mod_id
,
CC_id
,
carrier
,
mcc
,
mnc
,
tac
,
cell_identity
,
band
,
mnc_digit_length
,
hyper_frame
);
}
//
}
...
...
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