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

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL Compute & Autopilot
  3. VOXL
  4. Problems with voxl-uvc-server

Problems with voxl-uvc-server

Scheduled Pinned Locked Moved VOXL
3 Posts 2 Posters 872 Views 1 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.
  • A Offline
    A Offline
    amitga
    Contributor
    wrote on last edited by
    #1

    Hi.
    I'm using voxl-uvc-server (v0.1.3) on system image v3.8.

    I have experienced a few problems:

    1. When two different cameras are attached via USB hub (either powered or unpowered) to debug board's USB, voxl-uvc-server usually fails at opening the device.
      If I boot with only one camera attached to the USB hub, it works on the first try. With two cameras attached, it fails (uvc_open failed) around two to three consecutive tries, until its successful.
      In this scenario I was only running one instance of voxl-uvc-server. No other software was accessing UVC (AFAIK) on the VOXL.

    2. I'm trying to use voxl-uvc-server for both cameras. From the docs it should be possible, as they are different brand/type of cameras, and I'm giving each one a unique frame rate.
      5aa30359-0a5f-445d-9718-e5c1c09e8ba5-image.png
      But in practice, it doesn't work: The code for voxl-uvc-server prevents two instances from running simultaneously:

    int main(int argc, char *argv[]) {
    
        ////////////////////////////////////////////////////////////////////////////////
        // gracefully handle an existing instance of the process and associated PID file
        ////////////////////////////////////////////////////////////////////////////////
    
        // make sure another instance isn't running
        // if return value is -3 then a background process is running with
        // higher privaledges and we couldn't kill it, in which case we should
        // not continue or there may be hardware conflicts. If it returned -4
        // then there was an invalid argument that needs to be fixed.
        if(kill_existing_process(SERVER_NAME, 2.0)<-2) return -1;
    
        // start signal handler so we can exit cleanly
        if(enable_signal_handler()==-1){
            fprintf(stderr,"ERROR: failed to start signal handler\n");
            return -1;
        }
    
        // make PID file to indicate your project is running
        // due to the check made on the call to rc_kill_existing_process() above
        // we can be fairly confident there is no PID file already and we can
        // make our own safely.
        make_pid_file(SERVER_NAME);
    

    How can I run two instances on the VOXL ?

    Thanks.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      amitga
      Contributor
      wrote on last edited by
      #2

      Any help about running 2 USB cameras ?
      Can I just remove the code that limits this in UVC-server ?
      Thanks

      Eric KatzfeyE 1 Reply Last reply
      0
      • A amitga

        Any help about running 2 USB cameras ?
        Can I just remove the code that limits this in UVC-server ?
        Thanks

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

        @amitga Yes you can. That code shouldn't be there since it prevents the exact use case that you are trying to run.

        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