-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
TasmotaClient Firmware update does not work with esp32 cam #9218
Comments
Hi, Have you enabled By default, it is disabled and you need to selfcompile with that option enabled in order to use TasmotaClient Feature. |
hi, thank you very much for the quick response! |
Fix ESP32 TasmotaClient detection (#9218)
Let me know if this solved your issue. |
Hello big master :) thank you and your helpers for your great work! i have 6 sockets and some other esp's with tasmota running in my network :) |
and should I maybe briefly whether the Tasmota client component will be continued at all? I saw that the creator of the TasmotaSlave lib has not yet switched his lib to client. |
I'm just wondering which three gpios do you use for the tasmota client connection? As the esp32 supports way more gpios tasmota does NOT support any serial connection other than console connections to gpio1/3 pair. You might want to try an esp32-devkit first to see if that works with tasmota client. Also because I can imagine the webcam background code could interfere with the serial code. In the meantime I revisit the upload code. |
Hello, I am using the esp32 cam module. GPIO 02, 14 and 15 should not be used by the camera. I will test the configuration with rx / tx on GPIO 1/3 tonight i can order an esp32 devkit and test it but i think it won't help with my problem. please tell me how I can help you, I'll be happy to send you everything you need, log files, .bin files, ... thank you very much for your efforts and your work! |
Thx for the info. I see no need to test gpio1/3 as they are supposed to not work. You already confirmed the current gpios communicate just fine. I'll focus on the .hex upload malfunction. |
Just tried an Arduino hex upload on a esp32-dev device. See below logging:
It succeeds in the upload without error message. (File type message is not in current dev release). It fails on TCL: Flashing as I don't have an Arduino connected. Trying the same on an esp32-cam device with syslog 3 enabled also works fine albeit not all the time. At least I never see your error message regarding wrong file type. Are you sure your Arduino hex file looks like this:
where it starts with a colon which in turn is being checked by the upload code for .hex validity. |
the start of the .hex: :100000000C94E6000C940E010C940E010C940E015D i add a .zip with the arduio hex, the tasmo.bin and my user_config_override |
the same .hex uploads with an esp8266 nodemcu and a wemos d1 mini uploads without any problems to the arduino |
The upload works fine on my esp32-cam too:
|
:( ok, thank u! i will try i tonight again and report to u. |
my output when I upload the .hex file: 18:11:20 RSL: tele/tasmota_2B5654/RESULT = {"TasmotaClient":{"CF": 75, "VF": 125, "AP" 150, "AUTO": on, "MODE": 1}} Backtrace: 0x40093090:0x3ffb1950 0x400932c1:0x3ffb1970 0x4017c5dd:0x3ffb1990 0x4008c20b:0x3ffb19b0 0x40113345:0x3ffb19d0 0x400df6a9:0x3ffb19f0 0x400ed768:0x3ffb1a10 0x401913b1:0x3ffb1a30 0x40109d92:0x3ffb1a50 0x40109dd9:0x3ffb1a70 0x4010a97a:0x3ffb1aa0 0x4010b61d:0x3ffb1ad0 0x4010c4f5:0x3ffb1cc0 0x4010a00d:0x3ffb1ee0 0x400da083:0x3ffb1f30 0x400ebf2c:0x3ffb1f50 0x400dfdab:0x3ffb1f70 0x4010447e:0x3ffb1f90 0x40117ded:0x3ffb1fb0 0x4008f619:0x3ffb1fd0 Rebooting... rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) rst:0x10 (RTCWDT_RTC_RESET),boot:0x1a (SPI_FAST_FLASH_BOOT) I will compile a new tasmota.bin and try my luck again. Edit: I also noticed that after trying to upload a .hex file, the esp32 sometimes loses its GPIO config and I have to reconfigure the assignment. if you want to close the issue i would understand that. it seems to be a problem for me and not a general one about tasmota, because it works for you with your esp32 without any problems. |
I compiled a new firmware with gitpod (platformio run -e tasmota32-webcam), flashed tasmota32-minimal, then the new firmware.bin, camara and client work fine! .hex file upload ended with: 19:33:54 RSL: tele/tasmota_2B5654/RESULT = {"TasmotaClient":{"TempIn": 0.00, "HumIn": 0.00, "PrIn": 0.00}} Backtrace: 0x40093090:0x3ffb1950 0x400932c1:0x3ffb1970 0x4017a085:0x3ffb1990 0x4008c20b:0x3ffb19b0 0x4010fb15:0x3ffb19d0 0x400df5f1:0x3ffb19f0 0x400ec556:0x3ffb1a10 0x4018ee45:0x3ffb1a30 0x40108416:0x3ffb1a50 0x4010845d:0x3ffb1a70 0x40108ffe:0x3ffb1aa0 0x40109ca1:0x3ffb1ad0 0x4010ab79:0x3ffb1cc0 0x40108691:0x3ffb1ee0 0x400d9fd3:0x3ffb1f30 0x400ead18:0x3ffb1f50 0x400dfcf3:0x3ffb1f70 0x40102e02:0x3ffb1f90 0x401158b5:0x3ffb1fb0 0x4008f619:0x3ffb1fd0 Rebooting... rst:0xc (SW_CPU_RESET),boot:0x1a (SPI_FAST_FLASH_BOOT) |
next attempt ... new firmware on gitpod with "platformio run -e tasmota32" compiled (without "-webcam"), flashed, everything works fine. .hex upload started and it works! 20:00:26 RSL: tele / tasmota_2B5654 / RESULT = {"TasmotaClient": {"TempIn": 0.00, "HumIn": 0.00, "PrIn": 0.00}} rst: 0xc (SW_CPU_RESET), boot: 0x1a (SPI_FAST_FLASH_BOOT) the firmware on the arduino remains the old one. |
hello, i have to report to you that i have the same problems with the gitpod compiled tasmota.bin data! tasmota32: tells me flash successful, arduino replies with old messages i have tried the .hex upload at least three times with every tasmota version! I loaded the tasmota32-minimal between every tasmota.bin upload! Before every .hex upload, I checked whether the arduino is working and sending its messages! I'm sorry, but could you tell me what else to do or what information you still need from me? edit: that looks strange to me too. Flash done and in the same second the arduino is already sending? without "TCL: Version 20191129 21:04:33 RSL: tele / tasmota_2B5654 / RESULT = {"TasmotaClient": {"TempIn": 0.00, "HumIn": 0.00, "PresIn": 0.00}} edit2: |
hello, today i started a new round with gitpod, new tasmota.bin compiled for tasmota32 and tasmota32-webcam with the same result. tasmota32: tells me Flash done, but arduino answers with old firmware tasmota32-webcam: tells me Flash done, the arduino no longer responds, code broken I also checked the "ClientReset" command, it works without any problems. could you please tell me what else i could check or what information you still need from me |
Do you see the flash done a minute after the upload succeeded ro earlier. To me it seems the real flash starts almost 30 seconds after the upload succeeds. You might want to look at either the serial console and/or the weblog (options 3 set) to see what really goes on. For me this issue is on hold. Other using TasmotaCLient may chime in. |
my serial output with the tasmota32.bin after the .hex upload: 17:09:37 RSL: tele / tasmota_2B5654 / RESULT = {"TasmotaClient": {"CFan": 100, "VFan": 135, "AP" 150, "AUTO": on, "MODE": 255}} rst: 0xc (SW_CPU_RESET), boot: 0x1b (SPI_FAST_FLASH_BOOT) yes, i see the successful upload in the output, but the arduino answers with the old output after the restart |
Hello Mr. Arendst, may I ask you something else about TasmotaClient? So I don't really want to open up a new issue. |
You can add them yourselves. See docs howto.
Open an issue at his github TasmotaSlave lib and request updates/changes if they are needed. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem. |
Fix ESP32 TasmotaClient firmware upgrade (#9218)
PROBLEM DESCRIPTION
A clear and concise description of what the problem is.
Hello, I have a problem with my esp32 cam in connection with TasmotaClient. unfortunately I cannot update the firmware of the arduino pro mini 3.3V, I always get the error "Magic Byte is not 0xE9". Can it be that the hex file for the arduino is not recognized and the esp32 wants to do a normal firmware update?
with my nodemcu esp8266, the arduino updates work without problems. tested with the 8.4.0 master and the 8.4.0.3 dev.
I wrote my own library for TasmotaClient, I used the old TasmotaSlave library and replaced all "slaves" with "client", of course, capitalized and lowercase letters! with my nodemcu esp8266 the .hex upload works with my esp32 cam unfortunately I get "Magic Byte is not 0xE9" ...
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
:Backlog Rule1; Rule2; Rule3
:Status 0
:(Please use
weblog 4
for more debug information)TO REPRODUCE
Steps to reproduce the behavior:
EXPECTED BEHAVIOUR
A clear and concise description of what you expected to happen.
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)
The text was updated successfully, but these errors were encountered: