F
franva

  • May 7, 2023
  • Joined Aug 2, 2021
  • 1 best answer
  • okiee, thanks for letting know.

    This question can be closed now.

    How can I mark it as resolved?

  • Hi jakaskerl

    Here is the value from dmesg

    And the value from device.getUsbSpeed() UsbSpeed.SUPER

    Then I am confused, why from the dmesg ,

    [ 6652.012692] usb 1-1.1: new high-speed USB device

    It shows high-speed(USB2) first then shows the SuperSpeed(USB3)?

    Why is it like this?

    • erik replied to this.
    • jakaskerl thanks Jaka, I'll add the code.

      so what is the return value for USB3 and USB2?

    • @erik

      Here it is:

      [ 270.646853] usb 1-1.2: USB disconnect, device number 8
      [ 271.418559] usb 1-1.2: new high-speed USB device number 9 using xhci_hcd
      [ 271.519513] usb 1-1.2: New USB device found, idVendor=03e7, idProduct=f63b, bcdDevice= 1.00
      [ 271.519534] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
      [ 271.519542] usb 1-1.2: Product: Luxonis Device
      [ 271.519548] usb 1-1.2: Manufacturer: Intel Corporation
      [ 271.519554] usb 1-1.2: SerialNumber: 18443010F1F1071300

      • @erik yep, after looking around, I found the Y adapter might be the thing to solve the issue.

        For USB 2, I do not know the OAK-D Lite camera has booting. I thought the booting is only for POE model?

        But mine is not POE model.

        What does Discovery here mean?

        How to find out whether it is the discovery or booting?

        • erik replied to this.
        • Hi there,

          I use a USB 3 Cable connects to the USB3 socket(the blue ones) on RPi 4, but somehow the system still recognizes the device as a USB2 device:

          [ 270.646853] usb 1-1.2: USB disconnect, device number 8
          [ 271.418559] usb 1-1.2: new high-speed USB device number 9 using xhci_hcd
          [ 271.519513] usb 1-1.2: New USB device found, idVendor=03e7, idProduct=f63b, bcdDevice= 1.00
          [ 271.519534] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
          [ 271.519542] usb 1-1.2: Product: Luxonis Device
          [ 271.519548] usb 1-1.2: Manufacturer: Intel Corporation
          [ 271.519554] usb 1-1.2: SerialNumber: 18443010F1F1071300

          How can this be fixed?

          • erik replied to this.
          • Hi there,

            Appreciate if you could help.

            I have code that works on OAK-D with external power supply but does not work on OAK-D Lite.

            I have the question posted in an earlier post but it has been closed without a solution, so I thought posted here again:

            I am using the Original Official RPi 4 Power supply:
            Which has 5.1V and 3.0A.

            RPi 4 OS Details (64 Bit):

            PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"

            NAME="Debian GNU/Linux"

            VERSION_ID="11"

            VERSION="11 (bullseye)"

            VERSION_CODENAME=bullseye

            ID=debian

            Error Message:

            image

            Here is the dmesg from my RPi:

            $$

            [ 270.646853] usb 1-1.2: USB disconnect, device number 8
            [ 271.418559] usb 1-1.2: new high-speed USB device number 9 using xhci_hcd
            [ 271.519513] usb 1-1.2: New USB device found, idVendor=03e7, idProduct=f63b, bcdDevice= 1.00
            [ 271.519534] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
            [ 271.519542] usb 1-1.2: Product: Luxonis Device
            [ 271.519548] usb 1-1.2: Manufacturer: Intel Corporation
            [ 271.519554] usb 1-1.2: SerialNumber: 18443010F1F1071300
            $$

            I can see that the OAK-D Lite recognized using the USB as USB2 not 3. However, I am using a blue USB3 cable.

            In my code, I use the OAK-D like to do a NN network, Depth Calculation(on camera).

            So how can I make the code also work with OAK-D Lite?

          • Also, I found that the OAK-D Lite and OAK-D cameras are always recognized as USB2 device even I use the blue USB3 cable comes with the OAK-D camera.

            How can we solve this issue?

            • erik replied to this.
            • Hi erik

              I need the same code to work on Oak-D Lite camera. How can I achieve that?

              The Oak-D camera works with an external power supply and USB cable, but the Oak-D Lite camera does not have the socket for an external power supply.

            • I have read the another 2 similar issues on Github and found it might related to the input power might not be enough.
              But I am using the Original Official RPi 4 Power supply:
              Which has 5.1V and 3.0A.

              RPi 4 OS Details (64 Bit):

              PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"

              NAME="Debian GNU/Linux"

              VERSION_ID="11"

              VERSION="11 (bullseye)"

              VERSION_CODENAME=bullseye

              ID=debian

              Error Message:

              image

              Here is the dmesg from my RPi:

              $$

              [ 270.646853] usb 1-1.2: USB disconnect, device number 8
              [ 271.418559] usb 1-1.2: new high-speed USB device number 9 using xhci_hcd
              [ 271.519513] usb 1-1.2: New USB device found, idVendor=03e7, idProduct=f63b, bcdDevice= 1.00
              [ 271.519534] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
              [ 271.519542] usb 1-1.2: Product: Luxonis Device
              [ 271.519548] usb 1-1.2: Manufacturer: Intel Corporation
              [ 271.519554] usb 1-1.2: SerialNumber: 18443010F1F1071300
              I can see that the OAK-D Lite recognized using the USB as USB2 not 3. However, I am using a blue USB3 cable.
              $$

              In my code, I use the OAK-D like to do a NN network, Depth Calculation(on camera).

              The code was working fine if I only connect the OAK-D Lite camera.
              Once I plugged in another device LinkTrack AOA, here is its Datasheet , then this error happen.

              So just wondering how to fix the issue?



              Update 1:

              I now switched to the Oak-D camera with both USB cable and power jack inserted, the code start to work.

              So I can confirm that this is power consumption issue.

              The question is with this workload of the pipeline, will I be able to run the same code with Oak-D Lite camera?

              • erik replied to this.
                • Best Answerset by erik

                franva initially, it's USB2 when device is waiting for a connection/pipeline. When you connect to the device, depthai uploads the depthai firmware to it, which will try to enable USB3 speeds.

                Thanks, Erik

              • erik

                Thanks Erik for your help.

                I also observed that the image seems left-right flipped. Am I right? How to fix this issue?

                • erik replied to this.
                • erik and @jakaskerl ,

                  Please see the disparity image:

                  I can see that there is a darker area at the bottom in the disparity img.

                  Also , what does the CCMs stand for? I googled it, but cannot find the explanation. Appreciate if you could share the document.

                  Back to the topic, so how can I get this issue fixed?

                  Many thanks,

                  Winston

                  I can see that the bottom area

                  • erik replied to this.
                  • jakaskerl hi could you please try it on OakD lite version?

                    How do you want to see the disparity from my camera? Just display it in picture or paste the data of the disparity here???

                    • erik replied to this.
                    • Hi there,

                      I notice that by using the SpatialLocationCalculator to calculate the depth on the camera(OAK-D Lite), most of time, it will return distance 0 for the last row on an image, please see the image below:

                      Is it something wrong in the API or my code?

                      Here is my code:

                      • jakaskerl replied to this.
                        • Best Answerset by erik

                        erik and @jakaskerl ,

                        Please see the disparity image:

                        I can see that there is a darker area at the bottom in the disparity img.

                        Also , what does the CCMs stand for? I googled it, but cannot find the explanation. Appreciate if you could share the document.

                        Back to the topic, so how can I get this issue fixed?

                        Many thanks,

                        Winston

                        I can see that the bottom area

                      • thanks erik for clarifying the installation. So I just need to install the depthai 2.9.0.0 and this lib will contain OCP and OP.

                        Okay, so after I installed it and a couple of other dependencies(including setup the USB rules) and I ran:

                        $ python3 depthai_demo.py -cnn deeplabv3p_person
                        
                        /usr/lib/python3/dist-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.26.6) or chardet (3.0.4) doesn't match a supported version!
                          RequestsDependencyWarning)
                        Using depthai module from:  /home/pi/.local/lib/python3.7/site-packages/depthai.cpython-37m-arm-linux-gnueabihf.so
                        Depthai version installed:  2.9.0.0
                        Available devices:
                        [0] 14442C10013762D700 [X_LINK_UNBOOTED]
                        Enabling low-bandwidth mode due to low USB speed... (speed: UsbSpeed.HIGH)
                        Creating MJPEG link for ColorCamera node and color xlink stream...
                        Traceback (most recent call last):
                          File "depthai_demo.py", line 148, in <module>
                            pm.create_color_cam(nn_manager.input_size if conf.useNN else conf.previewSize, rgb_res, conf.args.rgb_fps, conf.args.full_fov_nn, xout=Previews.color.name in conf.args.show)
                          File "/home/pi/Work/MyBuddy/depthai/depthai_helpers/managers.py", line 662, in create_color_cam
                            self.mjpeg_link(self.nodes.cam_rgb, self.nodes.xout_rgb, self.nodes.cam_rgb.video)
                          File "/home/pi/Work/MyBuddy/depthai/depthai_helpers/managers.py", line 623, in mjpeg_link
                            if isinstance(node, dai.ColorCamera) or isinstance(node, dai.MonoCamera):
                        AttributeError: module 'depthai' has no attribute 'ColorCamera' 

                        So this is the error I got. Could you please help?
                        Btw, my python3 is 3.7.3

                        Many thanks,

                        Winston

                        • erik replied to this.
                        • Morning erik Now I understood, I can install

                          1. Depthai 2.9.0.0
                          2. opencv-python 4.4.0.46
                          3. opencv-conrib-python 4.4.0.46

                          I have checked the Github code for DepthAI and still cannot find the version 2.9.0.0. So I hope the version 2.9.0.0 of DepthAI(DAI) will be compatible with the 4.4.0.46 of both opencv-conrib-python(OCP) and opencv-python(OP).

                          • erik replied to this.
                          • thanks erik so "that version" means the version for opencv-python, right?

                            And if I understood you correctly, I won't need the opencv-contrib-python right?
                            It would be a great relief if I didn't need to install one more hard-to-install package haha.

                            Thanks
                            Winston

                            • erik replied to this.