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

    Trouble configuring m500 into Station Mode

    Ask your questions right here!
    5
    12
    823
    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.
    • A
      Alfonso Ponce @tom
      last edited by

      @tom so, in order to run the

      voxl-wifi [SSID] [PASSWORD]

      command first I need to make the ssh connection like I did in the VOXL m500 Getting Started Guide? Then I enter the SSID and password of my office network, but how do I restart it without using the

      reboot && adb wait-for-device

      command of the guide that's using adb? Do I enter:

      systemctl restart voxl-vision-px4

      and then the drone will connect to it automatically when I turn it up?

      Also, I tried to connect the m500 using the USB to microB cable but I'm not sure it is working. The cable I'm using I took it from a 8 year old external HDD but I'm not sure it is compatible.

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

        @Alfonso-Ponce For desktop debugging I would recommend using ADB over USB so that you can modify the networking settings however you want without worrying about losing connection. You can pick one up off of Amazon for pretty cheap.

        1 Reply Last reply Reply Quote 0
        • A
          Alfonso Ponce
          last edited by

          @tom said in Trouble configuring m500 into Station Mode:

          voxl-wifi [SSID] [PASSWORD]

          Thank you for the help, Tom. I think I was finally able to connect the m500 to the local network, however I can't be sure of that because I haven't been capable of stablishing an ADB connection and check that out. I have made sure the cable I'm using is 3.0 and the port in my PC even says that port is using an ADB interface but when I try to enlist the devices using abd nothing shows up.

          6df04a17-d2b8-4973-8342-22970f4711c0-image.png

          WhatsApp Image 2021-05-04 at 16.13.43.jpeg

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

            @Alfonso-Ponce It looks like you have the cable setup correct. I'm not super familiar with using ADB on Windows, I use Ubuntu 18. It's possible there are some specific settings that need to be changed on your Windows machine in order to get the device to show up.

            1 Reply Last reply Reply Quote 0
            • modaltbM
              modaltb ModalAI Team
              last edited by

              Have you tried a standard Micro USB cable instead?

              We'll need to update our docs, the USB port is 2.0 when in "client" mode (e.g. host is Windows/Ubuntu).

              You just need to plug in a micro USB cable into "half" of the port, see this image for help:

              https://docs.modalai.com/voxl-hardware-setup/

              A 1 Reply Last reply Reply Quote 0
              • A
                Alfonso Ponce @modaltb
                last edited by

                @modaltb no need for that, I was finally able to connect to it. The cable was ok, the problem, I think, was that I was using the Ubuntu terminal in my windows PC, however, as I understand how that works, the Ubuntu terminal uses a virtual computer that I suppose wasn't able to use the USB ports of my Windows PC, so I installed the ADB package for Windows, run the normal Windows Terminal, and then the device showed up 🙂

                Now, I would like to know how can I make the m500 connect to QGroundControl while in station mode, or be able to send code to it using MAVSDK-Python. Right now the drone is not showing anywhere even though it is connected to the same network as my PC (supposedly).

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

                  @Alfonso-Ponce This video should be very helpful: Demo of how to VOXL to QGroundControl over WiFi

                  This demo uses SoftAP mode instead of Station mode but it is the same idea, modifying the IP address in /etc/modalai/voxl-vision-px4.conf in order for voxl-vision-px4 to know where your ground station is located.

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    Alfonso Ponce @tom
                    last edited by

                    @tom thank you again Tom, I was finally able to connect my m500 to my local network and to QGC. Now I will start trying to send routines using MAVSDK.

                    In general, and as developers, which is the best path to take if my final goal is to create a mobile app that with simple touch commands could make the drone follow you, fly to a charging station autonomously, fly around avoiding obstacles, etc? I mean what kind of programmig language and tools best fit these finals goals?

                    And thank you again!

                    1 Reply Last reply Reply Quote 0
                    • ryan_meagherR
                      ryan_meagher
                      last edited by ryan_meagher

                      In the future if you need to quickly change the ip address of where the voxl looks for qgc you can do

                      voxl-vision-px4 -i <ip>
                      
                      1 Reply Last reply Reply Quote 1
                      • Eric KatzfeyE
                        Eric Katzfey ModalAI Team
                        last edited by

                        @Alfonso-Ponce We don't have any recommendations on how to create such a mobile application. However, whatever path you choose, you will most likely need the app to be sending Mavlink packets to the drone to carry out the instructions. Also, QGroundControl can be run as a mobile app and it is open source so you could look to that as an example.

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