arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.96k stars 4.77k forks source link

Camera OV5640 / AI Thinker Cam failed with Tasmota 13.x #19826

Closed BmdOnline closed 10 months ago

BmdOnline commented 10 months ago

PROBLEM DESCRIPTION

A clear and concise description of what the problem is.

Since Tasmota ugrade, I was unable to use my AITHINKER CAM with OV5640 camera. Rolling back to Tasmota 12.5.0 solves the problem.

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

- [x] If using rules, provide the output of this command: `Backlog Rule1; Rule2; Rule3`:
```lua
  Rules output here:
19:34:30.266 RSL: RESULT = {"Rule1":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":30,"Free":481,"Rules":"ON System#Boot DO WcInit ENDON"}}
19:34:30.489 RSL: RESULT = {"Rule2":{"State":"OFF","Once":"OFF","StopOnError":"OFF","Length":0,"Free":511,"Rules":""}}
19:34:30.739 RSL: RESULT = {"Rule3":{"State":"OFF","Once":"OFF","StopOnError":"OFF","Length":0,"Free":511,"Rules":""}}
- [x] Set `weblog` to 4 and then, when you experience your issue, provide the output of the Console log:
```lua
  Console output here:
00:00:00.002 HDW: ESP32-D0WDQ6 v1.0 (PSRAM)
00:00:00.043 UFS: FlashFS mounted with 304 kB free
00:00:00.067 CFG: Loaded from File, Count 21
00:00:00.075 QPC: Count 1
00:00:00.077 CFG: CR 403/699, Busy 0
00:00:00.079 SPI: Hardware using GPIO14(CLK), GPIO15(MOSI) and GPIO02(MISO)
00:00:00.700 BRY: GC from 3752 to 2971 bytes, objects freed 5/15 (in 1 ms) - slots from 33/61 to 20/61
00:00:00.756 CFG: No '*.autoconf' file found
00:00:00.760 BRY: GC from 4296 to 3599 bytes, objects freed 5/31 (in 1 ms) - slots from 50/76 to 32/76
00:00:00.760 BRY: Berry initialized, RAM used=3599 bytes
00:00:00.771 BRY: No 'preinit.be'
00:00:00.772 SRC: Restart
00:00:00.777 Project tasmota - Tasmota 1956 Version 13.2.0.1(webcam)-2_0_14(2023-10-23T07:41:18)
00:00:00.778 CAM: WcSetup
00:00:00.778 CAM: i2c_enabled_2: 0
00:00:00.778 CAM: Template pin config
00:00:00.779 CAM: XCLK on GPIO 0 using ledc channel 1
00:00:00.779 CAM: PSRAM found
00:00:00.814 CAM: InitErr 0x105 try 1
00:00:00.848 CAM: InitErr 0x105 try 2
00:00:00.881 CAM: InitErr 0x105 try 3
00:00:00.881 CAM: InitErr 0x105
00:00:00.923 BRY: No 'autoexec.be'
00:00:01.131 WIF: Checking connection...
00:00:01.132 WIF: Attempting connection...
00:00:01.554 WIF: Connecting to AP1 xxxxxx Channel 11 BSSId 30:46:9A:0B:9B:16 in mode 11n as tasmota-78A7A4-1956...
00:00:02.037 WIF: IPv4 10.10.10.101, mask 255.255.255.0, gateway 10.10.10.1
00:00:02.131 WIF: Checking connection...
00:00:02.132 WIF: Connected
00:00:02.387 HTP: Web server active on tasmota-78A7A4-1956 with IP address 10.10.10.101
00:00:02.681 NTP: Sync time...
00:00:02.684 WIF: DNS failed for pool.ntp.org after 2 ms
00:00:03.434 WIF: IPv6 Local fe80::7a21:84ff:fe78:a7a4
00:00:03.927 NTP: Sync time...
00:00:03.930 WIF: DNS failed for nl.pool.ntp.org after 2 ms
00:00:04.434 WIF: IPv6 Global fd46:901c:be2a::7a21:84ff:fe78:a7a4
00:00:04.927 NTP: Sync time...
00:00:04.930 WIF: DNS failed for 0.nl.pool.ntp.org after 1 ms
00:00:05.128 HTP: Main Menu
00:00:05.189 CAM: Stream init
00:00:05.191 CAM: WcSetup
00:00:05.191 CAM: i2c_enabled_2: 0
00:00:05.192 CAM: Template pin config
00:00:05.192 CAM: XCLK on GPIO 0 using ledc channel 1
00:00:05.193 CAM: PSRAM found
00:00:05.228 CAM: InitErr 0x105 try 1
00:00:05.262 CAM: InitErr 0x105 try 2
00:00:05.296 CAM: InitErr 0x105 try 3
00:00:05.297 CAM: InitErr 0x105
00:00:05.937 NTP: Sync time...
00:00:05.939 WIF: DNS resolved '10.10.10.1' (10.10.10.1) in 0 ms
00:00:06.946 NTP: No reply from 10.10.10.1
00:00:06.964 QPC: Reset
00:00:06.965 NTP: Sync time...
00:00:06.968 WIF: DNS failed for 2.pool.ntp.org after 2 ms
00:00:07.804 HTP: Consoles
00:00:07.933 NTP: Sync time...
00:00:07.935 WIF: DNS resolved 'pool.ntp.org' (129.250.35.250) in 0 ms
00:00:07.960 RTC: UTC 2023-10-23T17:37:43, DST 2023-03-26T02:00:00, STD 2023-10-29T03:00:00
19:37:43.001 RTC: Synced by NTP
19:37:43.933 APP: Boot Count 8
19:37:44.333 CFG: Saved, Count 22, Bytes 4096
19:37:44.391 HTP: Console

