Live drone deployment with Mavlink proxy issues #3996
Replies: 5 comments
-
Thanks for posting this issue. I think you should not be using localhost ip of 127.0.0.1. That network is limited to your machine and cannot send/receive messages to another device. So presumably your drone is one the same wifi network as your laptop and that you have opened the firewall for mavlink ports 14550, 14560, etc. Once you do that QGroundCOntrol should be able to connect to the drone. If this works, then DroneServer should be able to connect also using the ip address associated with your wifi network interface, which you can find using ipconfig. You should not need MavLinkTest as a proxy in this case. |
Beta Was this translation helpful? Give feedback.
-
QGroundControl has no problem connecting to the drone. For ref, I also tried using my drone's IP vs. localhost:
...but DroneServer still isn't getting any messages. I'll try again in a few hours without using MavLinkTest proxy, thanks for that idea. |
Beta Was this translation helpful? Give feedback.
-
LocalHostIp should not be the drone's IP address. It should be the local ip address of your laptop on the same network as the drone. So if your local network is 192.168.1.*, then your router will show two devices, let's say 192.168.1.20 is your laptop and 192.168.1.25 is your drone, then LocalHostIp should be 192.168.1.20. The reason this is a setting, and DroneServer doesn't just assume you want to use 192.168.1.20 is because some computers have multiple network interfaces, like a hard wired ethernet and wifi. This setting allows you to pick which network you want to connect to. |
Beta Was this translation helpful? Give feedback.
-
Thanks! Are you saying LocalHostIp should be set to the laptop IP in the both the laptop and drone's settings.json files? What about UdpIp? |
Beta Was this translation helpful? Give feedback.
-
I tried setting my Drone's settings.json to the laptop IP for both UDP and localhost. When I run Droneserver, I get the following exception.
However I set the Drone's settings.json to it's own IP for both UDP and localhost:
I can then connect from my laptop via DroneShell , but I guess since no messages are being intercepted, there's no response from the commands.
|
Beta Was this translation helpful? Give feedback.
-
I'm trying to simply connect a live PX4 drone to DroneShell so I can run a python script. The drone is an Intel Aero running Ubuntu 16.04.6 LTS and Airlib is installed. I'm on a Windows 10 laptop. For the below I'm keeping Unreal and QGroundControl out of the mix.
First I open three terminals on my laptop and ssh into the drone in each.
...but DroneServer still isn't getting any messages and so DroneShell connects but doesn't respond to commands.
My drone's settings.json:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions