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

    Streaming video over LTE

    Ask your questions right here!
    3
    15
    582
    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.
    • Aldo Castro FreireA
      Aldo Castro Freire
      last edited by

      Is there any tutorial on how to do that? Or is there any recommendation on how to get started. Wifi is not good enough for long distances.
      Is there a way to modify voxl-rtsp or do I have to forward the stream somewhere?

      1 Reply Last reply Reply Quote 0
      • Chad SweetC
        Chad Sweet ModalAI Team
        last edited by

        If the VOXL is connected to a VPN via LTE, then you should use the VOXL's endpoint IP as the RTSP video server for a video client (QGC, VLC, etc) connected to the same VPN. voxl-rtsp would be one way to stream the video

        1 Reply Last reply Reply Quote 0
        • Aldo Castro FreireA
          Aldo Castro Freire
          last edited by

          Hi Chad, how do I change the endpoint for the voxl-rtsp I think right now is only sending to the local area network 192.168.8.1. I am not sure of where to change that ?

          1 Reply Last reply Reply Quote 0
          • Aldo Castro FreireA
            Aldo Castro Freire
            last edited by

            Nevermind As long as the setup is fine, the rtsp will send it using the LTE.
            PS: you need to connect your local machine to the VPN also.

            Now my question is: is this the order I must follow To allow streaming over LTE I have to connect to the VPN and then start streaming ? is there a way to set up a script to activate like a minute after LTE connection is established to connect to the VPN and then start streaming. Otherwise, if I start streaming before I connect to the VPN it won't work. ? if so is there documentation on how to write a service?

            tomT 1 Reply Last reply Reply Quote 0
            • Chad SweetC
              Chad Sweet ModalAI Team
              last edited by

              It's a standard Linux service, take a look at the voxl-modem service for an example

              1 Reply Last reply Reply Quote 0
              • tomT
                tom admin @Aldo Castro Freire
                last edited by

                @Aldo-Castro-Freire The services that we use to start LTE and VPN on bootup are voxl-modem, as Chad mentioned, voxl-time-sync which is a simple script which loops until the date / time is correct, meaning a connection to the internet has been established, and voxl-vpn, which will then start the OpenVPN service after voxl-time-sync has finished.

                1 Reply Last reply Reply Quote 0
                • Aldo Castro FreireA
                  Aldo Castro Freire
                  last edited by

                  Does voxl-vpn works with the new version of openvpn because I update mine to the 2.4.6

                  Also is this a service? Or does voxl-vpn sets up the service as voxl-configure-modem does? I haven't seen anu documentation for voxl-vpn.

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

                    voxl-vpn is just a wrapper for calling OpenVPN, it's not required, you can use OpenVPN on its own. We haven't tested with 2.4.6 but I don't see why it wouldn't work. All you should need to do is modify the key path in the service file.

                    1 Reply Last reply Reply Quote 0
                    • Aldo Castro FreireA
                      Aldo Castro Freire
                      last edited by

                      Okay. So basically use voxl-modem.service as a sample and exec voxl-vpn instead voxl-modem-start.sh .And start this service after voxl-modem.service

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

                        All the voxl-modem.service does is call voxl-modem-start.sh.

                        So what I would recommend and what works for us is:

                        Start voxl-modem service -> Gets LTE connection up and running
                        Start voxl-time-sync sevice -> Verifies connection to internet
                        Start vpn-start service -> Connects to VPN

                        If you have all three of these enabled they should start at the correct times to get you going.

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

                          @tom OpenVPN will fail if the date / time is not set correctly, that is why we use voxl-time-sync to have OpenVPN wait until the date / time is correct. This sometimes takes a couple seconds after the modem has connected to the network

                          1 Reply Last reply Reply Quote 0
                          • Aldo Castro FreireA
                            Aldo Castro Freire
                            last edited by Aldo Castro Freire

                            Is there a command called vpn-start? I cannot find it in my voxl. Or should I make a script that opens the vpn?

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

                              vpn-start is a service file that you can find at /etc/systemd/system/vpn-start.service. You can modify the KEY_FILE parameter with the path to your OpenVPN key file and enable the service using systemctl enable vpn-start.

                              1 Reply Last reply Reply Quote 0
                              • Aldo Castro FreireA
                                Aldo Castro Freire
                                last edited by

                                Hi is there an easy way to open and read a file in Voxl such as nano and vim ?? it is a pain to have to transfer files between machines

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

                                  Yes you can use vi on VOXL

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