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.
    • groupoG
      groupo
      last edited by groupo

      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?

      Alex KushleyevA 1 Reply Last reply Reply Quote 0
      • Alex KushleyevA
        Alex Kushleyev ModalAI Team @groupo
        last edited by

        @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

        groupoG 1 Reply Last reply Reply Quote 0
        • groupoG
          groupo @Alex Kushleyev
          last edited by

          @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

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

            @groupo Yes you're correct

            groupoG 1 Reply Last reply Reply Quote 0
            • groupoG
              groupo @tom
              last edited by

              @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.

              groupoG 1 Reply Last reply Reply Quote 0
              • groupoG
                groupo @groupo
                last edited by

                @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?

                groupoG 1 Reply Last reply Reply Quote 0
                • groupoG
                  groupo @groupo
                  last edited by

                  @tom @Alex-Kushleyev ??

                  1 Reply Last reply Reply Quote 0
                  • Zachary Lowell 0Z
                    Zachary Lowell 0 ModalAI Team
                    last edited by

                    @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
                    • First post
                      Last post
                    Powered by NodeBB | Contributors