Hi, I have problems with uploading snapshots. I use an AI Tinker clone board with integrated serial to USB adapter. (I just do hope pins are identical to AI Tinker board, I have no docs. Link: Esp32-cam-mb Micro Usb Esp32 Serial To Wifi Esp32 Cam Board Ch340 Ch340g 5v Bluetooth+ov2640 Camera+2.4g Antenna For Smart Home - Integrated Circuits - AliExpress).
I modified ei_camera.h in firmware to use CAMERA_MODEL_AI_THINKER instead of CAMERA_MODEL_ESP_EYE. Successfully rebuilt the firmware on a Mac Mini M1, using ESP-IDF. Uploaded the firmware successfully. I can connect to the board either via webUSB or edge-impulse-daemon.
The problem:
Regardless what I want to capture, I always bump into a time-out.
Examples:
- Microphone:
Edge Impulse serial daemon v1.14.13
Endpoints:
Websocket: wss://remote-mgmt.edgeimpulse.com
API: https://studio.edgeimpulse.com/v1
Ingestion: https://ingestion.edgeimpulse.com
[SER] Connecting to /dev/tty.usbserial-21350
[SER] Serial is connected, trying to read config…
[SER] Retrieved configuration
[SER] Device is running AT command version 1.7.0
? To which project do you want to connect this device? Zoltán / Gatekeeper
[SER] Device is not connected to remote management API, will use daemon
[WS ] Connecting to wss://remote-mgmt.edgeimpulse.com
[WS ] Connected to wss://remote-mgmt.edgeimpulse.com
[SER] Entering snapshot stream mode…
[WS ] Device “ESP32-CAM” is now connected to project “Gatekeeper”
[WS ] Go to Login - Edge Impulse to build your machine learning model!
[WS ] Incoming sampling request {
path: ‘/api/training/data’,
label: ‘face’,
length: 60000,
interval: 0.0625,
hmacKey: ‘c128732c15b2d3aa85788d9d8d9252ac’,
sensor: ‘Built-in microphone’
}
/Users/zoltansz/.npm-global/lib/node_modules/edge-impulse-cli/build/shared/daemon/remote-mgmt-service.js:443
throw new Error(‘Timeout when waiting for snapshot to be started or idle’);
^
Error: Timeout when waiting for snapshot to be started or idle
at RemoteMgmt.waitForSnapshotStartedOrIdle (/Users/zoltansz/.npm-global/lib/node_modules/edge-impulse-cli/build/shared/daemon/remote-mgmt-service.js:443:23)
at async WebSocket. (/Users/zoltansz/.npm-global/lib/node_modules/edge-impulse-cli/build/shared/daemon/remote-mgmt-service.js:296:21)
Node.js v18.0.0
- Camera (64x64):
Edge Impulse serial daemon v1.14.13
Endpoints:
Websocket: wss://remote-mgmt.edgeimpulse.com
API: https://studio.edgeimpulse.com/v1
Ingestion: https://ingestion.edgeimpulse.com
[SER] Connecting to /dev/tty.usbserial-21350
[SER] Serial is connected, trying to read config…
[SER] Retrieved configuration
[SER] Device is running AT command version 1.7.0
? To which project do you want to connect this device? Zoltán / Gatekeeper
[SER] Device is not connected to remote management API, will use daemon
[WS ] Connecting to wss://remote-mgmt.edgeimpulse.com
[WS ] Connected to wss://remote-mgmt.edgeimpulse.com
[WS ] Device “ESP32-CAM” is now connected to project “Gatekeeper”
[WS ] Go to Login - Edge Impulse to build your machine learning model!
[SER] Entering snapshot stream mode…
[WS ] Incoming sampling request {
path: ‘/api/training/data’,
label: ‘face’,
length: 60000,
interval: 0,
hmacKey: ‘c128732c15b2d3aa85788d9d8d9252ac’,
sensor: ‘Camera (64x64)’
}
[WS ] Failed to sample data Error: Timeout when waiting for snapshot to be started or idle
at RemoteMgmt.waitForSnapshotStartedOrIdle (/Users/zoltansz/.npm-global/lib/node_modules/edge-impulse-cli/build/shared/daemon/remote-mgmt-service.js:443:23)
at async WebSocket. (/Users/zoltansz/.npm-global/lib/node_modules/edge-impulse-cli/build/shared/daemon/remote-mgmt-service.js:161:29)
It is not clear to me, but I suspect that capturing snapshots did not even start so this may be related to pin config. Am I right?
Could you pls point me to the direction I should go forward to fix this?
Thanks,
Zoltán