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
zzha zzha
OpenXG-RAN
Commits
48dc0d8b
Commit
48dc0d8b
authored
Feb 02, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/nFAPI_mode_cmd_parameter_to_str' into integration_2023_w05
parents
90918b20
703fa478
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
70 additions
and
39 deletions
+70
-39
ci-scripts/cls_oaicitest.py
ci-scripts/cls_oaicitest.py
+1
-1
ci-scripts/yaml_files/5g_l2sim_tdd/docker-compose.yaml
ci-scripts/yaml_files/5g_l2sim_tdd/docker-compose.yaml
+2
-2
doc/RUN_NR_NFAPI.md
doc/RUN_NR_NFAPI.md
+4
-4
executables/nr-softmodem.c
executables/nr-softmodem.c
+0
-22
executables/softmodem-common.c
executables/softmodem-common.c
+16
-8
executables/softmodem-common.h
executables/softmodem-common.h
+47
-2
No files found.
ci-scripts/cls_oaicitest.py
View file @
48dc0d8b
...
@@ -3179,7 +3179,7 @@ class OaiCiTest():
...
@@ -3179,7 +3179,7 @@ class OaiCiTest():
result
=
re
.
search
(
'warning: discard PDU, sn out of window'
,
str
(
line
))
result
=
re
.
search
(
'warning: discard PDU, sn out of window'
,
str
(
line
))
if
result
is
not
None
:
if
result
is
not
None
:
nbPduDiscard
+=
1
nbPduDiscard
+=
1
result
=
re
.
search
(
'--nfapi
5
--node-number 2 --sa'
,
str
(
line
))
result
=
re
.
search
(
'--nfapi
STANDALONE_PNF
--node-number 2 --sa'
,
str
(
line
))
if
result
is
not
None
:
if
result
is
not
None
:
frequency_found
=
True
frequency_found
=
True
result
=
re
.
search
(
'Exiting OAI softmodem'
,
str
(
line
))
result
=
re
.
search
(
'Exiting OAI softmodem'
,
str
(
line
))
...
...
ci-scripts/yaml_files/5g_l2sim_tdd/docker-compose.yaml
View file @
48dc0d8b
...
@@ -251,7 +251,7 @@ services:
...
@@ -251,7 +251,7 @@ services:
LOCAL_S_IF_NAME
:
'
lo:'
LOCAL_S_IF_NAME
:
'
lo:'
REMOTE_S_ADDRESS
:
127.0.0.1
REMOTE_S_ADDRESS
:
127.0.0.1
LOCAL_S_ADDRESS
:
127.0.0.2
LOCAL_S_ADDRESS
:
127.0.0.2
USE_ADDITIONAL_OPTIONS
:
--sa --nfapi
2
--emulate-l1 --log_config.global_log_options level,time,thread_id,nocolor
USE_ADDITIONAL_OPTIONS
:
--sa --nfapi
VNF
--emulate-l1 --log_config.global_log_options level,time,thread_id,nocolor
depends_on
:
depends_on
:
-
oai-spgwu
-
oai-spgwu
-
oai-amf
-
oai-amf
...
@@ -295,7 +295,7 @@ services:
...
@@ -295,7 +295,7 @@ services:
NR_UE_NFAPI_IF_NAME
:
eno1
NR_UE_NFAPI_IF_NAME
:
eno1
GNB_IP_ADDRESS
:
127.0.0.1
GNB_IP_ADDRESS
:
127.0.0.1
NR_UE_IP_ADDRESS
:
127.0.0.1
NR_UE_IP_ADDRESS
:
127.0.0.1
USE_ADDITIONAL_OPTIONS
:
--nokrnmod 1 --nfapi
5
--node-number 2 --sa --emulate-l1 --log_config.global_log_options level,time,thread_id,nocolor
USE_ADDITIONAL_OPTIONS
:
--nokrnmod 1 --nfapi
STANDALONE_PNF
--node-number 2 --sa --emulate-l1 --log_config.global_log_options level,time,thread_id,nocolor
volumes
:
volumes
:
-
../../../openair1/SIMULATION/LTE_PHY/BLER_SIMULATIONS/AWGN/AWGN_results:/opt/oai-nr-ue/openair1/SIMULATION/LTE_PHY/BLER_SIMULATIONS/AWGN/AWGN_results
-
../../../openair1/SIMULATION/LTE_PHY/BLER_SIMULATIONS/AWGN/AWGN_results:/opt/oai-nr-ue/openair1/SIMULATION/LTE_PHY/BLER_SIMULATIONS/AWGN/AWGN_results
depends_on
:
depends_on
:
...
...
doc/RUN_NR_NFAPI.md
View file @
48dc0d8b
...
@@ -21,12 +21,12 @@ sudo ifconfig lo: 127.0.0.2 netmask 255.0.0.0 up
...
@@ -21,12 +21,12 @@ sudo ifconfig lo: 127.0.0.2 netmask 255.0.0.0 up
### VNF command
### VNF command
```
```
sudo ./nr-softmodem -O ../../../targets/PROJECTS/GENERIC-LTE-EPC/CONF/rcc.band78.tm1.106PRB.nfapi.conf --nfapi
2
--noS1 --phy-test
sudo ./nr-softmodem -O ../../../targets/PROJECTS/GENERIC-LTE-EPC/CONF/rcc.band78.tm1.106PRB.nfapi.conf --nfapi
VNF
--noS1 --phy-test
```
```
### PNF command
### PNF command
```
```
sudo ./nr-softmodem -O ../../../targets/PROJECTS/GENERIC-LTE-EPC/CONF/oaiL1.nfapi.usrpx300.conf --nfapi
1
--rfsim --phy-test --rfsimulator.serveraddr server
sudo ./nr-softmodem -O ../../../targets/PROJECTS/GENERIC-LTE-EPC/CONF/oaiL1.nfapi.usrpx300.conf --nfapi
PNF
--rfsim --phy-test --rfsimulator.serveraddr server
```
```
### UE command
### UE command
...
@@ -38,12 +38,12 @@ sudo RFSIMULATOR=127.0.0.1 ./nr-uesoftmodem --rfsim --phy-test --rrc_config_path
...
@@ -38,12 +38,12 @@ sudo RFSIMULATOR=127.0.0.1 ./nr-uesoftmodem --rfsim --phy-test --rrc_config_path
### VNF command
### VNF command
```
```
sudo ./nr-softmodem -O ../../../targets/PROJECTS/GENERIC-LTE-EPC/CONF/rcc.band78.tm1.106PRB.nfapi.conf --nfapi
2
--noS1 --phy-test
sudo ./nr-softmodem -O ../../../targets/PROJECTS/GENERIC-LTE-EPC/CONF/rcc.band78.tm1.106PRB.nfapi.conf --nfapi
VNF
--noS1 --phy-test
```
```
### PNF command
### PNF command
```
```
sudo ./nr-softmodem -O ../../../targets/PROJECTS/GENERIC-LTE-EPC/CONF/oaiL1.nfapi.usrpx300.conf --nfapi
1
--phy-test
sudo ./nr-softmodem -O ../../../targets/PROJECTS/GENERIC-LTE-EPC/CONF/oaiL1.nfapi.usrpx300.conf --nfapi
PNF
--phy-test
```
```
### UE command
### UE command
...
...
executables/nr-softmodem.c
View file @
48dc0d8b
...
@@ -600,28 +600,6 @@ int main( int argc, char **argv ) {
...
@@ -600,28 +600,6 @@ int main( int argc, char **argv ) {
pthread_mutex_init
(
&
sync_mutex
,
NULL
);
pthread_mutex_init
(
&
sync_mutex
,
NULL
);
}
}
const
char
*
nfapi_mode_str
=
"<UNKNOWN>"
;
switch
(
NFAPI_MODE
)
{
case
0
:
nfapi_mode_str
=
"MONOLITHIC"
;
break
;
case
1
:
nfapi_mode_str
=
"PNF"
;
break
;
case
2
:
nfapi_mode_str
=
"VNF"
;
break
;
default:
nfapi_mode_str
=
"<UNKNOWN NFAPI MODE>"
;
break
;
}
printf
(
"NFAPI MODE:%s
\n
"
,
nfapi_mode_str
);
printf
(
"START MAIN THREADS
\n
"
);
printf
(
"START MAIN THREADS
\n
"
);
// start the main threads
// start the main threads
number_of_cards
=
1
;
number_of_cards
=
1
;
...
...
executables/softmodem-common.c
View file @
48dc0d8b
...
@@ -98,16 +98,24 @@ void get_common_options(uint32_t execmask) {
...
@@ -98,16 +98,24 @@ void get_common_options(uint32_t execmask) {
uint32_t
start_websrv
=
0
;
uint32_t
start_websrv
=
0
;
uint32_t
noS1
=
0
,
nokrnmod
=
1
,
nonbiot
=
0
;
uint32_t
noS1
=
0
,
nokrnmod
=
1
,
nonbiot
=
0
;
uint32_t
rfsim
=
0
,
do_forms
=
0
;
uint32_t
rfsim
=
0
,
do_forms
=
0
;
int
nfapi_index
=
0
;
char
*
logmem_filename
=
NULL
;
char
*
logmem_filename
=
NULL
;
paramdef_t
cmdline_params
[]
=
CMDLINE_PARAMS_DESC
;
paramdef_t
cmdline_logparams
[]
=
CMDLINE_LOGPARAMS_DESC
;
checkedparam_t
cmdline_log_CheckParams
[]
=
CMDLINE_LOGPARAMS_CHECK_DESC
;
check_execmask
(
execmask
);
check_execmask
(
execmask
);
config_get
(
cmdline_params
,
sizeof
(
cmdline_params
)
/
sizeof
(
paramdef_t
),
NULL
);
int
numparams
=
sizeof
(
cmdline_logparams
)
/
sizeof
(
paramdef_t
);
paramdef_t
cmdline_params
[]
=
CMDLINE_PARAMS_DESC
;
config_set_checkfunctions
(
cmdline_logparams
,
cmdline_log_CheckParams
,
numparams
);
checkedparam_t
cmdline_CheckParams
[]
=
CMDLINE_PARAMS_CHECK_DESC
;
config_get
(
cmdline_logparams
,
numparams
,
NULL
);
int
numparams
=
sizeof
(
cmdline_params
)
/
sizeof
(
paramdef_t
);
config_set_checkfunctions
(
cmdline_params
,
cmdline_CheckParams
,
numparams
);
config_get
(
cmdline_params
,
sizeof
(
cmdline_params
)
/
sizeof
(
paramdef_t
),
NULL
);
nfapi_index
=
config_paramidx_fromname
(
cmdline_params
,
sizeof
(
cmdline_params
)
/
sizeof
(
paramdef_t
),
"nfapi"
);
AssertFatal
(
nfapi_index
!=
-
1
,
"Index for nfapi config option not found!"
);
nfapi_mode
=
config_get_processedint
(
&
cmdline_params
[
nfapi_index
]);
paramdef_t
cmdline_logparams
[]
=
CMDLINE_LOGPARAMS_DESC
;
checkedparam_t
cmdline_log_CheckParams
[]
=
CMDLINE_LOGPARAMS_CHECK_DESC
;
int
numlogparams
=
sizeof
(
cmdline_logparams
)
/
sizeof
(
paramdef_t
);
config_set_checkfunctions
(
cmdline_logparams
,
cmdline_log_CheckParams
,
numlogparams
);
config_get
(
cmdline_logparams
,
numlogparams
,
NULL
);
if
(
config_isparamset
(
cmdline_logparams
,
config_paramidx_fromname
(
cmdline_logparams
,
numparams
,
CONFIG_FLOG_OPT
)))
{
if
(
config_isparamset
(
cmdline_logparams
,
config_paramidx_fromname
(
cmdline_logparams
,
numparams
,
CONFIG_FLOG_OPT
)))
{
set_glog_onlinelog
(
online_log_messages
);
set_glog_onlinelog
(
online_log_messages
);
...
...
executables/softmodem-common.h
View file @
48dc0d8b
...
@@ -97,7 +97,7 @@ extern "C"
...
@@ -97,7 +97,7 @@ extern "C"
#define CONFIG_HLP_NOKRNMOD "(noS1 only): Use tun instead of namesh module \n"
#define CONFIG_HLP_NOKRNMOD "(noS1 only): Use tun instead of namesh module \n"
#define CONFIG_HLP_DISABLNBIOT "disable nb-iot, even if defined in config\n"
#define CONFIG_HLP_DISABLNBIOT "disable nb-iot, even if defined in config\n"
#define CONFIG_HLP_USRP_THREAD "having extra thead for usrp tx\n"
#define CONFIG_HLP_USRP_THREAD "having extra thead for usrp tx\n"
#define CONFIG_HLP_NFAPI "Change the nFAPI mode for NR\n"
#define CONFIG_HLP_NFAPI "Change the nFAPI mode for NR
'MONOLITHIC', 'PNF', 'VNF','UE_STUB_PNF','UE_STUB_OFFNET','STANDALONE_PNF'
\n"
#define CONFIG_L1_EMULATOR "Run in L1 emulated mode (disable PHY layer)\n"
#define CONFIG_L1_EMULATOR "Run in L1 emulated mode (disable PHY layer)\n"
#define CONFIG_HLP_CONTINUOUS_TX "perform continuous transmission, even in TDD mode (to work around USRP issues)\n"
#define CONFIG_HLP_CONTINUOUS_TX "perform continuous transmission, even in TDD mode (to work around USRP issues)\n"
#define CONFIG_HLP_STATS_DISABLE "disable globally the stats generation and persistence"
#define CONFIG_HLP_STATS_DISABLE "disable globally the stats generation and persistence"
...
@@ -167,13 +167,58 @@ extern int usrp_tx_thread;
...
@@ -167,13 +167,58 @@ extern int usrp_tx_thread;
{"nsa", CONFIG_HLP_NSA, PARAMFLAG_BOOL, iptr:&NSA, defintval:0, TYPE_INT, 0}, \
{"nsa", CONFIG_HLP_NSA, PARAMFLAG_BOOL, iptr:&NSA, defintval:0, TYPE_INT, 0}, \
{"node-number", NULL, 0, u16ptr:&NODE_NUMBER, defuintval:0, TYPE_UINT16, 0}, \
{"node-number", NULL, 0, u16ptr:&NODE_NUMBER, defuintval:0, TYPE_UINT16, 0}, \
{"usrp-tx-thread-config", CONFIG_HLP_USRP_THREAD, 0, iptr:&usrp_tx_thread, defstrval:0, TYPE_INT, 0}, \
{"usrp-tx-thread-config", CONFIG_HLP_USRP_THREAD, 0, iptr:&usrp_tx_thread, defstrval:0, TYPE_INT, 0}, \
{"nfapi", CONFIG_HLP_NFAPI, 0,
u8ptr:&nfapi_mode, defintval:0, TYPE_UINT8,
0}, \
{"nfapi", CONFIG_HLP_NFAPI, 0,
strptr:NULL, defstrval:"MONOLITHIC", TYPE_STRING,
0}, \
{"non-stop", CONFIG_HLP_NONSTOP, PARAMFLAG_BOOL, iptr:&NON_STOP, defintval:0, TYPE_INT, 0}, \
{"non-stop", CONFIG_HLP_NONSTOP, PARAMFLAG_BOOL, iptr:&NON_STOP, defintval:0, TYPE_INT, 0}, \
{"emulate-l1", CONFIG_L1_EMULATOR, PARAMFLAG_BOOL, iptr:&EMULATE_L1, defintval:0, TYPE_INT, 0}, \
{"emulate-l1", CONFIG_L1_EMULATOR, PARAMFLAG_BOOL, iptr:&EMULATE_L1, defintval:0, TYPE_INT, 0}, \
{"continuous-tx", CONFIG_HLP_CONTINUOUS_TX,PARAMFLAG_BOOL, iptr:&CONTINUOUS_TX, defintval:0, TYPE_INT, 0}, \
{"continuous-tx", CONFIG_HLP_CONTINUOUS_TX,PARAMFLAG_BOOL, iptr:&CONTINUOUS_TX, defintval:0, TYPE_INT, 0}, \
{"disable-stats", CONFIG_HLP_STATS_DISABLE, PARAMFLAG_BOOL, iptr:&stats_disabled, defintval:0, TYPE_INT, 0}, \
{"disable-stats", CONFIG_HLP_STATS_DISABLE, PARAMFLAG_BOOL, iptr:&stats_disabled, defintval:0, TYPE_INT, 0}, \
}
}
#define CMDLINE_PARAMS_CHECK_DESC { \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s3a = { config_checkstr_assign_integer, \
{"MONOLITHIC", "PNF", "VNF","UE_STUB_PNF","UE_STUB_OFFNET","STANDALONE_PNF"}, \
{NFAPI_MONOLITHIC, NFAPI_MODE_PNF, NFAPI_MODE_VNF,NFAPI_UE_STUB_PNF,NFAPI_UE_STUB_OFFNET,NFAPI_MODE_STANDALONE_PNF}, \
6 } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
{ .s5 = { NULL } }, \
}
#define CONFIG_HLP_NSA "Enable NSA mode \n"
#define CONFIG_HLP_NSA "Enable NSA mode \n"
#define CONFIG_HLP_FLOG "Enable online log \n"
#define CONFIG_HLP_FLOG "Enable online log \n"
#define CONFIG_HLP_LOGL "Set the global log level, valid options: (4:trace, 3:debug, 2:info, 1:warn, (0:error))\n"
#define CONFIG_HLP_LOGL "Set the global log level, valid options: (4:trace, 3:debug, 2:info, 1:warn, (0:error))\n"
...
...
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