Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. Ask your questions right here!
  3. Should I upgrade?

Should I upgrade?

Scheduled Pinned Locked Moved Ask your questions right here!
33 Posts 4 Posters 7.6k Views 3 Watching
  • 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.
  • Eric KatzfeyE Eric Katzfey

    @Ed-Sutter I think the problem is the varying frame size. That's probably causing a problem somewhere (either memory leak or overflow).

    Ed SutterE Offline
    Ed SutterE Offline
    Ed Sutter
    Regular
    wrote on last edited by Ed Sutter
    #12

    @Eric-Katzfey I agree, but I don't understand why the frame size varies! Its not compressed, so it should be a fixed size per frame. Know what I mean?

    Eric KatzfeyE 1 Reply Last reply
    0
    • Ed SutterE Ed Sutter

      @Eric-Katzfey I agree, but I don't understand why the frame size varies! Its not compressed, so it should be a fixed size per frame. Know what I mean?

      Eric KatzfeyE Offline
      Eric KatzfeyE Offline
      Eric Katzfey
      ModalAI Team
      wrote on last edited by
      #13

      @Ed-Sutter Yes. But maybe just a quirk of the camera. There are a few ways to go about fixing this. It looks like the frames are either the correct size or smaller. If that's the case, you could always add "fake" data to the end of the received buffer to make it the correct size in voxl-uvc-server and then write it into the pipe. You could try this and see if that makes the stream work.

      Ed SutterE 1 Reply Last reply
      0
      • Eric KatzfeyE Eric Katzfey

        @Ed-Sutter Yes. But maybe just a quirk of the camera. There are a few ways to go about fixing this. It looks like the frames are either the correct size or smaller. If that's the case, you could always add "fake" data to the end of the received buffer to make it the correct size in voxl-uvc-server and then write it into the pipe. You could try this and see if that makes the stream work.

        Ed SutterE Offline
        Ed SutterE Offline
        Ed Sutter
        Regular
        wrote on last edited by
        #14

        @Eric-Katzfey Ok, I'll dig into this more. I need to understand it anyway, so I'll look at libuvc and voxl-uvc-server and let you know what I figure out.

        Eric KatzfeyE 1 Reply Last reply
        0
        • Ed SutterE Ed Sutter

          @Eric-Katzfey Ok, I'll dig into this more. I need to understand it anyway, so I'll look at libuvc and voxl-uvc-server and let you know what I figure out.

          Eric KatzfeyE Offline
          Eric KatzfeyE Offline
          Eric Katzfey
          ModalAI Team
          wrote on last edited by
          #15

          @Ed-Sutter Excellent, thanks!

          Ed SutterE 2 Replies Last reply
          0
          • Eric KatzfeyE Eric Katzfey

            @Ed-Sutter Excellent, thanks!

            Ed SutterE Offline
            Ed SutterE Offline
            Ed Sutter
            Regular
            wrote on last edited by
            #16

            @Eric-Katzfey FYI... Using a Logitech BRIO camera seems to work fine... the frame size always returns the same value (614400 in my case). Still, I wanna spend some time attempting to figure out why the Microsoft HD camera doesn't work as well...

            Eric KatzfeyE 1 Reply Last reply
            0
            • Ed SutterE Ed Sutter

              @Eric-Katzfey FYI... Using a Logitech BRIO camera seems to work fine... the frame size always returns the same value (614400 in my case). Still, I wanna spend some time attempting to figure out why the Microsoft HD camera doesn't work as well...

              Eric KatzfeyE Offline
              Eric KatzfeyE Offline
              Eric Katzfey
              ModalAI Team
              wrote on last edited by
              #17

              @Ed-Sutter We have tested with these cameras:

              • Logitech C270
              • Logitech C930e
              • Logitech Brio (USB 2.0 and USB 3.0 on VOXL 2)
              • Videology 5MP Micro USB 2.0 Board Camera
              • PureThermal Mini with Flir Lepton
              • Flir Boson 640
              • Blue Robotics h264 camera
              1 Reply Last reply
              0
              • Eric KatzfeyE Eric Katzfey

                @Ed-Sutter Excellent, thanks!

                Ed SutterE Offline
                Ed SutterE Offline
                Ed Sutter
                Regular
                wrote on last edited by
                #18

                @Eric-Katzfey By the way, regarding "upgrading"... All I did was opkg update; opkg upgrade. I really don't know what all that updated (aside from /etc/modalai/voxl-streamer.conf); but the output of "voxl-version" didn't change at all.
                Based on that it appears I'm running with a system-image that was built on 2021-06-06 (about 15 months ago). Is that the most recent?

                Eric KatzfeyE 1 Reply Last reply
                0
                • Ed SutterE Ed Sutter

                  @Eric-Katzfey By the way, regarding "upgrading"... All I did was opkg update; opkg upgrade. I really don't know what all that updated (aside from /etc/modalai/voxl-streamer.conf); but the output of "voxl-version" didn't change at all.
                  Based on that it appears I'm running with a system-image that was built on 2021-06-06 (about 15 months ago). Is that the most recent?

                  Eric KatzfeyE Offline
                  Eric KatzfeyE Offline
                  Eric Katzfey
                  ModalAI Team
                  wrote on last edited by
                  #19

                  @Ed-Sutter We are preparing a new VOXL platform release but are still completing an update of our ToF camera support. Once that is complete the release will go out.

                  Ed SutterE 1 Reply Last reply
                  0
                  • Eric KatzfeyE Eric Katzfey

                    @Ed-Sutter We are preparing a new VOXL platform release but are still completing an update of our ToF camera support. Once that is complete the release will go out.

                    Ed SutterE Offline
                    Ed SutterE Offline
                    Ed Sutter
                    Regular
                    wrote on last edited by
                    #20

                    @Eric-Katzfey Ok, no rush (just curious)... Is that updated by the same procedure (opkg update; opkg upgrade)?

                    Eric KatzfeyE 1 Reply Last reply
                    0
                    • Ed SutterE Ed Sutter

                      @Eric-Katzfey Ok, no rush (just curious)... Is that updated by the same procedure (opkg update; opkg upgrade)?

                      Eric KatzfeyE Offline
                      Eric KatzfeyE Offline
                      Eric Katzfey
                      ModalAI Team
                      wrote on last edited by
                      #21

                      @Ed-Sutter No, there is a bash script to handle it. The opkg method is good for SDK and package updates but the full platform release also contains a new system image that needs to be flashed via fastboot.

                      Ed SutterE 2 Replies Last reply
                      0
                      • Eric KatzfeyE Eric Katzfey

                        @Ed-Sutter No, there is a bash script to handle it. The opkg method is good for SDK and package updates but the full platform release also contains a new system image that needs to be flashed via fastboot.

                        Ed SutterE Offline
                        Ed SutterE Offline
                        Ed Sutter
                        Regular
                        wrote on last edited by
                        #22

                        @Eric-Katzfey Update regarding the intermittent frame size when using the MS-1080P-HD camera... I pulled down the latest libuvc code from github and built it on my Ubuntu 18.04 machine. I was then able to run uvc_test on that camera and it always came back with the same (correct) frame size.
                        Is there any chance that the libuvc version you guys have on voxl-public is a bit out-of-date?

                        1 Reply Last reply
                        0
                        • Eric KatzfeyE Eric Katzfey

                          @Ed-Sutter No, there is a bash script to handle it. The opkg method is good for SDK and package updates but the full platform release also contains a new system image that needs to be flashed via fastboot.

                          Ed SutterE Offline
                          Ed SutterE Offline
                          Ed Sutter
                          Regular
                          wrote on last edited by
                          #23

                          @Eric-Katzfey Just to gather a little more data, I took the voxl-libuvc code and built it on Ubuntu18.04. Then I ran uvc_test with the MS-1080P-HD camera and it worked fine.

                          To do this I cloned libuvc and voxl-libuvc, then prior to building libuvc, I copied all the source files (*.[ch]) from voxl-libuvc to libuvc. This allowed me to use voxl-libuvc source code, but still build on a native ubuntu host.

                          Anyway, that eliminates voxl-libuvc from the suspect list. Since voxl-uvc-server's callback is fed the frame size, that kinda points to the driver as a possible suspect.

                          Any thoughts?

                          If interested, I can post the script I used to do that build.

                          Eric KatzfeyE 1 Reply Last reply
                          0
                          • Ed SutterE Ed Sutter

                            @Eric-Katzfey Just to gather a little more data, I took the voxl-libuvc code and built it on Ubuntu18.04. Then I ran uvc_test with the MS-1080P-HD camera and it worked fine.

                            To do this I cloned libuvc and voxl-libuvc, then prior to building libuvc, I copied all the source files (*.[ch]) from voxl-libuvc to libuvc. This allowed me to use voxl-libuvc source code, but still build on a native ubuntu host.

                            Anyway, that eliminates voxl-libuvc from the suspect list. Since voxl-uvc-server's callback is fed the frame size, that kinda points to the driver as a possible suspect.

                            Any thoughts?

                            If interested, I can post the script I used to do that build.

                            Eric KatzfeyE Offline
                            Eric KatzfeyE Offline
                            Eric Katzfey
                            ModalAI Team
                            wrote on last edited by
                            #24

                            @Ed-Sutter What is uvc_test?

                            Ed SutterE 1 Reply Last reply
                            0
                            • Eric KatzfeyE Eric Katzfey

                              @Ed-Sutter What is uvc_test?

                              Ed SutterE Offline
                              Ed SutterE Offline
                              Ed Sutter
                              Regular
                              wrote on last edited by Ed Sutter
                              #25

                              @Eric-Katzfey Its the output of building test.c which is part of the libuvc code. It just uses libuvc to grab frames and they are pushed to the console with OpenCV.

                              Eric KatzfeyE 1 Reply Last reply
                              0
                              • Ed SutterE Ed Sutter

                                @Eric-Katzfey Its the output of building test.c which is part of the libuvc code. It just uses libuvc to grab frames and they are pushed to the console with OpenCV.

                                Eric KatzfeyE Offline
                                Eric KatzfeyE Offline
                                Eric Katzfey
                                ModalAI Team
                                wrote on last edited by
                                #26

                                @Ed-Sutter It looks like it prints the length each frame. Do you see it show same frame length each time or does it ever change?

                                Ed SutterE 2 Replies Last reply
                                0
                                • Eric KatzfeyE Eric Katzfey

                                  @Ed-Sutter It looks like it prints the length each frame. Do you see it show same frame length each time or does it ever change?

                                  Ed SutterE Offline
                                  Ed SutterE Offline
                                  Ed Sutter
                                  Regular
                                  wrote on last edited by
                                  #27

                                  @Eric-Katzfey Yes, it does print every frame, and it is consistently (i.e. always) 614400 in my case.

                                  1 Reply Last reply
                                  0
                                  • Eric KatzfeyE Eric Katzfey

                                    @Ed-Sutter It looks like it prints the length each frame. Do you see it show same frame length each time or does it ever change?

                                    Ed SutterE Offline
                                    Ed SutterE Offline
                                    Ed Sutter
                                    Regular
                                    wrote on last edited by
                                    #28

                                    @Eric-Katzfey I modified the voxl-libuvc/build.sh script so that it would build the uvc_test (from test.c) program I mentioned earlier. Refer to the README.md file in the original libuvc code)...

                                    cmake ../libuvc -DBUILD_TEST=ON -DBUILD_EXAMPLE=ON

                                    The test.c code uses opencv to display to a monitor, so I also stubbed that code out so that the callback simply prints the received frame size.

                                    With those changes I was able to install the uvc_test program on my Voxl Flight Deck and I see the same inconsistent frame size. That eliminates any suspicion of a problem with voxl-uvc-server code; and since this works correctly on a standard x86 linux machine, this points to the driver. Are there any open issues with this that you are aware of?

                                    Eric KatzfeyE 1 Reply Last reply
                                    0
                                    • Ed SutterE Ed Sutter

                                      @Eric-Katzfey I modified the voxl-libuvc/build.sh script so that it would build the uvc_test (from test.c) program I mentioned earlier. Refer to the README.md file in the original libuvc code)...

                                      cmake ../libuvc -DBUILD_TEST=ON -DBUILD_EXAMPLE=ON

                                      The test.c code uses opencv to display to a monitor, so I also stubbed that code out so that the callback simply prints the received frame size.

                                      With those changes I was able to install the uvc_test program on my Voxl Flight Deck and I see the same inconsistent frame size. That eliminates any suspicion of a problem with voxl-uvc-server code; and since this works correctly on a standard x86 linux machine, this points to the driver. Are there any open issues with this that you are aware of?

                                      Eric KatzfeyE Offline
                                      Eric KatzfeyE Offline
                                      Eric Katzfey
                                      ModalAI Team
                                      wrote on last edited by
                                      #29

                                      @Ed-Sutter Thanks for the testing! No, I am not aware of any issues.

                                      Ed SutterE 1 Reply Last reply
                                      0
                                      • Eric KatzfeyE Eric Katzfey

                                        @Ed-Sutter Thanks for the testing! No, I am not aware of any issues.

                                        Ed SutterE Offline
                                        Ed SutterE Offline
                                        Ed Sutter
                                        Regular
                                        wrote on last edited by
                                        #30

                                        @Eric-Katzfey Just an FYI... I have been experimenting with libuvc on my host machine and I do notice occasional incorrect incoming frame sizes. So my earlier assumption that this only occurs on VOXL is false.

                                        Eric KatzfeyE 1 Reply Last reply
                                        0
                                        • Ed SutterE Ed Sutter

                                          @Eric-Katzfey Just an FYI... I have been experimenting with libuvc on my host machine and I do notice occasional incorrect incoming frame sizes. So my earlier assumption that this only occurs on VOXL is false.

                                          Eric KatzfeyE Offline
                                          Eric KatzfeyE Offline
                                          Eric Katzfey
                                          ModalAI Team
                                          wrote on last edited by
                                          #31

                                          @Ed-Sutter Okay, thanks! That's good to know. And really appreciate the investigation!

                                          1 Reply Last reply
                                          0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          ModalAI
                                          Categories Recent Tags ModalAI.com Docs
                                          © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups