From 37eb64d053867ab0d595100eb3f7c8ebfdfb8fbd Mon Sep 17 00:00:00 2001 From: Matevz Morato Date: Tue, 5 Mar 2024 12:43:32 +0100 Subject: [PATCH] Default to larger timeouts --- include/depthai/device/DeviceBase.hpp | 2 +- include/depthai/xlink/XLinkConnection.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/depthai/device/DeviceBase.hpp b/include/depthai/device/DeviceBase.hpp index b30f1c0fe..c2621f390 100644 --- a/include/depthai/device/DeviceBase.hpp +++ b/include/depthai/device/DeviceBase.hpp @@ -51,7 +51,7 @@ class DeviceBase { // constants /// Default search time for constructors which discover devices - static constexpr std::chrono::seconds DEFAULT_SEARCH_TIME{3}; + static constexpr std::chrono::seconds DEFAULT_SEARCH_TIME{10}; /// Default rate at which system information is logged static constexpr float DEFAULT_SYSTEM_INFORMATION_LOGGING_RATE_HZ{1.0f}; /// Default UsbSpeed for device connection diff --git a/include/depthai/xlink/XLinkConnection.hpp b/include/depthai/xlink/XLinkConnection.hpp index 1696e164a..cea6d2e69 100644 --- a/include/depthai/xlink/XLinkConnection.hpp +++ b/include/depthai/xlink/XLinkConnection.hpp @@ -151,8 +151,8 @@ class XLinkConnection { mutable std::mutex closedMtx; bool closed{false}; - constexpr static std::chrono::milliseconds WAIT_FOR_BOOTUP_TIMEOUT{15000}; - constexpr static std::chrono::milliseconds WAIT_FOR_CONNECT_TIMEOUT{5000}; + constexpr static std::chrono::milliseconds WAIT_FOR_BOOTUP_TIMEOUT{30000}; + constexpr static std::chrono::milliseconds WAIT_FOR_CONNECT_TIMEOUT{30000}; constexpr static std::chrono::milliseconds POLLING_DELAY_TIME{10}; };