Giter Club home page Giter Club logo

flynetwork's Introduction

Hi there

🎒 I'm a Ph.D. in computer engineering by UTFPR, Brazil.
🔭 I'm currently with Mercado Livre as Sr. Data Science Engineer.
🌱 I’m currently learning Monitoring skills.
🏍️ I'm a motorcycle instructor and love to ride, especially off-road.
😊 I'm VIP of Rancheiros MC and Coordinator of Manobras Para Vida.

flynetwork's People

Contributors

fritsche avatar ggarciabas avatar

Watchers

 avatar  avatar

flynetwork's Issues

Exaustivo

custo_6 -> representa o custo_1 com solução exaustiva
custo_7 -> representa o custo_2 com solução exaustiva
custo_8 -> representa o custo_3 com solução exaustiva
custo_9 -> representa o custo_4 com solução exaustiva

Erro Wifiphystate - Invalid state

UavNetwork::NewUav 1 2 @31.2783
Uavs: (-2000,-2000)
Uav livre: 0
Uav #121 IP 10.1.1.9
[Detaching after fork from child process 13243]
Id 121 REF 43
->REF 41
Apps 4
UavApplication::StartApplication [121]
IP 10.1.1.9 -------------

Id 121 REF 45 ------------
ServerApplication::SendUavPacket SERVER - UAV [31.2783] ::: enviando informacoes de posicionamento para o UAV #121
UavApplication::StartApplication [121]
UAV 116 RECEIVED 31.2785 DEPLETIONOK @31.2785
msg="Invalid WifiPhy state.", file=../src/wifi/model/wifi-phy-state-helper.cc, line=376
terminate called without an active exception

Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50 ../sysdeps/unix/sysv/linux/raise.c: Arquivo ou diretório inexistente.
(gdb) bt
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0x00007ffff3e83535 in __GI_abort () at abort.c:79
#2 0x00007ffff42a1957 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3 0x00007ffff42a7aa6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x00007ffff42a7ae1 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5 0x00007ffff75dc461 in ns3::WifiPhyStateHelper::SwitchToTx (this=0x555555ab4bb0, txDuration=...,
packet=..., txPowerDbm=16.020600000000002, txVector=...)
at ../src/wifi/model/wifi-phy-state-helper.cc:376
#6 0x00007ffff75b49c9 in ns3::WifiPhy::SendPacket (this=0x5555558f2720, packet=..., txVector=...,
mpdutype=ns3::NORMAL_MPDU) at ../src/wifi/model/wifi-phy.cc:2342
#7 0x00007ffff76269cc in ns3::MacLow::ForwardDown (this=0x555555c55050, packet=..., hdr=
0x7fffffffd090, txVector=...) at ../src/wifi/model/mac-low.cc:1384
#8 0x00007ffff76317e1 in ns3::MacLow::SendBlockAckResponse (this=0x555555c55050, blockAck=
0x7fffffffd1b0, originator=..., immediate=true, duration=..., blockAckReqTxMode=...,
rxSnr=3.0614951852049948) at ../src/wifi/model/mac-low.cc:2322
#9 0x00007ffff7632274 in ns3::MacLow::SendBlockAckAfterAmpdu (this=0x555555c55050, tid=0 '\000',
originator=..., duration=..., blockAckReqTxVector=..., rxSnr=3.0614951852049948)
at ../src/wifi/model/mac-low.cc:2347
#10 0x00007ffff764274f in ns3::MakeEvent<void (ns3::MacLow::)(unsigned char, ns3::Mac48Address, ns3::Time, ns3::WifiTxVector, double), ns3::MacLow, unsigned char, ns3::Mac48Address, ns3::Time, ns3::WifiTxVector, double>(void (ns3::MacLow::)(unsigned char, ns3::Mac48Address, ns3::Time, ns3::WifiTxVector, double), ns3::MacLow, unsigned char, ns3::Mac48Address, ns3::Time, ns3::WifiTxVector, double)::EventMemberImpl5::Notify() (this=0x5555562522c0) at ./ns3/make-event.h:543
#11 0x00007ffff44c6971 in ns3::EventImpl::Invoke (this=0x5555562522c0)
at ../src/core/model/event-impl.cc:51
#12 0x00007ffff44cbff0 in ns3::DefaultSimulatorImpl::ProcessOneEvent (this=0x55555573cca0)
at ../src/core/model/default-simulator-impl.cc:149
#13 0x00007ffff44cc3f5 in ns3::DefaultSimulatorImpl::Run (this=0x55555573cca0)
at ../src/core/model/default-simulator-impl.cc:202
#14 0x00007ffff44c7ba9 in ns3::Simulator::Run () at ../src/core/model/simulator.cc:230
#15 0x000055555564c6fc in ns3::UavNetwork::Run (this=0x5555557405b0)
at ../scratch/flynetwork/uav-network.cc:328
#16 0x00005555555c5f21 in main (argc=7, argv=0x7fffffffdcf8) at ../scratch/flynetwork/main.cc:102
(gdb)

WifiPhyStateHelper::SwitchToOff state 3 @30.1674 COMO?!?! Nao esta sendo utilizado!

ServerApplication::SendUavPacket SERVER - UAV [10.015] ::: enviando informacoes de posicionamento para o UAV #134
UAV	134	RECEIVED	10.0151	GOTO @10.0151
UAV [134] recebeu pacote com mesmo comando de posicionamento [163.096,290.241] -> [237.99,210.421] == 109.455 @10.0151
SERVER - UAVRECEIVED ::: UAV #134 CANCEL SEND POSITION @10.0153
UavMobilityModel :: [[ FINAL ]] 19.6816 (362.81,225.052) deveria estar em (362.81,225.052)
UAV [131] @19.6816 course changed!!! ---- ~~~~
UAV #131 chegou ao seu posicionamento final.
UAV	131	SENT	19.6816	SERVER @19.6816
UavDeviceEnergyModel::StartHover [131] lasttime: 19.6816 @19.6816
SERVER - atualizando UAV 131 @19.6817
SERVER - UAV #131 confirmado no posicionamento
SERVER	SENT	@19.6817	SERVEROK
UAV #131 recebeu SERVEROK
UavEnergySource::UpdateEnergySourceClient DEPLETION [133] ed: 0.1632J re: 3.7225J thr: 3.85853J @30.1674
WifiPhyStateHelper::SwitchToOff state 3 @30.1674
UavDeviceEnergyModel::HandleEnergyDepletion 133 @30.1674
---->>> EnergyDepletionCallback [133] going to 275,175 @30.1674
msg="UavDeviceEnergyModel::StopHover UAV não chegou a sua posicao final!", file=../scratch/flynetwork/uav-device-energy-model.cc, line=306
terminate called without an active exception

Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: Arquivo ou diretório inexistente.
(gdb) 

Erro WifiPhyStateHelper

UAV recebeu novo posicionamento @15.771
SERVER - UAVRECEIVED ::: UAV #118 @15.7779
SwitchToOff 3 @15.7994
---->>> EnergyDepletionCallback 114 @15.7994
assert failed. cond="IsStateRx ()", file=../src/wifi/model/wifi-phy-state-helper.cc, line=416
terminate called without an active exception

Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6)
    at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: Arquivo ou diretório inexistente.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6)
    at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff3be6535 in __GI_abort () at abort.c:79
#2  0x00007ffff4002957 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007ffff4008aa6 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007ffff4008ae1 in std::terminate() ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007ffff75dcce8 in ns3::WifiPhyStateHelper::SwitchToRx (
    this=0x55555586f760, rxDuration=...)
    at ../src/wifi/model/wifi-phy-state-helper.cc:416
#6  0x00007ffff75c02ee in ns3::WifiPhy::StartRx (
    this=0x55555599efb0, packet=..., txVector=..., 
    mpdutype=ns3::NORMAL_MPDU, rxPowerW=7.6666471797273758e-13, 
    rxDuration=..., event=...) at ../src/wifi/model/wifi-phy.cc:3672
#7  0x00007ffff75b69b4 in ns3::WifiPhy::StartReceivePreambleAndHeader (this=0x55555599efb0, packet=..., rxPowerW=7.6666471797273758e-13, 
    rxDuration=...) at ../src/wifi/model/wifi-phy.cc:2480
#8  0x00007ffff760489f in ns3::YansWifiChannel::Receive (phy=..., 
    packet=..., rxPowerDbm=-91.153945225821943, duration=...)
    at ../src/wifi/model/yans-wifi-channel.cc:128
#9  0x00007ffff7606486 in ns3::MakeEvent<ns3::Ptr<ns3::YansWifiPhy>, ns3::Ptr<ns3::Packet>, double, ns3::Time, ns3::Ptr<ns3::YansWifiPhy>, ns3::Ptr<ns3::Packet>, double, ns3::Time>(void (*)(ns3::Ptr<ns3::YansWifiPhy>, ns3::Ptr<ns3::Packet>, double, ns3::Time), ns3::Ptr<ns3::YansWifiPhy>, ns3::Ptr<ns3::Packet>, double, ns3::Time)::EventFunctionImpl4::Notify() (this=0x555555d572e0) at ./ns3/make-event.h:716
#10 0x00007ffff4229971 in ns3::EventImpl::Invoke (
    this=0x555555d572e0) at ../src/core/model/event-impl.cc:51
#11 0x00007ffff422eff0 in ns3::DefaultSimulatorImpl::ProcessOneEvent
    (this=0x55555574ed10)
    at ../src/core/model/default-simulator-impl.cc:149
#12 0x00007ffff422f3f5 in ns3::DefaultSimulatorImpl::Run (
    this=0x55555574ed10)
    at ../src/core/model/default-simulator-impl.cc:202
#13 0x00007ffff422aba9 in ns3::Simulator::Run ()
    at ../src/core/model/simulator.cc:230
#14 0x0000555555651484 in ns3::UavNetwork::Run (this=0x555555752620)
    at ../scratch/flynetwork/uav-network.cc:328
#15 0x00005555555c9f41 in main (argc=7, argv=0x7fffffffdcf8)
    at ../scratch/flynetwork/main.cc:102
(gdb) 

Servidor Virginia - 29/04

nohup ./run_client.sh 3600 7 0 1 18096 &
nohup ./run_client.sh 3600 7 0 2 18096 &
nohup ./run_client.sh 3600 7 0 3 18096 &
nohup ./run_client.sh 3600 7 0 4 18096 &

nohup ./run_client.sh 3600 4 0 1 18096 &
nohup ./run_client.sh 3600 4 0 2 18096 &
nohup ./run_client.sh 3600 4 0 3 18096 &
nohup ./run_client.sh 3600 4 0 4 18096 &

nohup ./run_client.sh 3600 8 0 1 18096 &
nohup ./run_client.sh 3600 8 0 2 18096 &
nohup ./run_client.sh 3600 8 0 3 18096 &
nohup ./run_client.sh 3600 8 0 4 18096 &

DA puro

Graficos

  • % de clientes conectados, avaliar relativa a quantidade de clientes que poderia efetivamente estar conectado, conseque isto com a cobertura fixa utilizada no calclo do DA de localizacao.

./src/wifi/model/channel-access-manager.cc

Apps 4
---- EnergyRechargedCallback #116 @174.228
WifiRadioEnergyModel:Energy is recharged! @174.228
UavDeviceEnergyModel::CalculateThreshold distance: 3m edist: 0.0308642J
UavEnergySource::SetBasicEnergyLowBatteryThreshold [116] thr: 0.00944033 % --- 2.8321J @174.228
UavDeviceEnergyModel::StartHover [116] lasttime: 174.228 @174.228
UavApplication::StartApplication [116]
IP 10.1.1.4 -------------
 ------------------------------------- 
Id 116 REF 52 ------------
ServerApplication::SendUavPacket SERVER - UAV [174.228] ::: enviando informacoes de posicionamento para o UAV #116
assert failed. cond="Simulator::Now () - m_lastRxStart <= m_sifs", file=../src/wifi/model/channel-access-manager.cc, line=593
terminate called without an active exception

Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: Arquivo ou diretório inexistente.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff3be3535 in __GI_abort () at abort.c:79
#2  0x00007ffff3fff957 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007ffff4005aa6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007ffff4005ae1 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007ffff768279e in ns3::ChannelAccessManager::NotifyTxStartNow (this=0x555555bd7830, duration=...)
    at ../src/wifi/model/channel-access-manager.cc:593
#6  0x00007ffff7685be3 in ns3::PhyListener::NotifyTxStart (this=0x555555aa0410, duration=..., txPowerDbm=16.020600000000002)
    at ../src/wifi/model/channel-access-manager.cc:65
#7  0x00007ffff75d8f8f in ns3::WifiPhyStateHelper::NotifyTxStart (this=0x555555ad8560, duration=..., txPowerDbm=16.020600000000002)
    at ../src/wifi/model/wifi-phy-state-helper.cc:233
#8  0x00007ffff75db0cf in ns3::WifiPhyStateHelper::SwitchToTx (this=0x555555ad8560, txDuration=..., packet=..., 
    txPowerDbm=16.020600000000002, txVector=...) at ../src/wifi/model/wifi-phy-state-helper.cc:386
#9  0x00007ffff75b2bb3 in ns3::WifiPhy::SendPacket (this=0x5555559904d0, packet=..., txVector=..., mpdutype=ns3::NORMAL_MPDU)
    at ../src/wifi/model/wifi-phy.cc:2345
#10 0x00007ffff7625fd6 in ns3::MacLow::ForwardDown (this=0x555555c5e8c0, packet=..., hdr=0x555555c5e9f0, txVector=...)
    at ../src/wifi/model/mac-low.cc:1384
#11 0x00007ffff762b12e in ns3::MacLow::SendDataPacket (this=0x555555c5e8c0) at ../src/wifi/model/mac-low.cc:1780
#12 0x00007ffff761b991 in ns3::MacLow::StartTransmission (this=0x555555c5e8c0, packet=..., hdr=0x555555c5ff60, params=..., txop=...)
    at ../src/wifi/model/mac-low.cc:597
#13 0x00007ffff7769c74 in ns3::QosTxop::NotifyAccessGranted (this=0x555555c5fec0) at ../src/wifi/model/qos-txop.cc:232
#14 0x00007ffff767eff7 in ns3::ChannelAccessManager::DoGrantAccess (this=0x555555bd7830) at ../src/wifi/model/channel-access-manager.cc:384
#15 0x00007ffff767f373 in ns3::ChannelAccessManager::AccessTimeout (this=0x555555bd7830) at ../src/wifi/model/channel-access-manager.cc:401
#16 0x00007ffff7686a03 in ns3::MakeEvent<void (ns3::ChannelAccessManager::*)(), ns3::ChannelAccessManager*>(void (ns3::ChannelAccessManager::*)(), ns3::ChannelAccessManager*)::EventMemberImpl0::Notify() (this=0x555556030d50) at ./ns3/make-event.h:376
#17 0x00007ffff4226971 in ns3::EventImpl::Invoke (this=0x555556030d50) at ../src/core/model/event-impl.cc:51
#18 0x00007ffff422bff0 in ns3::DefaultSimulatorImpl::ProcessOneEvent (this=0x55555574fd10)
    at ../src/core/model/default-simulator-impl.cc:149
#19 0x00007ffff422c3f5 in ns3::DefaultSimulatorImpl::Run (this=0x55555574fd10) at ../src/core/model/default-simulator-impl.cc:202
#20 0x00007ffff4227ba9 in ns3::Simulator::Run () at ../src/core/model/simulator.cc:230
#21 0x0000555555652536 in ns3::UavNetwork::Run (this=0x555555753620) at ../scratch/flynetwork/uav-network.cc:328
#22 0x00005555555ca123 in main (argc=7, argv=0x7fffffffdcf8) at ../scratch/flynetwork/main.cc:103
(gdb) q
A debugging session is active.

	Inferior 1 [process 799] will be killed.

Quit anyway? (y or n) y

UavDeviceEnergyModel::StopHover UAV não chegou a sua posicao final!

UavEnergySource:UpdateEnergySourceHover [118] rem: 45.1668J cons: 0.0925926J @318.175
UavEnergySource::UpdateEnergySource DEPLETION [119] ed: 0.00027832 re: 33.6382J thr: 33.6384J @318.232
WifiRadioEnergyModel:Energy is depleted!
UavDeviceEnergyModel::HandleEnergyDepletion 119 @318.232
---->>> EnergyDepletionCallback [119] going to 275,175 @318.232
msg="UavDeviceEnergyModel::StopHover UAV não chegou a sua posicao final!", file=../scratch/flynetwork/uav-device-energy-model.cc, line=301
terminate called without an active exception

Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: Arquivo ou diretório inexistente.
(gdb) q
``

Servidor Virginia 25/04/2019 - pasta Flynetwork

screen -SL _7_1_17604_cli
screen -r _7_1_17604_cli
./run_flynetwork.sh 3600 7 0 1 17604

screen -SL _7_2_17604_cli
screen -r _7_2_17604_cli
./run_flynetwork.sh 3600 7 0 2 17604

screen -SL _7_3_17604_cli
screen -r _7_3_17604_cli
./run_flynetwork.sh 3600 7 0 3 17604

screen -SL _7_4_17604_cli
screen -r _7_4_17604_cli
./run_flynetwork.sh 3600 7 0 4 17604

Erro Energy consumption acima da bateria total

Id 121 REF 45 ------------
ServerApplication::SendUavPacket SERVER - UAV [31.2783] ::: enviando informacoes de posicionamento para o UAV #121
UavApplication::StartApplication [121]
UAV	116	RECEIVED	31.2785	DEPLETIONOK @31.2785
UAV	121	RECEIVED	31.2887	GOTO @31.2887
UAV recebeu novo posicionamento @31.2887
SERVER - UAVRECEIVED ::: UAV #121 @31.2962
assert failed. cond="m_totalEnergyConsumption <= m_source->GetInitialEnergy ()", file=../src/wifi/model/wifi-radio-energy-model.cc, line=385
terminate called without an active exception

Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: Arquivo ou diretório inexistente.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff3e83535 in __GI_abort () at abort.c:79
#2  0x00007ffff42a1957 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007ffff42a7aa6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007ffff42a7ae1 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007ffff77ca51e in ns3::WifiRadioEnergyModel::ChangeState (this=0x555556024370, newState=3)
    at ../src/wifi/model/wifi-radio-energy-model.cc:385
#6  0x00007ffff77d34e8 in ns3::MemPtrCallbackImpl<ns3::WifiRadioEnergyModel*, void (ns3::DeviceEnergyModel::*)(int), void, int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>::operator() (this=0x555555e639f0, a1=3) at ./ns3/callback.h:612
#7  0x00005555555ee089 in ns3::Callback<void, int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>::operator() (this=0x5555560c8a08, a1=3)
    at ./ns3/callback.h:1291
#8  0x00007ffff77cc4c2 in ns3::WifiRadioEnergyModelPhyListener::NotifyRxStart (this=0x5555560c8a00, 
    duration=...) at ../src/wifi/model/wifi-radio-energy-model.cc:569
#9  0x00007ffff75da8ef in ns3::WifiPhyStateHelper::NotifyRxStart (this=0x555555e984c0, duration=...)
    at ../src/wifi/model/wifi-phy-state-helper.cc:243
#10 0x00007ffff75dcc21 in ns3::WifiPhyStateHelper::SwitchToRx (this=0x555555e984c0, rxDuration=...)
    at ../src/wifi/model/wifi-phy-state-helper.cc:415
#11 0x00007ffff75c02de in ns3::WifiPhy::StartRx (this=0x5555560c4770, packet=..., txVector=..., 
    mpdutype=ns3::NORMAL_MPDU, rxPowerW=2.9543396451826854e-13, rxDuration=..., event=...)
    at ../src/wifi/model/wifi-phy.cc:3672
#12 0x00007ffff75b69a4 in ns3::WifiPhy::StartReceivePreambleAndHeader (this=0x5555560c4770, 
    packet=..., rxPowerW=2.9543396451826854e-13, rxDuration=...)
    at ../src/wifi/model/wifi-phy.cc:2480
#13 0x00007ffff760488f in ns3::YansWifiChannel::Receive (phy=..., packet=..., 
    rxPowerDbm=-95.295395775584907, duration=...) at ../src/wifi/model/yans-wifi-channel.cc:128
#14 0x00007ffff7606476 in ns3::MakeEvent<ns3::Ptr<ns3::YansWifiPhy>, ns3::Ptr<ns3::Packet>, double, ns3::Time, ns3::Ptr<ns3::YansWifiPhy>, ns3::Ptr<ns3::Packet>, double, ns3::Time>(void (*)(ns3::Ptr<ns3::YansWifiPhy>, ns3::Ptr<ns3::Packet>, double, ns3::Time), ns3::Ptr<ns3::YansWifiPhy>, ns3::Ptr<ns3::Packet>, double, ns3::Time)::EventFunctionImpl4::Notify() (this=0x555555e93d00)
    at ./ns3/make-event.h:716
#15 0x00007ffff44c6971 in ns3::EventImpl::Invoke (this=0x555555e93d00)
    at ../src/core/model/event-impl.cc:51
#16 0x00007ffff44cbff0 in ns3::DefaultSimulatorImpl::ProcessOneEvent (this=0x55555573cca0)
    at ../src/core/model/default-simulator-impl.cc:149
#17 0x00007ffff44cc3f5 in ns3::DefaultSimulatorImpl::Run (this=0x55555573cca0)
    at ../src/core/model/default-simulator-impl.cc:202
#18 0x00007ffff44c7ba9 in ns3::Simulator::Run () at ../src/core/model/simulator.cc:230
#19 0x000055555564c6fc in ns3::UavNetwork::Run (this=0x5555557405b0)
    at ../scratch/flynetwork/uav-network.cc:328
#20 0x00005555555c5f21 in main (argc=7, argv=0x7fffffffdcf8) at ../scratch/flynetwork/main.cc:102
(gdb) 

Simulaçoes por commit

Commit: cb3d5e6

  • nohup ./run_wifi.sh 1000 7 0 1 18096 1 ~/2_04_2019 150 500 &

  • nohup ./run_wifi.sh 1000 7 0 1 18096 3 ~/2_04_2019 150 500 &

  • nohup ./run_wifi.sh 1000 7 0 2 18096 1 ~/2_04_2019 150 500 &

  • nohup ./run_wifi.sh 1000 7 0 2 18096 3 ~/2_04_2019 150 500 &

  • nohup ./run_wifi.sh 1000 7 0 3 18096 1 ~/2_04_2019 150 500 &

  • nohup ./run_wifi.sh 1000 7 0 3 18096 3 ~/2_04_2019 150 500 &

  • nohup ./run_wifi.sh 1000 7 0 4 18096 1 ~/2_04_2019 150 500 &

  • nohup ./run_wifi.sh 1000 7 0 4 18096 3 ~/2_04_2019 150 500 &

Posicao estranha

da_loc_cpp_000000000000094

Veja que a localizacao 0 esta abaixo do ponto azul e de seus vizinhos, pai e filho.

Servidor Virginia - 26/05/2019

screen -SL _7_1_17604_wifi
screen -r _7_1_17604_wifi
./run_flynetwork.sh 3600 7 0 1 17604
nohup ./run_wifi.sh 3600 7 0 1 17604 &

screen -SL _7_2_17604_wifi
screen -r _7_2_17604_wifi
./run_wifi.sh 3600 7 0 2 17604
nohup ./run_wifi.sh 3600 7 0 2 17604 &

screen -SL _7_3_17604_wifi
screen -r _7_3_17604_wifi
./run_wifi.sh 3600 7 0 3 17604
nohup ./run_wifi.sh 3600 7 0 3 17604 &

screen -SL _7_4_17604_wifi
screen -r _7_4_17604_wifi
./run_wifi.sh 3600 7 0 4 17604
nohup ./run_wifi.sh 3600 7 0 4 17604 &

Ero !m_flying

UAV #136 recebeu SERVEROK
UavEnergySource::UpdateEnergySourceHover DEPLETION  [133] ed: 48.4444J re: 1791.77J thr: 1796.74J @3118.28
UavDeviceEnergyModel::HandleEnergyDepletion 133 @3118.28
---->>> EnergyDepletionCallback [133] going to 275,175 @3118.28
UavDeviceEnergyModel::StopHover [133] lasttime: 3117.78 @3118.28
UavDeviceEnergyModel::SetFlying [133] 1 @3118.28
UavMobilityModel::DoSetPosition [275,175] <--- [136.071,228.568] @3118.28
UavMobilityModel::DoInitializePrivate tempo[29.7797] distancia[148.899] @3118.28
SERVER - received DEPLETION  from UAV 133
SERVER	SENT	@3118.28	DEPLETIONOK
UavNetwork::NewUav 1 2 @3118.28
Uavs: (-2000,-2000)
	135 (-2000,-2000)
	131 (-2000,-2000)
Uav livre: 2
Id 135 REF 50
->REF 48
UavMobilityModel::SetFirstPosition @3118.28
Apps 4
---- EnergyRechargedCallback #135 @3118.28
UavDeviceEnergyModel::SetFlying [135] 0 @3118.28
UavDeviceEnergyModel::StartHover [135] lasttime: 3118.28 @3118.28
UavApplication::StartApplication [135]
UavEnergySource::SetBasicEnergyLowBatteryThreshold [135] thr: 0.000720165% in joules: 113.037J @3118.28
IP 10.1.1.6 -------------
 ------------------------------------- 
Id 135 REF 53 ------------
ServerApplication::SendUavPacket SERVER - UAV [3118.28] ::: enviando informacoes de posicionamento para o UAV #135
UAV	133	RECEIVED	3118.28	DEPLETIONOK @3118.28
UAV	135	RECEIVED	3118.28	GOTO @3118.28
UAV [135] recebeu novo posicionamento @3118.28
UavDeviceEnergyModel::StopHover [135] lasttime: 3118.28 @3118.28
UavDeviceEnergyModel::SetFlying [135] 1 @3118.28
UavMobilityModel::DoSetPosition [136.071,228.568] <--- [275.106,177.998] @3118.28
UavMobilityModel::DoInitializePrivate tempo[29.5892] distancia[147.946] @3118.28
SERVER - UAVRECEIVED ::: UAV #135 CANCEL SEND POSITION @3118.28
assert failed. cond="!m_flying", msg="UavDeviceEnergyModel::HoverConsumption [133] @3118.78", file=../scratch/flynetwork/uav-device-energy-model.cc, line=253
terminate called without an active exception

Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: Arquivo ou diretório inexistente.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6)
    at ../sysdeps/unix/sysv/linux/raise.c:50
thout paging--or more, q to quit, c to continue wit
#1  0x00007ffff3be1535 in __GI_abort ()
    at abort.c:79
thout paging--or more, q to quit, c to continue wit
#2  0x00007ffff3ffd957 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
thout paging--or more, q to quit, c to continue wit
#3  0x00007ffff4003aa6 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
thout paging--or more, q to quit, c to continue wit
#4  0x00007ffff4003ae1 in std::terminate() ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
thout paging--or more, q to quit, c to continue wit
#5  0x00005555556290aa in ns3::UavDeviceEnergyModel::HoverConsumption (this=0x555555d0c760)
thout paging--or more, q to quit, c to continue wit
    at ../scratch/flynetwork/uav-device-energy-model.cc:253
thout paging--or more, q to quit, c to continue wit
#6  0x000055555562bbbb in ns3::MakeEvent<void (ns3::UavDeviceEnergyModel::*)(), ns3::UavDeviceEnergy--thout paging-- more, q to quit, c to continue wit
Model*>(void (ns3::UavDeviceEnergyModel::*)(), ns3::UavDeviceEnergyModel*)::EventMemberImpl0::Notify--thout paging-- more, q to quit, c to continue wit
() (this=0x5555671bedc0)
    at ./ns3/make-event.h:376
thout paging--or more, q to quit, c to continue wit
#7  0x00007ffff4224971 in ns3::EventImpl::Invoke
    (this=0x5555671bedc0)
thout paging--or more, q to quit, c to continue wit
    at ../src/core/model/event-impl.cc:51
thout paging--f4229ff0 in ns3::DefaultSimulatorImp--Type <RET> for more, q to quit, c to continue wit
l::ProcessOneEvent (this=0x55555574df00)
thout paging--qore/model/default-simulator-impl.cc--Type <RET> for more, q to quit, c to continue wit
Quit
(gdb) q
A debugging

Erro Negative delay

UavApplication:TotalEnergyConsumptionTrace(104, 39.0001, 121.112, 121.113)
UavApplication:TotalEnergyConsumptionTrace(106, 39.0001, 119.173, 119.173)
UavApplication:TotalEnergyConsumptionTrace(104, 39.0001, 121.113, 121.113)
assert failed. cond="delay.IsPositive ()", msg="DefaultSimulatorImpl::Schedule(): Negative delay", file=../src/core/model/default-simulator-impl.cc, line=233
terminate called without an active exception

Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: Arquivo ou diretório inexistente.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff3be5535 in __GI_abort () at abort.c:79
#2  0x00007ffff4001957 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007ffff4007aa6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007ffff4007ae1 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007ffff422eba5 in ns3::DefaultSimulatorImpl::Schedule (this=0x55555577dde0, delay=..., event=0x55555b13e8c0)
    at ../src/core/model/default-simulator-impl.cc:233
#6  0x00007ffff422a422 in ns3::Simulator::DoSchedule (time=..., impl=0x55555b13e8c0) at ../src/core/model/simulator.cc:294
#7  0x00007ffff7f9a2f5 in ns3::Simulator::Schedule<void (ns3::aodv::RoutingProtocol::*)(ns3::Ipv4Address), ns3::aodv::RoutingProtocol*, ns3::Ipv4Address> (delay=..., mem_ptr=
    (void (ns3::aodv::RoutingProtocol::*)(class ns3::aodv::RoutingProtocol * const, class ns3::Ipv4Address)) 0x7ffff7f8ee3c <ns3::aodv::RoutingProtocol::RouteRequestTimerExpire(ns3::Ipv4Address)>, obj=0x5555557bab80, a1=...) at ./ns3/simulator.h:1391
#8  0x00007ffff7f9fcc0 in ns3::MakeTimerImpl<void (ns3::aodv::RoutingProtocol::*)(ns3::Ipv4Address), ns3::aodv::RoutingProtocol*>(ns3::IntToType<1>, void (ns3::aodv::RoutingProtocol::*)(ns3::Ipv4Address), ns3::aodv::RoutingProtocol*)::MemFnTimerImplOne::Schedule(ns3::Time const&) (this=0x555556290960, delay=...) at ./ns3/timer-impl.h:687
#9  0x00007ffff423354b in ns3::Timer::Schedule (this=0x55555a4ba808, delay=...) at ../src/core/model/timer.cc:173
#10 0x00007ffff7f84976 in ns3::aodv::RoutingProtocol::ScheduleRreqRetry (this=0x5555557bab80, dst=...)
    at ../src/aodv/model/aodv-routing-protocol.cc:1108
#11 0x00007ffff7f83caf in ns3::aodv::RoutingProtocol::SendRequest (this=0x5555557bab80, dst=...)
    at ../src/aodv/model/aodv-routing-protocol.cc:1073
#12 0x00007ffff7f9c316 in ns3::MakeEvent<void (ns3::aodv::RoutingProtocol::*)(ns3::Ipv4Address), ns3::aodv::RoutingProtocol*, ns3::Ipv4Address>(void (ns3::aodv::RoutingProtocol::*)(ns3::Ipv4Address), ns3::aodv::RoutingProtocol*, ns3::Ipv4Address)::EventMemberImpl1::Notify() (
    this=0x55555800cc80) at ./ns3/make-event.h:406
#13 0x00007ffff4228971 in ns3::EventImpl::Invoke (this=0x55555800cc80) at ../src/core/model/event-impl.cc:51
#14 0x00007ffff422dff0 in ns3::DefaultSimulatorImpl::ProcessOneEvent (this=0x55555577dde0)
    at ../src/core/model/default-simulator-impl.cc:149
#15 0x00007ffff422e3f5 in ns3::DefaultSimulatorImpl::Run (this=0x55555577dde0) at ../src/core/model/default-simulator-impl.cc:202
#16 0x00007ffff4229ba9 in ns3::Simulator::Run () at ../src/core/model/simulator.cc:230
#17 0x0000555555675735 in ns3::UavNetwork::Run (this=0x555555820dc0) at ../scratch/wifi/uav-network.cc:339
#18 0x00005555555d6d91 in main (argc=8, argv=0x7fffffffdbe8) at ../scratch/wifi/main.cc:106
(gdb) 

Servidor Virginia - 26/05/2019

nohup ./run_wifi.sh 3600 7 0 1 17604 &
nohup ./run_wifi.sh 3600 7 0 2 17604 &
nohup ./run_wifi.sh 3600 7 0 3 17604 &
nohup ./run_wifi.sh 3600 7 0 4 17604 &

nohup ./run_wifi.sh 3600 4 0 1 17604 &
nohup ./run_wifi.sh 3600 4 0 2 17604 &
nohup ./run_wifi.sh 3600 4 0 3 17604 &
nohup ./run_wifi.sh 3600 4 0 4 17604 &

nohup ./run_wifi.sh 3600 8 0 1 17604 &
nohup ./run_wifi.sh 3600 8 0 2 17604 &
nohup ./run_wifi.sh 3600 8 0 3 17604 &
nohup ./run_wifi.sh 3600 8 0 4 17604 &

Erro Tentativa DHCP falha na interface, interface nao existente

UAV [4] @102.4 - DATA to Server.
UavApplication:TracedCallbackRxAppInfra(4, 102.401, 0x55555633bb10, 02-07-c0:a8:04:0e:02:c0:00)
ClientModelContainer:FindClientModel(0x555555a4d1f0, 102.401, "login-72")
ClientModel:SetPosition("login-72", 102.401, 198.035, 352.716)
ClientModel:SetUpdatePos("login-72", 102.401, +102400691995.0ns)
UavApplication:TracedCallbackRxAppInfra(3, 102.446, 0x555555fda450, 02-07-c0:a8:03:07:01:c0:00)
ClientModelContainer:FindClientModel(0x5555559891b0, 102.446, "login-26")
ClientModel:SetPosition("login-26", 102.446, 313.311, 194.304)
ClientModel:SetUpdatePos("login-26", 102.446, +102445819625.0ns)
msg="index 0 out of bounds", file=../src/internet/model/ipv4-interface.cc, line=334
terminate called without an active exception

Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1 0x00007fffee0cd801 in __GI_abort () at abort.c:79
#2 0x00007fffeecdf8b7 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3 0x00007fffeece5a06 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x00007fffeece5a41 in std::terminate() ()
from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5 0x00007ffff25d2fdb in ns3::Ipv4Interface::GetAddress (this=0x555555ce1590,
index=0) at ../src/internet/model/ipv4-interface.cc:334
#6 0x00007ffff25e7f8d in ns3::Ipv4L3Protocol::GetAddress (
this=0x555555abe6c0, interfaceIndex=1, addressIndex=0)
at ../src/internet/model/ipv4-l3-protocol.cc:1141
#7 0x00007ffff2651ebd in ns3::UdpSocketImpl::DoSendTo (this=0x555555ed99d0,
p=..., dest=..., port=67, tos=0 '\000')
at ../src/internet/model/udp-socket-impl.cc:591
#8 0x00007ffff2655100 in ns3::UdpSocketImpl::SendTo (this=0x555555ed99d0,
p=..., flags=0, address=...)
at ../src/internet/model/udp-socket-impl.cc:815
#9 0x00007ffff3dd8fbf in ns3::DhcpClient::Request (this=0x555555ce5c80)
at ../src/internet-apps/model/dhcp-client.cc:402
#10 0x00007ffff3dd8c0a in ns3::DhcpClient::Select (this=0x555555ce5c80)
at ../src/internet-apps/model/dhcp-client.cc:383
#11 0x00007ffff3ddc315 in ns3::EventImpl* ns3::MakeEvent<void (ns3::DhcpClient::)(), ns3::DhcpClient>(void (ns3::DhcpClient::)(), ns3::DhcpClient)::EventMemberImpl0::Notify() (this=0x555555ae8000) at ./ns3/make-event.h:376
#12 0x00007fffef2e9c2d in ns3::EventImpl::Invoke (this=0x555555ae8000)
at ../src/core/model/event-impl.cc:51
#13 0x00007fffef2ef324 in ns3::DefaultSimulatorImpl::ProcessOneEvent (
this=0x555555941d60) at ../src/core/model/default-simulator-impl.cc:149
#14 0x00007fffef2ef729 in ns3::DefaultSimulatorImpl::Run (this=0x555555941d60)
at ../src/core/model/default-simulator-impl.cc:202
#15 0x00007fffef2eae59 in ns3::Simulator::Run ()
at ../src/core/model/simulator.cc:230
#16 0x0000555555656af7 in ns3::UavNetwork::Run (this=0x5555559459c0)
at ../scratch/flynetwork/uav-network.cc:320
#17 0x00005555555e0199 in main (argc=7, argv=0x7fffffffdcb8)
at ../scratch/flynetwork/main.cc:94
(gdb)

Aleatório

Executar simulação completa tomando a decisão de posicionamento de forma aleatória.

Problema com GDB

➜  output git:(client_device) ✗ tail teste_1_custo_3_log.txt 
UAV [134] @4287.34 course changed!!! ---- ~~~~
UAV #134 chegou ao seu posicionamento final.
UAV	134	SENT	4287.34	SERVER @4287.34
UavEnergySource::SetBasicEnergyLowBatteryThreshold [134] thr: 0.00610526% in joules: 958.281J @4287.34
UavDeviceEnergyModel::SetFlying [134] 0 @4287.34
UavDeviceEnergyModel::StartHover [134] lasttime: 4287.34 @4287.34
SERVER - atualizando UAV 134 @4287.34
SERVER - UAV #134 confirmado no posicionamento
SERVER	SENT	@4287.34	SERVEROK
UAV #134 recebeu SERVEROK
➜  output git:(client_device) ✗ tail teste_1_custo_4_log.txt 
UavMobilityModel::DoInitializePrivate tempo[10.1689] distancia[50.8447] @2709.01
SERVER - UAVRECEIVED ::: UAV #136 CANCEL SEND POSITION @2709.01
ServerApplication::SendUavPacket SERVER - UAV [2709.01] ::: enviando informacoes de posicionamento para o UAV #133
UAV	133	RECEIVED	2709.02	GOTO @2709.02
UAV [133] recebeu novo posicionamento @2709.02
UavDeviceEnergyModel::StopHover [133] lasttime: 2709 @2709.02
UavDeviceEnergyModel::SetFlying [133] 1 @2709.02
UavMobilityModel::DoSetPosition [131.176,216.717] <--- [275.106,177.998] @2709.02
UavMobilityModel::DoInitializePrivate tempo[29.8094] distancia[149.047] @2709.02
SERVER - UAVRECEIVED ::: UAV #133 CANCEL SEND POSITION @2709.02
➜  output git:(client_device) ✗ tail teste_1_custo_2_log.txt 
UAV [132] @2479.56 course changed!!! ---- ~~~~
UAV #132 chegou ao seu posicionamento final.
UAV	132	SENT	2479.56	SERVER @2479.56
UavEnergySource::SetBasicEnergyLowBatteryThreshold [132] thr: 0.00812263% in joules: 1274.93J @2479.56
UavDeviceEnergyModel::SetFlying [132] 0 @2479.56
UavDeviceEnergyModel::StartHover [132] lasttime: 2479.56 @2479.56
SERVER - atualizando UAV 132 @2479.56
SERVER - UAV #132 confirmado no posicionamento
SERVER	SENT	@2479.56	SERVEROK
UAV #132 recebeu SERVEROK
➜  output git:(client_device) ✗ tail teste_1_custo_1_log.txt 
ServerApplication::SendUavPacket SERVER - UAV [2641.75] ::: enviando informacoes de posicionamento para o UAV #135
UAV	132	RECEIVED	2641.75	DEPLETIONOK @2641.75
UAV	135	RECEIVED	2641.75	GOTO @2641.75
UAV [135] recebeu novo posicionamento @2641.75
UavDeviceEnergyModel::StopHover [135] lasttime: 2641.75 @2641.75
UavDeviceEnergyModel::SetFlying [135] 1 @2641.75
UavMobilityModel::DoSetPosition [484.714,178.01] <--- [275.106,177.998] @2641.75
UavMobilityModel::DoInitializePrivate tempo[41.9216] distancia[209.608] @2641.75
SERVER - UAVRECEIVED ::: UAV #135 CANCEL SEND POSITION @2641.75
UavDeviceEnergyModel::HoverConsumption problema flying == 1 [132] @2642.25
➜  output git:(client_device) ✗ tail rockinriolisboa_30_custo_1_log.txt 
UAV [98] @368.559 course changed!!! ---- ~~~~
UAV #98 chegou ao seu posicionamento final.
UAV	98	SENT	368.559	SERVER @368.559
UavEnergySource::SetBasicEnergyLowBatteryThreshold [98] thr: 0.0121999% in joules: 1914.9J @368.559
UavDeviceEnergyModel::SetFlying [98] 0 @368.559
UavDeviceEnergyModel::StartHover [98] lasttime: 368.559 @368.559
SERVER - atualizando UAV 98 @368.559
SERVER - UAV #98 confirmado no posicionamento
SERVER	SENT	@368.559	SERVEROK
UAV #98 recebeu SERVEROK
➜  output git:(client_device) ✗ tail rockinriolisboa_30_custo_2        
tail: não foi possível abrir 'rockinriolisboa_30_custo_2' para leitura: Arquivo ou diretório inexistente
➜  output git:(client_device) ✗ tail rockinriolisboa_30_custo_2_log.txt 
UAV [98] @368.559 course changed!!! ---- ~~~~
UAV #98 chegou ao seu posicionamento final.
UAV	98	SENT	368.559	SERVER @368.559
UavEnergySource::SetBasicEnergyLowBatteryThreshold [98] thr: 0.0121999% in joules: 1914.9J @368.559
UavDeviceEnergyModel::SetFlying [98] 0 @368.559
UavDeviceEnergyModel::StartHover [98] lasttime: 368.559 @368.559
SERVER - atualizando UAV 98 @368.559
SERVER - UAV #98 confirmado no posicionamento
SERVER	SENT	@368.559	SERVEROK
UAV #98 recebeu SERVEROK
➜  output git:(client_device) ✗ tail rockinriolisboa_30_custo_3_log.txt 
UAV [96] @348.174 course changed!!! ---- ~~~~
UAV #96 chegou ao seu posicionamento final.
UAV	96	SENT	348.174	SERVER @348.174
UavEnergySource::SetBasicEnergyLowBatteryThreshold [96] thr: 0.0121999% in joules: 1914.9J @348.174
UavDeviceEnergyModel::SetFlying [96] 0 @348.174
UavDeviceEnergyModel::StartHover [96] lasttime: 348.174 @348.174
SERVER - atualizando UAV 96 @348.174
SERVER - UAV #96 confirmado no posicionamento
SERVER	SENT	@348.174	SERVEROK
UAV #96 recebeu SERVEROK
➜  output git:(client_device) ✗ tail rockinriolisboa_30_custo_4_log.txt 
UAV [98] @368.559 course changed!!! ---- ~~~~
UAV #98 chegou ao seu posicionamento final.
UAV	98	SENT	368.559	SERVER @368.559
UavEnergySource::SetBasicEnergyLowBatteryThreshold [98] thr: 0.0121999% in joules: 1914.9J @368.559
UavDeviceEnergyModel::SetFlying [98] 0 @368.559
UavDeviceEnergyModel::StartHover [98] lasttime: 368.559 @368.559
SERVER - atualizando UAV 98 @368.559
SERVER - UAV #98 confirmado no posicionamento
SERVER	SENT	@368.559	SERVEROK
UAV #98 recebeu SERVEROK
➜  output git:(client_device) ✗ 

Servidor Virginia - 26/05/2019 - pasta Client

screen -SL _7_1_17604_client
screen -r _7_1_17604_client
./run_flynetwork.sh 3600 7 0 1 17604
nohup ./run_client.sh 3600 7 0 1 17604 &

screen -SL _7_2_17604_client
screen -r _7_2_17604_client
./run_client.sh 3600 7 0 2 17604
nohup ./run_client.sh 3600 7 0 2 17604 &

screen -SL _7_3_17604_client
screen -r _7_3_17604_client
./run_client.sh 3600 7 0 3 17604
nohup ./run_client.sh 3600 7 0 3 17604 &

screen -SL _7_4_17604_client
screen -r _7_4_17604_client
./run_client.sh 3600 7 0 4 17604
nohup ./run_client.sh 3600 7 0 4 17604 &

Erro TCP

Waf: Entering directory `/home/dell/ns3/build'
[1797/1860] Compiling scratch/flynetwork/smartphone-application.cc
[1798/1860] Compiling scratch/flynetwork/main.cc
[1803/1860] Compiling scratch/flynetwork/server-application.cc
[1807/1860] Compiling scratch/flynetwork/uav-application.cc
[1819/1860] Compiling scratch/flynetwork/uav-network.cc
[1822/1860] Linking build/scratch/flynetwork/flynetwork
Waf: Leaving directory `/home/dell/ns3/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (11.874s)
Server Address: 10.1.1.1
Uav #94 IP 10.1.1.2
Uav #95 IP 10.1.1.3
Uav #96 IP 10.1.1.4
Uav #97 IP 10.1.1.5
Uav #98 IP 10.1.1.6
Uav #99 IP 10.1.1.7
Uav #100 IP 10.1.1.8
Uav #101 IP 10.1.1.9
assert failed. cond="m_sentList.size () == 0", file=../src/internet/model/tcp-tx-buffer.cc, line=170
terminate called without an active exception
Command ['/home/dell/ns3/build/scratch/flynetwork/flynetwork', '--SimTime=3600', '-CliUpdate=5.0', '-Scenario=4', '-Env=2', '-Protocol=2', '-Custo=1', '-Seed=18096'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").

Simulação Home

RockinRio - utilizando somente UDP (esperando finalizar teste TCP_CLI no servidor utfpr)

./run_flynetwork.sh 3600 4 1 1 18096

ns3::UavEnergySource::CalculateRemainingEnergy

UavEnergySource:UpdateEnergySourceHover [119] rem: 276.113J cons: 0.0925926J @87.9716
UavDeviceEnergyModel:HoverConsumption diff: 0.5 energy: 0.000308642 @87.9938
UavEnergySource:UpdateEnergySourceHover [121] rem: 284.618J cons: 0.0925926J @87.9938
UavDeviceEnergyModel:HoverConsumption diff: 0.5 energy: 0.000308642 @88.1179
UavEnergySource:UpdateEnergySourceHover [118] rem: 270.838J cons: 0.0925926J @88.1179
UavDeviceEnergyModel:HoverConsumption diff: 0.5 energy: 0.000308642 @88.3662
UavEnergySource:UpdateEnergySourceHover [120] rem: 281.238J cons: 0.0925926J @88.3662
UavDeviceEnergyModel:HoverConsumption diff: 0.5 energy: 0.000308642 @88.4716
UavEnergySource:UpdateEnergySourceHover [119] rem: 274.4J cons: 0.0925926J @88.4716
UavDeviceEnergyModel:HoverConsumption diff: 0.5 energy: 0.000308642 @88.4938
UavEnergySource:UpdateEnergySourceHover [121] rem: 282.878J cons: 0.0925926J @88.4938
UavDeviceEnergyModel:HoverConsumption diff: 0.5 energy: 0.000308642 @88.6179
UavEnergySource:UpdateEnergySourceHover [118] rem: 269.102J cons: 0.0925926J @88.6179
UavDeviceEnergyModel:HoverConsumption diff: 0.5 energy: 0.000308642 @88.8662
UavEnergySource:UpdateEnergySourceHover [120] rem: 279.525J cons: 0.0925926J @88.8662
assert failed. cond="m_remainingEnergyJ >= energyToDecreaseJ", file=../scratch/flynetwork/uav-energy-source.cc, line=354
terminate called without an active exception

Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50 ../sysdeps/unix/sysv/linux/raise.c: Arquivo ou diretório inexistente.
(gdb) bt
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0x00007ffff3be5535 in __GI_abort () at abort.c:79
#2 0x00007ffff4001957 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
--Type for more, q to quit, c to continue without paging--
#3 0x00007ffff4007aa6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x00007ffff4007ae1 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5 0x0000555555635be9 in ns3::UavEnergySource::CalculateRemainingEnergy (this=0x555555c65d90) at ../scratch/flynetwork/uav-energy-source.cc:354
--Type for more, q to quit, c to continue without paging--
#6 0x0000555555631dc1 in ns3::UavEnergySource::UpdateEnergySource (this=0x555555c65d90) at ../scratch/flynetwork/uav-energy-source.cc:178
#7 0x00007ffff77cad05 in ns3::WifiRadioEnergyModel::ChangeState (this=0x555555b6cca0, newState=3) at ../src/wifi/model/wifi-radio-energy-model.cc:404
#8 0x00007ffff77d3c42 in ns3::MemPtrCallbackImpl<ns3::WifiRadioEnergyModel*, void (ns3::DeviceEnergyModel::)(int), void, int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::--Type for more, q to quit, c to continue without paging--
empty, ns3::empty>::operator() (this=0x555555c18330, a1=3) at ./ns3/callback.h:612
#9 0x00005555555f128b in ns3::Callback<void, int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>::operator() (this=0x555555a7fe38, a1=3)
at ./ns3/callback.h:1291
--Type for more, q to quit, c to continue without paging--
#10 0x00007ffff77ccbec in ns3::WifiRadioEnergyModelPhyListener::NotifyRxStart (this=0x555555a7fe30, duration=...) at ../src/wifi/model/wifi-radio-energy-model.cc:595
#11 0x00007ffff75da19b in ns3::WifiPhyStateHelper::NotifyRxStart (this=0x555555aa6b90, duration=...) at ../src/wifi/model/wifi-phy-state-helper.cc:243
#12 0x00007ffff75dc99b in ns3::WifiPhyStateHelper::SwitchToRx (this=0x555555aa6b90, rxDuration=...) at ../src/wifi/model/wifi-phy-state-helper.cc:419
--Type for more, q to quit, c to continue without paging--
#13 0x00007ffff75bf8e2 in ns3::WifiPhy::StartRx (this=0x555555990680, packet=..., txVector=..., mpdutype=ns3::NORMAL_MPDU, rxPowerW=3.5648693920587127e-13, rxDuration=..., event=...)
at ../src/wifi/model/wifi-phy.cc:3687
#14 0x00007ffff75b5a9e in ns3::WifiPhy::StartReceivePreambleAndHeader (this=0x555555990680, packet=..., rxPowerW=3.5648693920587127e-13, rxDuration=...) at ../src/wifi/model/wifi-phy.cc:2483
--Type for more, q to quit, c to continue without paging--
#15 0x00007ffff7604e27 in ns3::YansWifiChannel::Receive (phy=..., packet=..., rxPowerDbm=-94.479563769894682, duration=...) at ../src/wifi/model/yans-wifi-channel.cc:128
#16 0x00007ffff7606a0e in ns3::MakeEvent<ns3::Ptrns3::YansWifiPhy, ns3::Ptrns3::Packet, double, ns3::Time, ns3::Ptrns3::YansWifiPhy, ns3::Ptrns3::Packet, double, ns3::Time>(void (
)(ns3::Ptrns3::YansWifiPhy, ns3::Ptrns3::Packet, double, ns3::Time), ns3::Ptrns3::YansWifiPhy, ns3::Ptrns3::Packet, double, ns3::Time)::EventFunctionImpl4::Notify() (this=0x555556adc550) at ./ns3/make-event.h:716
--Type for more, q to quit, c to continue without paging--
#17 0x00007ffff4228971 in ns3::EventImpl::Invoke (this=0x555556adc550) at ../src/core/model/event-impl.cc:51
#18 0x00007ffff422dff0 in ns3::DefaultSimulatorImpl::ProcessOneEvent (this=0x55555574ed10) at ../src/core/model/default-simulator-impl.cc:149
#19 0x00007ffff422e3f5 in ns3::DefaultSimulatorImpl::Run (this=0x55555574ed10) at ../src/core/model/default-simulator-impl.cc:202
--Type for more, q to quit, c to continue without paging--
#20 0x00007ffff4229ba9 in ns3::Simulator::Run () at ../src/core/model/simulator.cc:230
#21 0x0000555555651522 in ns3::UavNetwork::Run (this=0x555555752620) at ../scratch/flynetwork/uav-network.cc:328
#22 0x00005555555c9123 in main (argc=7, argv=0x7fffffffdbd8) at ../scratch/flynetwork/main.cc:103
(gdb)

