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
bbf01e70
Commit
bbf01e70
authored
Nov 20, 2019
by
Daniel0326
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check rlc data
parent
92e89fa4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
4 deletions
+31
-4
openair2/LAYER2/MAC/eNB_scheduler_dlsch_NB_IoT.c
openair2/LAYER2/MAC/eNB_scheduler_dlsch_NB_IoT.c
+21
-4
openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_segment.c
openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_segment.c
+10
-0
No files found.
openair2/LAYER2/MAC/eNB_scheduler_dlsch_NB_IoT.c
View file @
bbf01e70
...
...
@@ -110,7 +110,7 @@ int schedule_DL_NB_IoT(module_id_t module_id, eNB_MAC_INST_NB_IoT *mac_inst, UE_
1
,
0
,
DCCH0_NB_IoT
,
83
);
0
);
data_size
=
rlc_status
.
bytes_in_buffer
;
LOG_N
(
MAC
,
"[NB-IoT] RLC indicate to MAC that the data size is : %d
\n
"
,
data_size
);
...
...
@@ -241,7 +241,7 @@ int schedule_DL_NB_IoT(module_id_t module_id, eNB_MAC_INST_NB_IoT *mac_inst, UE_
//New transmission need to request data from RLC and generate new MAC PDU
UE_info
->
I_mcs_dl
=
I_mcs
;
//Request data from RLC layer
rlc_status
=
mac_rlc_status_ind
(
module_id
,
...
...
@@ -253,7 +253,12 @@ int schedule_DL_NB_IoT(module_id_t module_id, eNB_MAC_INST_NB_IoT *mac_inst, UE_
0
,
DCCH0_NB_IoT
,
TBS
-
subheader_length
);
/***************************************************************************************/
data_size
=
rlc_status
.
bytes_in_buffer
;
LOG_N
(
MAC
,
"[NB-IoT] RLC indicate to MAC that the data size is : %d
\n
"
,
data_size
);
/***************************************************************************************/
mac_sdu_size
=
mac_rlc_data_req
(
module_id
,
UE_info
->
rnti
,
module_id
,
frame_start
,
1
,
0
,
DCCH0_NB_IoT
,
TBS
,
(
char
*
)
&
sdu_temp
[
0
]);
//channel=DCCH0_NB_IoT;
...
...
@@ -262,7 +267,19 @@ int schedule_DL_NB_IoT(module_id_t module_id, eNB_MAC_INST_NB_IoT *mac_inst, UE_
payload_offset
=
generate_dlsch_header_NB_IoT
(
UE_info
->
DLSCH_pdu
.
payload
,
1
,
&
logical_channel
,
&
mac_sdu_size
,
0
,
0
,
TBS
);
//Complete MAC PDU
memcpy
(
UE_info
->
DLSCH_pdu
.
payload
+
payload_offset
,
sdu_temp
,
mac_sdu_size
);
/*****************************************************************************/
LOG_I
(
MAC
,
"[NB-IoT][DCCH] Got %d bytes from RLC 2nd time
\n
"
,
mac_sdu_size
);
/*****************************************************************************/
/*******************************************************************/
printf
(
"print the payload 2nd time (mac_sdu_size) !!!!!!!!!!!!!!!!!!!!!!!!!!!
\n
"
);
int
y
;
for
(
y
=
0
;
y
<
mac_sdu_size
;
y
++
){
printf
(
"%02x "
,
sdu_temp
[
y
]);
}
printf
(
"
\n
"
);
/*******************************************************************/
//UE_info->DLSCH_pdu.pdu_size=TBS;
UE_sched_ctrl_info
->
NPDCCH_sf_end
=
NPDCCH_info
->
sf_end
;
UE_sched_ctrl_info
->
NPDCCH_sf_start
=
NPDCCH_info
->
sf_start
;
...
...
openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_segment.c
View file @
bbf01e70
...
...
@@ -355,6 +355,16 @@ void rlc_am_segment_10 (
PROTOCOL_RLC_AM_CTXT_ARGS
(
ctxt_pP
,
rlc_pP
),
pdu_remaining_size
);
//msg ("[FRAME %05d][%s][RLC_AM][MOD %u/%u][RB %u][SEGMENT] pdu_mem_p %p pdu_p %p pdu_p->data %p data %p data_sdu_p %p pdu_remaining_size %d\n", rlc_pP->module_id, rlc_pP->rb_id, ctxt_pP->frame, pdu_mem_p, pdu_p, pdu_p->data, data, data_sdu_p,pdu_remaining_size);
/**************************/
printf
(
"*****************data_sdu_p in Filling all remaining PDU***********************
\n
"
);
int
x
;
for
(
x
=
0
;
x
<
pdu_remaining_size
;
x
++
){
printf
(
"%02x "
,
data_sdu_p
[
x
]);
}
printf
(
"
\n
"
);
/*************************/
memcpy
(
data
,
data_sdu_p
,
pdu_remaining_size
);
pdu_mngt_p
->
payload_size
+=
pdu_remaining_size
;
...
...
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