Is it possible to select a network interface when running functions like getAllAvailableDevices()
?
I'm having trouble with the host finding devices on lan and wifi and I only want lan.
Is it possible to select a network interface when running functions like getAllAvailableDevices()
?
I'm having trouble with the host finding devices on lan and wifi and I only want lan.
Hi bherbruck
We have seen that in some rare circumstances when your host computer is connected to the same LAN, it can happen that device discovery finds the same PoE device twice, so it will print the IP address of that device two times. In some rare occasions this can lead to an error (we have seen this when using multiple devices) on initialization; RuntimeError: Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND. We will try to fix this bug as soon as possible. Workaround solution: disconnect from one of the interfaces; so disconnecting (from the) WiFi should resolve this issue. source
Thanks,
Jaka
My issue isn't so much finding the same devices, but finding other devices elsewhere on the network
Could you elaborate on this a bit more? Depthai devices that don't work as host don't feature wireless connection.
Those that do (eg. rpi on CM4) don't use the API (getAllAvailableDevices()
) for connection.
Thanks,
Jaka
Hi bherbruck
You could specify the devices it is able to connect to.
Find the MXIDs of the devices connected to the offline switch, then you can connect to them with:
device_info = depthai.DeviceInfo("14442C108144F1D000") # MXID
with depthai.Device(pipeline, device_info) as device:
.
.
Hope this helps,
Jaka
(I also asked about this internally the FW team, but I don't think it's possible as of now)
Currently, that's the case; depthai scans all interfaces by default unless the user specifies the IP.