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

    How am I able to change from WiFi to LTE connection?

    Ask your questions right here!
    3
    6
    574
    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
      last edited by 17 May 2021, 16:22

      I already installed a SIM card and configured it but now my m500 doesn't connect to QGroundControl over WiFi because, I think, the SIM card configuration automatcally made the drone connect over LTE each time it starts up. I haven't configured a VPN server nor anything to make the dron connect to QGroundControl over LTE yet, but is there a way to easy switch from WiFi to LTE?

      1 Reply Last reply Reply Quote 0
      • T
        tom admin
        last edited by 18 May 2021, 18:04

        Hi @Alfonso-Ponce,

        Is your WiFi setup in station mode or Soft AP mode? Are you able to ping your host PC running QGC?

        1 Reply Last reply Reply Quote 0
        • A
          Alfonso Ponce
          last edited by 18 May 2021, 20:23

          It was in Station Mode. I was able to make it connect automatically again by using the configuring wizard to connect it to QGC all over again, but now I don't know if the drone is connected to QGC over WiFi or over LTE. I'm not even sure if the VPN is working in the drone. I'm currently using OpenVPN Cloud service, which I think is not the same as setting OpenVPN in a regular server. I downloaded the .ovpn file for the drone and my computer (first I used the same .ovpn file for both, then I made another one for my PC, nothing changed though). What I'm doing is:
          1.- I start QGC
          2.- I turn on the drone
          3.- They connect automatically over WiFi station mode
          4.- I activate the VPN on my PC (by doing that the connection between QGC and the drone keeps running but now I don't have acces to the Internet).
          5.- I enter the drone's shell using ABD, I start the voxl-time-sync script, I move to the openvpn directory where the .ovpn file is and run it using:

          openvpn --daemon --script-security 2 --config vpn-key.ovpn
          

          The file name obviously being my .ovpn file. But then nothing happens, the connection with QGC is still active, but then again, how do I know if it is connected over LTE (using the VPN) or over WiFi?

          Here's a screenshot of the evidence of what I'm doing:

          Screenshot from 2021-05-18 15-21-22.png

          1 Reply Last reply Reply Quote 0
          • T
            tom admin
            last edited by 18 May 2021, 20:51

            @Alfonso-Ponce It doesn't look to me as though the VPN is starting correctly, otherwise you would see a tun0 network interface showing up when you call ifconfig. I would run openvpn without the --daemon option to see why it may be failing to start.

            1 Reply Last reply Reply Quote 0
            • A
              Alfonso Ponce
              last edited by 19 May 2021, 14:58

              You were right, this is what I get if I remove the daemon:
              Screenshot from 2021-05-18 19-24-01.png

              And then it begins again with the NOTE line

              Then I changed the SIM card for another one, and then I got a new line. The first TLS line was different, it did get something this time:
              Screenshot from 2021-05-19 09-43-26.png

              But then it failed and tried the connectione again.

              This is regarding the VPN connection but how do I even know if the LTE connection was succesful? And then, if it was, how do I tell VOXL to choose between WiFi and LTE?

              Thank you!

              E 1 Reply Last reply 19 May 2021, 16:29 Reply Quote 0
              • E
                Eric Katzfey ModalAI Team @Alfonso Ponce
                last edited by 19 May 2021, 16:29

                @Alfonso-Ponce You can disable the WiFi (ifconfig wlan0 down) so that LTE is your only connection. Then try to ping something like www.modalai.com and see if that works. If so, then the LTE connection is up properly.

                1 Reply Last reply Reply Quote 0
                1 out of 6
                • First post
                  1/6
                  Last post
                Powered by NodeBB | Contributors