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
37264971
Commit
37264971
authored
Oct 13, 2014
by
Ferreira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@5875
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
33368677
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
9 deletions
+17
-9
targets/PROJECTS/SPECTRA/DEMO_SPECTRA/spectra_demo_src/enb1/oai_conf/start_enb.bash
...EMO_SPECTRA/spectra_demo_src/enb1/oai_conf/start_enb.bash
+2
-2
targets/PROJECTS/SPECTRA/DEMO_SPECTRA/spectra_demo_src/enb2/mih_user/lte_test_user/enb2_lte_user.cpp
...ra_demo_src/enb2/mih_user/lte_test_user/enb2_lte_user.cpp
+13
-5
targets/PROJECTS/SPECTRA/start_enb.bash
targets/PROJECTS/SPECTRA/start_enb.bash
+2
-2
No files found.
targets/PROJECTS/SPECTRA/DEMO_SPECTRA/spectra_demo_src/enb1/oai_conf/start_enb.bash
View file @
37264971
...
...
@@ -68,8 +68,8 @@ source $THIS_SCRIPT_PATH/env_802dot21.bash
###########################################################
bash_exec
"ifconfig
$EMULATION_DEV_INTERFACE
up
$EMULATION_DEV_ADDRESS
netmask 255.255.255.0"
bash_exec
"ifconfig eth2 up 192.168.14.3 netmask 255.255.255.0"
bash_exec
"ip r d default dev eth0"
bash_exec
"ip r a default via 192.168.14.4 dev eth2"
#
bash_exec "ip r d default dev eth0"
#
bash_exec "ip r a default via 192.168.14.4 dev eth2"
###########################################################
IPTABLES
=
/sbin/iptables
THIS_SCRIPT_PATH
=
$(
dirname
$(
readlink
-f
$0
))
...
...
targets/PROJECTS/SPECTRA/DEMO_SPECTRA/spectra_demo_src/enb2/mih_user/lte_test_user/enb2_lte_user.cpp
View file @
37264971
...
...
@@ -36,7 +36,7 @@
#include <map>
#include <stdio.h>
#include <time.h>
#include <unistd.h>
///////////////////////////////////////////////////////////////////////////////
// Definition of the scenario to execute
...
...
@@ -1372,6 +1372,14 @@ void mih_user::receive_MIH_Link_Actions_confirm(odtone::mih::message& msg)
// #endif // SCENARIO_2
log_
(
0
,
"MIH_Link_Actions.confirm - End
\n
"
);
if
(
second_link_activated
==
1
)
{
unsigned
int
pause_time
=
30
;
// in seconds to show the result of the demo then proceed
log_
(
0
,
"
\n\n\n\n\t
----- Confirmed Configuration of LTE Link for TVWS -----
\n
"
);
log_
(
0
,
"
\n\t
----- END OF SPECTRA DEMO ! -----
\n
"
);
log_
(
0
,
"
\n\n
MIH User regular function will resume in (secs) : "
,
pause_time
);
usleep
(
pause_time
*
1000000
);
}
}
// void mih_user::cognitive_decision()
...
...
@@ -1454,13 +1462,13 @@ void mih_user::receive_MIH_MN_HO_Candidate_Query_request(odtone::mih::message& m
// send_MIH_Link_Actions_request(link, odtone::mih::link_ac_type_power_up);
//Send ONLY ONCE RRC_Connection_Reconfiguration request to the UE on LTE link 0
log_
(
0
,
"COUNT: "
,
count
);
//
log_(0, "COUNT: ", count );
if
(
second_link_activated
==
0
)
{
log_
(
0
,
"COUNT: "
,
count
);
if
(
count
>=
3
0
)
//
log_(0, "COUNT: ", count );
if
(
count
>=
75
0
)
{
log_
(
0
,
"COUNT: "
,
count
);
//
log_(0, "COUNT: ", count );
send_MIH_Link_Action_Power_Up_request
(
_link_id_list
[
0
]);
//Link LTE
second_link_activated
=
1
;
}
...
...
targets/PROJECTS/SPECTRA/start_enb.bash
View file @
37264971
...
...
@@ -68,8 +68,8 @@ source $THIS_SCRIPT_PATH/env_802dot21.bash
###########################################################
bash_exec
"ifconfig
$EMULATION_DEV_INTERFACE
up
$EMULATION_DEV_ADDRESS
netmask 255.255.255.0"
bash_exec
"ifconfig eth2 up 192.168.14.3 netmask 255.255.255.0"
bash_exec
"ip r d default dev eth0"
bash_exec
"ip r a default via 192.168.14.4 dev eth2"
#
bash_exec "ip r d default dev eth0"
#
bash_exec "ip r a default via 192.168.14.4 dev eth2"
###########################################################
IPTABLES
=
/sbin/iptables
THIS_SCRIPT_PATH
=
$(
dirname
$(
readlink
-f
$0
))
...
...
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