Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Balaji Kolla
openairinterface5G
Commits
697b1956
Commit
697b1956
authored
9 years ago
by
gauthier
Browse files
Options
Downloads
Patches
Plain Diff
msc for mme_gw
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@7658
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
075b4ee2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmake_targets/tools/epc.local.enb.conf.in
+1
-1
1 addition, 1 deletion
cmake_targets/tools/epc.local.enb.conf.in
cmake_targets/tools/run_epc
+38
-23
38 additions, 23 deletions
cmake_targets/tools/run_epc
with
39 additions
and
24 deletions
cmake_targets/tools/epc.local.enb.conf.in
+
1
−
1
View file @
697b1956
...
...
@@ -62,7 +62,7 @@ MME :
# max values = 999.999:65535
# maximum of 32 values, comma separated
TAI_LIST = (
{MCC="208" ; MNC="
10
"; TAC = "1"; } # YOUR PLMN CONFIG HERE
{MCC="208" ; MNC="
95
"; TAC = "1"; } # YOUR PLMN CONFIG HERE
);
};
...
...
This diff is collapsed.
Click to expand it.
cmake_targets/tools/run_epc
+
38
−
23
View file @
697b1956
...
...
@@ -39,6 +39,8 @@
################################
THIS_SCRIPT_PATH
=
$(
dirname
$(
readlink
-f
$0
))
source
$THIS_SCRIPT_PATH
/build_helper
global
-i
g_run_msc_gen
=
0
global
g_msc_dir
=
"/tmp"
set_openair_env
...
...
@@ -62,17 +64,39 @@ function help()
echo_error
" 2 -> ASN1 XER printf on and ASN1 debug on"
}
function
do_msc_gen
()
{
cd
$g_msc_dir
last_created_file
=
`
ls
-t
mscgen
*
|
head
-1
|
tr
-d
':'
`
$OPENAIR_DIR
/targets/SCRIPTS/msc_gen.py
sync
last_created_file2
=
`
ls
-t
mscgen
*
|
head
-1
|
tr
-d
':'
`
if
[
x
"
$last_created_file
"
!=
x
"
$last_created_file2
"
]
;
then
if
[
-f
./
$last_created_file2
/oai_mscgen_page_0.png
]
;
then
command
-v
eog 2>/dev/null
&&
eog ./
$last_created_file2
/oai_mscgen_page_0.png
fi
fi
}
function
control_c
()
# run if user hits control-c
{
echo_warning
"
\n
Exiting by ctrl+c
\n
"
if
[
$g_run_msc_gen
-eq
1
]
;
then
do_msc_gen
fi
exit
$?
}
function
main
()
{
local
-i
run_gdb
=
0
local
-i
run_mscgen
=
0
local
exe_arguments
=
" "
local
-i
epc_local
=
0
local
-r
epc_default_config_file
=
"
$OPENAIR_TARGETS
/bin/epc.conf"
local
epc_config_file
=
$epc_default_config_file
local
MSC_DIR
=
"/tmp"
until
[
-z
"
$1
"
]
do
...
...
@@ -103,11 +127,11 @@ function main()
shift
;
;;
-m
|
--mscgen
)
MSC_DIR
=
$2
g_msc_dir
=
$2
# can omit file name if last arg on the line
if
[
-d
"
$
MSC_DIR
"
]
;
then
echo
"setting mscgen log files to dir:
$
MSC_DIR
"
run_mscgen
=
1
if
[
-d
"
$
g_msc_dir
"
]
;
then
echo
"setting mscgen log files to dir:
$
g_msc_dir
"
g_
run_msc
_
gen
=
1
exe_arguments
=
"-m
$exe_arguments
"
shift
2
;
else
...
...
@@ -141,38 +165,29 @@ function main()
epc_config_file
=
"
$OPENAIR_DIR
/targets/bin/epc.local.enb.conf"
fi
if
[
$run_mscgen
-eq
1
]
;
then
if
[
$
g_
run_msc
_
gen
-eq
1
]
;
then
rm
-f
/tmp/openair.msc.
*
fi
exe_arguments
=
"-O
$epc_config_file
$exe_arguments
"
if
[
$run_gdb
-eq
0
]
;
then
# trap keyboard interrupt (control-c)
trap
control_c SIGINT
$OPENAIR_DIR
/targets/bin/mme_gw.Rel10
`
echo
$exe_arguments
`
2>&1
else
# trap keyboard interrupt (control-c) is done by gdb
touch
~/.gdb_mme_gw
chmod
777 ~/.gdb_mme_gw
echo
"file
$OPENAIR_DIR
/targets/bin/mme_gw.Rel10"
>
~/.gdb_mme_gw
echo
"set args
$exe_arguments
"
>>
~/.gdb_mme_gw
echo
"run"
>>
~/.gdb_mme_gw
cat
~/.gdb_mme_gw
gdb
-n
-x
~/.gdb_mme_gw
gdb
-n
-x
~/.gdb_mme_gw
if
[
$g_run_msc_gen
-eq
1
]
;
then
do_msc_gen
fi
fi
if
[
$run_mscgen
-eq
1
]
;
then
cd
$MSC_DIR
last_created_file
=
`
ls
-t
mscgen
*
|
head
-1
|
tr
-d
':'
`
$OPENAIR_DIR
/targets/SCRIPTS/msc_gen.py
sync
last_created_file2
=
`
ls
-t
mscgen
*
|
head
-1
|
tr
-d
':'
`
if
[
x
"
$last_created_file
"
!=
x
"
$last_created_file2
"
]
;
then
if
[
-f
./
$last_created_file2
/oai_mscgen_page_0.png
]
;
then
command
-v
eog 2>/dev/null
&&
eog ./
$last_created_file2
/oai_mscgen_page_0.png
fi
fi
fi
}
sudo echo
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment