Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flash not operational during reference image creation #3329

Closed
SGXander opened this issue Oct 9, 2024 · 29 comments
Closed

Flash not operational during reference image creation #3329

SGXander opened this issue Oct 9, 2024 · 29 comments

Comments

@SGXander
Copy link

SGXander commented Oct 9, 2024

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

@SGXander SGXander added the bug Something isn't working label Oct 9, 2024
@mesistostefre
Copy link

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

@caco3
Copy link
Collaborator

caco3 commented Oct 17, 2024

Might be the same issue as on #3338

@gotaede
Copy link

gotaede commented Oct 28, 2024

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

@Kopetan4egX
Copy link

Same problem. Can't set reference image properly

@Kopetan4egX
Copy link

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
Copy link
Collaborator

SybexX commented Nov 13, 2024

@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
Copy link
Author

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
Copy link
Collaborator

SybexX commented Nov 13, 2024

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
Copy link
Author

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
Copy link
Collaborator

SybexX commented Nov 13, 2024

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

@SGXander
Copy link
Author

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
Copy link

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
Copy link
Collaborator

SybexX commented Nov 15, 2024

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

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
Copy link

jmealo commented Nov 15, 2024

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
Copy link
Collaborator

SybexX commented Nov 15, 2024

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
Copy link

jmealo commented Nov 15, 2024

@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
Copy link
Collaborator

SybexX commented Nov 15, 2024

@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).

  • The webinstaller installs firmware version 15.7.0
  • Firmware 15.7.0 + html files from 16.0.0 = The LED will not work in step 2.
  • Firmware 16.0.0 + html files from 15.7.0 = The LED should work in step 2.

Unbenannt

@Kopetan4egX
Copy link

@SybexX i downloaded AI-on-the-edge-device__manual-setup__v15.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.

@Jutika-ducky
Copy link

For everybody who encounter the same problem.

Quick fix without reassemble the board:

@pierafal
Copy link

pierafal commented Jan 3, 2025

might be related to: #3471

@PsYcHLT
Copy link

PsYcHLT commented Jan 19, 2025

Same here, following. Update to RC5 brings errors about camera or just stucks on delayed start.

@SybexX
Copy link
Collaborator

SybexX commented Jan 19, 2025

@PsYcHLT Did you only select the firmware.bin or the entire AI-on-the-edge-device__update__v16.0.0-RC5.zip when updating?
You can try the current main if you want: https://github.com/jomjol/AI-on-the-edge-device/actions/runs/12837723310/artifacts/2449558188
Don't forget to press CTRL+F5 after the update.

@PsYcHLT
Copy link

PsYcHLT commented Jan 19, 2025

-edge-device__update

I used full update zip file over OTA functionallity.
And this version should fix that?

So basically I just started using this app, and I love the idea and how it works so far! I have two ESP32 CAM devices, both were with 16.4RC version and both had same issue. One upgraded to 16.5RC - was not working properly, so downgraded to 15.7, everything seemed to be fine, but lately just wanted to give a one more try for 16.5 and now it don't even connect to the network :) Just to mention, always were using OTA functionality, I think I got to the point when I will have to dissasembly everything and flash it again to 15.7, or maybe version you have sent.

@SybexX
Copy link
Collaborator

SybexX commented Jan 19, 2025

@PsYcHLT A lot of things have been fixed in the main version.
If it doesn't connect, it could be that your SD is about to die, or something went wrong while copying the files.

@PsYcHLT
Copy link

PsYcHLT commented Jan 19, 2025

@SybexX I'm getting this page in my browser, I think I'll also scan sd card for bads as I used some old scrap cards from back when 32GB sd card was really expensive 😆

Image

@mesistostefre
Copy link

Same here. 15.7 works just fine for a long time. Tried the AI-on-the-edge-device__update__v16.0.0-RC5.zip to get the "measurement" state for raw in home assistant. It installed fine and worked first.
But once I adjusted the digits by 2 pixels, I got no flash but:
AI on the Edge Device
We have one or more critical errors:
0x00000004
Hard to believe, the CAM is broken coincidently right after I installed the RC5...

@mesistostefre
Copy link

Ah ... just noticed ... the file system on the SDCard is bad. I checked it and the card itself is physically fine. It is the file system. So, maybe worth to check the source code for things like: file does not get closed properly once data has been written. Or a reboot gets executed while still writing a file, foo, bla...

@PsYcHLT
Copy link

PsYcHLT commented Jan 20, 2025

@mesistostefre what filesystem you are using? NTFS? So it was OK for older versions but for newer it must be FAT32?

@mesistostefre
Copy link

FAT ... and now the whole thing (16 RC5) works for me.

@caco3 caco3 removed the bug Something isn't working label Jan 20, 2025
Repository owner locked and limited conversation to collaborators Jan 20, 2025
@caco3 caco3 converted this issue into discussion #3508 Jan 20, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests