ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Issue with USB Camera Disconnecting on VOXL2

    Ask your questions right here!
    2
    4
    71
    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.
    • Daehan WonD
      Daehan Won
      last edited by

      Hello,

      I would like to use a USB camera connected to the VOXL2. My test environment is as follows:

      Hardware setup:

      VOXL2
      VOXL 2 Ethernet and USB Hub Add-on (MDK-M0062-3-00)
      USB Camera

      The camera is connected via the J11 USB port on the MDK-M0062-3-00.

      VOXL2 <--> VOXL 2 Ethernet and USB Hub Add-on(J11) <--> USB Camera

      J11 Pin Description:

      1. VBUS_PORT3 — 5V VBUS, 1A limit
      2. USB1_HS_CON_D_N — Host Port USB_D-
      3. USB1_HS_CON_D_P — Host Port USB_D+
      4. DGND — System GND

      However, when I first power on the system, the video device is recognized correctly. After about one minute, the video device disappears.

      Is there any additional configuration or setup I need to perform?

      VinnyV 1 Reply Last reply Reply Quote 0
      • VinnyV
        Vinny ModalAI Team @Daehan Won
        last edited by

        Hi @Daehan-Won
        To help us, what camera and how is it connected (cable details, with photo will help)
        We want to first understand how much power it needs.

        However, if it appears upon boot up, that is usually the worst power draw (in-rush), so I'm not inclined to think this is the case. It may be loose wiring, which is why a photo of your cable setup will also help. Even the slighest intermittent glitch on USB will create USB reconect events.
        You can monitor that in a VOXL console (over ADB) with this command :

        dmesg -w | grep -Ei 'usb|xhci'
        

        Thanks!

        Daehan WonD 1 Reply Last reply Reply Quote 0
        • Daehan WonD
          Daehan Won @Vinny
          last edited by

          @Vinny Thank you for reply!

          hardware_architecture.png

          Night Vision Camera
          https://ko.aliexpress.com/item/1005007185180818.html?spm=a2g0o.order_list.order_list_main.27.5cf0140f9dDqCE&gatewayAdapt=glo2kor

          LWIR Camera
          https://ko.aliexpress.com/item/1005010057812282.html?spm=a2g0o.productlist.main.13.372eXTreXTreSV&algo_pvid=04aff256-3319-46cc-9450-d3d4fe12b980&algo_exp_id=04aff256-3319-46cc-9450-d3d4fe12b980-12&pdp_ext_f={"order"%3A"6"%2C"eval"%3A"1"%2C"fromPage"%3A"search"}&pdp_npi=6%40dis!KRW!506400!506400!!!2244.31!2244.31!%40212e520d17754604623953738e4267!12000050979550628!sea!KR!6191003913!X!1!0!n_tag%3A-29919%3Bd%3A33984ef5%3Bm03_new_user%3A-29895&curPageLogUid=jdYvxkDACuo3&utparam-url=scene%3Asearch|query_from%3A|x_object_id%3A1005010057812282|_p_origin_prod%3A

          I connected it as shown in the attached file.

          The camera was purchased from AliExpress. The Night Vision Camera has a current consumption of 0.2 A, and the LWIR camera’s current consumption is unknown (but it is expected to be low).
          Even when testing with only the Night Vision Camera connected, the same issue occurred.

          VinnyV 1 Reply Last reply Reply Quote 0
          • VinnyV
            Vinny ModalAI Team @Daehan Won
            last edited by

            Hi @Daehan-Won
            So, on the M0062 debug board, you do not need to connect an extra hub. You already have 3 USB ports...
            Look at J10, J11, and J12..
            https://docs.modalai.com/m0062-datasheet/#connector-callouts
            Yes they are different connectors, but is a much easier system for you. We sell both 4 and 10-pin USB cables, and you can easily get Type-A breakouts from Adafruit or Digikey.
            Can you try to remove the extra hub and see if you can get your system to work that way?

            We cannot validate or debug third party hardware/modules ... we would only be guessing and do not want to lead you down the wrong path. However, I suspect in this case, that Hub is indeed your issue. It is most likely only supporting 500mA modes, and if neither of those two devices are enumerating perfectly, it may only allow 100mA per port before tripping a reset. Depends on how it is configured and designed.
            You can use USB TreeView to read all the descriptors of that hub board, and look for the self vs bus powered reporting, and the downstream current allocations. I suspect this is not set for your system.
            If you use our connectors, despite in various formats, you should be much better off.

            Lastly, just to clarify, are your USB connections unique? Your drawing looks like they are the same USBD+/D- wires connecting to one port of the Hub. 2d802362-4330-4853-bb36-9836fb6516cd-image.png

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB | Contributors