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

    VOXL2 has two network interfaces for microhard modem

    Ask your questions right here!
    3
    9
    566
    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.
    • D
      Daniel Ryu
      last edited by Daniel Ryu 11 Jan 2023, 23:07 11 Jan 2023, 23:05

      Hello,

      I am flashing some newly purchased VOXL2 development kits when I ran into this issue when using a microhard. When voxl-configure-modem is run, it creates two interfaces that connect to the microhard: eth0 and usb0. The IPs that are set on both interfaces are random, and are not consistent between reboots of the voxl2 board. Additionally, when both are active, any connections to QGC from the board through the microhard is greatly slowed down. I would like to permanently set the ip address of one of the interfaces to be something that I can control, like how voxl-configure-modem used to do, as well as permanently delete the other interface since it is not required.

      3466c3cd-719d-4d64-93a3-7d73e516fa28-image.png

      Things I have tried:
      Editing /etc/network/interfaces and removing an interface. This does not prevent both interfaces from reappearing upon reboot
      Screenshot 2023-01-11 at 2.59.48 PM.png

      ifconfig eth0 down. eth0 sets itself back to "up" automatically within a few minutes, even without reboot.
      ifconfig usb0 down. usb0 stays down when this command is run, but returns as up again upon the voxl2 board's reboot
      ip addr del dev eth0. It returns the error: Screenshot 2023-01-11 at 3.02.25 PM.png
      sudo iw dev eth0 del. It returns the error e788843f-0662-4837-9b4d-14256f892d45-image.png

      Here is what VOXL2 Version I'm running:
      Screenshot 2023-01-11 at 2.52.09 PM.png

      I did already try running apt-get update && apt-get upgrade

      1 Reply Last reply Reply Quote 0
      • C
        Chad Sweet ModalAI Team
        last edited by 12 Jan 2023, 04:40

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • C
          Chad Sweet ModalAI Team
          last edited by 12 Jan 2023, 04:42

          You must be using an older version of the Microhard add-on that had the LAN7500 Ethernet to USB chip installed.

          It seems you could check if eth0 was there and run ifconfig usb0 down in a startup service if eth0 is present?

          D 1 Reply Last reply 12 Jan 2023, 19:38 Reply Quote 0
          • D
            Daniel Ryu @Chad Sweet
            last edited by 12 Jan 2023, 19:38

            @Chad-Sweet I think that would work. Do you know if the same type of Microhard add-on would have exhibit the same symptoms with a VOXL1?

            1 Reply Last reply Reply Quote 0
            • C
              Chad Sweet ModalAI Team
              last edited by 16 Jan 2023, 16:58

              No, I do not know. VOXL 2 is a much newer kernel and OS and it may not behave identically

              D 1 Reply Last reply 16 Jan 2023, 21:06 Reply Quote 1
              • D
                Daniel Ryu @Chad Sweet
                last edited by 16 Jan 2023, 21:06

                @Chad-Sweet Got it, thanks!

                1 Reply Last reply Reply Quote 0
                • D
                  Daniel Ryu
                  last edited by 17 Jan 2023, 20:55

                  General QOL update: I automated a script using cron to ifconfig usb0 down and change the eth0 ip address to what I wanted using ifconfig eth0 <ip>. This only works if the script is run using sudo

                  M 1 Reply Last reply 14 Jul 2023, 19:44 Reply Quote 0
                  • M
                    Mastermind @Daniel Ryu
                    last edited by 14 Jul 2023, 19:44

                    @Daniel-Ryu I have a VOX2 with a microhard modem, but I only get a USB0 and no ETH0. Putting USB0 down and trying to bring up ETH0 doesn't work as the system does not detect it. Just curious if this was your issue as well?

                    D 1 Reply Last reply 17 Jul 2023, 21:25 Reply Quote 0
                    • D
                      Daniel Ryu @Mastermind
                      last edited by 17 Jul 2023, 21:25

                      @Mastermind USB0 is the interface the VOXL2 + newer Microhard add-on boards use for communication, so eth0 may not show up if you're used to using that from VOXL1

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