ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    GCS Primary IP when in Station Mode

    Ask your questions right here!
    2
    4
    107
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      griffin
      last edited by

      Hey all,

      I am trying to find the primary GCS IP when the wifi is set to station mode. As per this diagram it is usually 192.168.8.10 when in softap mode and I am able to see the traffic via

      sudo tcpdump -n -i any udp port 14550
      

      However, when I setup the drone in station mode I do not see any traffic over 14550 and cannot find which IP address to send mavlink messages over. The instructions for connecting to QGC over 4G/5G do not clarify how the GCS IP address is specified in the case where both GCS and drone are connected to the same network.

      Obviously I can find the drones ip via ifconfig

      thanks for the help,
      Griffin

      P.S. running grep -r "192.168.8.10" . consistently crashes the drone

      tomT 1 Reply Last reply Reply Quote 0
      • tomT
        tom admin @griffin
        last edited by

        @griffin It should just be the IP of your PC on the network. How to find the IP varies on your OS

        G 1 Reply Last reply Reply Quote 1
        • G
          griffin @tom
          last edited by

          @tom thanks, that helped me get the drone and GCS connected over wifi!
          Turns out I was slightly confused about exactly what was happening when I specified the mavlink connection ip.

          Getting everything to talk correctly required editing /etc/modalai/voxl-mavlink-server.conf s.t. the primary_static_gcs_ip was my PC's address. Is there any way to automate this process so that I don't have to continually ssh into the drone to update the IP? Obviously the nuclear option is to assign everything fixed IP addresses.

          Sorry for my lack of networking knowledge and thanks for the help,
          Griffin

          tomT 1 Reply Last reply Reply Quote 0
          • tomT
            tom admin @griffin
            last edited by

            @griffin Unless you have your network setup to manually cycle IP addresses every so often then your PC's IP address should stay the same. They're usually logged by mac address

            1 Reply Last reply Reply Quote 1
            • First post
              Last post
            Powered by NodeBB | Contributors