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.67k stars 612 forks source link

Bootschleife #193

Closed AlexanderSch90 closed 3 years ago

AlexanderSch90 commented 3 years ago

Hey, danke für das tolle Projekt. Ich habe eine Bootschleife. Habe nun zweimal geflasht und auch die zweite SD-Karte ausprobiert. Auf die Weboberfläche komme ich nicht. Das Board ist jedoch pingbar bis es neustartet. Hast du oder jemand anderes eine Idee? Anbei die Serielle Ausgabe aus der Arduino IDE:

ets Jun  8 2016 00:22:57

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 10:16:06
I (31) boot: chip revision: 1
I (34) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (41) 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 (71) 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: 1, min. application chip revision: 0
I (120) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x4ce24 (314916) map
I (266) esp_image: segment 1: paddr=0x0005ce4c vaddr=0x3ffb0000 size=0x031cc ( 12748) load
I (272) esp_image: segment 2: paddr=0x00060020 vaddr=0x400d0020 size=0x160374 (1442676) map
I (897) esp_image: segment 3: paddr=0x001c039c vaddr=0x3ffb31cc size=0x01f78 (  8056) load
I (901) esp_image: segment 4: paddr=0x001c231c vaddr=0x40080000 size=0x00404 (  1028) load
I (904) esp_image: segment 5: paddr=0x001c2728 vaddr=0x40080404 size=0x1ee40 (126528) load
I (992) boot: Loaded app from partition at offset 0x10000
I (992) boot: Disabling RNG early entropy source...
I (992) psram: This chip is ESP32-D0WD
I (998) spiram: Found 64MBit SPI RAM device
I (1001) spiram: SPI RAM mode: flash 40m sram 40m
I (1007) spiram: PSRAM initialized, cache is in low/high (2-core) mode.
I (1014) cpu_start: Pro cpu up.
I (1018) cpu_start: Application information:
I (1023) cpu_start: Project name:     esp32cam-server-only
I (1029) cpu_start: App version:      0.0.9.3
I (1034) cpu_start: Compile time:     Apr  5 2021 10:14:43
I (1040) cpu_start: ELF file SHA256:  2bf5916d49a6bf33...
I (1046) cpu_start: ESP-IDF:          3.40100.200827
I (1052) cpu_start: Starting app cpu, entry point is 0x40082bec
I (1043) cpu_start: App cpu up.
I (1944) spiram: SPI SRAM memory test OK
I (1945) heap_init: Initializing. RAM available for dynamic allocation:
I (1945) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (1951) heap_init: At 3FFC2B08 len 0001D4F8 (117 KiB): DRAM
I (1957) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (1964) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (1970) heap_init: At 4009F244 len 00000DBC (3 KiB): IRAM
I (1977) cpu_start: Pro cpu start user code
I (1981) spiram: Adding pool of 4096K of external SPI memory to heap allocator
I (2007) spi_flash: detected chip: generic
I (2008) spi_flash: flash io: dio
I (2008) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (2016) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations
Do Reset Camera
I (2026) gpio: GPIO[32]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
Init Camera
I (4036) gpio: GPIO[5]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (4036) gpio: GPIO[18]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (4036) gpio: GPIO[19]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (4046) gpio: GPIO[21]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (4056) gpio: GPIO[22]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (4066) gpio: GPIO[23]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (4076) gpio: GPIO[25]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (4086) gpio: GPIO[34]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (4096) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (4106) gpio: GPIO[36]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (4116) gpio: GPIO[39]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (4126) sccb: pin_sda 26 pin_scl 27

I (4126) gpio: GPIO[32]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
E (4196) camera: Detected camera not supported.
E (4196) camera: Camera probe failed with error 0x20004
E (4196) server_part_camera: Camera Init Failed
I (4246) server-main: Using SDMMC peripheral
Name: USD00
Type: SDHC/SDXC
Speed: 20 MHz
Size: 15103MB
I (4286) server_ota: Start CheckOTAUpdateCheck ...
Start CheckOTAUpdateCheck ...
I (4296) server_ota: SHA-256 for the partition table: : 9d4a2809ae90fb20709a8ca3dd3ac3462e1e73286bcd31b689060c91de06fa3a
I (4356) server_ota: SHA-256 for bootloader: : 8677ca5aab674ba732c280f0c34b595fce09e670bf8282c4147250de215bf674
I (5086) server_ota: SHA-256 for current firmware: : 62e4fef658991044b32ff84d87e818cef486f87eb6b04b3876803a30a68785fb
CheckOTAUpdate Partition: ESP_OK
file loaded
ssid = "iot"
password = "smarthome"
hostname = "watermeter"
;hostname is optional

