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/
6.02k stars 651 forks source link

Flash not operational during reference image creation #3329

Open SGXander opened 1 month ago

SGXander commented 1 month ago

The Problem

after alignment step 1, step 2 appears to disable the flash and use the rear LED on the board. This behaviour continues until the ESP is reset, where it works for alignment again but then breaks on step 2 repeatably

Version

16.0.0-RC4

Logfile

not at stage where menu available

Expected Behavior

clicking create new reference button should produce the same image as alignment

Screenshots

image

Additional Context

the ESP must be reset to restore flash functionality during alignment but the issue is repeatable

mesistostefre commented 1 month ago

Confirmed. Looks like the flash works just once and is disabled til next reset. Found no workaround. I'll roll back ...

caco3 commented 1 month ago

Might be the same issue as on https://github.com/jomjol/AI-on-the-edge-device/issues/3338

gotaede commented 2 weeks ago

I can reproduce the error with firmware v15.7.0 and webinterface 16.0.0-RC4

Kopetan4egX commented 5 days ago

Same problem. Can't set reference image properly

Kopetan4egX commented 3 days ago

I'll roll back ...

Which version was you flash working fine before? I see above my previous comment that problem was already present in previous release version 15.7.0

SybexX commented 3 days ago

@SGXander If you want you can try this firmware (16.0.0-RC4 + fix): https://github.com/SybexX/AI-on-the-edge-device/actions/runs/11874812323/artifacts/2197416682

SGXander commented 3 days ago

sorry for not updating, I rolled back to 15.7.0 too and it was ok there so I stuck with that. I also have an external flash too now and it's been fine. I'll look to update this weekend and see if the issue returns.

SybexX commented 3 days ago

There was no change in the LED implementation/Control between versions 15.4.0, 15.7.0 and 16.0.0-RC4. If you had the version 15.7.0 html files on the SD and only updated the firmware.bin to version 16.0.0, could potentially experience the problem described.

SGXander commented 3 days ago

It's the other way round for me, I started with 16.0.0-RC4 as it was the top release and then realised it was RC so rebuilt the ESP32-CAM with 15.7.0

SybexX commented 3 days ago

@SGXander Did you have Auto-Exposure Control and Auto-Exposure Control 2 ("night mode") activated in both versions?

SGXander commented 3 days ago

can't say for certain before/on 16.0.0-RC4 but on my running version 15.7.0 it looks like this (believed default as I've not touched it) image

doncorso commented 2 days ago

Hello, this sounds similar to my problem. Preview on step 2 after first installation looks fine, but when I click "Create New Reference / Change Camera Settings" there is no flash ad because of this, I have only a dark picture as SGXander showed above.

Any ideas and/or updates ?

Steve Bee

SybexX commented 1 day ago

@doncorso please try this firmware: https://github.com/SybexX/AI-on-the-edge-device/actions/runs/11875476008/artifacts/2197554503

It would also be helpful if you described the exact procedure (what did you do and what files did you use, previous version or new installation............) as there are several ways to install and update AI-on-the-edge-device.

jmealo commented 1 day ago

I have this issue on a brand new installation. I formatted the card as fat and copied over the remote_setup from the latest GitHub release.

SybexX commented 1 day ago

Is the LED really not turning on or are you just assuming it because the picture is dark? There is no firmware included in remote-setup, only in manual-setup and update

remote-setup:

remote

manual-setup:

manual

update:

update

jmealo commented 1 day ago

@SybexX: The flash turns off entirely after the preview. It never comes back on. If I power cycle it, it turns on briefly during the boot cycle, and only during the very first step. It doesn't work during the take reference image step.

SybexX commented 1 day ago

@jmealo Unfortunately, I can't tell from your statement which firmware you are using and how you flashed it onto the ESP32.

You can go through setup mode without making any changes or set "SetupMode = false" in sd-card/config/config.ini to bypass setup and check if this issue occurs generally or only in setup mode.

If you used the webinstaller and the files from remote-setup version 16.0.0-RC4, then the LED will not work in step 2 (Create New Reference).

Unbenannt

Kopetan4egX commented 1 day ago

@SybexX i downloaded AI-on-the-edge-devicemanual-setupv15.7.0.zip, extracted files from sd-card folder to SD card, configured Wi-fi settings in wlan.ini, then reinstalled firmware through the webinstaller. Works fine as i see, flash works and intensity can be controlled with slider during creating reference image. Thanks.