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

    Voxl 2 and Herelink Slow Video stream

    Ask your questions right here!
    3
    5
    640
    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.
    • N
      Nicholas Hansen
      last edited by 10 Oct 2023, 21:07

      I have been working on getting a voxl 2 and a herelink 1.1 integrated using Sbus with the IO shield and using a usb to eth connection, so far I have gotten them to communicate and send video and telemetry to each other. My two primary issues are that I need to set the IP of the ethernet on the voxl 2 everytime its starts as it will not stay on 192.168.144.5 and the second issue is that my stream of the hires camera is about 1 frame every 4 seconds, any help on this issue would be greatly appreciated, thanks

      T 1 Reply Last reply 10 Oct 2023, 21:20 Reply Quote 1
      • T
        tom admin @Nicholas Hansen
        last edited by 10 Oct 2023, 21:20

        @Nicholas-Hansen In order to set an IP address at boot you could create a systemd service that runs a script similar to this portion of the voxl-modem startup script:

        https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-modem/-/blob/master/scripts/voxl-modem-start?ref_type=heads#L242

        You could probably highjack the doodle workflow if you really want to. It's pretty basic, it just waits for the network interface to enumerate and sets the IP address if it is different from what is set in the config file. It then monitors that interface and sets the IP again if it ever changes

        echo -e "\nWaiting for eth0..."
                rc=1
                while [ $rc -ne 0 ]; do
                    ifconfig -s | grep eth0
                    rc=$?
                    sleep 1
                done
        
                echo -e "\neth0 initialized"
        
                # loop and re-set IP if network interface goes down and back up
                while true
                do
                    # grab ip address from eth0
                    eth0_ip=$(ip -4 addr show eth0 | grep -oP '(?<=inet\s)\d+(\.\d+){3}' | head -1)
        
                    # if it's not what we expect, fix it
                    if [[ "$eth0_ip" != *"$DOODLE_IP"* ]]; then
                        echo "setting IP address to: $DOODLE_IP"
                        ifconfig eth0 $DOODLE_IP netmask 255.0.0.0 up
                    fi
                    sleep 1
                done
        
        N 1 Reply Last reply 11 Oct 2023, 14:55 Reply Quote 2
        • N
          Nicholas Hansen @tom
          last edited by 11 Oct 2023, 14:55

          @tom That worked great for setting a fixed ip, thank you for the info. The video stream is still 1 frame every 5 seconds, and ideas on how to start working on that issue?

          T 1 Reply Last reply 11 Oct 2023, 17:23 Reply Quote 1
          • T
            tom admin @Nicholas Hansen
            last edited by 11 Oct 2023, 17:23

            @Nicholas-Hansen Are you just using voxl-streamer? What SDK are you using on this voxl2?

            J 1 Reply Last reply 11 Oct 2023, 18:18 Reply Quote 1
            • J
              Jeremy Frederick @tom
              last edited by 11 Oct 2023, 18:18

              @tom We're running v1.0.1 SDK. However, we were actually just able to get the RTSP stream working over Herelink with virtually no latency. Using the SiYiQgroundControl application on the Herelink, the RTSP works completely fine. I believe the issue is in the QGC firmware that ships stock with the Herelink controller. For now you can consider this thread solved. Thanks again!

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