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

    Mavlink Camera Manager not appearing on QGC

    Ask your questions right here!
    4
    19
    1.5k
    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.
    • D
      Daniel Ryu @Eric Katzfey
      last edited by 30 Aug 2021, 17:28

      @Eric-Katzfey I did have an active autopilot connection. I'll try running with the debug flag and see what I get

      1 Reply Last reply Reply Quote 0
      • D
        Daniel Ryu @Eric Katzfey
        last edited by 2 Sept 2021, 22:45

        @Eric-Katzfey Here is my update regarding the Mavlink Camera Manager. I switched to QGC 3.5.6 (the latest does not in fact work with mavlink camera manager) and I was able to stream one camera using the mavlink camera manager, but only one camera at a time (no dropdown screen). I had all three cameras running simultaneously with voxl-streamer and mavlink-camera-manager, all with different ports and ids. Individually, I could stream each one to QGC, which would only show the first camera service that I would start up and not give me an option for switching to the others.

        Strange behavior: I had all three mavlink-camera-manager services running. I can only see the first camera I start on the QGC screen (lets say its hires, for this example). I then CTRL-C (stop) the mavlink-camera-manager process thats running the hires. However, the hires stream doesn't stop and continues streaming as normal. This continues until I stop all three mavlink-camera-manager services, which is when the QGC then shows a "Waiting for video" screen.

        Screen Shot 2021-09-02 at 3.35.48 PM.png

        When i tried clicking the double boxes in the top left corner, the QGC went into a non-responsive state and I had to force quit QGC.

        Commands I ran and error messages I received

        Screen Shot 2021-09-02 at 3.34.44 PM.png
        Screen Shot 2021-09-02 at 3.34.59 PM.png
        Screen Shot 2021-09-02 at 3.38.02 PM.png

        QGC error message (this was repeated multiple times when running more than one stream, up to 4):
        Screen Shot 2021-09-02 at 3.36.19 PM.png

        E 1 Reply Last reply 2 Sept 2021, 22:54 Reply Quote 0
        • E
          Eric Katzfey ModalAI Team @Daniel Ryu
          last edited by 2 Sept 2021, 22:54

          @Daniel-Ryu I'm going to have to resurrect my development station to look into this. The mavlink camera manager doesn't actually do any streaming. It's job is to just run the mavlink camera protocol to allow you to easily connect to a stream coming from voxl-streamer (or other application). Can you show the output of the mavlink camera manager application(s) when the debug "-d" option is used? That will show the protocol messages being transferred between the GCS and Voxl.

          D 1 Reply Last reply 3 Sept 2021, 19:43 Reply Quote 0
          • D
            Daniel Ryu @Eric Katzfey
            last edited by Daniel Ryu 3 Sept 2021, 19:44 3 Sept 2021, 19:43

            @Eric-Katzfey

            Hires, stereo, tracking mavlink-camera-manager debug outputs (in this order). All three are running at the same time:
            Screen Shot 2021-09-03 at 12.39.55 PM.png

            Screen Shot 2021-09-03 at 12.40.04 PM.png

            Screen Shot 2021-09-03 at 12.40.13 PM.png

            Voxl-streamer debug output for hires (only hires had updated debug output, other voxl-streamers only had the standard bootup debug)
            Screen Shot 2021-09-03 at 12.40.33 PM.png

            1 Reply Last reply Reply Quote 0
            • E
              Eric Katzfey ModalAI Team
              last edited by 3 Sept 2021, 19:52

              Okay, thanks! That shows, at least, a mavlink protocol session has been initiated with the mavlink-camera-manager. The camera protocol is documented here: https://mavlink.io/en/services/camera.html. The mavlink-camera-manager module is implementing a portion of that protocol. When it first connects there should be a flurry of protocol messages going back and forth. Once things are setup then it is just heartbeat messages as you see in the debug output above. So the key part of the debug output is the very beginning.

              D 1 Reply Last reply 3 Sept 2021, 22:42 Reply Quote 0
              • D
                Daniel Ryu @Eric Katzfey
                last edited by 3 Sept 2021, 22:42

                @Eric-Katzfey Where can I go from here then, to be able to swap streams from a dropdown menu in QGC?

                1 Reply Last reply Reply Quote 0
                • E
                  Eric Katzfey ModalAI Team
                  last edited by 4 Sept 2021, 00:23

                  Look at the beginning of the debug output from mavlink-camera-manager. Do you see anything besides the heartbeat / ping messages? If so, can you paste that here?

                  D 1 Reply Last reply 9 Sept 2021, 13:52 Reply Quote 0
                  • D
                    Daniel Ryu @Eric Katzfey
                    last edited by 9 Sept 2021, 13:52

                    @Eric-Katzfey

                    Screen Shot 2021-09-09 at 9.17.48 AM.png

                    Screen Shot 2021-09-09 at 9.48.55 AM.png

                    Screen Shot 2021-09-09 at 9.49.34 AM.png

                    1 Reply Last reply Reply Quote 0
                    • J
                      jaredjohansen
                      last edited by 9 Sept 2021, 14:43

                      @Eric-Katzfey , we got it working. The secret we were missing was our MAV_SYS_ID was not set to 1, which, apparently, is what this capability expects. Thanks!

                      E 1 Reply Last reply 9 Sept 2021, 16:29 Reply Quote 0
                      • E
                        Eric Katzfey ModalAI Team @jaredjohansen
                        last edited by 9 Sept 2021, 16:29

                        @jaredjohansen Great! Glad to hear it!

                        1 Reply Last reply Reply Quote 0
                        • W
                          wilkinsaf ModalAI Team
                          last edited by 5 Nov 2021, 15:35

                          We are facing a similar issue. Is it correct to say there is not one singular service on VOXL that will automatically stream all cameras to QGC?

                          We have to write our own script for it correct?

                          D 1 Reply Last reply 8 Nov 2021, 22:11 Reply Quote 0
                          • D
                            Daniel Ryu @wilkinsaf
                            last edited by 8 Nov 2021, 22:11

                            @wilkinsaf Way we handled it was creating our own services/scripts for streaming to QGC automatically with mavlink-camera-manager. Hope it helps

                            W 1 Reply Last reply 9 Nov 2021, 18:15 Reply Quote 0
                            • W
                              wilkinsaf ModalAI Team @Daniel Ryu
                              last edited by 9 Nov 2021, 18:15

                              @Daniel-Ryu

                              I figured. We just wanted to double check that this was the case. Thank you!

                              1 Reply Last reply Reply Quote 0
                              • C ctitus referenced this topic on 20 Sept 2024, 17:55
                              • First post
                                Last post
                              Powered by NodeBB | Contributors