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

    Hardcoded IP in voxl-streamer

    Ask your questions right here!
    4
    8
    236
    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.
    • G
      groupo
      last edited by groupo 24 Oct 2024, 12:20 24 Oct 2024, 12:15

      Was trying to debug some video streaming and noticed voxl-streamer providing the same output "stream available at rtsp://127.0.0.1" no matter what I set default_uri to, or with auto_ip true or false. I went to look at where that logic was in voxl-streamer and noticed it is hardcoded Is there an easy way to change that and get a more accurate information? Or does ModalAI have to change, recompile, then push in a new SDK?

      A 1 Reply Last reply 24 Oct 2024, 16:29 Reply Quote 0
      • A
        Alex Kushleyev ModalAI Team @groupo
        last edited by 24 Oct 2024, 16:29

        @groupo , you are correct, the printout is hardcoded, but the application will respond to the actual board ip, which you can get using ifconfig command.

        I'll see if i can fix it so that voxl-streamer reports the actual ip instead of the 127.0.0.1 which is the address for the local (loopback) interface on the board (a virtual network for local networking within the board)

        Alex

        G 1 Reply Last reply 24 Oct 2024, 17:31 Reply Quote 0
        • G
          groupo @Alex Kushleyev
          last edited by 24 Oct 2024, 17:31

          @Alex-Kushleyev The actual board may have many IPs, such as if wifi and modem are connected. It's my understanding it will use voxl-my-ip if auto_ip is True in mavcam-manager.conf, but if set to false it will select whatever default_uri is. I was trying to find a way to confirm that is in fact the the case. I did determine the issue was in VLC and solved it in another user's recent post.

          In that post I did ask how mavcam-manger and streamer are coupled. From the block diagram on the docs, they appeared to be decoupled but its clear streamer relies on things set in mavcam-manager

          T 1 Reply Last reply 24 Oct 2024, 19:03 Reply Quote 0
          • T
            tom admin @groupo
            last edited by 24 Oct 2024, 19:03

            @groupo Yes you're correct

            G 1 Reply Last reply 25 Oct 2024, 12:20 Reply Quote 0
            • G
              groupo @tom
              last edited by 25 Oct 2024, 12:20

              @tom @Alex-Kushleyev thank you both. Hopefully there is a way to illustrate how mavcam manager, streamer, and camera server are all related. Maybe I am relying on the block diagram too heavily but it has been very confusing for me.

              G 1 Reply Last reply 25 Oct 2024, 12:26 Reply Quote 0
              • G
                groupo @groupo
                last edited by 25 Oct 2024, 12:26

                @Alex-Kushleyev or @tom

                What steps would I need to take if I wanted to make those changes instead of waiting for an SDK update? I don’t necessarily need the behavior now that I have confirmed everything is working. But there are a few things for my very specific use case that could eliminate some hoops I have to jump through on my system. As Tom and I have discussed before, we’ve had to muddle our way through a few issues that weren’t part of your majority of use cases.

                I assume this would involve building basically my own SDK (yours with very minor edits) then flashing it to the drone? Is that even possible?

                G 1 Reply Last reply 30 Oct 2024, 06:02 Reply Quote 0
                • G
                  groupo @groupo
                  last edited by 30 Oct 2024, 06:02

                  @tom @Alex-Kushleyev ??

                  1 Reply Last reply Reply Quote 0
                  • Z
                    Zachary Lowell 0 ModalAI Team
                    last edited by 30 Oct 2024, 14:43

                    @groupo yes all the code is open sourced for this exact purpose - if you wish to make updates, you can fork your own instance of the repository - make your edits, compile, flash the deb onto your voxl2 and then provided everythign works as expected you can make an MR on gitlab from your fork to the dev branch and one of us will review and test prior to adding into the next release.

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