Hi, I am using an Oak-D S2 POE camera and have programmed a script node to function as a TCP client connecting to an external server. When run on a Python host, it operates and connects normally.
However, I am encountering difficulties in attempting to flash the Pipeline into the camera to enable it to work in Standalone mode. I have used the Python code command bootloader.flash()
, both with and without compression, but I keep getting an error saying 'not enough memory'.
I've tried creating a dap file, both compressed and uncompressed, and then uploading it via the device manager, but that hasn't worked either.
I also tested other examples, such as an HTTP server, and faced the same issue. Even creating a basic pipeline for flashing into the camera was unsuccessful.
The dap file I created is 24.4MB in size, which reduces to 9.7MB after compression.
I would like to know why I'm unable to flash the pipeline into the camera. Even a small pipeline cannot be flashed for standalone mode. How can this issue be resolved?
**Below are the debug messages from running the command:
DEPTHAI_DEBUG=1 python3 tcp_streaming.py
**
[2024-01-05 12:45:46.263] [info] DEPTHAI_DEBUG enabled, lowered DEPTHAI_LEVEL to 'debug'
[2024-01-05 12:45:46.264] [debug] Python bindings - version: 2.21.2.0 from 2023-04-05 21:25:19 +0300 build: 2023-04-05 19:06:23 +0000
[2024-01-05 12:45:46.264] [debug] Library information - version: 2.21.2, commit: 125feb8c2e16ee4bf71b7873a7b990f1c5f17b18 from 2023-04-05 21:24:25 +0300, build: 2023-04-05 19:06:22 +0000
[2024-01-05 12:45:46.264] [debug] Initialize - finished
[2024-01-05 12:45:46.271] [debug] Found an actual device by given DeviceInfo: DeviceInfo(name=192.168.0.103, mxid=184430109132C41200, X_LINK_BOOTLOADER, X_LINK_TCP_IP, X_LINK_MYRIAD_X, X_LINK_SUCCESS)
[2024-01-05 12:45:46.271] [debug] Searching for booted device: DeviceInfo(name=192.168.0.103, mxid=184430109132C41200, X_LINK_BOOTLOADER, X_LINK_TCP_IP, X_LINK_MYRIAD_X, X_LINK_SUCCESS), name used as hint only
[2024-01-05 12:45:46.319] [debug] Connected bootloader version 0.0.24
[2024-01-05 12:45:46.327] [debug] Resources - Archive 'depthai-bootloader-fwp-0.0.24.tar.xz' open: 2ms, archive read: 60ms
[2024-01-05 12:45:46.580] [debug] Resources - Archive 'depthai-device-fwp-3575b77f20e796b4e79953bf3d2ba22f0416ee8b.tar.xz' open: 1ms, archive read: 314ms
[2024-01-05 12:45:48.602] [debug] Compressed firmware for Dephai Application Package. Took 2016ms, size reduced from 22.62MiB to 8.32MiB
[2024-01-05 12:45:48.611] [debug] DepthAI Application Package
[2024-01-05 12:45:48.611] [debug] __firmware, 8728930B, 512, 3958776356, 0, 7
[2024-01-05 12:45:48.611] [debug] pipeline, 84B, 9437184, 689428995, 0, 0
[2024-01-05 12:45:48.611] [debug] assets, 28B, 9502720, 1988477771, 0, 0
[2024-01-05 12:45:48.611] [debug] asset_storage, 209B, 9568256, 1930671112, 0, 0
[2024-01-05 12:45:48.611] [debug] __fw_version, 40B, 9633792, 1101065813, 0, 0
[2024-01-05 12:45:48.611] [debug] app_name, 0B, 9699328, 5381, 0, 0
Flashing progress: 0.0%
[2024-01-05 12:45:50.167] [debug] Success flashing the appMem configuration to '0'
Not enough space: 8388608->18087936B
[2024-01-05 12:45:50.170] [debug] DeviceBootloader about to be closed...
[2024-01-05 12:45:50.173] [debug] XLinkResetRemote of linkId: (0)
[2024-01-05 12:45:51.378] [debug] DeviceBootloader closed, 1207
Below is the code I use to run Flash Pipeline: