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. voxl-streamer client repetitive connect/disconnect

voxl-streamer client repetitive connect/disconnect

Scheduled Pinned Locked Moved Ask your questions right here!
63 Posts 3 Posters 33.0k 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.
  • wilkinsafW wilkinsaf

    @Eric-Katzfey

    Yes, the top 3 entries in lsusb screenshots above are all cameras. I can unplug those one by one and see them disappear.
    Would it matter if we have 2 UVC cameras?

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

    @wilkinsaf Just try one at a time for now. And when you plug the camera in do you see a new /dev/videoX entry appear?

    1 Reply Last reply
    0
    • wilkinsafW wilkinsaf

      @Eric-Katzfey

      Yes, the top 3 entries in lsusb screenshots above are all cameras. I can unplug those one by one and see them disappear.
      Would it matter if we have 2 UVC cameras?

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

      @wilkinsaf Also, were you able to get the ordering information for these cameras? If they aren't too expensive I would like to order at least one of them to test against.

      wilkinsafW 3 Replies Last reply
      0
      • Eric KatzfeyE Eric Katzfey

        @wilkinsaf Also, were you able to get the ordering information for these cameras? If they aren't too expensive I would like to order at least one of them to test against.

        wilkinsafW Offline
        wilkinsafW Offline
        wilkinsaf
        ModalAI Team
        wrote on last edited by
        #38

        @Eric-Katzfey

        Yes, let me try one at a time now.
        Here are the two cameras

        4de39b51-2708-4707-a1fe-d67161270aa3-image.png ![0_1640728100493_PXL_20211228_214717072.jpg](Uploading 100%)

        1. Banggood URL

        2. Blue Robotics URL

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

          @wilkinsaf Also, were you able to get the ordering information for these cameras? If they aren't too expensive I would like to order at least one of them to test against.

          wilkinsafW Offline
          wilkinsafW Offline
          wilkinsaf
          ModalAI Team
          wrote on last edited by
          #39

          @Eric-Katzfey

          Good news, I was able to get voxl-uvc-server to spin up with one usb camera connected.
          21d09d1b-d888-45a2-a663-51af22ab926b-image.png

          However, I am getting this issue from voxl-streamer
          cc766c80-29ad-4160-8191-964e40998ea5-image.png

          Seems like I need to figure out the frame size and set the correct one. Let me play around with that now

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

            @wilkinsaf Also, were you able to get the ordering information for these cameras? If they aren't too expensive I would like to order at least one of them to test against.

            wilkinsafW Offline
            wilkinsafW Offline
            wilkinsaf
            ModalAI Team
            wrote on last edited by
            #40

            @Eric-Katzfey Doesn't look to be frame size as the "sizes" seem non-deterministic
            f7371975-b223-4f6e-a9f0-3e2b3e744c26-image.png

            Eric KatzfeyE 1 Reply Last reply
            0
            • wilkinsafW wilkinsaf

              @Eric-Katzfey

              Good news, I was able to get voxl-uvc-server to spin up with one usb camera connected.
              21d09d1b-d888-45a2-a663-51af22ab926b-image.png

              However, I am getting this issue from voxl-streamer
              cc766c80-29ad-4160-8191-964e40998ea5-image.png

              Seems like I need to figure out the frame size and set the correct one. Let me play around with that now

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

              @wilkinsaf Great, that's some progress! What about if you try the other camera? Not sure why the frame length is different. For a given resolution and frame format that number should be a constant. (e.g. 640 x 480 x 2).

              wilkinsafW 1 Reply Last reply
              0
              • Eric KatzfeyE Eric Katzfey

                @wilkinsaf Great, that's some progress! What about if you try the other camera? Not sure why the frame length is different. For a given resolution and frame format that number should be a constant. (e.g. 640 x 480 x 2).

                wilkinsafW Offline
                wilkinsafW Offline
                wilkinsaf
                ModalAI Team
                wrote on last edited by
                #42

                @Eric-Katzfey

                Good suggestion. Let me try that.
                Check out the length when uvc server fires up

                Got frame callback! frame_format = 3, width = 640, height = 480, length = 613376, ptr = 0
                

                interesting

                1 Reply Last reply
                0
                • wilkinsafW wilkinsaf

                  @Eric-Katzfey Doesn't look to be frame size as the "sizes" seem non-deterministic
                  f7371975-b223-4f6e-a9f0-3e2b3e744c26-image.png

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

                  @wilkinsaf You can try modifying this line in voxl-uvc-server: https://gitlab.com/voxl-public/modal-pipe-architecture/voxl-uvc-server/-/blob/dev/src/main.c#L83

                  Make it read: .size_bytes = 614400, \

                  Then rebuild it and try again.

                  wilkinsafW 1 Reply Last reply
                  0
                  • Eric KatzfeyE Eric Katzfey

                    @wilkinsaf You can try modifying this line in voxl-uvc-server: https://gitlab.com/voxl-public/modal-pipe-architecture/voxl-uvc-server/-/blob/dev/src/main.c#L83

                    Make it read: .size_bytes = 614400, \

                    Then rebuild it and try again.

                    wilkinsafW Offline
                    wilkinsafW Offline
                    wilkinsaf
                    ModalAI Team
                    wrote on last edited by wilkinsaf
                    #44

                    @Eric-Katzfey Sounds good.

                    The other camera is giving me this error
                    dab62085-ee06-487d-97c0-99bcd228e382-image.png

                    The one I compiled could not find the device at all
                    ad11d578-596e-44b3-b240-049dea293fa4-image.png

                    Eric KatzfeyE 1 Reply Last reply
                    0
                    • wilkinsafW wilkinsaf

                      @Eric-Katzfey Sounds good.

                      The other camera is giving me this error
                      dab62085-ee06-487d-97c0-99bcd228e382-image.png

                      The one I compiled could not find the device at all
                      ad11d578-596e-44b3-b240-049dea293fa4-image.png

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

                      @wilkinsaf Perhaps you are working on master branch? The latest and greatest (The one you should be using) is the dev branch.

                      1 Reply Last reply
                      0
                      • wilkinsafW wilkinsaf

                        @Eric-Katzfey

                        Yes, let me try one at a time now.
                        Here are the two cameras

                        4de39b51-2708-4707-a1fe-d67161270aa3-image.png ![0_1640728100493_PXL_20211228_214717072.jpg](Uploading 100%)

                        1. Banggood URL

                        2. Blue Robotics URL

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

                        @wilkinsaf Thanks! I'm going to order them so that I can have them as part of our normal USB UVC camera test suite.

                        wilkinsafW 1 Reply Last reply
                        0
                        • Eric KatzfeyE Eric Katzfey

                          @wilkinsaf Thanks! I'm going to order them so that I can have them as part of our normal USB UVC camera test suite.

                          wilkinsafW Offline
                          wilkinsafW Offline
                          wilkinsaf
                          ModalAI Team
                          wrote on last edited by
                          #47

                          @Eric-Katzfey Thanks Eric!

                          I switched to dev branch (slightly embarrassing as you told me to switch to dev) and pull

                          voxl:~/voxl-uvc-server(dev)$ git pull origin dev
                          From https://gitlab.com/voxl-public/modal-pipe-architecture/voxl-uvc-server
                           * branch            dev        -> FETCH_HEAD
                          Already up-to-date.
                          

                          I made sure to install the correct libuvc ipk

                          voxl:~$ opkg install libuvc_1.0.2_202112182223.ipk
                          Collected errors:
                          * opkg_prepare_file_for_install: Refusing to load file 'libuvc_1.0.2_202112182223.ipk' as it matches the installed version of libuvc (1.0.2).
                          

                          I then built the voxl-uvc-server, ran Makefile, and tried to run
                          19c8da6a-c943-40f8-85b4-350d52459372-image.png

                          Eric KatzfeyE 1 Reply Last reply
                          0
                          • wilkinsafW wilkinsaf

                            @Eric-Katzfey Thanks Eric!

                            I switched to dev branch (slightly embarrassing as you told me to switch to dev) and pull

                            voxl:~/voxl-uvc-server(dev)$ git pull origin dev
                            From https://gitlab.com/voxl-public/modal-pipe-architecture/voxl-uvc-server
                             * branch            dev        -> FETCH_HEAD
                            Already up-to-date.
                            

                            I made sure to install the correct libuvc ipk

                            voxl:~$ opkg install libuvc_1.0.2_202112182223.ipk
                            Collected errors:
                            * opkg_prepare_file_for_install: Refusing to load file 'libuvc_1.0.2_202112182223.ipk' as it matches the installed version of libuvc (1.0.2).
                            

                            I then built the voxl-uvc-server, ran Makefile, and tried to run
                            19c8da6a-c943-40f8-85b4-350d52459372-image.png

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

                            @wilkinsaf Okay, interesting. Let's go back to the original camera with the incorrect size. Can you add the patch I suggested and see if you can make that camera work?

                            wilkinsafW 3 Replies Last reply
                            0
                            • Eric KatzfeyE Eric Katzfey

                              @wilkinsaf Okay, interesting. Let's go back to the original camera with the incorrect size. Can you add the patch I suggested and see if you can make that camera work?

                              wilkinsafW Offline
                              wilkinsafW Offline
                              wilkinsaf
                              ModalAI Team
                              wrote on last edited by
                              #49

                              @Eric-Katzfey ope, almost forgot. Yes, let me do that now

                              1 Reply Last reply
                              0
                              • Eric KatzfeyE Eric Katzfey

                                @wilkinsaf Okay, interesting. Let's go back to the original camera with the incorrect size. Can you add the patch I suggested and see if you can make that camera work?

                                wilkinsafW Offline
                                wilkinsafW Offline
                                wilkinsaf
                                ModalAI Team
                                wrote on last edited by
                                #50

                                @Eric-Katzfey

                                For some reason now it is still struggling to find any device. I tried both cameras
                                1ca5e655-0e4d-46c5-a1a7-75a232497ec7-image.png

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

                                  @wilkinsaf Okay, interesting. Let's go back to the original camera with the incorrect size. Can you add the patch I suggested and see if you can make that camera work?

                                  wilkinsafW Offline
                                  wilkinsafW Offline
                                  wilkinsaf
                                  ModalAI Team
                                  wrote on last edited by
                                  #51

                                  @Eric-Katzfey

                                  I know that it is there as ffmpeg picks up on it

                                  6daa081a-c811-465d-b76b-e9f2a8e8c107-image.png

                                  1 Reply Last reply
                                  0
                                  • wilkinsafW wilkinsaf

                                    @Eric-Katzfey

                                    For some reason now it is still struggling to find any device. I tried both cameras
                                    1ca5e655-0e4d-46c5-a1a7-75a232497ec7-image.png

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

                                    @wilkinsaf Unfortunately, it's hard to debug this without actually having the camera in my test setup. I've never seen a camera stop being detected like that. I did order the cameras but won't have them in my possession until the 9th of January.

                                    wilkinsafW 1 Reply Last reply
                                    0
                                    • Eric KatzfeyE Eric Katzfey

                                      @wilkinsaf Unfortunately, it's hard to debug this without actually having the camera in my test setup. I've never seen a camera stop being detected like that. I did order the cameras but won't have them in my possession until the 9th of January.

                                      wilkinsafW Offline
                                      wilkinsafW Offline
                                      wilkinsaf
                                      ModalAI Team
                                      wrote on last edited by
                                      #53

                                      @Eric-Katzfey My apologies. I thought I sent a response to this.

                                      Totally get it. Debugging over a message board is really hard. I believe my associate is getting some of the cameras to your offices sooner than the 9th.

                                      I have been continuing to try different things on our end.

                                      Eric KatzfeyE 1 Reply Last reply
                                      0
                                      • wilkinsafW wilkinsaf

                                        @Eric-Katzfey My apologies. I thought I sent a response to this.

                                        Totally get it. Debugging over a message board is really hard. I believe my associate is getting some of the cameras to your offices sooner than the 9th.

                                        I have been continuing to try different things on our end.

                                        Eric KatzfeyE Offline
                                        Eric KatzfeyE Offline
                                        Eric Katzfey
                                        ModalAI Team
                                        wrote on last edited by Chad Sweet
                                        #54

                                        @wilkinsaf I have both of the cameras now. I have updated libuvc to version 1.0.3 (http://voxl-packages.modalai.com/dev/) and voxl-uvc-server to version 0.0.6 (http://voxl-packages.modalai.com/dev/). The voxl-uvc-server update isn't really necessary but I cleaned up a little bit of the debug logic. There was a check that was failing in libuvc for the Blue Robotics camera (USB 32e4:9422, "H264 USB Camera") so I removed that check and then it started working. So far it has been reliable. The other camera (USB 337b:090c, "HBVCAM 5M-AF") was coming up without these changes. However, it isn't reliable. Sometimes uvc_open will fail, other times it will pass. If it passes then sometimes it will successfully start streaming and other times it will think it was successful but gets no frames. Not sure why it is having these issues so need to debug more.

                                        wilkinsafW 1 Reply Last reply
                                        0
                                        • Eric KatzfeyE Eric Katzfey

                                          @wilkinsaf I have both of the cameras now. I have updated libuvc to version 1.0.3 (http://voxl-packages.modalai.com/dev/) and voxl-uvc-server to version 0.0.6 (http://voxl-packages.modalai.com/dev/). The voxl-uvc-server update isn't really necessary but I cleaned up a little bit of the debug logic. There was a check that was failing in libuvc for the Blue Robotics camera (USB 32e4:9422, "H264 USB Camera") so I removed that check and then it started working. So far it has been reliable. The other camera (USB 337b:090c, "HBVCAM 5M-AF") was coming up without these changes. However, it isn't reliable. Sometimes uvc_open will fail, other times it will pass. If it passes then sometimes it will successfully start streaming and other times it will think it was successful but gets no frames. Not sure why it is having these issues so need to debug more.

                                          wilkinsafW Offline
                                          wilkinsafW Offline
                                          wilkinsaf
                                          ModalAI Team
                                          wrote on last edited by
                                          #55

                                          @Eric-Katzfey Awesome!

                                          Thank you Eric. Will try that out and report back

                                          Eric KatzfeyE 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