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.75k stars 618 forks source link

Crash when prevalue.ini or align.txt are missing #3038

Closed morty432 closed 1 month ago

morty432 commented 5 months ago

The Problem

After some hours or some days, the system stocks and new values are not longer reported. I had used 15.6.0 with this problem. After update to 15.7.0 the same problem happens with the same log.

After an power-reset the systems works for a short time and it ends with the shown logfile.

I am using a 32GB SDcard. (I dont find a smaler one)

Version

15.7.0

Logfile

[0d00h00m00s] 2024-04-17T16:01:36 <INF> [MAIN] =================================================
[0d00h00m00s] 2024-04-17T16:01:36 <INF> [MAIN] ==================== Start ======================
[0d00h00m00s] 2024-04-17T16:01:36 <INF> [MAIN] =================================================
[0d00h00m00s] 2024-04-17T16:01:36 <INF> [MAIN] PSRAM size: 8388608 byte (8MB / 64MBit)
[0d00h00m00s] 2024-04-17T16:01:36 <INF> [MAIN] Total heap: 4380199 byte
[0d00h00m04s] 2024-04-17T16:01:40 <INF> [MAIN] Camera info: PID: 0x26, VER: 0x42, MIDL: 0x7f, MIDH: 0xa2
[0d00h00m04s] 2024-04-17T16:01:40 <INF> [SDCARD] Basic R/W check started...
[0d00h00m04s] 2024-04-17T16:01:40 <INF> [SDCARD] Basic R/W check successful
[0d00h00m04s] 2024-04-17T16:01:40 <INF> [SNTP] TimeServer: 192.168.44.1
[0d00h00m04s] 2024-04-17T16:01:40 <INF> [SNTP] Configuring NTP Client...
[0d00h00m04s] 2024-04-17T18:01:40 <INF> [SNTP] Time zone set to CET-1CEST,M3.5.0,M10.5.0/3
[0d00h00m04s] 2024-04-17T18:01:40 <INF> [SNTP] time zone: +0200 Delta to UTC: 7200 seconds
[0d00h00m04s] 2024-04-17T18:01:40 <INF> [SNTP] Time is already set: 2024-04-17 18:01:40
[0d00h00m04s] 2024-04-17T18:01:40 <INF> [MAIN] CPU frequency: 160 MHz
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [SDCARD] Folder/file presence check started...
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [SDCARD] Folder/file presence check successful
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [MAIN] Tag: 'v15.7.0', Release: v15.7.0 (Commit: 0d0b018+), Date/Time: 2024-02-17 00:15, Web UI: Release: v15.7.0 (Commit: 0d0b018+)
**### [0d00h00m05s] 2024-04-17T18:01:41 <WRN> [MAIN] Reset reason: Exception/panic
### [0d00h00m05s] 2024-04-17T18:01:41 <WRN> [MAIN] Device was rebooted due to a software exception! Log level is set ### to DEBUG until the next reboot. Flow init is delayed by 5 minutes to check the logs or do an OTA update
### [0d00h00m05s] 2024-04-17T18:01:41 <WRN> [MAIN] Keep device running until crash occurs again and check logs after device is up again**
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [LOGFILE] Set log level to DEBUG
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [WLANINI] SSID: M6099b
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [WLANINI] Password: XXXXXXXX
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [WLANINI] IP-Address: 192.168.44.66
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [WLANINI] Gateway: 162.168.44.1
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [WLANINI] Netmask: 255.255.255.0
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [WLANINI] RSSIThreshold: -75
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [MAIN] WLAN config loaded, init WIFI...
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [WIFI] Manual interface config -> IP: 192.168.44.66, Gateway: 162.168.44.1, Netmask: 255.255.255.0
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [WIFI] No DNS server, use gateway
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [WIFI] Set hostname to: watermeter
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [WIFI] Init successful
[0d00h00m07s] 2024-04-17T18:01:43 <DBG> [SNTP] Waiting for system time to be set... 1/10
[0d00h00m07s] 2024-04-17T18:01:43 <INF> [WIFI] Connected to: M6099b, RSSI: -54
[0d00h00m07s] 2024-04-17T18:01:43 <INF> [WIFI] Assigned IP: 192.168.44.66
[0d00h00m09s] 2024-04-17T18:01:45 <DBG> [SNTP] Waiting for system time to be set... 2/10
[0d00h00m10s] 2024-04-17T18:01:46 <INF> [SNTP] Time is synced with NTP Server 192.168.44.1: 2024-04-17 18:01:46
[0d00h00m11s] 2024-04-17T18:01:47 <DBG> [SNTP] Waiting for system time successfull with 2/10
[0d00h00m11s] 2024-04-17T18:01:47 <INF> [MAIN] Device info: CPU cores: 2, Chip revision: 100
[0d00h00m11s] 2024-04-17T18:01:47 <INF> [MAIN] SD card info: Name: SL32G, Capacity: 30436MB, Free: 30394MB
[0d00h00m13s] 2024-04-17T18:01:49 <INF> [MAIN] Initialization completed successfully
[0d00h05m13s] 2024-04-17T18:06:49 <DBG> [PSRAM] Allocated 921600 bytes in PSRAM for 'C IMG BASIS->CImageBasis (rawImage)'
[0d00h05m15s] 2024-04-17T18:06:51 <DBG> [PSRAM] Allocated 128004 bytes in PSRAM for 'ALIGN->AlgROI'
[0d00h05m15s] 2024-04-17T18:06:51 <DBG> [PSRAM] Allocating Tensor Arena (819200 bytes, use shared memory in PSRAM)...
[0d00h05m15s] 2024-04-17T18:06:51 <DBG> [TFLITE] CTfLiteClass::LoadModel
[0d00h05m15s] 2024-04-17T18:06:51 <DBG> [TFLITE] CTfLiteClass::ReadFileToModel: /sdcard/config/dig-cont_0620_s3_q.tflite
[0d00h05m15s] 2024-04-17T18:06:51 <DBG> [TFLITE] Loading Model /sdcard/config/dig-cont_0620_s3_q.tflite /size: 315504 bytes...
[0d00h05m15s] 2024-04-17T18:06:51 <DBG> [PSRAM] Allocating Model memory (1363148 bytes, use shared memory in PSRAM)...
[0d00h05m15s] 2024-04-17T18:06:51 <DBG> [TFLITE] CTfLiteClass::MakeAllocate
[0d00h00m00s] 2024-04-17T16:06:53 <INF> [MAIN] =================================================
[0d00h00m00s] 2024-04-17T16:06:53 <INF> [MAIN] ==================== Start ======================
[0d00h00m00s] 2024-04-17T16:06:53 <INF> [MAIN] =================================================
[0d00h00m00s] 2024-04-17T16:06:53 <INF> [MAIN] PSRAM size: 8388608 byte (8MB / 64MBit)
[0d00h00m00s] 2024-04-17T16:06:53 <INF> [MAIN] Total heap: 4380199 byte
[0d00h00m04s] 2024-04-17T16:06:57 <INF> [MAIN] Camera info: PID: 0x26, VER: 0x42, MIDL: 0x7f, MIDH: 0xa2
[0d00h00m04s] 2024-04-17T16:06:57 <INF> [SDCARD] Basic R/W check started...
[0d00h00m04s] 2024-04-17T16:06:57 <INF> [SDCARD] Basic R/W check successful
[0d00h00m04s] 2024-04-17T16:06:58 <INF> [SNTP] TimeServer: 192.168.44.1
[0d00h00m04s] 2024-04-17T16:06:58 <INF> [SNTP] Configuring NTP Client...
[0d00h00m04s] 2024-04-17T18:06:58 <INF> [SNTP] Time zone set to CET-1CEST,M3.5.0,M10.5.0/3
[0d00h00m04s] 2024-04-17T18:06:58 <INF> [SNTP] time zone: +0200 Delta to UTC: 7200 seconds
[0d00h00m04s] 2024-04-17T18:06:58 <INF> [SNTP] Time is already set: 2024-04-17 18:06:58
[0d00h00m04s] 2024-04-17T18:06:58 <INF> [MAIN] CPU frequency: 160 MHz
[0d00h00m05s] 2024-04-17T18:06:58 <INF> [SDCARD] Folder/file presence check started...
[0d00h00m05s] 2024-04-17T18:06:58 <INF> [SDCARD] Folder/file presence check successful
[0d00h00m05s] 2024-04-17T18:06:58 <INF> [MAIN] Tag: 'v15.7.0', Release: v15.7.0 (Commit: 0d0b018+), Date/Time: 2024-02-17 00:15, Web UI: Release: v15.7.0 (Commit: 0d0b018+)
### **[0d00h00m05s] 2024-04-17T18:06:58 <WRN> [MAIN] Reset reason: Exception/panic
### [0d00h00m05s] 2024-04-17T18:06:58 <WRN> [MAIN] Device was rebooted due to a software exception! Log level is set to DEBUG until the next reboot. Flow init is delayed by 5 minutes to check the logs or do an OTA update
### [0d00h00m05s] 2024-04-17T18:06:58 <WRN> [MAIN] Keep device running until crash occurs again and check logs after device is up again**
[0d00h00m05s] 2024-04-17T18:06:58 <INF> [LOGFILE] Set log level to DEBUG
[0d00h00m05s] 2024-04-17T18:06:58 <INF> [WLANINI] SSID: M6099b
[0d00h00m05s] 2024-04-17T18:06:58 <INF> [WLANINI] Password: XXXXXXXX
[0d00h00m05s] 2024-04-17T18:06:58 <INF> [WLANINI] IP-Address: 192.168.44.66
[0d00h00m05s] 2024-04-17T18:06:58 <INF> [WLANINI] Gateway: 162.168.44.1
[0d00h00m05s] 2024-04-17T18:06:58 <INF> [WLANINI] Netmask: 255.255.255.0
[0d00h00m05s] 2024-04-17T18:06:58 <INF> [WLANINI] RSSIThreshold: -75
[0d00h00m05s] 2024-04-17T18:06:58 <INF> [MAIN] WLAN config loaded, init WIFI...
[0d00h00m05s] 2024-04-17T18:06:58 <INF> [WIFI] Manual interface config -> IP: 192.168.44.66, Gateway: 162.168.44.1, Netmask: 255.255.255.0
[0d00h00m05s] 2024-04-17T18:06:58 <INF> [WIFI] No DNS server, use gateway
[0d00h00m05s] 2024-04-17T18:06:58 <INF> [WIFI] Set hostname to: watermeter
[0d00h00m05s] 2024-04-17T18:06:59 <INF> [WIFI] Init successful
[0d00h00m07s] 2024-04-17T18:07:01 <DBG> [SNTP] Waiting for system time to be set... 1/10
[0d00h00m08s] 2024-04-17T18:07:01 <INF> [WIFI] Connected to: M6099b, RSSI: -55
[0d00h00m08s] 2024-04-17T18:07:01 <INF> [WIFI] Assigned IP: 192.168.44.66
[0d00h00m09s] 2024-04-17T18:07:02 <INF> [SNTP] Time is synced with NTP Server 192.168.44.1: 2024-04-17 18:07:02
[0d00h00m09s] 2024-04-17T18:07:02 <DBG> [SNTP] Waiting for system time successfull with 1/10
[0d00h00m09s] 2024-04-17T18:07:02 <INF> [MAIN] Device info: CPU cores: 2, Chip revision: 100
[0d00h00m09s] 2024-04-17T18:07:03 <INF> [MAIN] SD card info: Name: SL32G, Capacity: 30436MB, Free: 30394MB
[0d00h00m11s] 2024-04-17T18:07:05 <INF> [MAIN] Initialization completed successfully
[0d00h05m11s] 2024-04-17T18:12:05 <DBG> [PSRAM] Allocated 921600 bytes in PSRAM for 'C IMG BASIS->CImageBasis (rawImage)'
[0d00h05m13s] 2024-04-17T18:12:06 <DBG> [PSRAM] Allocated 128004 bytes in PSRAM for 'ALIGN->AlgROI'
[0d00h05m13s] 2024-04-17T18:12:06 <DBG> [PSRAM] Allocating Tensor Arena (819200 bytes, use shared memory in PSRAM)...
[0d00h05m13s] 2024-04-17T18:12:06 <DBG> [TFLITE] CTfLiteClass::LoadModel
[0d00h05m13s] 2024-04-17T18:12:06 <DBG> [TFLITE] CTfLiteClass::ReadFileToModel: /sdcard/config/dig-cont_0620_s3_q.tflite
[0d00h05m13s] 2024-04-17T18:12:06 <DBG> [TFLITE] Loading Model /sdcard/config/dig-cont_0620_s3_q.tflite /size: 315504 bytes...
[0d00h05m13s] 2024-04-17T18:12:06 <DBG> [PSRAM] Allocating Model memory (1363148 bytes, use shared memory in PSRAM)...
[0d00h05m13s] 2024-04-17T18:12:06 <DBG> [TFLITE] CTfLiteClass::MakeAllocate
[0d00h00m00s] 2024-04-17T16:12:09 <INF> [MAIN] =================================================
[0d00h00m00s] 2024-04-17T16:12:09 <INF> [MAIN] ==================== Start ======================
[0d00h00m00s] 2024-04-17T16:12:09 <INF> [MAIN] =================================================

