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
b2d088b3
Commit
b2d088b3
authored
Jun 23, 2021
by
Fang-WANG
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test ping ok with oai ue and cost ue
parent
763f0341
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
22 deletions
+27
-22
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
+12
-7
targets/PROJECTS/GENERIC-NR-5GC/CONF/gnb.sa.band78.fr1.106PRB.usrpb210.conf
...ENERIC-NR-5GC/CONF/gnb.sa.band78.fr1.106PRB.usrpb210.conf
+15
-15
No files found.
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
View file @
b2d088b3
...
...
@@ -459,6 +459,8 @@ static void deliver_sdu_drb(void *_ue, nr_pdcp_entity_t *entity,
int
rb_id
;
int
i
;
log_dump
(
PDCP
,
buf
,
40
,
LOG_DUMP_CHAR
,
" deliver_sdu_drb Received bytes:
\n
"
);
if
(
UE_NAS_USE_TUN
){
LOG_D
(
PDCP
,
"IP packet received, to be sent to UE TUN interface"
);
len
=
write
(
nas_sock_fd
[
0
],
buf
,
size
);
...
...
@@ -475,7 +477,7 @@ static void deliver_sdu_drb(void *_ue, nr_pdcp_entity_t *entity,
}
LOG_E
(
PDCP
,
"%s:%d:%s: fatal, no RB found for ue %d
\n
"
,
__FILE__
,
__LINE__
,
__FUNCTION__
,
ue
->
rnti
);
__FILE__
,
__LINE__
,
__FUNCTION__
,
ue
->
rnti
);
exit
(
1
);
rb_found:
...
...
@@ -495,7 +497,7 @@ static void deliver_sdu_drb(void *_ue, nr_pdcp_entity_t *entity,
GTPV1U_GNB_TUNNEL_DATA_REQ
(
message_p
).
rnti
=
ue
->
rnti
;
GTPV1U_GNB_TUNNEL_DATA_REQ
(
message_p
).
pdusession_id
=
entity
->
pdusession_id
;
if
(
offset
==
1
)
LOG_I
(
PDCP
,
"%s() (drb %d) SDAP header %2x
\n
"
,
__func__
,
rb_id
,
buf
[
0
]);
LOG_
D
(
PDCP
,
"%s() (drb %d) sending message to gtp size %d
\n
"
,
__func__
,
rb_id
,
size
-
offset
);
LOG_
I
(
PDCP
,
"%s() (drb %d) sending message to gtp size %d
\n
"
,
__func__
,
rb_id
,
size
-
offset
);
itti_send_msg_to_task
(
TASK_VARIABLE
,
INSTANCE_DEFAULT
,
message_p
);
}
}
...
...
@@ -536,7 +538,7 @@ rb_found:
memblock
=
get_free_mem_block
(
size
,
__FUNCTION__
);
memcpy
(
memblock
->
data
,
buf
,
size
);
LOG_I
(
PDCP
,
"%s(): (
s
rb %d) calling rlc_data_req size %d
\n
"
,
__func__
,
rb_id
,
size
);
LOG_I
(
PDCP
,
"%s(): (
d
rb %d) calling rlc_data_req size %d
\n
"
,
__func__
,
rb_id
,
size
);
//for (i = 0; i < size; i++) printf(" %2.2x", (unsigned char)memblock->data[i]);
//printf("\n");
enqueue_rlc_data_req
(
&
ctxt
,
0
,
MBMS_FLAG_NO
,
rb_id
,
sdu_id
,
0
,
size
,
memblock
,
NULL
,
NULL
);
...
...
@@ -1198,10 +1200,13 @@ static boolean_t pdcp_data_req_drb(
ue
=
nr_pdcp_manager_get_ue
(
nr_pdcp_ue_manager
,
rnti
);
if
(
rb_id
<
1
||
rb_id
>
5
)
rb
=
NULL
;
else
rb
=
ue
->
drb
[
rb_id
-
1
];
// if (rb_id < 1 || rb_id > 5)
// rb = NULL;
// else
rb
=
ue
->
drb
[
0
];
LOG_I
(
PDCP
,
"%s:%d:%s: (rnti %d, rb_id %ld)
\n
"
,
__FILE__
,
__LINE__
,
__FUNCTION__
,
rnti
,
rb_id
);
if
(
rb
==
NULL
)
{
LOG_E
(
PDCP
,
"%s:%d:%s: no DRB found (rnti %d, rb_id %ld)
\n
"
,
...
...
targets/PROJECTS/GENERIC-NR-5GC/CONF/gnb.sa.band78.fr1.106PRB.usrpb210.conf
View file @
b2d088b3
...
...
@@ -12,20 +12,20 @@ gNBs =
gNB_name
=
"gNB-Eurecom-5GNRBox"
;
//
Tracking
area
code
,
0
x0000
and
0
xfffe
are
reserved
values
tracking_area_code
=
1
;
tracking_area_code
=
1
00
;
plmn_list
= ({
mcc
=
208
;
mnc
=
99
;
mcc
=
460
;
mnc
=
11
;
mnc_length
=
2
;
snssaiList
= (
{
sst
=
1
;
sd
=
0
x010203
; //
0
false
,
else
true
},
{
sst
=
1
;
sd
=
0
x112233
; //
0
false
,
else
true
#sd = 0x010203; // 0 false, else true
}
#{
#st = 1;
# sd = 0x112233; // 0 false, else true
#
);
});
...
...
@@ -223,7 +223,7 @@ gNBs =
//////////
MME
parameters
:
amf_ip_address
= ( {
ipv4
=
"192.168.
69.13
1"
;
amf_ip_address
= ( {
ipv4
=
"192.168.
199.21
1"
;
ipv6
=
"192:168:30::17"
;
active
=
"yes"
;
preference
=
"ipv4"
;
...
...
@@ -245,12 +245,12 @@ gNBs =
NETWORK_INTERFACES
:
{
GNB_INTERFACE_NAME_FOR_NG_AMF
=
"e
th0
"
;
GNB_IPV4_ADDRESS_FOR_NG_AMF
=
"192.168.1
8.198
/24"
;
GNB_INTERFACE_NAME_FOR_NGU
=
"e
th0
"
;
GNB_IPV4_ADDRESS_FOR_NGU
=
"192.168.1
8.198
/24"
;
GNB_INTERFACE_NAME_FOR_NG_AMF
=
"e
no1
"
;
GNB_IPV4_ADDRESS_FOR_NG_AMF
=
"192.168.1
99.224
/24"
;
GNB_INTERFACE_NAME_FOR_NGU
=
"e
no1
"
;
GNB_IPV4_ADDRESS_FOR_NGU
=
"192.168.1
99.224
/24"
;
GNB_PORT_FOR_S1U
=
2152
;
# Spec 2152
GNB_IPV4_ADDRESS_FOR_X2C
=
"192.168.1
8.198
/24"
;
GNB_IPV4_ADDRESS_FOR_X2C
=
"192.168.1
99.224
/24"
;
GNB_PORT_FOR_X2C
=
36422
;
# Spec 36422
};
...
...
@@ -282,7 +282,7 @@ RUs = (
att_rx
=
0
;
bands
= [
7
];
max_pdschReferenceSignalPower
= -
27
;
max_rxgain
=
1
14
;
max_rxgain
=
1
20
;
eNB_instances
= [
0
];
#beamforming 1x4 matrix:
bf_weights
= [
0
x00007fff
,
0
x0000
,
0
x0000
,
0
x0000
];
...
...
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