Avisar

O servidor GENI possui pouco espaco na pasta do usuário. Falei com Thiago sobre, mas ao final cheguei a conclusão de que o melhor seria modificar a estrutura de log para que eu não tenha problemas de espaço. Existe uma pasta com mais espaço, mas como ela está externa a máquina da GENI, a simulação fica muuuito lenta. Como eu quero aproveitar a qualidade das máquinas e agilizar as simulações fiz a seguinte alteração: na bateria de cada UAV irei acumular o consumo para cada modo (move, hover, wifi), sempre que um UAV for desligado [isto ocorre quando um UAV é selecionado para voltar ou sua bateria entra em estado critico] eu irei armazenar as informações num log da seguinte forma

TEMPO ID_DO_UAV BATERIA_INICIAL BATERIA_ATUAL GASTO_WIFI GASTO_HOVER GASTO_MOVE

com esta informação, inclusive, conseguiremos obter informações da quantidade de bateria "desperdiçada", a diferença da bateria inicial para a atual nos mostrará quanto de bateria o UAV estava quando foi removido. Sendo um ponto importante, utilizar ao máximo o UAV, reduzindo a quantidade de bateria que ele volta a central.

Para obter a métrica de aproveitamento da bateria pelos clientes eu iria calcular a porcentagem de gasto da bateria que foi voltada para os clientes, assim, ao final da simulação, para cada linha eu iria calcular:

GASTO_WIFI / BATERIA_INICIAL

e ao final somar e dividir pelo total de linhas. Neste caso, cada linha para mim representaria um UAV diferente, independente de ser o mesmo ID, solucionando aquele problema da reentrada do UAV na rede.

Laco B itentifica posicoes e fica trocando entre elas (laco infinito)

----> MovimentoB: true Total de Localizações: 2 LacoB Temp: 0.81 IteracaoB: 278077 [ Id: 1 Pos: (127.613,120.005) PosA: (128.098,126.783) PosB: (127.613,120.005) Consumption: 0 PunCap: 0.01 PunNeigh: 0.410487 Wij: -1 Connected: true Id: 2 Pos: (95.0765,124.924) PosA: (110,110) PosB: (95.0765,124.924) Consumption: 0 PunCap: 1 PunNeigh: 0 Wij: 1 Connected: true ] ----> MovimentoB: true Total de Localizações: 2 LacoB Temp: 0.81 IteracaoB: 278078 [ Id: 1 Pos: (127.613,120.006) PosA: (128.098,126.783) PosB: (127.613,120.006) Consumption: 0 PunCap: 0.01 PunNeigh: 0.410487 Wij: 1 Connected: true Id: 2 Pos: (140.439,79.5608) PosA: (110,110) PosB: (140.439,79.5608) Consumption: 0 PunCap: 1 PunNeigh: 0 Wij: 0 Connected: true ] ----> MovimentoB: true Total de Localizações: 2 LacoB Temp: 0.81 IteracaoB: 278079 [ Id: 1 Pos: (127.613,120.005) PosA: (128.098,126.783) PosB: (127.613,120.005) Consumption: 0 PunCap: 0.01 PunNeigh: 0.410487 Wij: -1 Connected: true Id: 2 Pos: (95.0765,124.924) PosA: (110,110) PosB: (95.0765,124.924) Consumption: 0 PunCap: 1 PunNeigh: 0 Wij: 1 Connected: true ] ----> MovimentoB: true Total de Localizações: 2 LacoB Temp: 0.81 IteracaoB: 278080 [ Id: 1 Pos: (127.613,120.006) PosA: (128.098,126.783) PosB: (127.613,120.006) Consumption: 0 PunCap: 0.01 PunNeigh: 0.410487 Wij: 1 Connected: true Id: 2 Pos: (140.439,79.5608) PosA: (110,110) PosB: (140.439,79.5608) Consumption: 0 PunCap: 1 PunNeigh: 0 Wij: 0 Connected: true ]

Adicionando estrategia para manter historico, caso a posicao já esteja no vetor de historico e já tenha sido selecionada 1 vez, mantem ela!

DA em C++

Voltar a implementação do DA em C++

msg="UavDeviceEnergyModel::StopHover UAV não chegou a sua posicao final!"

SERVER - UAVRECEIVED ::: UAV #134 CANCEL SEND POSITION @10.0153
UavMobilityModel :: [[ FINAL ]] 19.6816 (362.81,225.052) deveria estar em (362.81,225.052)
UAV [131] @19.6816 course changed!!! ---- ~~~~
UAV #131 chegou ao seu posicionamento final.
UAV	131	SENT	19.6816	SERVER @19.6816
UavEnergySource::SetBasicEnergyLowBatteryThreshold [131] thr: 0.00408344% in joules: 1.22503J @19.6816
UavDeviceEnergyModel::StartHover [131] lasttime: 19.6816 @19.6816
SERVER - atualizando UAV 131 @19.6817
SERVER - UAV #131 confirmado no posicionamento
SERVER	SENT	@19.6817	SERVEROK
UAV #131 recebeu SERVEROK
UavEnergySource::UpdateEnergySourceClient DEPLETION [133] ed: 0.1632J re: 60.1973J thr: 60.3264J @26.7574
UavDeviceEnergyModel::HandleEnergyDepletion 133 @26.7574
---->>> EnergyDepletionCallback [133] going to 275,175 @26.7574
msg="UavDeviceEnergyModel::StopHover UAV não chegou a sua posicao final!", file=../scratch/flynetwork/uav-device-energy-model.cc, line=306
terminate called without an active exception

Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: Arquivo ou diretório inexistente.
(gdb) 

m_totalEnergyConsumption <= m_source->GetInitialEnergy ()

Node #115 total: 300 ini: 300 @94.0773
assert failed. cond="m_totalEnergyConsumption <= m_source->GetInitialEnergy ()", file=../src/wifi/model/wifi-radio-energy-model.cc, line=403
terminate called without an active exception

Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: Arquivo ou diretório inexistente.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6)
    at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff3be3535 in __GI_abort () at abort.c:79
#2  0x00007ffff3fff957 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007ffff4005aa6 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007ffff4005ae1 in std::terminate() ()
--Type <RET> for more, q to quit, c to continue without paging--
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007ffff77c9e16 in ns3::WifiRadioEnergyModel::ChangeState (
    this=0x555555b6cca0, newState=3)
    at ../src/wifi/model/wifi-radio-energy-model.cc:403
#6  0x00007ffff77d2da4 in ns3::MemPtrCallbackImpl<ns3::WifiRadioEnergyModel*, void (ns3::DeviceEnergyModel::*)(int), void, int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>::operator() (this=0x555555c1c830, a1=3)
--Type <RET> for more, q to quit, c to continue without paging--
    at ./ns3/callback.h:612
#7  0x00005555555f129b in ns3::Callback<void, int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>::operator() (this=0x555555a7fe38, a1=3)
    at ./ns3/callback.h:1291
#8  0x00007ffff77cbd4e in ns3::WifiRadioEnergyModelPhyListener::NotifyRxStart (this=0x555555a7fe30, duration=...)
    at ../src/wifi/model/wifi-radio-energy-model.cc:600
--Type <RET> for more, q to quit, c to continue without paging--
#9  0x00007ffff75d926b in ns3::WifiPhyStateHelper::NotifyRxStart (
    this=0x555555aa6b90, duration=...)
    at ../src/wifi/model/wifi-phy-state-helper.cc:243
#10 0x00007ffff75dba6b in ns3::WifiPhyStateHelper::SwitchToRx (
    this=0x555555aa6b90, rxDuration=...)
    at ../src/wifi/model/wifi-phy-state-helper.cc:419
#11 0x00007ffff75be9b2 in ns3::WifiPhy::StartRx (
    this=0x555555990680, packet=..., txVector=..., 
--Type <RET> for more, q to quit, c to continue without paging--
    mpdutype=ns3::NORMAL_MPDU, rxPowerW=1.5365568558683919e-12, 
    rxDuration=..., event=...) at ../src/wifi/model/wifi-phy.cc:3687
#12 0x00007ffff75b4b6e in ns3::WifiPhy::StartReceivePreambleAndHeader (this=0x555555990680, packet=..., rxPowerW=1.5365568558683919e-12, 
    rxDuration=...) at ../src/wifi/model/wifi-phy.cc:2483
#13 0x00007ffff7603ef7 in ns3::YansWifiChannel::Receive (phy=..., 
    packet=..., rxPowerDbm=-88.134513652917093, duration=...)
    at ../src/wifi/model/yans-wifi-channel.cc:128
