I have an AI-Thinker esp32cam board and I modified the firmware as suggested and recompiled and flashed the firmware onto my AI-Thinker board.
It appears the firmware works fine on my board, as verified via idf.py -p /dev/ttyUSB0 monitor:
entry 0x40080694 I (28) boot: ESP-IDF v4.4.1-dirty 2nd stage bootloader I (28) boot: compile time 13:24:30 I (29) boot: chip revision: 1 I (32) boot_comm: chip revision: 1, min. bootloader chip revision: 0 I (39) boot.esp32: SPI Speed : 80MHz I (44) boot.esp32: SPI Mode : DIO I (48) boot.esp32: SPI Flash Size : 4MB I (53) boot: Enabling RNG early entropy source... I (58) boot: Partition Table: I (62) boot: ## Label Usage Type ST Offset Length I (69) boot: 0 nvs WiFi data 01 02 00009000 00006000 I (76) boot: 1 phy_init RF data 01 01 0000f000 00001000 I (84) boot: 2 factory factory app 00 00 00010000 00300000 I (91) boot: 3 storage Unknown data 01 82 00310000 000f0000 I (99) boot: End of partition table I (103) boot_comm: chip revision: 1, min. application chip revision: 0 I (110) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=24350h (148304) map I (164) esp_image: segment 1: paddr=00034378 vaddr=3ffb0000 size=03d94h ( 15764) load I (169) esp_image: segment 2: paddr=00038114 vaddr=40080000 size=07f04h ( 32516) load I (181) esp_image: segment 3: paddr=00040020 vaddr=400d0020 size=73500h (472320) map I (324) esp_image: segment 4: paddr=000b3528 vaddr=40087f04 size=0a4d0h ( 42192) load I (339) esp_image: segment 5: paddr=000bda00 vaddr=50000000 size=00010h ( 16) load I (348) boot: Loaded app from partition at offset 0x10000 I (348) boot: Disabling RNG early entropy source... Hello from Edge Impulse Device SDK. Compiled on Jun 30 2022 13:44:39 ERR: failed to connect to inertial sensor! Inertial sensor initialization failed Type AT+HELP to see a list of commands. >
I am able to verify the AT+HELP and AT+CONFIG? commands work just fine.
But when I try to run edge-impulse-daemon, I get the following error:
Edge Impulse serial daemon v1.15.1 Endpoints: Websocket: wss://remote-mgmt.edgeimpulse.com API: https://studio.edgeimpulse.com/v1 Ingestion: https://ingestion.edgeimpulse.com [SER] Connecting to /dev/ttyUSB0 [SER] Serial is connected, trying to read config... [SER] Failed to get info off device Timeout when waiting for > (timeout: 5000) onConnected [SER] Serial is connected, trying to read config... [SER] Failed to get info off device Timeout when waiting for > (timeout: 5000) onConnected
I then tried:
Edge Impulse impulse runner v1.15.1 [SER] Connecting to /dev/ttyUSB0 [SER] Serial is connected, trying to read config... [SER] Failed to get info off device:undefined. Is this device running a binary built through Edge Impulse? Reconnecting in 5 seconds...
Then I tried the following:
Edge Impulse impulse runner v1.15.1 [SER] Connecting to /dev/ttyUSB0 [SER] Connected to /dev/ttyUSB0 AT+HELP
I tried entering AT+HELP on the console, but there was no response. I am totally at a loss as to how to get this working… Any suggestions?