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
9bc78d2a
Commit
9bc78d2a
authored
Jun 23, 2018
by
Matthieu Kanj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msg4 bug fix
parent
b4365f5b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
75 additions
and
26 deletions
+75
-26
openair1/SCHED/phy_procedures_lte_eNb.c
openair1/SCHED/phy_procedures_lte_eNb.c
+75
-26
No files found.
openair1/SCHED/phy_procedures_lte_eNb.c
View file @
9bc78d2a
...
...
@@ -988,6 +988,9 @@ void common_signal_procedures (PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc) {
}
}
proc
->
flag_DCI_msg4
==
1
;
proc
->
counter_DCI_msg4
=
4
;
}
// NPUSH decode end
proc
->
counter_msg3
--
;
...
...
@@ -1010,18 +1013,19 @@ if(proc->flag_msg4 == 1 && proc->counter_msg4 > 0)
{
NB_IoT_DL_eNB_RAR_t
*
rar
=
&
eNB
->
ndlsch_rar
.
content_rar
;
uint8_t
tab_rar
[
15
];
//uint8_t tab_rar[7];
uint8_t
*
nas_id
=
&
eNB
->
msg3_pdu
[
0
];
//uint8_t *NAS_tab = &eNB->tab_nas;
// avoid subframe 9 and subframe 0 of next frame
tab_rar
[
0
]
=
63
;
tab_rar
[
1
]
=
60
;
tab_rar
[
2
]
=
0
;
tab_rar
[
3
]
=
nas_id
[
0
]
;
// NAS part 1
tab_rar
[
4
]
=
nas_id
[
1
];
// NAS part 2
tab_rar
[
5
]
=
nas_id
[
2
];
// NAS part 3
tab_rar
[
6
]
=
nas_id
[
3
];
// NAS part 4
tab_rar
[
7
]
=
nas_id
[
4
];
// NAS part 5
tab_rar
[
8
]
=
nas_id
[
5
];
// NAS part 6
tab_rar
[
3
]
=
0
;
// NAS part 1
tab_rar
[
4
]
=
nas_id
[
0
];
// NAS part 2
tab_rar
[
5
]
=
nas_id
[
1
];
// NAS part 3
tab_rar
[
6
]
=
nas_id
[
2
];
// NAS part 4
tab_rar
[
7
]
=
nas_id
[
3
];
// NAS part 5
tab_rar
[
8
]
=
nas_id
[
4
];
// NAS part 6
tab_rar
[
9
]
=
30
;
tab_rar
[
10
]
=
3
;
tab_rar
[
11
]
=
0
;
...
...
@@ -1029,6 +1033,39 @@ if(proc->flag_msg4 == 1 && proc->counter_msg4 > 0)
tab_rar
[
13
]
=
91
;
tab_rar
[
14
]
=
8
;
/*tab_rar[0]=28;
tab_rar[1]=0; // NAS part 1
tab_rar[2]=nas_id[0]; // NAS part 2
tab_rar[3]=nas_id[1]; // NAS part 3
tab_rar[4]=nas_id[2]; // NAS part 4
tab_rar[5]=nas_id[3]; // NAS part 5
tab_rar[6]=nas_id[4]; // NAS part 6*/
/*tab_rar[0]=28;
tab_rar[1]=nas_id[0]; // NAS part 2
tab_rar[2]=nas_id[1]; // NAS part 3
tab_rar[3]=nas_id[2]; // NAS part 4
tab_rar[4]=nas_id[3]; // NAS part 5
tab_rar[5]=nas_id[4]; // NAS part 6
tab_rar[6]=0;*/
/*tab_rar[0]=28;
tab_rar[1]=nas_id[4]; // NAS part 2
tab_rar[2]=nas_id[3]; // NAS part 3
tab_rar[3]=nas_id[2]; // NAS part 4
tab_rar[4]=nas_id[1]; // NAS part 5
tab_rar[5]=nas_id[0]; // NAS part 6
tab_rar[6]=0;*/
printf
(
"ms4pdu[0] = %d
\n
"
,
nas_id
[
0
]);
printf
(
"ms4pdu[1] = %d
\n
"
,
nas_id
[
1
]);
printf
(
"ms4pdu[2] = %d
\n
"
,
nas_id
[
2
]);
printf
(
"ms4pdu[3] = %d
\n
"
,
nas_id
[
3
]);
printf
(
"ms4pdu[2] = %d
\n
"
,
nas_id
[
4
]);
if
(
proc
->
flag_scrambling
==
0
)
{
...
...
@@ -1080,6 +1117,11 @@ if(proc->flag_DCI_msg4 ==1 && proc->counter_DCI_msg4>0)
{
if
(
proc
->
subframe_DCI_msg4
==
subframe
&&
frame
==
proc
->
frame_DCI_msg4
)
{
if
(
subframe
==
9
)
{
proc
->
subframe_DCI_msg4
=
1
;
proc
->
frame_DCI_msg4
=
frame
+
1
;
}
else
{
printf
(
"
\n
xxxxxxxxxxxxxxxx DCI 2 for msg4 xxxxxxxxxxxxx frame %d, subframe %d"
,
frame
,
subframe
);
dci_modulation_NB_IoT
(
txdataF
,
AMP
,
fp
,
3
,
npdcch_struct_x
->
npdcch_e
[
0
],
1
,
2
,
22
,
subframe
);
proc
->
counter_DCI_msg4
--
;
...
...
@@ -1095,9 +1137,16 @@ if(proc->flag_DCI_msg4 ==1 && proc->counter_DCI_msg4>0)
{
proc
->
flag_msg4
=
1
;
proc
->
counter_msg4
=
4
;
if
(
subframe
+
5
>
9
)
{
proc
->
subframe_msg4
=
(
subframe
+
5
)
-
10
;
proc
->
frame_msg4
=
frame
+
1
;
}
else
{
proc
->
subframe_msg4
=
subframe
+
5
;
proc
->
frame_msg4
=
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