camuser

  • Sep 23, 2024
  • Joined Sep 1, 2024
  • 0 best answers
  • I'm on windows. How do i check if device is connectable? My camera is new, cable is new and it happens on different computers.

    • I have a small program which tries to connect to the camera, then takes a frame, then disconnects and then does it again. In 10-30 connections, it crashes, because dai.Device.getAllAvailableDevices() returns empty array. Here is the program:

      Here is the output:

      open 1

      Opened Luxonis camera device

      got frame (2160, 3840, 3)

      Deleted device

      open 2

      Opened Luxonis camera device

      got frame (2160, 3840, 3)

      Deleted device

      open 3

      Opened Luxonis camera device

      got frame (2160, 3840, 3)

      Deleted device

      open 4

      Opened Luxonis camera device

      got frame (2160, 3840, 3)

      Deleted device

      open 5

      Opened Luxonis camera device

      got frame (2160, 3840, 3)

      Deleted device

      open 6

      Opened Luxonis camera device

      got frame (2160, 3840, 3)

      Deleted device

      open 7

      [2024-09-01 03:40:11.610] [depthai] [warning] skipping X_LINK_BOOTED device having name "2.1"

      AssertionError: No connected Luxonis cameras, or all of them are in use

      Why does it fail to reconnect? Is that hardware bug? How can it be fixed?