Expected Behavior

No response

Screenshots

No response

Additional Context

Build Info

Firmware version: | Release: v15.7.0 (Commit: 0d0b018+) Firmware build time: | 17.02.2024 00:15 Web interface version: | Release: v15.7.0 (Commit: 0d0b018+)

Device Info

Chip Cores: | 2 Chip Revision: | 100 Chip Features: | 50

SD Card Info

SD card manufacturer: | SanDisk (ID: 3) SD card name: | SL32G SD card size: | 30436 MB SD card sector size: | 512 byte Partition size: | 30419 MB Partition free space: | 30394 MB Partition allocation size: | 512 byte

Memory Info

Total Free (Int + Ext): | 1950727 byte Ext. RAM - Free: | 1840116 byte Ext. RAM - Largest Free Block: | 1835008 byte Ext. RAM - Min Free: | 1833716 byte Int. RAM - Free: | 110611 byte Int. RAM - Largest Free Block: | 90112 byte Int. RAM - Min Free: | 103795 byte
SybexX commented 5 months ago

I also have this problem from time to time, for me it is due to an unstable WiFi signal because the Fritzbox is about to break^^

Slider0007 commented 5 months ago

Try to use another tflite model. If not working format or replace your SD card.

In my opinion it has nothing to do with WIFI signal.

