UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    USB Device (OTG) access from QML app

    Scheduled Pinned Locked Moved App Development
    1 Posts 1 Posters 895 Views 1 Watching
    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.
      • F Offline
        fulvio
        last edited by fulvio

        Hi all,
        i'm trying to do an application to use my USB endoscope (ie: a webcam) from my Tablet m10 FHD (running UBports ota 3).
        The endoscope is connected with micro usb cable. OTG is supported by the tablet (with "fdisk -l" i can see a connected generic USB pendrive).
        Running my App from notebook (ubutnu 16.04) i can use all all the webcam (embedded an the endoscope).
        Deploying App on tablet, i can see (and use) only the two embedded camera (front and back) not the one of the endoscope (is not listed as available camera).
        I'm using the QtMultimedia Camera QML API (https://api-docs.ubports.com/sdk/apps/qml/QtMultimedia/Camera.html)
        I have added the "Camera" permission and done some experiments with other permissions and added for test something like this in apparmor file:
        "read_path": [
        "@{PROC}/bus/usb/",
        "@{PROC}/bus/usb/
        "
        ]

        but with the same result: only two camera are shown as available.
        Someone have an idea, suggestion, example how to solve ... ?

        Thank you very much

        1 Reply Last reply Reply Quote 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
        • First post
          Last post