git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5875 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
@@ -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 $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 "ifconfig eth2 up 192.168.14.3 netmask 255.255.255.0"
|
||||||
bash_exec "ip r d default dev eth0"
|
#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 a default via 192.168.14.4 dev eth2"
|
||||||
###########################################################
|
###########################################################
|
||||||
IPTABLES=/sbin/iptables
|
IPTABLES=/sbin/iptables
|
||||||
THIS_SCRIPT_PATH=$(dirname $(readlink -f $0))
|
THIS_SCRIPT_PATH=$(dirname $(readlink -f $0))
|
||||||
|
|||||||
+13
-5
@@ -36,7 +36,7 @@
|
|||||||
#include <map>
|
#include <map>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
#include <unistd.h>
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
// Definition of the scenario to execute
|
// 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
|
// #endif // SCENARIO_2
|
||||||
|
|
||||||
log_(0, "MIH_Link_Actions.confirm - End\n");
|
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()
|
// 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_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
|
//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)
|
if (second_link_activated==0)
|
||||||
{
|
{
|
||||||
log_(0, "COUNT: ", count );
|
// log_(0, "COUNT: ", count );
|
||||||
if (count >= 30)
|
if (count >= 750)
|
||||||
{
|
{
|
||||||
log_(0, "COUNT: ", count );
|
// log_(0, "COUNT: ", count );
|
||||||
send_MIH_Link_Action_Power_Up_request(_link_id_list[0]);//Link LTE
|
send_MIH_Link_Action_Power_Up_request(_link_id_list[0]);//Link LTE
|
||||||
second_link_activated = 1;
|
second_link_activated = 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 $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 "ifconfig eth2 up 192.168.14.3 netmask 255.255.255.0"
|
||||||
bash_exec "ip r d default dev eth0"
|
#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 a default via 192.168.14.4 dev eth2"
|
||||||
###########################################################
|
###########################################################
|
||||||
IPTABLES=/sbin/iptables
|
IPTABLES=/sbin/iptables
|
||||||
THIS_SCRIPT_PATH=$(dirname $(readlink -f $0))
|
THIS_SCRIPT_PATH=$(dirname $(readlink -f $0))
|
||||||
|
|||||||
Reference in New Issue
Block a user