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
wangjie
OpenXG-RAN
Commits
816fee39
Commit
816fee39
authored
Jun 18, 2021
by
David Kim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed hard coded server(PNF) ip address
additionally, added a config file for proxy connection.
parent
e2866e68
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
258 additions
and
14 deletions
+258
-14
ci-scripts/conf_files/proxy_rcc.band7.tm1.nfapi.conf
ci-scripts/conf_files/proxy_rcc.band7.tm1.nfapi.conf
+247
-0
openair2/PHY_INTERFACE/phy_stub_UE.c
openair2/PHY_INTERFACE/phy_stub_UE.c
+6
-9
openair2/PHY_INTERFACE/phy_stub_UE.h
openair2/PHY_INTERFACE/phy_stub_UE.h
+1
-1
openair2/RRC/LTE/rrc_UE.c
openair2/RRC/LTE/rrc_UE.c
+2
-1
targets/RT/USER/lte-ue.c
targets/RT/USER/lte-ue.c
+1
-2
targets/RT/USER/lte-uesoftmodem.c
targets/RT/USER/lte-uesoftmodem.c
+1
-1
No files found.
ci-scripts/conf_files/proxy_rcc.band7.tm1.nfapi.conf
0 → 100644
View file @
816fee39
This diff is collapsed.
Click to expand it.
openair2/PHY_INTERFACE/phy_stub_UE.c
View file @
816fee39
...
...
@@ -1150,6 +1150,9 @@ void UE_config_stub_pnf(void) {
*
(
L1_ParamList
.
paramarray
[
j
][
L1_REMOTE_N_PORTD_IDX
].
iptr
);
stub_eth_params
.
transp_preference
=
ETH_UDP_MODE
;
if
(
NFAPI_MODE
!=
NFAPI_UE_STUB_PNF
)
continue
;
sf_ahead
=
2
;
// Cannot cope with 4 subframes betweem RX and TX - set it to 2
// configure_nfapi_pnf(UE_mac_inst[0].eth_params_n.remote_addr,
// UE_mac_inst[0].eth_params_n.remote_portc,
...
...
@@ -1166,7 +1169,7 @@ void UE_config_stub_pnf(void) {
}
}
void
ue_init_standalone_socket
(
const
char
*
addr
,
int
tx_port
,
int
rx_port
)
void
ue_init_standalone_socket
(
int
tx_port
,
int
rx_port
)
{
{
struct
sockaddr_in
server_address
;
...
...
@@ -1182,7 +1185,7 @@ void ue_init_standalone_socket(const char *addr, int tx_port, int rx_port)
return
;
}
if
(
inet_pton
(
server_address
.
sin_family
,
addr
,
&
server_address
.
sin_addr
)
<=
0
)
if
(
inet_pton
(
server_address
.
sin_family
,
stub_eth_params
.
remote_
addr
,
&
server_address
.
sin_addr
)
<=
0
)
{
LOG_E
(
MAC
,
"Invalid standalone PNF Address
\n
"
);
close
(
sd
);
...
...
@@ -1205,6 +1208,7 @@ void ue_init_standalone_socket(const char *addr, int tx_port, int rx_port)
int
addr_len
=
sizeof
(
server_address
);
memset
(
&
server_address
,
0
,
addr_len
);
server_address
.
sin_family
=
AF_INET
;
server_address
.
sin_addr
.
s_addr
=
INADDR_ANY
;
server_address
.
sin_port
=
htons
(
rx_port
);
int
sd
=
socket
(
server_address
.
sin_family
,
SOCK_DGRAM
,
0
);
...
...
@@ -1214,13 +1218,6 @@ void ue_init_standalone_socket(const char *addr, int tx_port, int rx_port)
return
;
}
if
(
inet_pton
(
server_address
.
sin_family
,
addr
,
&
server_address
.
sin_addr
)
<=
0
)
{
LOG_E
(
MAC
,
"Invalid standalone PNF Address
\n
"
);
close
(
sd
);
return
;
}
if
(
bind
(
sd
,
(
struct
sockaddr
*
)
&
server_address
,
addr_len
)
<
0
)
{
LOG_E
(
MAC
,
"Connection to standalone PNF failed: %s
\n
"
,
strerror
(
errno
));
...
...
openair2/PHY_INTERFACE/phy_stub_UE.h
View file @
816fee39
...
...
@@ -151,7 +151,7 @@ void *memcpy_tx_req_standalone(nfapi_tx_request_t *tx_req);
void
*
memcpy_dl_config_req_standalone
(
nfapi_dl_config_request_t
*
dl_config_req
);
// open an SCTP socket with a standalone PNF module
void
ue_init_standalone_socket
(
const
char
*
addr
,
int
tx_port
,
int
rx_port
);
void
ue_init_standalone_socket
(
int
tx_port
,
int
rx_port
);
// read from standalone pnf socket call corresponding memcpy functions
void
*
ue_standalone_pnf_task
(
void
*
context
);
...
...
openair2/RRC/LTE/rrc_UE.c
View file @
816fee39
...
...
@@ -1702,7 +1702,8 @@ rrc_ue_process_ueCapabilityEnquiry(
xer_fprint
(
stdout
,
&
asn_DEF_LTE_UL_DCCH_Message
,
(
void
*
)
&
ul_dcch_msg
);
}
LOG_A
(
RRC
,
"UECapabilityInformation Encoded %zd bits (%zd bytes)
\n
"
,
enc_rval
.
encoded
,(
enc_rval
.
encoded
+
7
)
/
8
);
LOG_A
(
RRC
,
"%s: UECapabilityInformation Encoded %zd bits (%zd bytes)
\n
"
,
__FUNCTION__
,
enc_rval
.
encoded
,(
enc_rval
.
encoded
+
7
)
/
8
);
rrc_data_req_ue
(
ctxt_pP
,
DCCH
,
...
...
targets/RT/USER/lte-ue.c
View file @
816fee39
...
...
@@ -428,10 +428,9 @@ void init_UE_stub_single_thread(int nb_inst,
void
init_UE_standalone_thread
(
int
ue_idx
)
{
const
char
*
standalone_addr
=
"127.0.0.1"
;
// these two lines go into init
int
standalone_tx_port
=
3211
+
ue_idx
*
2
;
int
standalone_rx_port
=
3212
+
ue_idx
*
2
;
ue_init_standalone_socket
(
standalone_
addr
,
standalone_
tx_port
,
standalone_rx_port
);
ue_init_standalone_socket
(
standalone_tx_port
,
standalone_rx_port
);
pthread_t
thread
;
if
(
pthread_create
(
&
thread
,
NULL
,
ue_standalone_pnf_task
,
NULL
)
!=
0
)
{
...
...
targets/RT/USER/lte-uesoftmodem.c
View file @
816fee39
...
...
@@ -729,7 +729,7 @@ int main( int argc, char **argv ) {
exit
(
-
1
);
// need a softer mode
}
if
(
NFAPI_MODE
==
NFAPI_UE_STUB_PNF
)
{
// UE-STUB-PNF
if
(
NFAPI_MODE
==
NFAPI_UE_STUB_PNF
||
NFAPI_MODE
==
NFAPI_MODE_STANDALONE_PNF
)
{
// UE-STUB-PNF
UE_config_stub_pnf
();
}
...
...
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