Skip to content

Commit ef31c11

Browse files
committed
Device - Added non exclusive boot option
1 parent 87ff67c commit ef31c11

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import depthai as dai
2+
3+
devices = dai.Device.getAllConnectedDevices()
4+
5+
for device in devices:
6+
dai.XLinkConnection.bootBootloader(device)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import depthai as dai
2+
import time
3+
4+
cfg = dai.Device.Config()
5+
cfg.nonExclusiveMode = True
6+
7+
with dai.Device(cfg) as device:
8+
while not device.isClosed():
9+
print('CPU usage:',device.getLeonCssCpuUsage().average)
10+
time.sleep(1)

src/DeviceBindings.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ void DeviceBindings::bind(pybind11::module& m, void* pCallstack){
459459
.def(py::init<>())
460460
.def_readwrite("version", &Device::Config::version)
461461
.def_readwrite("board", &Device::Config::board)
462+
.def_readwrite("nonExclusiveMode", &Device::Config::nonExclusiveMode)
462463
;
463464

464465
// Bind constructors

0 commit comments

Comments
 (0)