;if you want to use a fixed IP you need to specify the following 3 parameters (ip, gateway, netmask) with IP4-Addresses "123.456.789.012"
;ip = "IP4-ADDRESS"
;gateway = "IP4-ADDRESS"
;netmask = "255.255.255.0"

;in some cases you want to specify the DNS server as well (especially, if it is not identical to the gateway - this is optional for a fixed IP
;dns = "IP4-ADDRESS"
WLan: iot, smarthome
Hostename: watermeter
Fixed IP: , Gateway , Netmask , DNS 
Connect to WLAN with dyn. IP
I (5176) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (5176) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (5316) phy: phy_version: 4180, cb3948e, Sep 12 2019, 16:39:13, 0, 0
I (5316) gpio: GPIO[33]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
I (6666) esp_netif_handlers: sta ip: 10.4.30.97, mask: 255.255.255.0, gw: 10.4.30.1
I (6666) gpio: GPIO[33]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 
IPv4 :  10.4.30.97
HostName :  watermeter

Netparameter: IP: 10.4.30.97 - GW: 10.4.30.1 - NetMask 255.255.255.0
Autoflow: sleep for : 200ms
I (8686) sntp: Time is not set yet. Connecting to WiFi and getting time over NTP.
I (8686) sntp: Initializing SNTP
I (8686) sntp: Waiting for system time to be set... (1/10)
TimeZone set to CET-1CEST,M3.5.0,M10.5.0/3
Logfile opened: /sdcard/log/message/log_2021-04-22.txt
I (10696) sntp: The current date/time in Berlin is: Thu Apr 22 08:55:56 2021
I (10696) sntp: The current date/time in Berlin is: 2021-04-22_08:55
timeist 20210422-085556
Logfile opened: /sdcard/log/message/log_2021-04-22.txt
Logfile opened: /sdcard/log/message/log_2021-04-22.txt
Logfile opened: /sdcard/log/message/log_2021-04-22.txt
time 20210422-085556
Autoflow: sleep for : 200ms
I (12736) server-main: Starting server on port: '80'
I (12736) server-main: Registering URI handlers
I (12736) server_tflite: server_part_camera - Registering URI handlers
I (12736) server_ota: server_ota - Registering URI handlers
I (12746) server_GPIO: server_GPIO - Registering URI handlers
I (12756) gpio: GPIO[12]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (12766) gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
[MakeImage]
Start ReadParameter
;LogImageLocation = /log/source
;LogfileRetentionInDays = 15
WaitBeforeTakingPicture = 5
ImageQuality = 5
ImageSize = VGA
;Brightness = -2
FixedExposure = false

[Alignment]
Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC      : 0x400dc53c  PS      : 0x00060730  A0      : 0x801a10ef  A1      : 0x3ffef9a0  
A2      : 0x3ffb5234  A3      : 0x00000005  A4      : 0x00000008  A5      : 0x00000000  
A6      : 0x3ffefc90  A7      : 0x3ffef840  A8      : 0x800dc53a  A9      : 0x3ffef980  
A10     : 0x00000000  A11     : 0xffffff9c  A12     : 0x0000000b  A13     : 0x3ffefb76  
A14     : 0x0000005d  A15     : 0x656d6e67  SAR     : 0x00000010  EXCCAUSE: 0x0000001c  
EXCVADDR: 0x0000005c  LBEG    : 0x4008b6ac  LEND    : 0x4008b6c8  LCOUNT  : 0xffffffff  

ELF file SHA256: 2bf5916d49a6bf33

Backtrace: 0x400dc539:0x3ffef9a0 0x401a10ec:0x3ffef9c0 0x4019d801:0x3ffefc10 0x4010ea24:0x3fff00c0 0x401130cb:0x3fff0110 0x4008fd59:0x3fff02d0

Rebooting...
jomjol commented 3 years ago

Hi, du hast ein Problem mit der Kamera - sieht man ca. in der Mitte: ''�[0;31mE (4196) camera: Detected camera not supported.�[0m''

Es wird in der Firmware nur die OV2640 unterstützt. Falls du diese hast, mal die Anschlüsse prüfen.

AlexanderSch90 commented 3 years ago

Aua aua... mein Fehler... Problem gelöst. Vielen Dank!