Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucasmediaflow/f8c8d1d55c969726a73675950ad23577 to your computer and use it in GitHub Desktop.
Save lucasmediaflow/f8c8d1d55c969726a73675950ad23577 to your computer and use it in GitHub Desktop.
can't find oak
Python 3.9.10 (main, Feb 8 2022, 06:35:48)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import depthai as dai
[2022-08-13 12:30:48.615] [debug] Python bindings - version: 2.17.3.0.dev+dev from build: 2022-08-07 12:42:18 +0000
[2022-08-13 12:30:48.615] [debug] Library information - version: 2.17.3, commit: from , build: 2022-08-07 12:42:08 +0000
[2022-08-13 12:30:48.621] [debug] Initialize - finished
>>> [2022-08-13 12:30:48.956] [debug] Resources - Archive 'depthai-bootloader-fwp-0.0.20.tar.xz' open: 8ms, archive read: 331ms
[2022-08-13 12:30:50.167] [debug] Resources - Archive 'depthai-device-fwp-602822fe9eaca68a72c666497dc4979b29291b3e.tar.xz' open: 6ms, archive read: 1544ms
>>>
>>> pipeline = dai.Pipeline()
>>> cam = pipeline.create(dai.node.ColorCamera)
>>>
>>>
>>> found, deviceInfo = dai.Device.getAnyAvailableDevice()
>>> found
True
>>> deviceInfo
DeviceInfo(name=192.168.81.99, mxid=14442C10514B41D700, X_LINK_BOOTLOADER, X_LINK_TCP_IP, X_LINK_MYRIAD_X, X_LINK_SUCCESS)
>>> with dai.Device(pipeline, deviceInfo) as device:
... print(device.closed)
...
[2022-08-13 12:34:50.033] [debug] Device - OpenVINO version: 2022.1
[2022-08-13 12:34:50.033] [debug] Device - BoardConfig: {"emmc":null,"gpio":[],"logPath":null,"logSizeMax":null,"logVerbosity":null,"network":{"mtu":0,"xlinkTcpNoDelay":true},"pcieInternalClock":null,"sysctl":[],"uart":[],"usb":{"flashBootedPid":63037,"flashBootedVid":999,"maxSpeed":4,"pid":63035,"vid":999},"usb3PhyInternalClock":null,"watchdogInitialDelayMs":null,"watchdogTimeoutMs":null}
libnop:
0000: b9 0d b9 05 81 e7 03 81 3b f6 81 e7 03 81 3d f6 04 b9 02 00 01 ba 00 be be bb 00 bb 00 be be be
0020: be be be
[2022-08-13 12:34:50.276] [debug] Searching for booted device: DeviceInfo(name=192.168.81.99, mxid=14442C10514B41D700, X_LINK_BOOTLOADER, X_LINK_TCP_IP, X_LINK_MYRIAD_X, X_LINK_SUCCESS), name used as hint only
[2022-08-13 12:34:50.292] [debug] Connected bootloader version 0.0.19
[2022-08-13 12:34:50.292] [info] New bootloader version available. Device has: 0.0.19, available: 0.0.20
[2022-08-13 12:34:52.398] [debug] Booting FW with Bootloader. Version 0.0.19, Time taken: 2105ms
[2022-08-13 12:34:52.398] [debug] DeviceBootloader about to be closed...
[2022-08-13 12:34:52.399] [debug] XLinkResetRemote of linkId: (0)
[2022-08-13 12:34:53.008] [debug] DeviceBootloader closed, 609
[2022-08-13 12:34:53.131] [debug] Searching for booted device: DeviceInfo(name=192.168.81.99, mxid=14442C10514B41D700, X_LINK_BOOTED, X_LINK_TCP_IP, X_LINK_MYRIAD_X, X_LINK_SUCCESS), name used as hint only
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
RuntimeError: Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment