saburhb / FlyNetSim

FlyNetSim: An Intergrated UAV-Network Simulator
36 stars 26 forks source link

GCS connection problems #1

Open nishant-raman opened 4 years ago

nishant-raman commented 4 years ago

Upon running FlyNetSim.py, and hitting Connect on the Ground Control Station window, the XTerm terminal remains displaying "Waiting for connection...". The GCS never manages to connect and proceed to activate the ARM button.

Screenshot from 2020-02-12 14-12-58

Screenshot from 2020-02-12 14-24-30

Following is what the terminal displays:

[MAIN] Starting the network simulator: xterm -T Network_Simulator -e 'cd ~/FlyNetSim/NetSim/ns-allinone-3.27/ns-3.27 && ./waf --run="uav-net-sim"'
[MAIN] Started the network simulator: xterm -T Network_Simulator -e 'cd ~/FlyNetSim/NetSim/ns-allinone-3.27/ns-3.27 && ./waf --run="uav-net-sim"'
[MAIN] [ZMQ] Binding publisher started tcp://127.0.0.1:5600
[MAIN] [ZMQ] Publisher bound complete tcp://127.0.0.1:5600
[MAIN] [ZMQ] Subscriber connect started tcp://127.0.0.1:5601
[MAIN] [ZMQ] Subscriber connect complete tcp://127.0.0.1:5601 Prefix @@@G_000
saburhb commented 4 years ago

It looks like the ns-3 is not working correctly. I have added a script "FlyNetSim_direct_no_ns3.py" that directly connects GCS and UAV bypassing ns-3. You can try running that. If that works fine, check your ns-3 installation. Also while running, do run with "-v 3" to print with verbose mode; the number 3 indicates that it prints logs from UAV, GCS and ns-3 all three of them.

debashish216 commented 4 years ago

Hi, One suggestion of to configure ns3 properly before trying out the UAV simulations. You may wish to run some simple examples in ns3 prior to the UAV simulation. Please check and suggest if this fixes your issue. Please comment if you need any further help. Thanks.