Closed blakadder closed 4 years ago
please set the log level to debug_more to see the logs of the cams init routine
Does it always fail?
I have a bad camera which fails in the same way. Swapped with a functional one solved it. So I ordered new cameras waiting to arrive.
It's a bug in the ESP32 webcam core code which fails to do checks resulting in this.
It's not only Tasmota that is alpha, it's espressif (the supplier of the webcam code mind you) too.
@blakadder
Hi, can you test latest dev version again? Theo have pushed a fix. Thanks
doesn't exception anymore... camera still not operational (its confirmed dead, doesn't work with esphome anymore either)
seriallog 4 output:
16:56:16 HTP: Main Menu
16:56:16 CAM: Stream init
16:56:16 CAM: Default template
16:56:16 CAM: PSRAM found
[E][camera.c:1344] esp_camera_fb_get(): Failed to get the frame on time!
16:56:21 CAM: Init failed to get the frame on time
you are using the default template. this is Ai Thinker Cam Do you have that Model ? Otherwise you must specify the camera pins of your Model in Tasmota IOPin GUI.
Its using model 2 and I have the AiThinker ESP32-CAM device
I'm also getting the same behavior but on a specific camera, which according to the seller it is also a OV2640 (described as "TTGO Camera Module OV2640").
With the OV2640 camera that came with the ESP32-CAM board, it runs well.
Similarly, I get the following log output:
18:56:21 HTP: Main Menu
18:56:21 CAM: Stream init
18:56:21 CAM: Default template
18:56:21 CAM: PSRAM found
18:56:26 CAM: Init failed to get the frame on time
18:56:26 QPC: Reset
18:56:27 HTP: Console
18:56:28 APP: Boot Count 6
(the camera that fails is the connected one)
Can it be the case that different pin assignments are needed, or different i2c addresses are being used by this particular camera?
If I run a scan, I get the error:
19:12:59 CMD: Group 0, Index 1, Command "I2CSCAN", Data ""
19:12:59 RSL: stat/tasmota_008F98/RESULT = {"Command":"Error"}
Thank you
Cheers
Btw, the original (smaller) camera works with the module "ESP32 Cam AiThinker" setting.
I tried the 3 settings, and the behavior varies between the two log outputs:
behavior 1:
19:22:37 HTP: Main Menu
19:22:37 CAM: Stream init
19:22:37 CAM: Default template
19:22:37 CAM: PSRAM found
19:22:41 CAM: Init failed to get the frame on time
19:22:42 HTP: Main Menu
19:22:43 QPC: Reset
19:22:43 HTP: Configuration
behavior 2:
19:20:48 HTP: Main Menu
19:20:48 CAM: Handle camserver
19:20:48 CAM: Create client
19:20:48 CAM: Start stream
19:20:49 HTP: Console
19:20:49 CAM: Client fail
19:20:49 CAM: Stream exit
19:20:52 WIF: Checking connection...
and also, the page shows a broken link to the stream:
Yet another observation, with the working camera, the 3 different module settings all work.
I have further attempted another test, and set with the template you provided here:
https://tasmota.github.io/docs/ESP32/#lilygo-ttgo-t-camera-ov2640_v05
and in this case I get a slightly different error:
20:23:10 CAM: Stream init
20:23:10 CAM: User template
20:23:10 CAM: PSRAM found
20:23:10 CAM: Init failed with error 0x20004
20:23:12 QPC: Reset
20:23:13 HTP: Configuration
20:23:14 HTP: Configure Module
The template data, after a readout:
20:23:30 CMD: Group 0, Index 1, Command "TEMPLATE", Data ""
20:23:30 RSL: stat/tasmota_008F98/RESULT = {"NAME":"TTGO_V05","GPIO":[1,1,1,1,5090,5088,1,1,5056,5024,5089,5091,1,1,5092,5184,0,640,608,5093,0,5152,4928,5120,0,0,0,0,4992,160,65,1,5094,0,0,5095],"FLAG":0,"BASE":2}
Same error here. I get also with the LilyGO TTGO T-Camera OV2640_V05 config same error... CAM: Init failed with error 0x20004. I have a TTGO Camera
Ok, there is a mistake in the template. GPIO35 in the docs is defined as USER...however it is not available on the TTGO Camera. I´ve changed to NONE and the cam was running.
PROBLEM DESCRIPTION
tasmota32-camera build crashes on AiThinker ESP32-CAM when requesting image over webUI
device is powered by 5V 2.7A supply
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
: no :Pweblog 4
for more debug information)Backtrace: 0x400edcf5:0x3ffb1c80 0x400ee1ce:0x3ffb1d00 0x400ee207:0x3ffb1d20 0x400ee2a5:0x3ffb1d60 0x400deb43:0x3ffb1d80 0x400f8e72:0x3ffb1da0 0x4018b595:0x3ffb1e20 0x40103c32:0x3ffb1e40 0x40103ce9:0x3ffb1e60 0x40103d6a:0x3ffb1e90 0x40103ef3:0x3ffb1ee0 0x400d99af:0x3ffb1f30 0x400e9dfc:0x3ffb1f50 0x400deb43:0x3ffb1f70 0x400ff29f:0x3ffb1f90 0x40112451:0x3ffb1fb0 0x4008f0fd:0x3ffb1fd0