kailausberg commented 5 months ago

Try to use another tflite model. If not working format or replace your SD card.

Had the same problem after updating to latest firmware. Changing the tflite model to a newer version solves the reboots! Thanks for the tip!

simowilso commented 4 months ago

I have the same problem. It's been working for months without any issue on v 15.7.0 Updating the model had no effect. I guess I will try another SD card.

SanchYESS commented 3 months ago

I have something similar:

Log ```log [0d00h00m12s] 2024-06-30T23:14:27 [SNTP] ================================================= [0d00h00m12s] 2024-06-30T23:14:27 [SNTP] ==================== Start ====================== [0d00h00m12s] 2024-06-30T23:14:27 [SNTP] == Logs before time sync -> log_1970-01-01.txt == [0d00h00m12s] 2024-06-30T23:14:27 [SNTP] Time is synced with NTP Server pool.ntp.org: 2024-06-30 23:14:27 [0d00h00m13s] 2024-06-30T23:14:28 [MAIN] Device info: CPU cores: 2, Chip revision: 301 [0d00h00m13s] 2024-06-30T23:14:28 [MAIN] SD card info: Name: NCard, Capacity: 14910MB, Free: 14892MB [0d00h00m15s] 2024-06-30T23:14:30 [MAIN] Initialization completed successfully [0d00h00m00s] 2024-06-30T20:14:34 [MAIN] ================================================= [0d00h00m00s] 2024-06-30T20:14:34 [MAIN] ==================== Start ====================== [0d00h00m00s] 2024-06-30T20:14:34 [MAIN] ================================================= [0d00h00m00s] 2024-06-30T20:14:34 [MAIN] PSRAM size: 8388608 byte (8MB / 64MBit) [0d00h00m00s] 2024-06-30T20:14:34 [MAIN] Total heap: 4380199 byte [0d00h00m04s] 2024-06-30T20:14:38 [MAIN] Camera info: PID: 0x26, VER: 0x42, MIDL: 0x7f, MIDH: 0xa2 [0d00h00m04s] 2024-06-30T20:14:38 [SDCARD] Basic R/W check started... [0d00h00m04s] 2024-06-30T20:14:39 [SDCARD] Basic R/W check successful [0d00h00m04s] 2024-06-30T20:14:39 [SNTP] TimeServer not defined, using default: pool.ntp.org [0d00h00m04s] 2024-06-30T20:14:39 [SNTP] Configuring NTP Client... [0d00h00m04s] 2024-06-30T23:14:39 [SNTP] Time zone set to MSK-3 [0d00h00m04s] 2024-06-30T23:14:39 [SNTP] time zone: +0300 Delta to UTC: 10800 seconds [0d00h00m04s] 2024-06-30T23:14:39 [SNTP] Time is already set: 2024-06-30 23:14:39 [0d00h00m04s] 2024-06-30T23:14:39 [MAIN] CPU frequency: 160 MHz [0d00h00m05s] 2024-06-30T23:14:39 [SDCARD] Folder/file presence check started... [0d00h00m05s] 2024-06-30T23:14:39 [SDCARD] Folder/file presence check successful [0d00h00m05s] 2024-06-30T23:14:39 [MAIN] Tag: 'v15.7.0', Release: v15.7.0 (Commit: 0d0b018+), Date/Time: 2024-02-17 00:15, Web UI: Release: v15.7.0 (Commit: 0d0b018+) [0d00h00m05s] 2024-06-30T23:14:39 [MAIN] Reset reason: Exception/panic [0d00h00m05s] 2024-06-30T23:14:39 [MAIN] Device was rebooted due to a software exception! Log level is set to DEBUG until the next reboot. Flow init is delayed by 5 minutes to check the logs or do an OTA update [0d00h00m05s] 2024-06-30T23:14:39 [MAIN] Keep device running until crash occurs again and check logs after device is up again [0d00h00m05s] 2024-06-30T23:14:39 [LOGFILE] Set log level to DEBUG [0d00h00m05s] 2024-06-30T23:14:39 [WLANINI] SSID: (MyWiFi) [0d00h00m05s] 2024-06-30T23:14:39 [WLANINI] Password: XXXXXXXX [0d00h00m05s] 2024-06-30T23:14:39 [WLANINI] Hostname: HotWater [0d00h00m05s] 2024-06-30T23:14:40 [WLANINI] IP-Address: 192.168.0.20 [0d00h00m05s] 2024-06-30T23:14:40 [WLANINI] Gateway: 192.168.0.1 [0d00h00m05s] 2024-06-30T23:14:40 [WLANINI] Netmask: 255.255.255.0 [0d00h00m05s] 2024-06-30T23:14:40 [WLANINI] RSSIThreshold: 0 [0d00h00m05s] 2024-06-30T23:14:40 [MAIN] WLAN config loaded, init WIFI... [0d00h00m05s] 2024-06-30T23:14:40 [WIFI] Manual interface config -> IP: 192.168.0.20, Gateway: 192.168.0.1, Netmask: 255.255.255.0 [0d00h00m05s] 2024-06-30T23:14:40 [WIFI] No DNS server, use gateway [0d00h00m05s] 2024-06-30T23:14:40 [WIFI] Set hostname to: HotWater [0d00h00m05s] 2024-06-30T23:14:40 [WIFI] Init successful [0d00h00m07s] 2024-06-30T23:14:42 [SNTP] Waiting for system time to be set... 1/10 [0d00h00m08s] 2024-06-30T23:14:42 [WIFI] Connected to: (MyWiFi), RSSI: -46 [0d00h00m08s] 2024-06-30T23:14:42 [WIFI] Assigned IP: 192.168.0.20 [0d00h00m09s] 2024-06-30T23:14:44 [SNTP] Waiting for system time to be set... 2/10 [0d00h00m10s] 2024-06-30T23:14:45 [SNTP] Time is synced with NTP Server pool.ntp.org: 2024-06-30 23:14:45 [0d00h00m11s] 2024-06-30T23:14:46 [SNTP] Waiting for system time successfull with 2/10 [0d00h00m11s] 2024-06-30T23:14:46 [MAIN] Device info: CPU cores: 2, Chip revision: 301 [0d00h00m11s] 2024-06-30T23:14:46 [MAIN] SD card info: Name: NCard, Capacity: 14910MB, Free: 14892MB [0d00h00m13s] 2024-06-30T23:14:48 [MAIN] Initialization completed successfully [0d00h01m02s] 2024-06-30T23:15:36 [MAIN SERVER] info_get_handler [0d00h01m02s] 2024-06-30T23:15:37 [OTA FILE] download_get_handler [0d00h01m02s] 2024-06-30T23:15:37 [MAIN SERVER] info_get_handler [0d00h01m02s] 2024-06-30T23:15:37 [MAIN SERVER] info_get_handler [0d00h01m02s] 2024-06-30T23:15:37 [OTA FILE] download_get_handler [0d00h01m02s] 2024-06-30T23:15:37 [MAIN SERVER] info_get_handler [0d00h01m07s] 2024-06-30T23:15:41 [OTA FILE] log_get_last_part_handler [0d00h02m29s] 2024-06-30T23:17:03 [OTA FILE] download_get_handler [0d00h02m29s] 2024-06-30T23:17:04 [MAIN SERVER] info_get_handler [0d00h05m14s] 2024-06-30T23:19:48 [PSRAM] Allocated 921600 bytes in PSRAM for 'C IMG BASIS->CImageBasis (rawImage)' [0d00h05m15s] 2024-06-30T23:19:50 [PSRAM] Allocated 128004 bytes in PSRAM for 'ALIGN->AlgROI' [0d00h05m15s] 2024-06-30T23:19:50 [PSRAM] Allocating Tensor Arena (819200 bytes, use shared memory in PSRAM)... [0d00h05m15s] 2024-06-30T23:19:50 [TFLITE] CTfLiteClass::LoadModel [0d00h05m15s] 2024-06-30T23:19:50 [TFLITE] CTfLiteClass::ReadFileToModel: /sdcard/config/dig-class100-0168_s2_q.tflite [0d00h05m15s] 2024-06-30T23:19:50 [TFLITE] Loading Model /sdcard/config/dig-class100-0168_s2_q.tflite /size: 226968 bytes... [0d00h05m15s] 2024-06-30T23:19:50 [PSRAM] Allocating Model memory (1363148 bytes, use shared memory in PSRAM)... [0d00h05m16s] 2024-06-30T23:19:50 [TFLITE] CTfLiteClass::MakeAllocate [0d00h05m16s] 2024-06-30T23:19:50 [PSRAM] Shared memory used for Tensor Arena and model (PSRAM, part of shared memory) is free again [0d00h05m16s] 2024-06-30T23:19:50 [PSRAM] Allocated 1920 bytes in PSRAM for 'C IMG BASIS->CImageBasis (ROI dig2)' [0d00h05m16s] 2024-06-30T23:19:50 [PSRAM] Allocated 12936 bytes in PSRAM for 'C IMG BASIS->CImageBasis (ROI dig2 original)' [0d00h05m16s] 2024-06-30T23:19:50 [PSRAM] Allocated 1920 bytes in PSRAM for 'C IMG BASIS->CImageBasis (ROI dig3)' [0d00h05m16s] 2024-06-30T23:19:50 [PSRAM] Allocated 12936 bytes in PSRAM for 'C IMG BASIS->CImageBasis (ROI dig3 original)' [0d00h05m16s] 2024-06-30T23:19:50 [PSRAM] Allocated 1920 bytes in PSRAM for 'C IMG BASIS->CImageBasis (ROI dig4)' [0d00h05m16s] 2024-06-30T23:19:50 [PSRAM] Allocated 12936 bytes in PSRAM for 'C IMG BASIS->CImageBasis (ROI dig4 original)' [0d00h05m16s] 2024-06-30T23:19:50 [PSRAM] Allocated 1920 bytes in PSRAM for 'C IMG BASIS->CImageBasis (ROI dig5)' [0d00h05m16s] 2024-06-30T23:19:50 [PSRAM] Allocated 12936 bytes in PSRAM for 'C IMG BASIS->CImageBasis (ROI dig5 original)' [0d00h05m16s] 2024-06-30T23:19:50 [PSRAM] Allocated 1920 bytes in PSRAM for 'C IMG BASIS->CImageBasis (ROI dig6)' [0d00h05m16s] 2024-06-30T23:19:50 [PSRAM] Allocated 12936 bytes in PSRAM for 'C IMG BASIS->CImageBasis (ROI dig6 original)' [0d00h05m16s] 2024-06-30T23:19:50 [PSRAM] Allocated 1920 bytes in PSRAM for 'C IMG BASIS->CImageBasis (ROI dig7)' [0d00h05m16s] 2024-06-30T23:19:50 [PSRAM] Allocated 12936 bytes in PSRAM for 'C IMG BASIS->CImageBasis (ROI dig7 original)' [0d00h05m16s] 2024-06-30T23:19:50 [PSRAM] Allocated 1920 bytes in PSRAM for 'C IMG BASIS->CImageBasis (ROI dig8)' [0d00h05m16s] 2024-06-30T23:19:51 [PSRAM] Allocated 12936 bytes in PSRAM for 'C IMG BASIS->CImageBasis (ROI dig8 original)' [0d00h00m00s] 2024-06-30T20:19:48 [MAIN] ================================================= [0d00h00m00s] 2024-06-30T20:19:48 [MAIN] ==================== Start ====================== [0d00h00m00s] 2024-06-30T20:19:48 [MAIN] ================================================= [0d00h00m00s] 2024-06-30T20:19:48 [MAIN] PSRAM size: 8388608 byte (8MB / 64MBit) [0d00h00m00s] 2024-06-30T20:19:48 [MAIN] Total heap: 4380199 byte [0d00h00m04s] 2024-06-30T20:19:53 [MAIN] Camera info: PID: 0x26, VER: 0x42, MIDL: 0x7f, MIDH: 0xa2 [0d00h00m04s] 2024-06-30T20:19:53 [SDCARD] Basic R/W check started... [0d00h00m04s] 2024-06-30T20:19:53 [SDCARD] Basic R/W check successful [0d00h00m04s] 2024-06-30T20:19:53 [SNTP] TimeServer not defined, using default: pool.ntp.org [0d00h00m04s] 2024-06-30T20:19:53 [SNTP] Configuring NTP Client... [0d00h00m04s] 2024-06-30T23:19:53 [SNTP] Time zone set to MSK-3 [0d00h00m04s] 2024-06-30T23:19:53 [SNTP] time zone: +0300 Delta to UTC: 10800 seconds [0d00h00m04s] 2024-06-30T23:19:53 [SNTP] Time is already set: 2024-06-30 23:19:53 [0d00h00m04s] 2024-06-30T23:19:53 [MAIN] CPU frequency: 160 MHz [0d00h00m05s] 2024-06-30T23:19:53 [SDCARD] Folder/file presence check started... [0d00h00m05s] 2024-06-30T23:19:53 [SDCARD] Folder/file presence check successful [0d00h00m05s] 2024-06-30T23:19:53 [MAIN] Tag: 'v15.7.0', Release: v15.7.0 (Commit: 0d0b018+), Date/Time: 2024-02-17 00:15, Web UI: Release: v15.7.0 (Commit: 0d0b018+) [0d00h00m05s] 2024-06-30T23:19:54 [MAIN] Reset reason: Exception/panic [0d00h00m05s] 2024-06-30T23:19:54 [MAIN] Device was rebooted due to a software exception! Log level is set to DEBUG until the next reboot. Flow init is delayed by 5 minutes to check the logs or do an OTA update [0d00h00m05s] 2024-06-30T23:19:54 [MAIN] Keep device running until crash occurs again and check logs after device is up again [0d00h00m05s] 2024-06-30T23:19:54 [LOGFILE] Set log level to DEBUG [0d00h00m05s] 2024-06-30T23:19:54 [WLANINI] SSID: (MyWiFi) [0d00h00m05s] 2024-06-30T23:19:54 [WLANINI] Password: XXXXXXXX [0d00h00m05s] 2024-06-30T23:19:54 [WLANINI] Hostname: HotWater [0d00h00m05s] 2024-06-30T23:19:54 [WLANINI] IP-Address: 192.168.0.20 [0d00h00m05s] 2024-06-30T23:19:54 [WLANINI] Gateway: 192.168.0.1 [0d00h00m05s] 2024-06-30T23:19:54 [WLANINI] Netmask: 255.255.255.0 [0d00h00m05s] 2024-06-30T23:19:54 [WLANINI] RSSIThreshold: 0 [0d00h00m05s] 2024-06-30T23:19:54 [MAIN] WLAN config loaded, init WIFI... [0d00h00m05s] 2024-06-30T23:19:54 [WIFI] Manual interface config -> IP: 192.168.0.20, Gateway: 192.168.0.1, Netmask: 255.255.255.0 [0d00h00m05s] 2024-06-30T23:19:54 [WIFI] No DNS server, use gateway [0d00h00m05s] 2024-06-30T23:19:54 [WIFI] Set hostname to: HotWater [0d00h00m05s] 2024-06-30T23:19:54 [WIFI] Init successful [0d00h00m07s] 2024-06-30T23:19:56 [SNTP] Waiting for system time to be set... 1/10 [0d00h00m08s] 2024-06-30T23:19:56 [WIFI] Connected to: (MyWiFi), RSSI: -49 [0d00h00m08s] 2024-06-30T23:19:56 [WIFI] Assigned IP: 192.168.0.20 [0d00h00m08s] 2024-06-30T23:20:01 [SNTP] Time is synced with NTP Server pool.ntp.org: 2024-06-30 23:20:01 [0d00h00m09s] 2024-06-30T23:20:02 [SNTP] Waiting for system time successfull with 1/10 [0d00h00m09s] 2024-06-30T23:20:02 [MAIN] Device info: CPU cores: 2, Chip revision: 301 [0d00h00m09s] 2024-06-30T23:20:02 [MAIN] SD card info: Name: NCard, Capacity: 14910MB, Free: 14892MB [0d00h00m11s] 2024-06-30T23:20:04 [MAIN] Initialization completed successfully [0d00h00m12s] 2024-06-30T23:20:04 [OTA FILE] log_get_last_part_handler [0d00h00m57s] 2024-06-30T23:20:49 [OTA FILE] download_get_handler [0d00h01m00s] 2024-06-30T23:20:53 [OTA FILE] download_get_handler [0d00h01m03s] 2024-06-30T23:20:56 [OTA FILE] download_get_handler [0d00h01m11s] 2024-06-30T23:21:03 [OTA FILE] download_get_handler [0d00h01m37s] 2024-06-30T23:21:30 [OTA FILE] download_get_handler [0d00h01m38s] 2024-06-30T23:21:31 [OTA FILE] download_get_handler [0d00h01m40s] 2024-06-30T23:21:33 [OTA FILE] download_get_handler [0d00h01m46s] 2024-06-30T23:21:39 [OTA FILE] download_get_handler ```

Earlier it was working for months, then started to reboot sometimes, after reflashing it worked again (which led me to believe that it is an issue with ESP32 flash). Then it stuck in reboot loop and nothing helped. Now I flashed a new ESP32 and it loops again. Two things stayed the same - camera and sd card. Camera seems to work ( [MAIN] Camera info: PID: 0x26, VER: 0x42, MIDL: 0x7f, MIDH: 0xa2 ), so it seems that it is an sd card after all.

SanchYESS commented 3 months ago

So I got a new card, copied the contents of the old card and it stuck in loop again. Then I compared the contents with ones on my second device (which works) and noticed the lacking of prevalue.ini and align.txt files. I copied those files to looping device's card and it started to work. So if you are stuck with this issue please check your prevalue.ini and align.txt files and if there are none try to create ones. Contents of my files for reference:

prevalue.ini ``` text main 2024-07-03T00:47:46+0300 26779.5 ```
align.txt ``` text 2023-08-11T13:43:48 133 120 1.975217 1073648208 1073626420 1.986097 432 372 1.975217 1073648208 1073626420 1.986097 ```

I guess that there is unhandled exception while trying to open those files. Or I may be completely wrong xD

wg25 commented 1 month ago

Yes, I can confirm. The prevalue.ini was empty in my case. I uploaded a prefilled prevalue.ini and it worked again. Thanks!!!

SybexX commented 1 month ago

@wg25 try the current rolling, there is a fix in it that should solve the problem with an empty or missing prevalue.ini https://github.com/jomjol/AI-on-the-edge-device/actions/runs/10538088488

wg25 commented 1 month ago

It was the first time that I had this issue. Before that the 15.7.0 ran more than ~40 days in a row. No reboots, no issues, very seldom wrong values. But I can give it a try. Something to consider before uploading?

SybexX commented 1 month ago

We're looking to make a new release based on rolling soon, so it would be really nice if you tested it out too. There shouldn't actually be any problems with the update, just update via OTA.

caco3 commented 1 month ago

@SybexX It sounds as if we could close this issue, right?

SybexX commented 1 month ago

We have the fix for this in the rolling table. https://github.com/jomjol/AI-on-the-edge-device/commit/17fe87b34979c9fcde94ee3ad614b19c914b7b7e