• DepthAI-v2
  • Multiple POE Devices: Can't use different IPs

Hello,

I presume this is a silly question, but anyway...

I have multiple POE OAK-Ds connected to a D-Link 1005P POE switch. I can connect to individual POE devices (which have fallen back to 169.254.1.222), but when I connect a second OAK-D-POE then main.py at gen2-multiple... is stuck endlessly.

I guess the switch does not have a DHCP server to assign different IPs the devices.
Is there anyway to configure a differnt IP for the camera? (other than ´169.254.1.222´)

I tried the code here. But this is just getting the image from the set IP device.

Any help would be useful. Thanks.

  • Mojo replied to this.

    Hi tarocal,
    so DHCP is not available on the switch itself (at least not on layer 2 switch) and runs on the router, however switches are able to forward that request. It is strange that the PoE devices have fallen back to IP 169.254.1.222, since that means the DHCP request failed. I would suggest plugging in your computer instead of the PoE swtich and see if it gets assigned the IP through DHCP. If doesn't, try setting the IP manually and pinging the router, that way you can see where the communication fails. If your computer gets assigned the IP through DHCP, it means the switch is somehow "blocking" the packets (at least the DHCP requests since you mentioned you can run examples on your devices). You might have a layer 3 switch which has some sort of VLAN enabled. In that case you need to configure the swtich to relay DHCP requests. I would suggest solving this through DHCP, because it is the best long term solution, and I am also not aware of any way to change IP on the device manually.

    What i did for this instance where i didnt have a router connected to my POE switchis to have a DHCP server running on my laptop/PC which then mimikts the router and gave them all different IPs. Im using Ubuntu 20.04LTS which made it easy to use