Hello!

I'm dealing with a slight problem that I'm not quite sure how to resolve. I have an OAK-D PRO POE FF camera, and an OAK-D POE S2 FF camera. When I stream video with the OAK-D PRO, the received video looks fine. However, when I start streaming with the OAK-D S2 FF camera using the same pipeline, I receive choppy video.

The result HERE, OAK-D PRO POE FF video on the LEFT and OAK-D POE S2 FF video on the RIGHT

I'm using the TCP Streaming example from Luxonis with just a couple of modifications, such as adding camRgb setters.

camRgb = pipeline.createColorCamera()
camRgb.setVideoSize(640,360)
camRgb.setResolution(dai.ColorCameraProperties.SensorResolution.THE_1080_P)
camRgb.setInterleaved(False)
camRgb.setBoardSocket(dai.CameraBoardSocket.RGB)
camRgb.setIspScale(2,3)

I've checked some OAK-D settings from both cameras, hope this help:

poe_test.py
OAK-D PRO POE FF
Connecting to 10.1.1.100 ...
mxid: 19443010C1C3741300 (OK)
speed: 100 (FAIL)
full duplex: 1 (OK)
boot mode: 3 (OK)
OAK-D S2 POE FF
Connecting to 10.1.1.101 ...
mxid: 1844301001A2970F00 (OK)
speed: 1000 (OK)
full duplex: 1 (OK)
boot mode: 3 (OK)

oak_latency_test.py
OAK-D PRO POE
Sending buffer 0
Sending buffer 1
Got 1. buffer, latency 7.20 ms
Sending buffer 2
Got 2. buffer, latency 7.04 ms
Sending buffer 3
Got 3. buffer, latency 5.15 ms
Sending buffer 4
Got 4. buffer, latency 6.45 ms
Sending buffer 5
Got 5. buffer, latency 6.51 ms
OAK-D S2 POE FF
Sending buffer 0
Sending buffer 1
Got 1. buffer, latency 7.02 ms
Sending buffer 2
Got 2. buffer, latency 5.81 ms
Sending buffer 3
Got 3. buffer, latency 4.41 ms
Sending buffer 4
Got 4. buffer, latency 6.87 ms
Sending buffer 5
Got 5. buffer, latency 6.78 ms

oak_bandwidth_test.py
OAK-D PRO POE
Downlink 90.9 mbps
Uplink 93.6 mbps
OAK-D S2 POE FF
RuntimeError: Communication exception - possible device error/misconfiguration. Original message 'Couldn't read data from stream: 'xout' (X_LINK_ERROR)'

I would greatly appreciate any assistance. Thank you in advance.

    Irena poe_test.py
    OAK-D PRO POE FF
    Connecting to 10.1.1.100 ...
    mxid: 19443010C1C3741300 (OK)
    speed: 100 (FAIL)
    full duplex: 1 (OK)
    boot mode: 3 (OK)
    OAK-D S2 POE FF
    Connecting to 10.1.1.101 ...
    mxid: 1844301001A2970F00 (OK)
    speed: 1000 (OK)
    full duplex: 1 (OK)
    boot mode: 3 (OK)

    I think you switched PRO with S2 by mistake here. Or it's the PRO that is choppy.
    There is a bottleneck somewhere in your network. Since you use both devices at the same time, I assume it's not the router, nor the eth adapter on your PC.
    Most likely the cable you are using with PRO POE is a cat5 (not cat 5E) which is limited to 100mbps bandwidth - evident on the poe_test.py and the bandwidth test.

    Could you check that please.

    Thanks,
    Jaka

      Hi jakaskerl !

      Yes, what I have sent you is correct.

      The issue of choppy video occurs with the OAK-D S2 camera. I find it strange because the poe_test.py indicates that my OAK-D S2 camera has a speed of 1000mbps, in contrast to the OAK-D PRO's 100mbps, which is indeed 100mbps. In my case, the OAK-D PRO successfully transmits the video, as demonstrated in the video.

      I don't believe the problem lies with the connection hardware. I am using a CAT 7 Ethernet cable with a capacity of up to 10 Gbit/s, and the switch is the TP-Link TL-SG108E 8-Port Gigabit Switch. The M12 to RJ45 cable is the one provided with the camera.

      After conducting some tests, I suspect that the problem may be related to Ethernet auto-negotiation between the devices (camera and switch). It seems that the OAK-D PRO handles the negotiation with the switch effectively and adapts to the lower condition of 100mbps, whereas the OAK-D S2 does not.

      note: When I use a switch configured at 1000mbps, the OAK-D S2 camera transmits the video correctly.

      My question is whether the OAK-D S2 supports Ethernet auto-negotiation and, if so, how it can be configured.

      Thank you very much in advance.

        Hi Irena
        On the OAKs with Ethernet we have only auto-negotiation now (i.e not possible to set the speed manually), and 1000 Mbps should be selected if supported.

        About 100Mbps, was it limited from the switch?

        Checking the switch; that's a standard (non POE) switch. What did you use for POE power delivery? Another switch or a PoE injector?

        Thanks,
        Jaka

        Hi Jaka!

        Oh, I apologize for sending you the wrong switch reference. Here's the correct one: TP-Link 8-Port Gigabit Easy POE + Switch. I'm using this one to connect my PC and the OAK-D POE.

        According to the TP-Link documentation, all ports support 10/100/1000 mbps.

        After receiving your response, I suspect that the problem might be related to my Ethernet configs, as I'm developing in an Ubuntu environment. I'll need to check and hopefully, I'll come back with some solutions.

        Thank you a lot!
        Irena