TO REPRODUCE

Steps to reproduce the behavior:

EXPECTED BEHAVIOUR

A clear and concise description of what you expected to happen.

Since Tasmota ugrade, I was unable to use my AITHINKER CAM with OV5640 camera. Rolling back to Tasmota 12.5.0 solves the problem.

Using Tasmota 12.5.0

19:10:09.990 RUL: SYSTEM#BOOT performs "WcInit"
19:10:12.220 CAM: OV5640 Initialized
19:10:12.226 MQT: stat/tasmota_78A7A4/RESULT = {"WCInit":"Done"}

And using Tasmota 13.2.0.1

19:04:06.707 RUL: SYSTEM#BOOT performs "WcInit"
19:04:06.747 CAM: InitErr 0x106 try 1
19:04:06.780 CAM: InitErr 0x106 try 2
19:04:06.813 CAM: InitErr 0x106 try 3
19:04:06.814 CAM: InitErr 0x106
19:04:06.850 CAM: InitErr 0x106 try 1
19:04:06.883 CAM: InitErr 0x106 try 2
19:04:06.916 CAM: InitErr 0x106 try 3
19:04:06.917 CAM: InitErr 0x106
19:04:06.926 MQT: stat/tasmota_78A7A4/RESULT = {"WCInit":"Done"}

SCREENSHOTS

If applicable, add screenshots to help explain your problem.

ADDITIONAL CONTEXT

Add any other context about the problem here.

(Please, remember to close the issue when the problem has been addressed)

Jason2866 commented 10 months ago

Support for OV5640 was dropped in actual Tasmota Arduino framework.

marcosterland commented 8 months ago

Support for OV5640 was dropped in actual Tasmota Arduino framework.

Is there a particular reason for that? What would be necessary to add support again? I would be willing to create a PR for that.

Jason2866 commented 8 months ago

@marcosterland It is done by design. Support is removed in IDF and in Arduino precompiled libs to save code space. No changes are done in Tasmota.

edwin-jones commented 7 months ago

Hi @Jason2866, I'm having the exact same issue with the M5 Stack Timer Camera F with an ov3660 camera module and I can only get it working with 12.5 - has support for this camera also been dropped in v13 onwards? If so, who can I contact to get both of these removed from the supported devices list? Thank you.

Jason2866 commented 7 months ago

@edwin-jones Yes. Considering to re-add OV3660 since ready made device exists and was supported earlier.

EDIT: Modules OV3660 and OV5640 will be supported in next Arduino 3.0.0 alpha Platform build. Modules will NOT be added to core 2.0.14. Probably no new build for core 2.0.x will be done anymore. Switch to core 3.0.0 is ahead in a not so far future

edwin-jones commented 7 months ago

Got it, so basically skip v13 for both these camera modules and don't upgrade until a version is released that moves to core 3.0.0 which is planned but not scheduled? Thanks.

Jason2866 commented 7 months ago

We will switch to Arduino core 3.0.0 right after it is released (probably a few days after). So the switch is depending on Arduino espressif work ;-) I will release a new Arduino 3.0.0 alpha build today or tomorrow where support for the mentioned modules is added. Webcam runs already very well with core 3.0.0 alpha.