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
常顺宇
OpenXG-RAN
Commits
ec627f7c
Commit
ec627f7c
authored
Sep 16, 2019
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nr-ip-over-LTE: Add checks for noS1 use case (gNB side)
parent
46c8d181
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
115 additions
and
114 deletions
+115
-114
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
+3
-2
openair2/LAYER2/NR_MAC_gNB/main.c
openair2/LAYER2/NR_MAC_gNB/main.c
+4
-0
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
+107
-112
openair2/LAYER2/PDCP_v10.1.0/pdcp.h
openair2/LAYER2/PDCP_v10.1.0/pdcp.h
+1
-0
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
View file @
ec627f7c
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
#include "mac_proto.h"
#include "mac_proto.h"
#include "PHY/NR_TRANSPORT/nr_dlsch.h"
#include "PHY/NR_TRANSPORT/nr_dlsch.h"
#include "PHY/NR_TRANSPORT/nr_dci.h"
#include "PHY/NR_TRANSPORT/nr_dci.h"
#include "
targets/RT/USER/lte
-softmodem.h"
#include "
executables/nr
-softmodem.h"
extern
RAN_CONTEXT_t
RC
;
extern
RAN_CONTEXT_t
RC
;
/*Scheduling of DLSCH with associated DCI in common search space
/*Scheduling of DLSCH with associated DCI in common search space
...
@@ -457,7 +457,7 @@ void nr_schedule_uss_dlsch_phytest(module_id_t module_idP,
...
@@ -457,7 +457,7 @@ void nr_schedule_uss_dlsch_phytest(module_id_t module_idP,
memcpy
(
nr_mac
->
UE_list
.
DLSCH_pdu
[
CC_id
][
0
][
0
].
payload
[
0
],
DLSCH_pdu
.
payload
[
0
],
TBS_bytes
);
memcpy
(
nr_mac
->
UE_list
.
DLSCH_pdu
[
CC_id
][
0
][
0
].
payload
[
0
],
DLSCH_pdu
.
payload
[
0
],
TBS_bytes
);
LOG_I
(
MAC
,
"Printing payload bytes at the gNB side
:
\n
"
);
LOG_I
(
MAC
,
"Printing payload bytes at the gNB side
, Frame: %d, slot: %d :
\n
"
,
frameP
,
slotP
);
for
(
int
i
=
0
;
i
<
TBS_bytes
;
i
++
)
{
//dlsch_pdu_rel15->transport_block_size/8 6784/8
for
(
int
i
=
0
;
i
<
TBS_bytes
;
i
++
)
{
//dlsch_pdu_rel15->transport_block_size/8 6784/8
LOG_I
(
MAC
,
"%x. "
,
((
uint8_t
*
)
nr_mac
->
UE_list
.
DLSCH_pdu
[
CC_id
][
0
][
0
].
payload
[
0
])[
i
]);
LOG_I
(
MAC
,
"%x. "
,
((
uint8_t
*
)
nr_mac
->
UE_list
.
DLSCH_pdu
[
CC_id
][
0
][
0
].
payload
[
0
])[
i
]);
}
}
...
@@ -480,6 +480,7 @@ void nr_schedule_uss_dlsch_phytest(module_id_t module_idP,
...
@@ -480,6 +480,7 @@ void nr_schedule_uss_dlsch_phytest(module_id_t module_idP,
TBS_bytes
=
configure_fapi_dl_Tx
(
dl_req
,
TX_req
,
cfg
,
&
nr_mac
->
coreset
[
CC_id
][
1
],
&
nr_mac
->
search_space
[
CC_id
][
1
],
nr_mac
->
pdu_index
[
CC_id
]);
TBS_bytes
=
configure_fapi_dl_Tx
(
dl_req
,
TX_req
,
cfg
,
&
nr_mac
->
coreset
[
CC_id
][
1
],
&
nr_mac
->
search_space
[
CC_id
][
1
],
nr_mac
->
pdu_index
[
CC_id
]);
// HOT FIX for all zero pdu problem
// HOT FIX for all zero pdu problem
// ------------------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------------------
LOG_I
(
MAC
,
"Printing payload bytes at the gNB side, Frame: %d, slot: %d :
\n
"
,
frameP
,
slotP
);
for
(
int
i
=
0
;
i
<
TBS_bytes
;
i
++
)
{
for
(
int
i
=
0
;
i
<
TBS_bytes
;
i
++
)
{
((
uint8_t
*
)
nr_mac
->
UE_list
.
DLSCH_pdu
[
CC_id
][
0
][
0
].
payload
[
0
])[
i
]
=
(
unsigned
char
)
rand
();
((
uint8_t
*
)
nr_mac
->
UE_list
.
DLSCH_pdu
[
CC_id
][
0
][
0
].
payload
[
0
])[
i
]
=
(
unsigned
char
)
rand
();
LOG_I
(
MAC
,
"%x. "
,
((
uint8_t
*
)
nr_mac
->
UE_list
.
DLSCH_pdu
[
CC_id
][
0
][
0
].
payload
[
0
])[
i
]);
LOG_I
(
MAC
,
"%x. "
,
((
uint8_t
*
)
nr_mac
->
UE_list
.
DLSCH_pdu
[
CC_id
][
0
][
0
].
payload
[
0
])[
i
]);
...
...
openair2/LAYER2/NR_MAC_gNB/main.c
View file @
ec627f7c
...
@@ -40,6 +40,7 @@
...
@@ -40,6 +40,7 @@
//#include "RRC/L2_INTERFACE/openair_rrc_L2_interface.h"
//#include "RRC/L2_INTERFACE/openair_rrc_L2_interface.h"
#include "common/ran_context.h"
#include "common/ran_context.h"
#include "executables/nr-softmodem.h"
extern
RAN_CONTEXT_t
RC
;
extern
RAN_CONTEXT_t
RC
;
...
@@ -127,6 +128,9 @@ void mac_top_init_gNB(void)
...
@@ -127,6 +128,9 @@ void mac_top_init_gNB(void)
// These should be out of here later
// These should be out of here later
pdcp_layer_init
();
pdcp_layer_init
();
if
(
IS_SOFTMODEM_NOS1
)
nr_ip_over_LTE_DRB_preconfiguration
();
rrc_init_nr_global_param
();
rrc_init_nr_global_param
();
}
else
{
}
else
{
...
...
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
View file @
ec627f7c
This diff is collapsed.
Click to expand it.
openair2/LAYER2/PDCP_v10.1.0/pdcp.h
View file @
ec627f7c
...
@@ -403,6 +403,7 @@ void pdcp_run (
...
@@ -403,6 +403,7 @@ void pdcp_run (
const
protocol_ctxt_t
*
const
ctxt_pP
);
const
protocol_ctxt_t
*
const
ctxt_pP
);
uint64_t
pdcp_module_init
(
uint64_t
pdcp_optmask
);
uint64_t
pdcp_module_init
(
uint64_t
pdcp_optmask
);
void
pdcp_module_cleanup
(
void
);
void
pdcp_module_cleanup
(
void
);
void
nr_ip_over_LTE_DRB_preconfiguration
(
void
);
void
pdcp_layer_init
(
void
);
void
pdcp_layer_init
(
void
);
void
pdcp_layer_cleanup
(
void
);
void
pdcp_layer_cleanup
(
void
);
#define PDCP2NW_DRIVER_FIFO 21
#define PDCP2NW_DRIVER_FIFO 21
...
...
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