jomjol / AI-on-the-edge-device

Easy to use device for connecting "old" measuring units (water, power, gas, ...) to the digital world
https://jomjol.github.io/AI-on-the-edge-device-docs/
5.94k stars 648 forks source link

no Camera function #454

Closed Bonze255 closed 2 years ago

Bonze255 commented 2 years ago

Hi, I use a ESP32-CAM Module with a ESP32-S Chip. And Camera Module TY-OV2640 V2.0. I get no picture when I want to setup the Esp32Module for the first time. I have then flashed the Module with "Tasmota Webcam" Firmware, but this works fine. Do you have an idea what is wrong?

The log says:" 2021-12-11T12:11:57: Time zone set to CET-1CEST,M3.5.0,M10.5.0/3 2021-12-11T12:11:57: ============================================================================================= 2021-12-11T12:11:57: =================================== Main Started ============================================ 2021-12-11T12:11:57: ============================================================================================= 2021-12-11T12:17:55: Time zone set to CET-1CEST,M3.5.0,M10.5.0/3 2021-12-11T12:17:55: ============================================================================================= 2021-12-11T12:17:55: =================================== Main Started ============================================ 2021-12-11T12:17:55: ============================================================================================= 2021-12-11T12:18:23: Time zone set to CET-1CEST,M3.5.0,M10.5.0/3 2021-12-11T12:18:23: ============================================================================================= 2021-12-11T12:18:23: =================================== Main Started ============================================ 2021-12-11T12:18:23: ============================================================================================= 2021-12-11T12:19:02: Time zone set to CET-1CEST,M3.5.0,M10.5.0/3 2021-12-11T12:19:02: ============================================================================================= 2021-12-11T12:19:02: =================================== Main Started ============================================ 2021-12-11T12:19:02: ============================================================================================= 2021-12-11T12:19:31: Time zone set to CET-1CEST,M3.5.0,M10.5.0/3 2021-12-11T12:19:31: ============================================================================================= 2021-12-11T12:19:31: =================================== Main Started ============================================ 2021-12-11T12:19:31: ============================================================================================= 2021-12-11T12:46:17: Time zone set to CET-1CEST,M3.5.0,M10.5.0/3 2021-12-11T12:46:17: ============================================================================================= 2021-12-11T12:46:17: =================================== Main Started ============================================ 2021-12-11T12:46:17: ============================================================================================= 2021-12-11T12:54:57: Time zone set to CET-1CEST,M3.5.0,M10.5.0/3 2021-12-11T12:54:57: ============================================================================================= 2021-12-11T12:54:57: =================================== Main Started ============================================ 2021-12-11T12:54:57: ============================================================================================= 2021-12-11T12:58:20: Time zone set to CET-1CEST,M3.5.0,M10.5.0/3 2021-12-11T12:58:20: ============================================================================================= 2021-12-11T12:58:20: =================================== Main Started ============================================ 2021-12-11T12:58:20: ============================================================================================= 2021-12-11T12:58:24: Failed to initialize camera module. Check that your camera module is working and connected properly. 2021-12-11T13:22:02: Time zone set to CET-1CEST,M3.5.0,M10.5.0/3 2021-12-11T13:22:02: ============================================================================================= 2021-12-11T13:22:02: =================================== Main Started ============================================ 2021-12-11T13:22:02: ============================================================================================= 2021-12-11T13:22:09: Time zone set to CET-1CEST,M3.5.0,M10.5.0/3 2021-12-11T13:29:59: Time zone set to CET-1CEST,M3.5.0,M10.5.0/3 2021-12-11T13:29:59: ============================================================================================= 2021-12-11T13:29:59: =================================== Main Started ============================================ 2021-12-11T13:29:59: ============================================================================================= 2021-12-11T13:30:06: Time zone set to CET-1CEST,M3.5.0,M10.5.0/3 2021-12-11T13:34:32: download_get_handler 2021-12-11T13:34:32: download_get_handler 2021-12-11T13:34:42: download_get_handler 2021-12-11T13:34:45: download_get_handler 2021-12-11T13:34:49: download_get_handler 2021-12-11T13:34:54: delete_post_handler 2021-12-11T13:34:54: download_get_handler 2021-12-11T13:34:54: upload_post_handler 2021-12-11T13:34:54: download_get_handler 2021-12-11T13:35:00: download_get_handler 2021-12-11T13:35:00: download_get_handler 2021-12-11T13:35:01: delete_post_handler 2021-12-11T13:35:02: download_get_handler 2021-12-11T13:35:02: download_get_handler 2021-12-11T13:35:02: download_get_handler 2021-12-11T13:35:04: download_get_handler 2021-12-11T13:35:05: download_get_handler 2021-12-11T13:35:06: download_get_handler 2021-12-11T13:35:07: download_get_handler 2021-12-11T13:35:08: download_get_handler 2021-12-11T13:35:09: download_get_handler 2021-12-11T13:35:22: handler_reboot 2021-12-11T13:35:23: Reboot in 5sec 2021-12-11T13:35:36: Time zone set to CET-1CEST,M3.5.0,M10.5.0/3 2021-12-11T13:35:36: ============================================================================================= 2021-12-11T13:35:36: =================================== Main Started ============================================ 2021-12-11T13:35:36: ============================================================================================= 2021-12-11T13:35:42: Time zone set to CET-1CEST,M3.5.0,M10.5.0/3 2021-12-11T13:37:19: download_get_handler 2021-12-11T13:37:19: download_get_handler 2021-12-11T13:37:22: download_get_handler 2021-12-11T13:37:23: download_get_handler 2021-12-11T13:37:25: download_get_handler 2021-12-11T13:37:25: download_get_handler 2021-12-11T13:37:33: delete_post_handler 2021-12-11T13:37:33: download_get_handler 2021-12-11T13:37:34: upload_post_handler 2021-12-11T13:37:34: download_get_handler 2021-12-11T13:37:52: delete_post_handler 2021-12-11T13:37:52: download_get_handler 2021-12-11T13:37:53: upload_post_handler 2021-12-11T13:37:53: download_get_handler 2021-12-11T13:38:02: download_get_handler 2021-12-11T13:38:02: delete_post_handler 2021-12-11T13:38:02: download_get_handler 2021-12-11T13:38:03: upload_post_handler 2021-12-11T13:38:03: download_get_handler 2021-12-11T13:38:04: handler_reboot 2021-12-11T13:38:04: Reboot in 5sec 2021-12-11T13:38:17: Time zone set to CET-1CEST,M3.5.0,M10.5.0/3 2021-12-11T13:38:17: ============================================================================================= 2021-12-11T13:38:17: =================================== Main Started ============================================ 2021-12-11T13:38:17: ============================================================================================= 2021-12-11T13:38:23: Time zone set to CET-1CEST,M3.5.0,M10.5.0/3 2021-12-11T13:38:23: task_autodoFlow - next round - Round #1 2021-12-11T13:38:23: FlowControll.doFlow - ClassFlowMakeImage 2021-12-11T13:38:34: FlowControll.doFlow - ClassFlowAlignment 2021-12-11T13:38:55: FlowControll.doFlow - ClassFlowCNNGeneral 2021-12-11T13:38:58: info_get_handler 2021-12-11T13:38:58: info_get_handler 2021-12-11T13:38:58: info_get_handler 2021-12-11T13:38:58: info_get_handler 2021-12-11T13:38:58: info_get_handler 2021-12-11T13:38:58: info_get_handler 2021-12-11T13:38:58: info_get_handler 2021-12-11T13:38:59: info_get_handler 2021-12-11T13:38:59: info_get_handler 2021-12-11T13:39:08: Time zone set to CET-1CEST,M3.5.0,M10.5.0/3 2021-12-11T13:39:08: ============================================================================================= 2021-12-11T13:39:08: =================================== Main Started ============================================ 2021-12-11T13:39:08: ============================================================================================= 2021-12-11T13:39:15: Time zone set to CET-1CEST,M3.5.0,M10.5.0/3 2021-12-11T13:39:15: task_autodoFlow - next round - Round #1 2021-12-11T13:39:15: FlowControll.doFlow - ClassFlowMakeImage 2021-12-11T13:39:27: FlowControll.doFlow - ClassFlowAlignment 2021-12-11T13:39:29: download_get_handler 2021-12-11T13:39:29: download_get_handler 2021-12-11T13:39:36: download_get_handler 2021-12-11T13:39:36: download_get_handler 2021-12-11T13:39:40: download_get_handler 2021-12-11T13:39:43: download_get_handler 2021-12-11T13:39:47: FlowControll.doFlow - ClassFlowCNNGeneral 2021-12-11T13:39:48: download_get_handler 2021-12-11T13:39:52: delete_post_handler 2021-12-11T13:39:52: download_get_handler 2021-12-11T13:39:52: upload_post_handler 2021-12-11T13:39:53: download_get_handler 2021-12-11T13:40:01: Time zone set to CET-1CEST,M3.5.0,M10.5.0/3 2021-12-11T13:40:01: ============================================================================================= 2021-12-11T13:40:01: =================================== Main Started ============================================ 2021-12-11T13:40:01: ============================================================================================= 2021-12-11T13:40:08: Time zone set to CET-1CEST,M3.5.0,M10.5.0/3 2021-12-11T13:40:08: download_get_handler 2021-12-11T13:40:08: task_autodoFlow - next round - Round #1 2021-12-11T13:40:08: FlowControll.doFlow - ClassFlowMakeImage 2021-12-11T13:40:08: download_get_handler 2021-12-11T13:40:18: FlowControll.doFlow - ClassFlowAlignment 2021-12-11T13:40:40: FlowControll.doFlow - ClassFlowCNNGeneral 2021-12-11T13:41:00: FlowControll.doFlow - ClassFlowCNNGeneral 2021-12-11T13:41:45: Time zone set to CET-1CEST,M3.5.0,M10.5.0/3 2021-12-11T13:41:46: ============================================================================================= 2021-12-11T13:41:46: =================================== Main Started ============================================ 2021-12-11T13:41:46: ============================================================================================= 2021-12-11T13:41:50: Failed to initialize camera module. Check that your camera module is working and connected properly. 2021-12-11T14:12:25: Time zone set to CET-1CEST,M3.5.0,M10.5.0/3 2021-12-11T14:12:25: ============================================================================================= 2021-12-11T14:12:25: =================================== Main Started ============================================ 2021-12-11T14:12:25: ============================================================================================= 2021-12-11T14:12:30: Failed to initialize camera module. Check that your camera module is working and connected properly. 2021-12-11T14:16:24: Time zone set to CET-1CEST,M3.5.0,M10.5.0/3 2021-12-11T14:16:24: ============================================================================================= 2021-12-11T14:16:24: =================================== Main Started ============================================ 2021-12-11T14:16:24: ============================================================================================= 2021-12-11T14:16:28: Failed to initialize camera module. Check that your camera module is working and connected properly. 2021-12-11T14:18:21: Time zone set to CET-1CEST,M3.5.0,M10.5.0/3 2021-12-11T14:18:21: ============================================================================================= 2021-12-11T14:18:21: =================================== Main Started ============================================ 2021-12-11T14:18:21: ============================================================================================= 2021-12-11T14:18:25: Failed to initialize camera module. Check that your camera module is working and connected properly. 2021-12-11T14:25:01: Time zone set to CET-1CEST,M3.5.0,M10.5.0/3 2021-12-11T14:25:01: ============================================================================================= 2021-12-11T14:25:01: =================================== Main Started ============================================ 2021-12-11T14:25:01: ============================================================================================= 2021-12-11T14:25:05: Failed to initialize camera module. Check that your camera module is working and connected properly."

I think one time the Cam should worked...

Masterz69 commented 2 years ago

Looks aproximately same issue. Camera take picture ~1 times from 20 attempts. Debug log activated, but nothing recorded, just:

2021-12-11T16:40:43: Time zone set to CET-1CEST,M3.5.0,M10.5.0/3
2021-12-11T16:40:43: =============================================================================================
2021-12-11T16:40:43: =================================== Main Started ============================================
2021-12-11T16:40:43: =============================================================================================

No pictures, no debug. Version: master - v9.2.0 - 2021-12-02 2A Power Supply.

Masterz69 commented 2 years ago

Installed 8.50. - it shoot couple of pictures. And then started continuiously rebooting with no debug, nothing. Strange staff,

jomjol commented 2 years ago

Looks like there is a problem with the camera. Maybe broken or instable connection.

Failed to initialize camera module. Check that your camera module is working and connected properly.

That is most propably a hardware problem rather than software. You can make a logfile of the serial interface during the startup. There you might get additional informations.

klein0r commented 2 years ago

I have the same issue. Serial log:

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:4
load:0x3fff0034,len:7248
ho 0 tail 12 room 4
load:0x40078000,len:13856
load:0x40080400,len:4052
entry 0x40080688
␛[0;32mI (30) boot: ESP-IDF 3.40100.200827 2nd stage bootloader␛[0m
␛[0;32mI (31) boot: compile time 21:55:31␛[0m
␛[0;32mI (31) boot: chip revision: 1␛[0m
␛[0;32mI (34) boot_comm: chip revision: 1, min. bootloader chip revision: 0␛[0m
␛[0;32mI (41) boot.esp32: SPI Speed      : 40MHz␛[0m
␛[0;32mI (46) boot.esp32: SPI Mode       : DIO␛[0m
␛[0;32mI (50) boot.esp32: SPI Flash Size : 4MB␛[0m
␛[0;32mI (55) boot: Enabling RNG early entropy source...␛[0m
␛[0;32mI (60) boot: Partition Table:␛[0m
␛[0;32mI (64) boot: ## Label            Usage          Type ST Offset   Length␛[0m
␛[0;32mI (71) boot:  0 nvs              WiFi data        01 02 00009000 00004000␛[0m
␛[0;32mI (79) boot:  1 otadata          OTA data         01 00 0000d000 00002000␛[0m
␛[0;32mI (86) boot:  2 phy_init         RF data          01 01 0000f000 00001000␛[0m
␛[0;32mI (94) boot:  3 ota_0            OTA app          00 10 00010000 001db000␛[0m
␛[0;32mI (101) boot:  4 ota_1            OTA app          00 11 001f0000 001db000␛[0m
␛[0;32mI (109) boot: End of partition table␛[0m
␛[0;32mI (113) boot_comm: chip revision: 1, min. application chip revision: 0␛[0m
␛[0;32mI (120) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x511d4 (332244) map␛[0m
␛[0;32mI (273) esp_image: segment 1: paddr=0x000611fc vaddr=0x3ffb0000 size=0x05050 ( 20560) load␛[0m
␛[0;32mI (283) esp_image: segment 2: paddr=0x00066254 vaddr=0x40080000 size=0x00404 (  1028) load␛[0m
␛[0;32mI (284) esp_image: segment 3: paddr=0x00066660 vaddr=0x40080404 size=0x099b8 ( 39352) load␛[0m
␛[0;32mI (310) esp_image: segment 4: paddr=0x00070020 vaddr=0x400d0020 size=0x123240 (1192512) map␛[0m
␛[0;32mI (826) esp_image: segment 5: paddr=0x00193268 vaddr=0x40089dbc size=0x12df8 ( 77304) load␛[0m
␛[0;32mI (881) boot: Loaded app from partition at offset 0x10000␛[0m
␛[0;32mI (881) boot: Disabling RNG early entropy source...␛[0m
␛[0;32mI (881) psram: This chip is ESP32-D0WD␛[0m
␛[0;32mI (886) spiram: Found 64MBit SPI RAM device␛[0m
␛[0;32mI (890) spiram: SPI RAM mode: flash 40m sram 40m␛[0m
␛[0;32mI (896) spiram: PSRAM initialized, cache is in low/high (2-core) mode.␛[0m
␛[0;32mI (903) cpu_start: Pro cpu up.␛[0m
␛[0;32mI (907) cpu_start: Application information:␛[0m
␛[0;32mI (911) cpu_start: Project name:     esp32cam-server-only␛[0m
␛[0;32mI (917) cpu_start: App version:      0.0.9.3␛[0m
␛[0;32mI (922) cpu_start: Compile time:     Dec  2 2021 21:53:54␛[0m
␛[0;32mI (928) cpu_start: ELF file SHA256:  d31ca3157c9027f1...␛[0m
␛[0;32mI (934) cpu_start: ESP-IDF:          3.40100.200827␛[0m
␛[0;32mI (940) cpu_start: Starting app cpu, entry point is 0x40081b00␛[0m
␛[0;32mI (0) cpu_start: App cpu up.␛[0m
␛[0;32mI (1838) spiram: SPI SRAM memory test OK␛[0m
␛[0;32mI (1838) heap_init: Initializing. RAM available for dynamic allocation:␛[0m
␛[0;32mI (1838) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM␛[0m
␛[0;32mI (1844) heap_init: At 3FFC2A10 len 0001D5F0 (117 KiB): DRAM␛[0m
␛[0;32mI (1851) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM␛[0m
␛[0;32mI (1857) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM␛[0m
␛[0;32mI (1864) heap_init: At 4009CBB4 len 0000344C (13 KiB): IRAM␛[0m
␛[0;32mI (1870) cpu_start: Pro cpu start user code␛[0m
␛[0;32mI (1875) spiram: Adding pool of 4096K of external SPI memory to heap allocator␛[0m
␛[0;32mI (1900) spi_flash: detected chip: generic␛[0m
␛[0;32mI (1901) spi_flash: flash io: dio␛[0m
␛[0;32mI (1901) cpu_start: Starting scheduler on PRO CPU.␛[0m
␛[0;32mI (0) cpu_start: Starting scheduler on APP CPU.␛[0m
␛[0;32mI (1909) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations␛[0m
␛[0;32mI (1959) main: Using SDMMC peripheral␛[0m
Name: SA16G
Type: SDHC/SDXC
Speed: 20 MHz
Size: 14992MB
␛[0;32mI (2009) server_ota: Start CheckOTAUpdateCheck ...␛[0m
Start CheckOTAUpdateCheck ...
␛[0;32mI (2019) server_ota: SHA-256 for the partition table: : 9d4a2809ae90fb20709a8ca3dd3ac3462e1e73286bcd31b689060c91de06fa3a␛[0m
␛[0;32mI (2079) server_ota: SHA-256 for bootloader: : fcdaa822cbfd3931bcf8b49d91f2b86a98b93513bdbadb110eecd54f32d13c55␛[0m
␛[0;32mI (2719) server_ota: SHA-256 for current firmware: : c3447097e655d087ac6d2a666307dad4d95e8dd648f4870ac0521f6b4fe209aa␛[0m
CheckOTAUpdate Partition: ESP_OK
open file /sdcard/wlan.ini in mode r
file loaded

WLan: <HIDDEN>
Hostename: watermeter
I (2769) wifi:wifi driver task: 3ffd350c, prio:23, stack:6656, core=0
␛[0;32mI (2769) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE␛[0m
␛[0;32mI (2769) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE␛[0m
I (2799) wifi:wifi firmware version: 3ea4c76
I (2799) wifi:config NVS flash: enabled
I (2799) wifi:config nano formating: disabled
I (2799) wifi:Init dynamic tx buffer num: 32
I (2809) wifi:Init data frame dynamic rx buffer num: 32
I (2809) wifi:Init management frame dynamic rx buffer num: 32
I (2819) wifi:Init management short buffer num: 32
I (2819) wifi:Init static tx buffer num: 16
I (2829) wifi:Init static rx buffer size: 1600
I (2829) wifi:Init static rx buffer num: 10
I (2829) wifi:Init dynamic rx buffer num: 32
␛[0;32mI (2949) phy: phy_version: 4180, cb3948e, Sep 12 2019, 16:39:13, 0, 0␛[0m
I (2949) wifi:mode : sta (78:e3:6d:0b:14:4c)
␛[0;32mI (2959) BLINK: Blinken - start␛[0m
␛[0;32mI (2959) wifi station: wifi_init_sta finished.␛[0m
I (3079) wifi:new:<6,0>, old:<1,0>, ap:<255,255>, sta:<6,0>, prof:1
I (3079) wifi:state: init -> auth (b0)
I (3089) wifi:state: auth -> assoc (0)
I (3089) wifi:state: assoc -> run (10)
I (3089) wifi:state: run -> init (2c0)
I (3099) wifi:new:<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1
I (3099) wifi:new:<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1
␛[0;32mI (3099) wifi station: retry to connect to the AP␛[0m
␛[0;32mI (3109) wifi station: connect to the AP fail␛[0m
␛[0;32mI (3159) BLINK: Blinken - done␛[0m
␛[0;32mI (5159) wifi station: retry to connect to the AP␛[0m
␛[0;32mI (5159) wifi station: connect to the AP fail␛[0m
I (5279) wifi:new:<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1
I (5279) wifi:state: init -> auth (b0)
I (5279) wifi:state: auth -> assoc (0)
I (5289) wifi:state: assoc -> run (10)
I (5299) wifi:connected with ..., aid = 3, channel 6, BW20, bssid = e0:63:da:cc:72:04
I (5299) wifi:security: WPA2-PSK, phy: bgn, rssi: -40
I (5309) wifi:pm start, type: 1

I (5319) wifi:AP's beacon interval = 102400 us, DTIM period = 3
␛[0;32mI (6259) esp_netif_handlers: sta ip: 172.16.0.245, mask: 255.255.0.0, gw: 172.16.0.1␛[0m
␛[0;32mI (6259) wifi station: got ip:172.16.0.245␛[0m
␛[0;32mI (6259) BLINK: Blinken - start␛[0m
␛[0;32mI (6259) wifi station: connected to ap SSID:... password: ... [0m
main: sleep for : 200ms
␛[0;32mI (8279) sntp: Time is not set yet. Connecting to WiFi and getting time over NTP.␛[0m
␛[0;32mI (8279) sntp: Initializing SNTP␛[0m
␛[0;32mI (8279) sntp: Waiting for system time to be set... (1/10)␛[0m
␛[0;32mI (10279) sntp: Waiting for system time to be set... (2/10)␛[0m
TimeZone set to CET-1CEST,M3.5.0,M10.5.0/3
Logfile opened: /sdcard/log/message/log_2021-12-17.txt
␛[0;32mI (12289) sntp: The current date/time in Berlin is: Fri Dec 17 12:58:36 2021␛[0m
␛[0;32mI (12289) sntp: The current date/time in Berlin is: 2021-12-17_12:58␛[0m
timeist 20211217-125836
Logfile opened: /sdcard/log/message/log_2021-12-17.txt
Logfile opened: /sdcard/log/message/log_2021-12-17.txt
Logfile opened: /sdcard/log/message/log_2021-12-17.txt
time 20211217-125836
main: sleep for : 200ms
␛[0;32mI (14339) server-main: Starting server on port: '80'␛[0m
␛[0;32mI (14339) server-main: Registering URI handlers␛[0m
␛[0;32mI (14339) server_tflite: server_part_camera - Registering URI handlers␛[0m
␛[0;32mI (14339) server_ota: server_ota - Registering URI handlers␛[0m
␛[0;32mI (14349) server_GPIO: start GpioHandler␛[0m
␛[0;32mI (14349) server_GPIO: register GPIO Uri␛[0m
␛[0;32mI (14359) server_GPIO: server_GPIO - Registering URI handlers␛[0m
vor reg server main
vor dotautostart
Do Reset Camera
␛[0;32mI (14369) gpio: GPIO[32]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 ␛[0m
␛[0;32mI (16259) BLINK: Blinken - done␛[0m
Init Camera
␛[0;32mI (16379) gpio: GPIO[5]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 ␛[0m
␛[0;32mI (16379) gpio: GPIO[18]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 ␛[0m
␛[0;32mI (16379) gpio: GPIO[19]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 ␛[0m
␛[0;32mI (16389) gpio: GPIO[21]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 ␛[0m
␛[0;32mI (16399) gpio: GPIO[22]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 ␛[0m
␛[0;32mI (16409) gpio: GPIO[23]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 ␛[0m
␛[0;32mI (16419) gpio: GPIO[25]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 ␛[0m
␛[0;32mI (16429) gpio: GPIO[34]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 ␛[0m
␛[0;32mI (16439) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 ␛[0m
␛[0;32mI (16449) gpio: GPIO[36]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 ␛[0m
␛[0;32mI (16459) gpio: GPIO[39]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 ␛[0m
␛[0;32mI (16469) sccb: pin_sda 26 pin_scl 27
␛[0m
␛[0;32mI (16469) gpio: GPIO[32]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 ␛[0m
␛[0;31mE (16539) camera: Detected camera not supported.␛[0m
␛[0;31mE (16539) camera: Camera probe failed with error 0x20004␛[0m
␛[0;31mE (16539) server_part_camera: Camera Init Failed␛[0m
␛[0;31mE (16539) main: Failed to initialize camera module. Check that your camera module is working and connected properly.␛[0m
Logfile opened: /sdcard/log/message/log_2021-12-17.txt

How do I know which camera I have? -> Detected camera not supported

Maybe I have an OV7725 ? Product description said OV2640 ...

https://github.com/jomjol/AI-on-the-edge-device/blob/18f6e83a2c03a2da4d7f1bff13efe92d5cdc156c/code/sdkconfig#L1001-L1016

https://github.com/jomjol/AI-on-the-edge-device/blob/ec96b7f8781d0fb7e0d6d53447d49f46e520788c/code/components/esp32-camera-master/driver/camera.c#L1109-L1114

klein0r commented 2 years ago

Update: Seems like I've received a broken module. Bought a set of 2. The other one works perfectly. So... It was a hardware issue.

Bonze255 commented 2 years ago

i have bought a new module, this should work, but it permanently reboots.. ` rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0030,len:4 load:0x3fff0034,len:7248 ho 0 tail 12 room 4 load:0x40078000,len:13856 load:0x40080400,len:4052 entry 0x40080688 I (31) boot: ESP-IDF 3.40100.200827 2nd stage bootloader I (31) boot: compile time 21:55:31 I (31) boot: chip revision: 3 I (34) boot_comm: chip revision: 3, min. bootloader chip revision: 0 I (42) boot.esp32: SPI Speed : 40MHz I (46) boot.esp32: SPI Mode : DIO I (51) boot.esp32: SPI Flash Size : 4MB I (55) boot: Enabling RNG early entropy source... I (61) boot: Partition Table: I (64) boot: ## Label Usage Type ST Offset Length I (72) boot: 0 nvs WiFi data 01 02 00009000 00004000 I (79) boot: 1 otadata OTA data 01 00 0000d000 00002000 I (86) boot: 2 phy_init RF data 01 01 0000f000 00001000 I (94) boot: 3 ota_0 OTA app 00 10 00010000 001db000 I (101) boot: 4 ota_1 OTA app 00 11 001f0000 001db000 I (109) boot: End of partition table I (113) boot_comm: chip revision: 3, min. application chip revision: 0 I (120) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x511d4 (33 2244) map I (273) esp_image: segment 1: paddr=0x000611fc vaddr=0x3ffb0000 size=0x05050 ( 2 0560) load I (283) esp_image: segment 2: paddr=0x00066254 vaddr=0x40080000 size=0x00404 ( 1028) load I (284) esp_image: segment 3: paddr=0x00066660 vaddr=0x40080404 size=0x099b8 ( 3 9352) load I (310) esp_image: segment 4: paddr=0x00070020 vaddr=0x400d0020 size=0x123240 (1 192512) map I (827) esp_image: segment 5: paddr=0x00193268 vaddr=0x40089dbc size=0x12df8 ( 7 7304) load I (881) boot: Loaded app from partition at offset 0x10000 I (881) boot: Disabling RNG early entropy source... I (882) psram: This chip is ESP32-D0WD I (886) spiram: Found 16MBit SPI RAM device I (891) spiram: SPI RAM mode: flash 40m sram 40m I (896) spiram: PSRAM initialized, cache is in low/high (2-core) mode. I (903) cpu_start: Pro cpu up. I (907) cpu_start: Application information: I (912) cpu_start: Project name: esp32cam-server-only I (918) cpu_start: App version: 0.0.9.3 I (923) cpu_start: Compile time: Dec 2 2021 21:53:54 I (929) cpu_start: ELF file SHA256: d31ca3157c9027f1... I (935) cpu_start: ESP-IDF: 3.40100.200827 I (940) cpu_start: Starting app cpu, entry point is 0x40081b00 I (932) cpu_start: App cpu up. I (1397) spiram: SPI SRAM memory test OK I (1398) heap_init: Initializing. RAM available for dynamic allocation: I (1398) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM I (1404) heap_init: At 3FFC2A10 len 0001D5F0 (117 KiB): DRAM I (1411) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM I (1417) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (1424) heap_init: At 4009CBB4 len 0000344C (13 KiB): IRAM I (1430) cpu_start: Pro cpu start user code I (1435) spiram: Adding pool of 2048K of external SPI memory to heap allocator I (1460) spi_flash: detected chip: generic I (1461) spi_flash: flash io: dio I (1461) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. I (1469) spiram: Reserving pool of 32K of internal memory for DMA/internal alloc ations I (1519) main: Using SDMMC peripheral Name: 00000 Type: SDSC Speed: 20 MHz Size: 1909MB I (1569) server_ota: Start CheckOTAUpdateCheck ... Start CheckOTAUpdateCheck ... I (1579) server_ota: SHA-256 for the partition table: : 9d4a2809ae90fb20709a8ca3 dd3ac3462e1e73286bcd31b689060c91de06fa3a I (1639) server_ota: SHA-256 for bootloader: : fcdaa822cbfd3931bcf8b49d91f2b86a9 8b93513bdbadb110eecd54f32d13c55 I (2279) server_ota: SHA-256 for current firmware: : c3447097e655d087ac6d2a66630 7dad4d95e8dd648f4870ac0521f6b4fe209aa CheckOTAUpdate Partition: ESP_OK open file /sdcard/wlan.ini in mode r file loaded

WLan: gdfgfddfhf Hostename: watermeter I (2329) wifi:wifi driver task: 3ffd35ac, prio:23, stack:6656, core=0 I (2329) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE I (2329) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE I (2359) wifi:wifi firmware version: 3ea4c76 I (2359) wifi:config NVS flash: enabled I (2359) wifi:config nano formating: disabled I (2359) wifi:Init dynamic tx buffer num: 32 I (2369) wifi:Init data frame dynamic rx buffer num: 32 I (2369) wifi:Init management frame dynamic rx buffer num: 32 I (2379) wifi:Init management short buffer num: 32 I (2379) wifi:Init static tx buffer num: 16 I (2389) wifi:Init static rx buffer size: 1600 I (2389) wifi:Init static rx buffer num: 10 I (2389) wifi:Init dynamic rx buffer num: 32 I (2489) phy: phy_version: 4180, cb3948e, Sep 12 2019, 16:39:13, 0, 0 I (2499) wifi:mode : sta (44:17:93:7c:b7:00) I (2499) BLINK: Blinken - start I (2499) wifi station: wifi_init_sta finished. I (2619) wifi:new:<11,0>, old:<1,0>, ap:<255,255>, sta:<11,0>, prof:1 I (2619) wifi:state: init -> auth (b0) I (2629) wifi:state: auth -> assoc (0) I (2629) wifi:state: assoc -> run (10) I (2679) wifi:connected with FRITZ!Box 7372 SL3, aid = 9, channel 11, BW20, bssi d = ac:84:c6:c5:46:93 I (2679) wifi:security: WPA2-PSK, phy: bgn, rssi: -74 I (2689) wifi:pm start, type: 1

I (2699) BLINK: Blinken - done I (2779) wifi:AP's beacon interval = 102400 us, DTIM period = 1 I (10769) wifi:state: run -> init (fc0) I (10769) wifi:pm stop, total sleep time: 5972986 us / 8081923 us

I (10769) wifi:new:<11,0>, old:<11,0>, ap:<255,255>, sta:<11,0>, prof:1 I (10779) wifi station: retry to connect to the AP I (10779) wifi station: connect to the AP fail I (10899) wifi:new:<11,0>, old:<11,0>, ap:<255,255>, sta:<11,0>, prof:1 I (10899) wifi:state: init -> auth (b0) I (10899) wifi:state: auth -> assoc (0) I (10899) wifi:state: assoc -> run (10) I (10939) wifi:connected with fggd, aid = 9, channel 11, BW20, bss id = ac:84:c6:c5:46:93 I (10939) wifi:security: WPA2-PSK, phy: bgn, rssi: -76 I (10939) wifi:pm start, type: 1

I (10969) wifi:AP's beacon interval = 102400 us, DTIM period = 1 I (13319) esp_netif_handlers: sta ip: 192.168.178.57, mask: 255.255.255.0, gw: 1 92.168.178.1 I (13319) wifi station: got ip:192.168.178.57 I (13319) BLINK: Blinken - start I (13319) wifi station: connected to ap SSID:gdfgfddfhf
main: sleep for : 200ms I (15339) sntp: Time is not set yet. Connecting to WiFi and getting time over NT P. I (15339) sntp: Initializing SNTP I (15339) sntp: Waiting for system time to be set... (1/10) I (17339) sntp: Waiting for system time to be set... (2/10) I (19339) sntp: Waiting for system time to be set... (3/10) TimeZone set to CET-1CEST,M3.5.0,M10.5.0/3 Logfile opened: /sdcard/log/message/log_2021-12-20.txt I (21349) sntp: The current date/time in Berlin is: Mon Dec 20 18:45:35 2021 I (21349) sntp: The current date/time in Berlin is: 2021-12-20_18:45 timeist 20211220-184535 Logfile opened: /sdcard/log/message/log_2021-12-20.txt Logfile opened: /sdcard/log/message/log_2021-12-20.txt Logfile opened: /sdcard/log/message/log_2021-12-20.txt time 20211220-184535 main: sleep for : 200ms I (23329) BLINK: Blinken - done I (23409) server-main: Starting server on port: '80' I (23409) server-main: Registering URI handlers I (23409) server_tflite: server_part_camera - Registering URI handlers I (23409) server_ota: server_ota - Registering URI handlers I (23419) server_GPIO: start GpioHandler I (23419) server_GPIO: register GPIO Uri I (23429) server_GPIO: server_GPIO - Registering URI handlers vor reg server main vor dotautostart Do Reset Camera I (23439) gpio: GPIO[32]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pull down: 0| Intr:0 Init Camera I (25449) gpio: GPIO[5]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulld own: 0| Intr:0 I (25449) gpio: GPIO[18]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pull down: 0| Intr:0 I (25449) gpio: GPIO[19]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pull down: 0| Intr:0 I (25459) gpio: GPIO[21]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pull down: 0| Intr:0 I (25469) gpio: GPIO[22]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pull down: 0| Intr:0 I (25479) gpio: GPIO[23]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pull down: 0| Intr:0 I (25489) gpio: GPIO[25]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pull down: 0| Intr:0 I (25499) gpio: GPIO[34]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pull down: 0| Intr:0 I (25509) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pull down: 0| Intr:0 I (25519) gpio: GPIO[36]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pull down: 0| Intr:0 I (25529) gpio: GPIO[39]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pull down: 0| Intr:0 I (25539) sccb: pin_sda 26 pin_scl 27

I (25539) gpio: GPIO[32]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pull down: 0| Intr:0 I (25699) camera: Detected OV2640 camera I (25699) camera: Allocating 1 frame buffers (150 KB total) I (25719) camera: Allocating 150 KB frame buffer in OnBoard RAM task_autodoFlow: start open file /sdcard/config/config.ini in mode r [MakeImage] Start ReadParameter ([MakeImage] ) ;LogImageLocation = /log/source WaitBeforeTakingPicture = 5 ;LogfileRetentionInDays = 15 Brightness = -2 ;Contrast = 0 ;Saturation = 0 ImageQuality = 5 ImageSize = VGA FixedExposure = false

[Alignment] Start ReadParameter ([Alignment]) InitialRotate = 179 InitialMirror = false SearchFieldX = 20 SearchFieldY = 20 AlignmentAlgo = Default FlipImageSize = false /config/ref0.jpg 103 271 /config/ref1.jpg 442 142

[Digits] 2021-12-11T13:41:03 Start ReadParameter ([Digits]) Model = /config/dig1330s1q.tflite ;LogImageLocation = /log/digit ;LogfileRetentionInDays = 3 ModelInputSize = 20 32 main.dig1 294 126 30 54 GetGENERAL - GENERAL main - roi dig1 main.dig2 343 126 30 54 GetGENERAL - GENERAL main - roi dig2 main.dig3 391 126 30 54 GetGENERAL - GENERAL main - roi dig3

[Analog] Start ReadParameter ([Analog]) Model = /config/ana0910s3_longq.tflite ;LogImageLocation = /log/analog ;LogfileRetentionInDays = 3 ModelInputSize = 32 32 ExtendedResolution = true main.ana1 432 230 92 92 GetGENERAL - GENERAL main - roi ana1 main.ana2 379 332 92 92 GetGENERAL - GENERAL main - roi ana2 main.ana3 283 374 92 92 GetGENERAL - GENERAL main - roi ana3 main.ana4 155 328 92 92 GetGENERAL - GENERAL main - roi ana4

[PostProcessing] Start ReadParameter ([PostProcessing]) Anzahl NUMBERS: 1 - DIGITS: 1, ANALOG: 1 Number main, Anz DIG: 3, Anz ANA 4 main.DecimalShift = 0 PreValueUse = true PreValueAgeStartup = 720 AllowNegativeRates = false main.MaxRateValue = 0.1 ErrorMessage = true CheckDigitIncreaseConsistency = false

;[MQTT] Read Zeile Prevalue.ini: main 2027-02-27T06:18:53 42.0134 Read: ;Uri = mqtt://IP-ADRESS:1883 Read: ;MainTopic = wasserzaehler Read: ;ClientID = wasser Read: ;user = USERNAME Read: ;password = PASSWORD Read: Read: ;[GPIO] Read: ;MainTopicMQTT = wasserzaehler/GPIO Read: ;IO0 = input disabled 10 false false Read: ;IO1 = input disabled 10 false false Read: ;IO3 = input disabled 10 false false Read: ;IO4 = built-in-led disabled 10 false false Read: ;IO12 = input-pullup disabled 10 false false Read: ;IO13 = input-pullup disabled 10 false false Read: LEDType = WS2812 Read: LEDNumbers = 2 Read: LEDColor = 50 50 50 Read: Read: [AutoTimer] Start ReadParameter ([AutoTimer] ) AutoStart = true Intervall = 4.85

[Debug] Start ReadParameter ([Debug]) Logfile = false LogfileRetentionInDays = 3

[System] Start ReadParameter ([System]) TimeZone = CET-1CEST,M3.5.0,M10.5.0/3 TimeZone set to CET-1CEST,M3.5.0,M10.5.0/3 ;TimeServer = undefined ;AutoAdjustSummertime = false ;Hostname = undefined SetupMode = true END OF FILE * Start GPIOHandler_Init *** I (28099) server_GPIO: read GPIO config and init GPIO open file /sdcard/config/config.ini in mode r [MakeImage] ;LogImageLocation = /log/source WaitBeforeTakingPicture = 5 ;LogfileRetentionInDays = 15 Brightness = -2 ;Contrast = 0 ;Saturation = 0 ImageQuality = 5 ImageSize = VGA FixedExposure = false

[Alignment] InitialRotate = 179 InitialMirror = false SearchFieldX = 20 SearchFieldY = 20 AlignmentAlgo = Default FlipImageSize = false /config/ref0.jpg 103 271 /config/ref1.jpg 442 142

[Digits] Model = /config/dig1330s1q.tflite ;LogImageLocation = /log/digit ;LogfileRetentionInDays = 3 ModelInputSize = 20 32 main.dig1 294 126 30 54 main.dig2 343 126 30 54 main.dig3 391 126 30 54

[Analog] Model = /config/ana0910s3_longq.tflite ;LogImageLocation = /log/analog ;LogfileRetentionInDays = 3 ModelInputSize = 32 32 ExtendedResolution = true main.ana1 432 230 92 92 main.ana2 379 332 92 92 main.ana3 283 374 92 92 main.ana4 155 328 92 92

[PostProcessing] main.DecimalShift = 0 PreValueUse = true PreValueAgeStartup = 720 AllowNegativeRates = false main.MaxRateValue = 0.1 ErrorMessage = true CheckDigitIncreaseConsistency = false

;[MQTT] ;Uri = mqtt://IP-ADRESS:1883 ;MainTopic = wasserzaehler ;ClientID = wasser ;user = USERNAME ;password = PASSWORD

;[GPIO] ;MainTopicMQTT = wasserzaehler/GPIO ;IO0 = input disabled 10 false false ;IO1 = input disabled 10 false false ;IO3 = input disabled 10 false false ;IO4 = built-in-led disabled 10 false false ;IO12 = input-pullup disabled 10 false false ;IO13 = input-pullup disabled 10 false false LEDType = WS2812 LEDNumbers = 2 LEDColor = 50 50 50

[AutoTimer] AutoStart = true Intervall = 4.85

[Debug] Logfile = false LogfileRetentionInDays = 3

[System] TimeZone = CET-1CEST,M3.5.0,M10.5.0/3 ;TimeServer = undefined ;AutoAdjustSummertime = false ;Hostname = undefined SetupMode = true I (28269) server_GPIO: GPIO init comleted, handler is disabled Flashdauer: 5000 Image loaded from memory: 0, 0, 0 Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandle d. Core 0 register dump: PC : 0x400ef1a8 PS : 0x00060c30 A0 : 0x8018c866 A1 : 0x3f ffcfd0 A2 : 0x00000780 A3 : 0x3ffc3bf4 A4 : 0x00000280 A5 : 0x00 000780 A6 : 0x00000001 A7 : 0x000001e0 A8 : 0x00000000 A9 : 0x3f 82c168 A10 : 0x00000000 A11 : 0x3f92ddd8 A12 : 0x00007a80 A13 : 0x00 000001 A14 : 0x3ffe3228 A15 : 0x3fffcef0 SAR : 0x0000001e EXCCAUSE: 0x00 00001c EXCVADDR: 0x00000000 LBEG : 0x4008bed5 LEND : 0x4008bee5 LCOUNT : 0xff ffffff

ELF file SHA256: d31ca3157c9027f1

Backtrace: 0x400ef1a5:0x3fffcfd0 0x4018c863:0x3fffd040 0x4018c8ea:0x3fffd080 0x4 0189d79:0x3fffd110 0x400f130a:0x3fffd1c0

Rebooting... `

jomjol commented 2 years ago

Du hast ein Modul mit nur 16MBit (=2MByte) PSRAM - das reicht leider nicht aus I (886) spiram: Found 16MBit SPI RAM device Du brauchst mindestens 32MBit - typischerweise haben die ESP32-CAM aber sogar 64MBit (wovon die Hälfte nicht direkt nutzbar ist.

Marc1850be commented 2 years ago

@Bonze255 @ckoeber83 und wo haben Sie ein funktionierendes ESP32-Modul mit OV2640-Kamera gekauft? Ich habe 2 Module mit der Kamera OV2640 v3, die nicht funktionieren!

Bonze255 commented 2 years ago

Och habe auch 2verschiedene Module gekauft, in unterschiedlicher Preisliche und 2mal die Module mit zu wenig Ram bekommen ... Ich habe vorerst die version 5? Die darauf noch läuft am laufen. .

Gunter1710 commented 2 years ago

Ich hatte mir zwei beim Ali bestellt. Kamen nach 2 Wochen und funktionieren ohne Probleme. https://de.aliexpress.com/item/1005003334474586.html