• RuntimeError: No PROTECTED permissions to override protected EEPROM fields

Nearpoint erik

Using latest develop branch

(DepthAIEnv39) feroze@Ferozes-MacBook-Pro utilities % python3 cam_test.py -rs

Enabled cameras:

rgb : color

left : mono

right : mono

camd : color

DepthAI version: 2.22.0.0

DepthAI path: /Users/feroze/.local/lib/python3.9/site-packages/depthai.cpython-39-darwin.so

Traceback (most recent call last):

File "/Users/feroze/DepthAI/depthai-python/utilities/cam_test.py", line 162, in <module>

'1012': dai.ColorCameraProperties.SensorResolution.THE_1352X1012,

AttributeError: type object 'depthai.SensorResolution' has no attribute 'THE_1352X1012'

  • erik replied to this.

    Hi Nearpoint ,
    Besides checking out to develop version, you'd also want to update depthai library; after checking out to develop, run examples/install_requirements.py, which will update the library to develop version.

      erik

      Updated the DepthAI dependency as mentioned and it is using it for cam_test although it is still not detected a known working camera and cable. I just tested it on the center socket and it works but when I connect it to the cam left socket it does not detect the camera at all

      (DepthAIEnv39) feroze@Ferozes-MacBook-Pro utilities % python3 cam_test.py -rs

      Enabled cameras:

          rgb : color

         left : mono

        right : mono

         camd : color

      DepthAI version: 2.22.0.0.dev0+937a88aabbd85c9335ff22fd430b0c7773b67538

      DepthAI path: /Users/feroze/.local/lib/python3.9/site-packages/depthai.cpython-39-darwin.so

      /Users/feroze/DepthAI/depthai-python/utilities/cam_test.py:296: DeprecationWarning: Use constructor taking 'UsbSpeed' instead

        with dai.Device(*dai_device_args) as device:

      [18443010F1FEF30800] [2.1] [1.156] [ColorCamera(3)] [error] Camera not detected on socket: 0

      [18443010F1FEF30800] [2.1] [1.156] [ColorCamera(9)] [error] Camera not detected on socket: 3

      [18443010F1FEF30800] [2.1] [1.157] [MonoCamera(7)] [error] Camera not detected on socket: 2

      [18443010F1FEF30800] [2.1] [1.157] [MonoCamera(5)] [error] Camera not detected on socket: 1

      Connected cameras:

      Cam:      rgb           left          right         camd     [host | capture timestamp]

      FPS:   0.00|  0.00   0.00|  0.00   0.00|  0.00   0.00|  0.00 

      • erik replied to this.

        erik

        Here is the output using debug mode

        (DepthAIEnv39) feroze@Ferozes-MacBook-Pro utilities % python3 cam_test.py -rs   

        [2023-09-18 11:27:11.595] [depthai] [debug] Python bindings - version: 2.22.0.0.dev0+937a88aabbd85c9335ff22fd430b0c7773b67538 from 2023-09-15 15:07:12 +0300 build: 2023-09-18 13:48:48 +0000

        [2023-09-18 11:27:11.595] [depthai] [debug] Library information - version: 2.22.0, commit: 57de7c0cafd5724e10adce3ca8f69c8230ac6e9c from 2023-09-15 14:57:05 +0300, build: 2023-09-18 13:48:47 +0000, libusb enabled: true

        [2023-09-18 11:27:11.600] [depthai] [debug] Initialize - finished

        Enabled cameras:

            rgb : color

           left : mono

          right : mono

           camd : color

        DepthAI version: 2.22.0.0.dev0+937a88aabbd85c9335ff22fd430b0c7773b67538

        DepthAI path: /Users/feroze/.local/lib/python3.9/site-packages/depthai.cpython-39-darwin.so

        /Users/feroze/DepthAI/depthai-python/utilities/cam_test.py:296: DeprecationWarning: Use constructor taking 'UsbSpeed' instead

          with dai.Device(*dai_device_args) as device:

        [2023-09-18 11:27:11.602] [host] [debug] Device - OpenVINO version: universal

        [18443010F1FEF30800] [2.1] [1695050831.603] [host] [debug] Device - BoardConfig: {"camera":[],"emmc":null,"gpio":[],"imu":null,"logDevicePrints":null,"logPath":null,"logSizeMax":null,"logVerbosity":null,"network":{"mtu":0,"xlinkTcpNoDelay":true},"nonExclusiveMode":false,"pcieInternalClock":null,"sysctl":[],"uart":[],"usb":{"flashBootedPid":63037,"flashBootedVid":999,"manufacturer":"","maxSpeed":4,"pid":63035,"productName":"","vid":999},"usb3PhyInternalClock":null,"uvc":null,"watchdogInitialDelayMs":null,"watchdogTimeoutMs":null} 

        libnop:

        0000: b9 12 b9 07 81 e7 03 81 3b f6 81 e7 03 81 3d f6 04 bd 00 bd 00 b9 02 00 01 ba 00 be be bb 00 bb

        0020: 00 be be be be be be be 00 bb 00 be be

        [2023-09-18 11:27:11.658] [depthai] [debug] Resources - Archive 'depthai-bootloader-fwp-0.0.26.tar.xz' open: 1ms, archive read: 60ms

        [2023-09-18 11:27:11.925] [depthai] [debug] Resources - Archive 'depthai-device-fwp-dc4563dc83f22b31325b5cb06b20188eb10601b0.tar.xz' open: 1ms, archive read: 327ms

        [2023-09-18 11:27:12.858] [depthai] [debug] Searching for booted device: DeviceInfo(name=2.1, mxid=18443010F1FEF30800, X_LINK_BOOTED, X_LINK_USB_VSC, X_LINK_MYRIAD_X, X_LINK_SUCCESS), name used as hint only

        [18443010F1FEF30800] [2.1] [1.105] [system] [info] Memory Usage - DDR: 0.12 / 334.18 MiB, CMX: 2.04 / 2.50 MiB, LeonOS Heap: 7.49 / 82.86 MiB, LeonRT Heap: 2.89 / 40.93 MiB

        [18443010F1FEF30800] [2.1] [1.105] [system] [info] Temperatures - Average: 46.39C, CSS: 47.80C, MSS 45.32C, UPA: 46.00C, DSS: 46.45C

        [18443010F1FEF30800] [2.1] [1.105] [system] [info] Cpu Usage - LeonOS 47.54%, LeonRT: 1.55%

        [18443010F1FEF30800] [2.1] [1695050833.881] [host] [debug] Schema dump: {"connections":[{"node1Id":0,"node1Output":"out","node1OutputGroup":"","node2Id":9,"node2Input":"inputControl","node2InputGroup":""},{"node1Id":9,"node1Output":"isp","node1OutputGroup":"","node2Id":8,"node2Input":"in","node2InputGroup":""},{"node1Id":0,"node1Output":"out","node1OutputGroup":"","node2Id":7,"node2Input":"inputControl","node2InputGroup":""},{"node1Id":7,"node1Output":"out","node1OutputGroup":"","node2Id":6,"node2Input":"in","node2InputGroup":""},{"node1Id":0,"node1Output":"out","node1OutputGroup":"","node2Id":5,"node2Input":"inputControl","node2InputGroup":""},{"node1Id":5,"node1Output":"out","node1OutputGroup":"","node2Id":4,"node2Input":"in","node2InputGroup":""},{"node1Id":0,"node1Output":"out","node1OutputGroup":"","node2Id":3,"node2Input":"inputControl","node2InputGroup":""},{"node1Id":3,"node1Output":"isp","node1OutputGroup":"","node2Id":2,"node2Input":"in","node2InputGroup":""}],"globalProperties":{"calibData":null,"cameraTuningBlobSize":null,"cameraTuningBlobUri":"","leonCssFrequencyHz":700000000.0,"leonMssFrequencyHz":700000000.0,"pipelineName":null,"pipelineVersion":null,"sippBufferSize":18432,"sippDmaBufferSize":16384,"xlinkChunkSize":-1},"nodes":[[0,{"id":0,"ioInfo":[[["","out"],{"blocking":false,"group":"","id":30,"name":"out","queueSize":8,"type":0,"waitForMessage":false}]],"name":"XLinkIn","properties":[185,3,189,7,99,111,110,116,114,111,108,130,0,0,80,0,8]}],[1,{"id":1,"ioInfo":[[["","out"],{"blocking":false,"group":"","id":29,"name":"out","queueSize":8,"type":0,"waitForMessage":false}]],"name":"XLinkIn","properties":[185,3,189,9,116,111,102,67,111,110,102,105,103,130,0,0,80,0,8]}],[2,{"id":2,"ioInfo":[[["","in"],{"blocking":true,"group":"","id":28,"name":"in","queueSize":8,"type":3,"waitForMessage":true}]],"name":"XLinkOut","properties":[185,3,136,0,0,128,191,189,3,114,103,98,0]}],[3,{"id":3,"ioInfo":[[["","inputConfig"],{"blocking":false,"group":"","id":21,"name":"inputConfig","queueSize":8,"type":3,"waitForMessage":false}],[["","frameEvent"],{"blocking":false,"group":"","id":22,"name":"frameEvent","queueSize":8,"type":0,"waitForMessage":false}],[["","video"],{"blocking":false,"group":"","id":27,"name":"video","queueSize":8,"type":0,"waitForMessage":false}],[["","raw"],{"blocking":false,"group":"","id":23,"name":"raw","queueSize":8,"type":0,"waitForMessage":false}],[["","inputControl"],{"blocking":true,"group":"","id":20,"name":"inputControl","queueSize":8,"type":3,"waitForMessage":false}],[["","isp"],{"blocking":false,"group":"","id":24,"name":"isp","queueSize":8,"type":0,"waitForMessage":false}],[["","still"],{"blocking":false,"group":"","id":25,"name":"still","queueSize":8,"type":0,"waitForMessage":false}],[["","preview"],{"blocking":false,"group":"","id":26,"name":"preview","queueSize":8,"type":0,"waitForMessage":false}]],"name":"ColorCamera","properties":[185,26,185,27,0,3,0,0,0,185,3,0,0,0,185,5,0,0,0,0,0,185,5,0,0,0,0,0,0,0,0,0,0,0,0,185,3,0,0,0,185,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,189,0,255,0,1,0,129,44,1,129,44,1,255,255,255,255,0,136,0,0,240,65,0,136,0,0,128,191,136,0,0,128,191,1,185,4,1,1,1,1,3,3,4,4,4,190]}],[4,{"id":4,"ioInfo":[[["","in"],{"blocking":true,"group":"","id":19,"name":"in","queueSize":8,"type":3,"waitForMessage":true}]],"name":"XLinkOut","properties":[185,3,136,0,0,128,191,189,4,108,101,102,116,0]}],[5,{"id":5,"ioInfo":[[["","inputControl"],{"blocking":true,"group":"","id":15,"name":"inputControl","queueSize":8,"type":3,"waitForMessage":false}],[["","frameEvent"],{"blocking":false,"group":"","id":16,"name":"frameEvent","queueSize":8,"type":0,"waitForMessage":false}],[["","out"],{"blocking":false,"group":"","id":18,"name":"out","queueSize":8,"type":0,"waitForMessage":false}],[["","raw"],{"blocking":false,"group":"","id":17,"name":"raw","queueSize":8,"type":0,"waitForMessage":false}]],"name":"MonoCamera","properties":[185,10,185,27,0,3,0,0,0,185,3,0,0,0,185,5,0,0,0,0,0,185,5,0,0,0,0,0,0,0,0,0,0,0,0,185,3,0,0,0,185,3,0,0,0,0,0,0,0,0,0,0,0,0,0,1,189,0,255,1,136,0,0,240,65,0,3,3,190]}],[6,{"id":6,"ioInfo":[[["","in"],{"blocking":true,"group":"","id":14,"name":"in","queueSize":8,"type":3,"waitForMessage":true}]],"name":"XLinkOut","properties":[185,3,136,0,0,128,191,189,5,114,105,103,104,116,0]}],[7,{"id":7,"ioInfo":[[["","inputControl"],{"blocking":true,"group":"","id":10,"name":"inputControl","queueSize":8,"type":3,"waitForMessage":false}],[["","frameEvent"],{"blocking":false,"group":"","id":11,"name":"frameEvent","queueSize":8,"type":0,"waitForMessage":false}],[["","out"],{"blocking":false,"group":"","id":13,"name":"out","queueSize":8,"type":0,"waitForMessage":false}],[["","raw"],{"blocking":false,"group":"","id":12,"name":"raw","queueSize":8,"type":0,"waitForMessage":false}]],"name":"MonoCamera","properties":[185,10,185,27,0,3,0,0,0,185,3,0,0,0,185,5,0,0,0,0,0,185,5,0,0,0,0,0,0,0,0,0,0,0,0,185,3,0,0,0,185,3,0,0,0,0,0,0,0,0,0,0,0,0,0,2,189,0,255,1,136,0,0,240,65,0,3,3,190]}],[8,{"id":8,"ioInfo":[[["","in"],{"blocking":true,"group":"","id":9,"name":"in","queueSize":8,"type":3,"waitForMessage":true}]],"name":"XLinkOut","properties":[185,3,136,0,0,128,191,189,4,99,97,109,100,0]}],[9,{"id":9,"ioInfo":[[["","inputConfig"],{"blocking":false,"group":"","id":2,"name":"inputConfig","queueSize":8,"type":3,"waitForMessage":false}],[["","frameEvent"],{"blocking":false,"group":"","id":3,"name":"frameEvent","queueSize":8,"type":0,"waitForMessage":false}],[["","video"],{"blocking":false,"group":"","id":8,"name":"video","queueSize":8,"type":0,"waitForMessage":false}],[["","raw"],{"blocking":false,"group":"","id":4,"name":"raw","queueSize":8,"type":0,"waitForMessage":false}],[["","inputControl"],{"blocking":true,"group":"","id":1,"name":"inputControl","queueSize":8,"type":3,"waitForMessage":false}],[["","isp"],{"blocking":false,"group":"","id":5,"name":"isp","queueSize":8,"type":0,"waitForMessage":false}],[["","still"],{"blocking":false,"group":"","id":6,"name":"still","queueSize":8,"type":0,"waitForMessage":false}],[["","preview"],{"blocking":false,"group":"","id":7,"name":"preview","queueSize":8,"type":0,"waitForMessage":false}]],"name":"ColorCamera","properties":[185,26,185,27,0,3,0,0,0,185,3,0,0,0,185,5,0,0,0,0,0,185,5,0,0,0,0,0,0,0,0,0,0,0,0,185,3,0,0,0,185,3,0,0,0,0,0,0,0,0,0,0,0,0,0,3,189,0,255,0,1,0,129,44,1,129,44,1,255,255,255,255,0,136,0,0,240,65,0,136,0,0,128,191,136,0,0,128,191,1,185,4,1,1,1,1,3,3,4,4,4,190]}]]}

        [18443010F1FEF30800] [2.1] [1695050833.881] [host] [debug] Asset map dump: {"map":{}}

        [18443010F1FEF30800] [2.1] [1.155] [ColorCamera(3)] [error] Camera not detected on socket: 0

        [18443010F1FEF30800] [2.1] [1.155] [ColorCamera(9)] [error] Camera not detected on socket: 3

        [18443010F1FEF30800] [2.1] [1.155] [MonoCamera(7)] [error] Camera not detected on socket: 2

        [18443010F1FEF30800] [2.1] [1.156] [MonoCamera(7)] [info] Using board socket: 2, id: 2

        [18443010F1FEF30800] [2.1] [1.156] [MonoCamera(5)] [error] Camera not detected on socket: 1

        [18443010F1FEF30800] [2.1] [1.156] [MonoCamera(5)] [info] Using board socket: 1, id: 1

        [18443010F1FEF30800] [2.1] [1.158] [system] [info] SIPP (Signal Image Processing Pipeline) internal buffer size '18432'B, DMA buffer size: '16384'B

        Connected cameras:

        [18443010F1FEF30800] [2.1] [1.193] [system] [info] ColorCamera allocated resources: no shaves; cmx slices: [13-15] 

        MonoCamera allocated resources: no shaves; cmx slices: [13-15] 

        Cam:      rgb           left          right         camd     [host | capture timestamp]

        FPS:   0.00|  0.00   0.00|  0.00   0.00|  0.00   0.00|  0.00 [18443010F1FEF30800] [2.1] [2.106] [system] [info] Memory Usage - DDR: 126.03 / 334.18 MiB, CMX: 2.11 / 2.50 MiB, LeonOS Heap: 16.04 / 82.86 MiB, LeonRT Heap: 4.18 / 40.93 MiB

        [18443010F1FEF30800] [2.1] [2.106] [system] [info] Temperatures - Average: 46.73C, CSS: 47.58C, MSS 45.77C, UPA: 46.68C, DSS: 46.90C

        [18443010F1FEF30800] [2.1] [2.106] [system] [info] Cpu Usage - LeonOS 4.52%, LeonRT: 5.87%

        FPS:   0.00|  0.00   0.00|  0.00   0.00|  0.00   0.00|  0.00 [18443010F1FEF30800] [2.1] [3.107] [system] [info] Memory Usage - DDR: 126.03 / 334.18 MiB, CMX: 2.11 / 2.50 MiB, LeonOS Heap: 16.04 / 82.86 MiB, LeonRT Heap: 4.18 / 40.93 MiB

        [18443010F1FEF30800] [2.1] [3.107] [system] [info] Temperatures - Average: 47.07C, CSS: 48.25C, MSS 46.90C, UPA: 46.68C, DSS: 46.45C

        [18443010F1FEF30800] [2.1] [3.107] [system] [info] Cpu Usage - LeonOS 0.28%, LeonRT: 0.06%

        FPS:   0.00|  0.00   0.00|  0.00   0.00|  0.00   0.00|  0.00 [18443010F1FEF30800] [2.1] [4.108] [system] [info] Memory Usage - DDR: 126.03 / 334.18 MiB, CMX: 2.11 / 2.50 MiB, LeonOS Heap: 16.04 / 82.86 MiB, LeonRT Heap: 4.18 / 40.93 MiB

        [18443010F1FEF30800] [2.1] [4.108] [system] [info] Temperatures - Average: 47.13C, CSS: 48.70C, MSS 46.68C, UPA: 46.45C, DSS: 46.68C

        [18443010F1FEF30800] [2.1] [4.108] [system] [info] Cpu Usage - LeonOS 0.33%, LeonRT: 0.06%

        FPS:   0.00|  0.00   0.00|  0.00   0.00|  0.00   0.00|  0.00 [18443010F1FEF30800] [2.1] [5.109] [system] [info] Memory Usage - DDR: 126.03 / 334.18 MiB, CMX: 2.11 / 2.50 MiB, LeonOS Heap: 16.04 / 82.86 MiB, LeonRT Heap: 4.18 / 40.93 MiB

        [18443010F1FEF30800] [2.1] [5.109] [system] [info] Temperatures - Average: 47.46C, CSS: 48.70C, MSS 47.13C, UPA: 47.35C, DSS: 46.68C

        [18443010F1FEF30800] [2.1] [5.109] [system] [info] Cpu Usage - LeonOS 0.22%, LeonRT: 0.08%

        FPS:   0.00|  0.00   0.00|  0.00   0.00|  0.00   0.00|  0.00 [18443010F1FEF30800] [2.1] [6.110] [system] [info] Memory Usage - DDR: 126.03 / 334.18 MiB, CMX: 2.11 / 2.50 MiB, LeonOS Heap: 16.04 / 82.86 MiB, LeonRT Heap: 4.18 / 40.93 MiB

        [18443010F1FEF30800] [2.1] [6.110] [system] [info] Temperatures - Average: 47.35C, CSS: 48.47C, MSS 46.90C, UPA: 47.13C, DSS: 46.90C

        [18443010F1FEF30800] [2.1] [6.110] [system] [info] Cpu Usage - LeonOS 0.17%, LeonRT: 0.06%

        FPS:   0.00|  0.00   0.00|  0.00   0.00|  0.00   0.00|  0.00 [18443010F1FEF30800] [2.1] [7.111] [system] [info] Memory Usage - DDR: 126.03 / 334.18 MiB, CMX: 2.11 / 2.50 MiB, LeonOS Heap: 16.04 / 82.86 MiB, LeonRT Heap: 4.18 / 40.93 MiB

        [18443010F1FEF30800] [2.1] [7.111] [system] [info] Temperatures - Average: 47.63C, CSS: 48.92C, MSS 46.68C, UPA: 47.35C, DSS: 47.58C

        [18443010F1FEF30800] [2.1] [7.111] [system] [info] Cpu Usage - LeonOS 0.17%, LeonRT: 0.06%

        FPS:   0.00|  0.00   0.00|  0.00   0.00|  0.00   0.00|  0.00 [18443010F1FEF30800] [2.1] [8.112] [system] [info] Memory Usage - DDR: 126.03 / 334.18 MiB, CMX: 2.11 / 2.50 MiB, LeonOS Heap: 16.04 / 82.86 MiB, LeonRT Heap: 4.18 / 40.93 MiB

        @erik I ordered a second ffc-3p, just received it and tested it out and the new ffc-3p brings up the colors cameras connected to left and right sockets just fine. It detects it like normal.

        but the first ffc-3p still does not. do you think it is a hardware issue?

        For cam_test.py, try adding "-cams rgb,c left,c right,c" to your options. This sets the script to enable the left and right with color, I'm not sure if it does it by default but that's what I run with triple colour cameras on my 3P.

        Also, have you run the full calibration or are you just uploading the calibration from the OAK-D? As Erik says, it shouldn't effect the video streams just running but may not be ideal if you're running a config for a different camera.

        Here's the config file for my 3P, note that you'll want to change the fov value to match your cameras and adjust the translation values too.

        {
            "board_config": {
                "name": "FFC-3P",
                "revision": "R1M0E1",
                "cameras": {
                    "CAM_A": {
                        "name": "rgb",
                        "hfov": 69,
                        "type": "color",
                        "extrinsics": {
                            "to_cam": "CAM_C",
                            "specTranslation": {
                                "x": -2.85,
                                "y": 0,
                                "z": 0
                            },
                            "rotation": {
                                "r": 0,
                                "p": 0,
                                "y": 0
                            }
                        }
                    },
                    "CAM_B": {
                        "name": "left",
                        "hfov": 180,
                        "type": "color",
                        "extrinsics": {
                            "to_cam": "CAM_C",
                            "specTranslation": {
                                "x": -5.7,
                                "y": 0,
                                "z": 0
                            },
                            "rotation": {
                                "r": 0,
                                "p": 0,
                                "y": 0
                            }
                        }
                    },
                    "CAM_C": {
                        "name": "right",
                        "hfov": 180,
                        "type": "color"
                    }
                },
                "stereo_config": {
                    "left_cam": "CAM_B",
                    "right_cam": "CAM_C"
                }
            }
        }

        Also, I've just remembered that I had this exact issue where I couldn't stream video from the 3P after I uploaded a configuration and it's because it had the wrong board name as I understand it. If you have a look at this issue there's a post with a script that helps update the name of the board to something that should work, also note the environmental variable that will give you permissions to update the EEPROM.

        luxonis/depthai-python788

          Nearpoint let's hope so! No idea of the cause but I suspect there's something hard coded in the firmware and if it sees the name of a camera it knows it does something to optimise under the hood. Just a guess on my part but seems to fit.

            kneave @erik

            It worked, I am able to view cameras from all sockets now! Thank you so much, this was a great help!

            Happy to help and glad to hear it 🙂