jacekdob / sonoff-tasmota Goto Github PK
View Code? Open in Web Editor NEWThis project forked from arendst/tasmota
Provide ESP32 with Web, MQTT and OTA firmware using Arduino IDE or PlatformIO
License: GNU General Public License v3.0
This project forked from arendst/tasmota
Provide ESP32 with Web, MQTT and OTA firmware using Arduino IDE or PlatformIO
License: GNU General Public License v3.0
hi, i'm using tasmota in my esp32(with ardino ide 1.8.7), i have downloaded it from https://github.com/JacekDob/Sonoff-Tasmota
and moved(copy) all the files inside the /lib into my ardino/library folder but compiling the program shows this error
and i don't know how to solve the issue please help me ...
I think the future is ESP32, even for simple switches. Price will drop fast for esp32, and it will become very common.
A few errors if we try to recompile it back to ESP8266.
Hi
Would it be possible to add a HW watch dog protection feature : in case of stuck (SW or HW) a reset would be generated after - say 1 minute for instance
I sometimes experiment such "stuckings" on my ESP32 modules
Thanks
Jerome
Am interested in seeing a pin/wiring guide to replace the esp 8266 on sonoff (basic/th) with an esp32.
I have a few projects which would benefit from hardware pwm and extra pins and being able to solder into existing sonoff after removing the smd esp 8266 would be a great way to encourage interest in this port.
Include appropriate esp dev board models etc.
#ifdef ESP32
#undef USE_ADC_VCC // Needs to be ported
#undef USE_IR_REMOTE // IRremoteESP8266 needs to be ported
#undef SNFBRIDGE // No commercial device, no sense porting
#else
#define SNFBRIDGE
#define USE_ENERGY_SENSOR
#endif
The second part was important to compile the same source for ESP8266.
Did you fix it elsewhere?
Sonoff-Tasmota/sonoff/user_config.h
Lines 56 to 59 in ccc1496
This renders precompiled flashable .bin files useless, because there is no way to reach the flashed device.
Hi,
just a note that today I built this in platform.io.
the changes I needed are in this branch:
https://github.com/btsimonh/Sonoff-Tasmota/tree/esp32-dev-firsttest
note that these are more test mods than formal, but they may help someone who is trying to build this with the current platform.io libs, etc.
There are quite a few warnings to solve, and i've tested no further thatn setting up wifi via serial and seeing the webserver page come up.
s
JacekDob,
thanks for this porting.
I'm thinking on buying an ESP32 and I'm wondering if is possible to use this version of Tasmota to track BLE devices.
I'm already use 3 Tasmota ESP8266 (for a total of 14 relays and 5 different sensors) in my house, controlled by Home Assistant, and recently I had a look on BLE tracking devices.
What I would like to archive is connecting an ESP32 driving 2 more relays and using the internal BLE tracking people on my front door to activating scenes.
Another question if I may: could you gently update to the latest Tasmota version (6.2) and Arduino ESP/Core (2.4.2)?
Thanks.
F.
Hi,
build (Arduino) and flash looked good, but it dies after boot. Currently I have not much ideas how to hunt this. And hints are very appreciated.
The blink example works on this board, so environments should be ok.
Perhaps I made a beginners mistake (my first esp32 project).
`Rebooting...
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:956
load:0x40078000,len:0
load:0x40078000,len:13076
entry 0x40078a58
00:00:00 APP: Baudrate eingestellt auf 115200
00:00:00 Projekt sonoff Sonoff (Topic sonoff, Fallback DVES_00000000, GroupTopic sonoffs) Version 5.12.0c-STAGED
Backtrace: 0x40088538:0x3ffd4460 0x40088637:0x3ffd4480 0x4008599d:0x3ffd44a0 0x4012916e:0x3ffd44e0 0x4012944e:0x3ffd4500 0x4011bc28:0x3ffd4520 0x4011a1a2:0x3ffd4540 0x4011a263:0x3ffd4560 0x4011a2d9:0x3ffd45a0 0x400d4246:0x3ffd45c0 0x400df904:0x3ffd45e0 0x40140357:0x3ffd4620
Rebooting...`
Could some one upload compiled .bin images, just like in the Original Tasmota fork ?
Hi,
when I want to debug the code, I get this Error:
call of overloaded 'String(uint64_t)' is ambiguous
And the related line is:
func += F("}1" D_ESP_CHIP_ID "}2"); func += String(ESP.getChipId());
Could you please help me with the problem?
Thanks in advance!
I entered valid SSID an Password in user_config.h. But ESP doesn't connect to Wifi AP. Configuration works fine with a lot of other tasmota devices. I only changed STA_SSID1 and STA_PASS1 in user_config.h but doesn't work at all. The Devices restarts and the same messages appears in serial log
Serial Log Output:
8000,len:0
load:0x40078000,len:11392
entry 0x40078a24
00:00:00 APP: Set Baudrate to 115200
00:00:00 Project sonoff Sonoff (Topic sonoff, Fallback DVES_00000000, GroupTopic sonoffs) Version 5.12.0c-STAGED
00:00:00 WIF: Connecting to AP1 in mode 11
00:00:15 WIF: Connect failed with AP timeout
00:00:15 WIF: Connecting to AP1 in mode 11
00:00:30 WIF: WPSConfig failed to start
00:00:31 WIF: SmartConfigSSId1 , Password1
00:00:33 APP: Restarting
Hi, thanks for porting Tasmota to ESP32, great work!
I'm not able to compile, it get's error:
C:\Users\martin\Documents\Arduino\libraries\Ticker-ESP32-1.1.0\src/ESP32Ticker.h:27:24: fatal error: esp_timer.h: No such file or directory
I've installed al required libraries and compiles using "ESP32 Dev Module". If Select Wemos D1 (ESP8266) it compiles.
¿Where can I find that esp_timer.h for ESP32 ?
Any ideas?
Thanks!!
Martin
JacekDob, thanks for starting the ball rolling for esp32 chips.
My devices were not appearing in TasmoAdmin (https://github.com/reloxx13/TasmoAdmin) ,the report was stuck on spinning arrows.
In comparing to other devices and php code from tasmoadmin, the output depends on a receiving firmware status message in the form of STATUS2 / StatusFWR. Relevent lines 1890 to 1904 in sonoff.ino would provide this response, but had been commented out as a conditional compile "TODO32" for ifdef ESP32. It seems the problem is a probably a missing library call for uint8_t getBootVersion() in ESP32 libraries. I removed the comments and replaced ESP.getBootVersion(), with ESP.getChipRevision() just because it was also a uint8_t that was available in ESP32.
Devices now appear in tasmoadmin ( still missing Vcc ).
device : WEMOS LOLIN32 Lite V1.0.0
Hello everyone...
Does this support Secure Boot / Flash Encryption? If not, is there a way to add it?
Thanks in advance for you response
hi,
i ordered a M5Stack - is there a possibility to integrate the display?
Thanks
Peripheral Devices | ESP32 |
---|---|
ILI9341 RST | GPIO33 |
ILI9341 DC | GPIO27 |
ILI9341 CS | GPIO14 |
ILI9341 MOSI | GPIO23 |
ILI9341 CLK | GPIO18 |
ILI9341 LIGHT | GPIO32 |
TFCARD MOSI | GPIO23 |
TFCARD MISO | GPIO19 |
TFCARD CLK | GPIO18 |
TFCARD CS | GPIO4 |
BUTTON A | GPIO39 |
BUTTON B | GPIO38 |
BUTTON C | GPIO37 |
SPEAKER | GPIO25 |
MPU9250 SDA | GPIO21 |
MPU9250 SCL | GPIO22 |
GROVE SDA | GPIO21 |
GROVE SCL | GPIO22 |
Hardware:
Board: ESP32 NodeMCU
Core Installation/update date: 17/Mar/2018
IDE name: Arduino IDE
Flash Frequency: 80Mhz
Upload Speed: ?115200?
Description:
I entered valid SSID an Password in user_config.h. But ESP doesn't connect to Wifi AP. Configuration works fine with a lot of other tasmota devices. I only changed STA_SSID1 and STA_PASS1 in user_config.h but doesn't work at all. The Devices restarts and the same messages appears in serial log
Serial Log Output:
8000,len:0
load:0x40078000,len:11392
entry 0x40078a24
00:00:00 APP: Set Baudrate to 115200
00:00:00 Project sonoff Sonoff (Topic sonoff, Fallback DVES_00000000, GroupTopic sonoffs) Version 5.12.0c-STAGED
00:00:00 WIF: Connecting to AP1 in mode 11
00:00:15 WIF: Connect failed with AP timeout
00:00:15 WIF: Connecting to AP1 in mode 11
00:00:30 WIF: WPSConfig failed to start
00:00:31 WIF: SmartConfigSSId1 , Password1
00:00:33 APP: Restarting
ets Jun 8 2016 00:22:57
are there any pre-compiled binaries? I'd like to test the port but cannot get it to compile in any of my environments.
What settings should I use in platformio.ini for esp32? I have a few different models, most of them Lolin32 knockoffs with varying pinouts but they all have the WROOM-32 version of the module.
In webserver.ino func += String(ESP.getChipId())
failed to compile. I comment the line and everything works fine. I use the latest esp32 core from https://github.com/espressif/arduino-esp32
Please add ESP32Ticker
and WebServer-esp32
in lib folder
It will be great if you can update your fork to main Tasmota's updates.
Hi,
build (Arduino) and flash looked good, but it dies after boot. Currently I have not much ideas how to hunt this. And hints are very appreciated.
The blink example works on this board, so environments should be ok.
Perhaps I made a beginners mistake (my first esp32 project).
`Rebooting...
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:956
load:0x40078000,len:0
load:0x40078000,len:13076
entry 0x40078a58
00:00:00 APP: Baudrate eingestellt auf 115200
00:00:00 Projekt sonoff Sonoff (Topic sonoff, Fallback DVES_00000000, GroupTopic sonoffs) Version 5.12.0c-STAGED
Backtrace: 0x40088538:0x3ffd4460 0x40088637:0x3ffd4480 0x4008599d:0x3ffd44a0 0x4012916e:0x3ffd44e0 0x4012944e:0x3ffd4500 0x4011bc28:0x3ffd4520 0x4011a1a2:0x3ffd4540 0x4011a263:0x3ffd4560 0x4011a2d9:0x3ffd45a0 0x400d4246:0x3ffd45c0 0x400df904:0x3ffd45e0 0x40140357:0x3ffd4620
Rebooting...`
do you know when you're going to have the PWM working?
i have it up and running on ESP32 ESP-32S Development Board
and like to use it with led dimming i can use relay but like to dim them
thanks for your time
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.