--Type <RET> for more, q to quit, c to continue without paging--
#14 0x00007ffff7605ade in ns3::MakeEvent<ns3::Ptr<ns3::YansWifiPhy>, ns3::Ptr<ns3::Packet>, double, ns3::Time, ns3::Ptr<ns3::YansWifiPhy>, ns3::Ptr<ns3::Packet>, double, ns3::Time>(void (*)(ns3::Ptr<ns3::YansWifiPhy>, ns3::Ptr<ns3::Packet>, double, ns3::Time), ns3::Ptr<ns3::YansWifiPhy>, ns3::Ptr<ns3::Packet>, double, ns3::Time)::EventFunctionImpl4::Notify() (this=0x55555835fd10) at ./ns3/make-event.h:716
#15 0x00007ffff4226971 in ns3::EventImpl::Invoke (
    this=0x55555835fd10) at ../src/core/model/event-impl.cc:51
--Type <RET> for more, q to quit, c to continue without paging--
#16 0x00007ffff422bff0 in ns3::DefaultSimulatorImpl::ProcessOneEvent
    (this=0x55555574ed10)
    at ../src/core/model/default-simulator-impl.cc:149
#17 0x00007ffff422c3f5 in ns3::DefaultSimulatorImpl::Run (
    this=0x55555574ed10)
    at ../src/core/model/default-simulator-impl.cc:202
#18 0x00007ffff4227ba9 in ns3::Simulator::Run ()
    at ../src/core/model/simulator.cc:230
--Type <RET> for more, q to quit, c to continue without paging--
#19 0x000055555565128a in ns3::UavNetwork::Run (this=0x555555752620)
    at ../scratch/flynetwork/uav-network.cc:328
#20 0x00005555555c9134 in main (argc=7, argv=0x7fffffffdbd8)
    at ../scratch/flynetwork/main.cc:103
(gdb) q
A debugging session is active.

	Inferior 1 [process 7456] will be killed.

Quit anyway? (y or n) y

teste_1_custo_1_log.txt

index 0 out of bounds DHCPClient

UavDeviceEnergyModel::StopHover [118] lasttime: 29.2385 @29.2472
UavMobilityModel::DoSetPosition [362.81,225.052] <--- [0,0] @29.2472
UavMobilityModel::DoInitializePrivate tempo[19.6767] distancia[98.3833] @29.2472
SERVER - UAVRECEIVED ::: UAV #118 CANCEL SEND POSITION @29.2536
msg="index 0 out of bounds", file=../src/internet/model/ipv4-interface.cc, line=334
terminate called without an active exception

Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: Arquivo ou diretório inexistente.
(gdb) 
bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff3be1535 in __GI_abort () at abort.c:79
#2  0x00007ffff3ffd957 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007ffff4003aa6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007ffff4003ae1 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007ffff55be34b in ns3::Ipv4Interface::GetAddress (this=0x555555bb8ca0, index=0) at ../src/internet/model/ipv4-interface.cc:334
#6  0x00007ffff55d3271 in ns3::Ipv4L3Protocol::GetAddress (this=0x55555597d2a0, interfaceIndex=1, addressIndex=0)
    at ../src/internet/model/ipv4-l3-protocol.cc:1141
#7  0x00007ffff563cca5 in ns3::UdpSocketImpl::DoSendTo (this=0x555555f20a10, p=..., dest=..., port=67, tos=0 '\000')
    at ../src/internet/model/udp-socket-impl.cc:591
#8  0x00007ffff563fee8 in ns3::UdpSocketImpl::SendTo (this=0x555555f20a10, p=..., flags=0, address=...)
    at ../src/internet/model/udp-socket-impl.cc:815
#9  0x00007ffff5fcc6de in ns3::DhcpClient::Request (this=0x555555bbc9d0) at ../src/internet-apps/model/dhcp-client.cc:400
#10 0x00007ffff5fcc284 in ns3::DhcpClient::Select (this=0x555555bbc9d0) at ../src/internet-apps/model/dhcp-client.cc:381
#11 0x00007ffff5fcfdd9 in ns3::MakeEvent<void (ns3::DhcpClient::*)(), ns3::DhcpClient*>(void (ns3::DhcpClient::*)(), ns3::DhcpClient*)::EventMemberImpl0::Notify() (this=0x555555dc7560) at ./ns3/make-event.h:376
#12 0x00007ffff4224971 in ns3::EventImpl::Invoke (this=0x555555dc7560) at ../src/core/model/event-impl.cc:51
#13 0x00007ffff4229ff0 in ns3::DefaultSimulatorImpl::ProcessOneEvent (this=0x55555574ee60)
    at ../src/core/model/default-simulator-impl.cc:149
#14 0x00007ffff422a3f5 in ns3::DefaultSimulatorImpl::Run (this=0x55555574ee60) at ../src/core/model/default-simulator-impl.cc:202
#15 0x00007ffff4225ba9 in ns3::Simulator::Run () at ../src/core/model/simulator.cc:230
#16 0x0000555555651a88 in ns3::UavNetwork::Run (this=0x5555557527b0) at ../scratch/flynetwork/uav-network.cc:328
#17 0x00005555555c9b05 in main (argc=7, argv=0x7fffffffdbd8) at ../scratch/flynetwork/main.cc:103
(gdb) 

Erro Schedule

ClientDeviceEnergyModel::UpdateConsumption UAV [116] duration: 0.0114924 energy: 0.132852 clientCount: 34 @10.1176
ClientDeviceEnergyModel::UpdateConsumption UAV [116] duration: 0.00242467 energy: 0.0288536 clientCount: 35 @10.12
ClientDeviceEnergyModel::UpdateConsumption UAV [116] duration: 0.000590364 energy: 0.00722606 clientCount: 36 @10.1206
ClientDeviceEnergyModel::UpdateConsumption UAV [114] duration: 0.116772 energy: 0.0397024 clientCount: 1 @10.1343
ClientDeviceEnergyModel::UpdateConsumption UAV [114] duration: 0.0202163 energy: 0.0137471 clientCount: 2 @10.1545
ClientDeviceEnergyModel::UpdateConsumption UAV [114] duration: 0.0093212 energy: 0.00950762 clientCount: 3 @10.1638
ClientDeviceEnergyModel::UpdateConsumption UAV [117] duration: 0.257199 energy: 0.0874477 clientCount: 1 @10.3532
ClientDeviceEnergyModel::UpdateConsumption UAV [116] duration: 4.88344 energy: 61.4337 clientCount: 37 @15.0041
ClientDeviceEnergyModel::UpdateConsumption UAV [116] duration: 0.0311794 energy: 0.402838 clientCount: 38 @15.0352
ClientDeviceEnergyModel::UpdateConsumption UAV [116] duration: 0.00699343 energy: 0.0927329 clientCount: 39 @15.0422
ClientDeviceEnergyModel::UpdateConsumption UAV [116] duration: 0.0845736 energy: 1.1502 clientCount: 40 @15.1268

Client vs WifiEnergy Devices

Problema de tempo, aparentemente não fez tanta diferença.
Mas o problema está em parar a comunicação/consumo quando utilizar WifiEnergy, alguns problemas apareceram devido ao uso do OFF.
Por um lado da falha na comunicação por outro não funciona mais nada =/
Muitas alterações no modelo foram necessarias para adaptar ao OFF, porém sem sucesso na ajuda de completo funcionamento. Começou a ter problemas em classes que nem haviam sido modificadas. Provavelmente pela forma como foram feitas as adaptações de saída do modo RX/TX para o OFF, algumas das classes do caminho sofreram com a falta de informações. Para isto se faz necessário avaliar melhor a estrutura e definir mais certamente como e onde modificar.
Client device, estava dando problemas provavelmente com o tempo de atualização, agora foi modificado para o tempo que +- ocorria com o WifiDevice. Vamos verificar o que ocorre.
Ah, estava dado consumo abaixo de 0, sem o UAV ter chego na central.
Estava não, está!

UAV [117] @32.5481 course changed!!! ---- ~~~~
UAV #117 chegou ao seu posicionamento final.
UAV	117	SENT	32.5481	SERVER @32.5481
UavDeviceEnergyModel::CalculateThreshold distance: 160.633m edist: 1.6526J
UavEnergySource::SetBasicEnergyLowBatteryThreshold [117] thr: 0.0129773J @32.5481
UavDeviceEnergyModel::StartHover [117] lasttime: 32.5481 @32.5481
SERVER - atualizando UAV 117 @32.5482
SERVER - UAV #117 confirmado no posicionamento
SERVER	SENT	@32.5482	SERVEROK
UAV #117 recebeu SERVEROK
msg="UavEnergySource::UpdateEnergySourceClient energy bellow ZERO! [116] 74.8814J ____  182.656J @35.197", file=../scratch/flynetwork/uav-energy-source.cc, line=213
terminate called without an active exception

Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: Arquivo ou diretório inexistente.
(gdb)

Inclusive seria interessante, adicionar as estrategias pensadas no wifiDevice para o Client.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.