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

    Trouble configuring m500 into Station Mode

    Ask your questions right here!
    5
    12
    775
    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.
    • T
      tom admin
      last edited by 4 May 2021, 00:12

      @Alfonso-Ponce ADB (https://developer.android.com/studio/command-line/adb) is a program that you can run on your host computer in order to open a shell on the VOXL over USB. If you are SSH'ing into your VOXL you can ignore any references to ADB.

      So the command that you want to be running on VOXL is
      voxl-wifi [SSID] [PASSWORD]

      Station mode refers to connecting to the access point of your house / office that is connected to the internet. So you want to be entering the SSID and Password of your home / office's WiFi network.

      A 1 Reply Last reply 4 May 2021, 18:05 Reply Quote 0
      • A
        Alfonso Ponce @tom
        last edited by 4 May 2021, 18:05

        @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
        • T
          tom admin
          last edited by 4 May 2021, 18:12

          @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 4 May 2021, 21:15

            @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
            • T
              tom admin
              last edited by 4 May 2021, 21:24

              @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
              • M
                modaltb ModalAI Team
                last edited by 4 May 2021, 23:50

                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 5 May 2021, 00:39 Reply Quote 0
                • A
                  Alfonso Ponce @modaltb
                  last edited by 5 May 2021, 00:39

                  @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
                  • T
                    tom admin
                    last edited by 5 May 2021, 05:23

                    @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 5 May 2021, 19:28 Reply Quote 0
                    • A
                      Alfonso Ponce @tom
                      last edited by 5 May 2021, 19:28

                      @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
                      • R
                        ryan_meagher
                        last edited by ryan_meagher 12 May 2021, 07:33 12 May 2021, 07:32

                        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
                        • E
                          Eric Katzfey ModalAI Team
                          last edited by 13 May 2021, 16:37

                          @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
                          2 out of 12
                          • First post
                            2/12
                            Last post
                          Powered by NodeBB | Contributors