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

    Rb5 static IP

    Ask your questions right here!
    1
    1
    187
    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.
    • M
      martygp95
      last edited by

      Hello, I am trying to set up an static IP from an script; I automatically set an static IP once the drone is set to a new WiFi. In few lines, the script what it does is:

      • Connect the drone to a new WiFi (with adb shell voxl-wifi station <ssid> <password> command
      • reboot the drone with adb reboot to gain a new IP address
      • ask the new IP for the network, ask netmask and default gateway, set this new values into the file for the voxl-static-ip service (/usr/bin/voxl-static-ip)
      • reboot to see the changes

      The thing is that I manage to set an static IP for the drone. Once it reboots , the drone gets this new static IP but I cannot ping the drone from another device until few minutes passes. Once it gets the first ping, the connection never stops but I wonder if you could see why it lasts too many minutes to set the static IP for the new WiFi.
      I see, once rebooted, the new static IP in the wlan0 interface (192.168.1.141), but I cannot reach it; instead, I can reach the IP address that appears here when putting 'ip route' into the terminal (192.168.1.198):

      WhatsApp Image 2023-05-31 at 09.53.34.jpeg

      WhatsApp Image 2023-05-31 at 09.53.53.jpeg

      from the drone I can ping to 8.8.8.8 and my laptop; Any help would be appreciated.
      Thanks!

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