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 797 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
        • First post
          Last post