Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Oct 28 19:40

    mcspr on dev

    alexa: fix device discovery / s… (compare)

  • Oct 28 19:40
    mcspr closed #2388
  • Oct 28 19:39
    mcspr synchronize #2388
  • Oct 27 17:49
    techfixpros closed #2389
  • Oct 27 17:49
    techfixpros commented #2389
  • Oct 27 17:17
    mcspr commented #2389
  • Oct 27 16:55
    techfixpros edited #2389
  • Oct 27 16:52
    techfixpros edited #2389
  • Oct 27 16:45
    techfixpros labeled #2389
  • Oct 27 16:45
    techfixpros opened #2389
  • Oct 27 16:18
    aL1aL7 commented #2388
  • Oct 27 16:18
    aL1aL7 commented #2388
  • Oct 27 16:15
    aL1aL7 synchronize #2388
  • Oct 27 16:10
    aL1aL7 synchronize #2388
  • Oct 27 16:06
    aL1aL7 commented #2388
  • Oct 27 15:21
    mcspr commented #2388
  • Oct 27 12:40
    mcspr commented #2388
  • Oct 27 10:44
    aL1aL7 commented #2388
  • Oct 27 10:43
    aL1aL7 commented #2388
  • Oct 27 10:42
    aL1aL7 commented #2388
Pascal Tempier
@ptempier
should i try flashing the original firmware before , would that work ota?
Max Prokhorov
@mcspr
Pascal Tempier
@ptempier
@mcspr i am not sure, i can use the UI ? or do i need to setup telnet ota?
ptempier @ptempier has no idea how to setup telnet ota
Max Prokhorov
@mcspr
web works too. telnet snippet in the issue was just an example
telnet -> terminal
Pascal Tempier
@ptempier
ok , that worked
soapyapi
@soapyapi
Hello everyone. Today something strange happened: my sonoff pow r2 + espurna just stopped working. No more wifi signal, not eve a boot up. I reflashed the device and reconfigured everything. Seems to work now. Only question is: for how long ? Anyone run into a similar issue ? Could it be that the device just self-corrupts ?
Nils Strelow
@nstrelow
when is it ok to bump/repost my question? :P
Max Prokhorov
@mcspr
@soapyapi depends on the version. also there were some issues regarding r2 rebooting constantly, did it have ok uptime? we do write crash log by default, but idk how that would fare when doing it a lot.
soapyapi
@soapyapi
@mcspr > alwazs using latest stable version. no idea about the uptime, will check.
Nils Strelow
@nstrelow

Following problem:
Flashed ESP Core 2.6.3 on my Sonoff S20
Now I cannot flash espurna (which uses ESP Core 2.3.0 I believe)

Any way to reset everything so I can flash stuff with ESP Core 2.3.0 again?

Nils Strelow
@nstrelow
(or SDK 1.5.3)
SilentFez
@SilentFez
Hi! I've got a couple of blitzwolf switches flashed with espurna. If/when I lose wifi connection or my router is having trouble the switch relay turns off. Is that the intended outcome when they no longer can connect to wifi? In the switches settings I have boot mode to always on, pulse mode is don't pulse. Is there a setting that can prevent it from switching on wifi loss?
Max Prokhorov
@mcspr
@SilentFez xoseperez/espurna#2104 & xoseperez/espurna#1802 if device crashes constantly, the system check wont start relay module
fragande
@fragande
Hi there! I have a problem with a couple of Sonoff Basic's (I think R2) running espurna 1.14.1. They both randomly switch off and become unavailable while making a high pitch buzzing noise. I'm thinking this is a hardware problem, but it's a bit weird that they both behave this way. Has anyone else experienced this or know what could be the cause?
SilentFez
@SilentFez
@mcspr Thanks, will have a look
60pfennig
@60pfennig
hey i flashed my teckin sb50 bulb with https://github.com/ct-Open-Source/tuya-convert and installed the included ESPurna. After that I recognized, that Tasmota is fittig better my puropses, so I tried to upload the tasmota.bin in the upgrad dialog. First nothing happend, so I tried again. Short time later I got an error saying it could not upload the file. I switched from the AP Wifi to my homenetwork to search for a solution. After I watned to come back to the bulb the AP was gone. I tried to reset the bulb with the on-off-on-off-on scheme but nothing changed. Is there a solution for this?
thanks :)
Max Prokhorov
@mcspr
@60pfennig included espurna version should probably be updated :/ 1.14.1 will print error string, but you would need to use our releases page
it may be running tasmota now though, if you rebooted. updater may have successfully uploaded fw the first time and set up things to do update sequence and overwrite the firmware.
60pfennig
@60pfennig
@mcspr but if it would run tasmota, it would send an AP which it unfortunately doesn't.. :/
I have nothing to connect right now
Max Prokhorov
@mcspr
@60pfennig depends on the version though? i am not sure which one is used in tuya repo, but we had some issues when people tried to use -minimal tasmota binaries and they failed to boot
60pfennig
@60pfennig
@mcspr ok but ist there anything in can do?
Max Prokhorov
@mcspr
not really, if there is no working firmware
60pfennig
@60pfennig
@mcspr you said that there were problems with flashing minimal tasmota binaries..but I used the full, recommended and latest tasmota release. But yes, I guess the firmware wont work anyways. :D
thank you for your help!
adbensi
@adbensi
Hello! I made one copy on the 08/02 .. and I build another today, but this last are rebooting device.. please, it is possible to trace back to know why?

[000278] [TELNET] Listening on port 23
[000280] [WEBSERVER] Webserver running on port 80
[000281] [LIGHT] LIGHT_PROVIDER = 2
[000281] [LIGHT] Number of channels: 0
[000299] [RELAY] Retrieving mask: 0b0
[000300] [RELAY] Relay #0 boot mode 2
[000300] [RELAY] Relay #1 boot mode 2
[000300] [RELAY] Relay #2 boot mode 2
[000302] [RELAY] Relay #3 boot mode 2
[000305] [RELAY] Relay #4 boot mode 2
[000308] [RELAY] Relay #5 boot mode 2
[000312] [RELAY] Relay #6 boot mode 2
[000315] [RELAY] Relay #7 boot mode 2
[000318] [RELAY] Relay #8 boot mode 2
[000321] [RELAY] Relay #9 boot mode 2
[000325] [RELAY] Relay #10 boot mode 2
[000330] [RELAY] Number of relays: 11
[000332] [BUTTON] Number of buttons: 1
[000335] [LED] Number of leds: 1
[000338] [MQTT] AsyncMqttClient, SSL DISABLED, Autoconnect ENABLED
[000343] [MQTT] Client DISABLED, DISCONNECTED
[000347] [MQTT] Retry WAITING (Now 347, Last 0, Delay 5000, Step 5000)

Exception (28):
epc1=0x4000bdc8 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

>>>stack>>>

ctx: cont
sp: 3ffffd00 end: 3fffffc0 offset: 01a0
3ffffea0:  3fffdad0 3ffffeec 3ffffee0 3fff0d60  
3ffffeb0:  3fffff10 3fffff20 00000000 4022b89f  
3ffffec0:  00000017 3fffff10 00000050 402326a0  
3ffffed0:  00000003 3fffff10 00000050 3fffff20  
3ffffee0:  3fffff10 00000017 3fff0d60 4022b90a  
3ffffef0:  3fffdad0 3fffff10 3ffe8ba8 3fff0f64  
3fffff00:  3fffdad0 3fff0d60 3ffe8ba8 402095f6  
3fffff10:  00706374 0074726f 83000000 ffffffff  
3fffff20:  6e6c6574 79007465 8620278c 70747400  
3fffff30:  4020d100 80000000 40236364 40236350  
3fffff40:  4020b5f8 00000000 40236364 40236350  
3fffff50:  4020bc54 6d754479 40236364 3fff0f64  
3fffff60:  3fffdad0 00000000 0000000e 4021aac4  
3fffff70:  74736f00 656d616e 80efef00 ffffffff  
3fffff80:  3fff3000 000e000f 80efeffe feefeffe  
3fffff90:  feefeffe feefeffe feefeffe feefeffe  
3fffffa0:  feefeffe feefeffe 3fff0f24 40233c9c  
3fffffb0:  feefeffe feefeffe 3ffe8600 4010106d  
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
vb3acf27f
~ld
⸮bl`r⸮nl[000088] 

---8<-------
adbensi
@adbensi
Decoder say:
Exception 28: LoadProhibited: A load referenced a page mapped with an attribute that does not permit loads
PC: 0x4000bdc8
EXCVADDR: 0x00000000

Decoding stack results
0x4022b89f: esp8266::MDNSImplementation::MDNSResponder::addService(char const*, char const*, char const*, unsigned short) at C:\Users\Alexandre\Documents\Arduino\1.8.12\hardware\esp8266com\esp8266\libraries\ESP8266mDNS\src\LEAmDNS.cpp line 308
0x402326a0: String::~String() at C:\Users\Alexandre\Documents\Arduino\1.8.12\hardware\esp8266com\esp8266\cores\esp8266\WString.cpp line 125
0x4022b90a: esp8266::MDNSImplementation::MDNSResponder::addService(String const&, String const&, unsigned short) at C:\Users\Alexandre\Documents\Arduino\1.8.12\hardware\esp8266com\esp8266\libraries\ESP8266mDNS\src\LEAmDNS.cpp line 378
0x402095f6: mdnsServerSetup() at C:\Users\Alexandre\Documents\Arduino\build\teste_espurna\espurna\code\espurna/mdns.ino line 47
0x4020d100: _apiWebSocketOnConnected(ArduinoJson::JsonObject&) at C:\Users\Alexandre\Documents\Arduino\build\libraries\ArduinoJson\src/ArduinoJson/JsonObjectSubscript.hpp line 41
0x40236364: std::_Function_base::_Base_manager ::_M_manager(std::_Any_data&, std::_Any_data const&, std::_Manager_operation) at c:\users\alexandre\documents\arduino\1.8.12\hardware\esp8266com\esp8266\tools\xtensa-lx106-elf\xtensa-lx106-elf\include\c++\4.8.2/functional line 1934
0x40236350: std::_Function_handler ::_M_invoke(std::_Any_data const&, ArduinoJson::JsonObject&) at c:\users\alexandre\documents\arduino\1.8.12\hardware\esp8266com\esp8266\tools\xtensa-lx106-elf\xtensa-lx106-elf\include\c++\4.8.2/functional line 2069
0x4020b5f8: _mqttWebSocketOnData(ArduinoJson::JsonObject&) at C:\Users\Alexandre\Documents\Arduino\build\teste_espurna\espurna\code\espurna/mqtt.ino line 457
0x40236364: std::_Function_base::_Base_manager ::_M_manager(std::_Any_data&, std::_Any_data const&, std::_Manager_operation) at c:\users\alexandre\documents\arduino\1.8.12\hardware\esp8266com\esp8266\tools\xtensa-lx106-elf\xtensa-lx106-elf\include\c++\4.8.2/functional line 1934
0x40236350: std::_Function_handler ::_M_invoke(std::_Any_data const&, ArduinoJson::JsonObject&) at c:\users\alexandre\documents\arduino\1.8.12\hardware\esp8266com\esp8266\tools\xtensa-lx106-elf\xtensa-lx106-elf\include\c++\4.8.2/functional line 2069
0x4020bc54: _mqttWebSocketOnVisible(ArduinoJson::JsonObject&) at C:\Users\Alexandre\Documents\Arduino\build\teste_espurna\espurna\code\espurna/mqtt.ino line 450
0x40236364: std::_Function_base::_Base_manager ::_M_manager(std::_Any_data&, std::_Any_data const&, std::_Manager_operation) at c:\users\alexandre\documents\arduino\1.8.12\hardware\esp8266com\esp8266\tools\xtensa-lx106-elf\xtensa-lx106-elf\include\c++\4.8.2/functional line 1934
0x4021aac4: setup() at C:\Users\Alexandre\Documents\Arduino\build\teste_espurna\espurna\code\espurna/espurna.ino line 226
0x40233c9c: loop_wrapper() at C:\Users\Alexandre\Documents\Arduino\1.8.12\hardware\esp8266com\esp8266\cores\esp8266\core_esp8266_main.cpp line 177
adbensi
@adbensi
image.png
My config is
adbensi
@adbensi
Excuse me, I made a mistake in general.h
Problem solved.. :)
adbensi
@adbensi
Guys, please, I can auth login on the Chrome, but not on the Edge. It is normal on dev yet?
Max Prokhorov
@mcspr

Excuse me, I made a mistake in general.h
Problem solved.. :)

...how though? :) which flag causes the crash?

Росен Добринов
@RDobrinov
Hello. Can someone to explain me this? https://github.com/xoseperez/espurna/blob/373dd27d60c5dbfc51d2ae6fe6b00d9db87fee91/code/espurna/web.ino#L542-L547
Last 2 weeks I'm digging in this code and can't understand how _server->begin() has invoked before WiFi goes live? My test app throw exception here
Max Prokhorov
@mcspr
@RDobrinov decoded stacktrace points at begin() right there? effectively, only thing it does is add a 0.0.0.0 listener, which does not require wifi being up
Росен Добринов
@RDobrinov
@mcspr I don't know. I didn't use a decoder. Just invoke _server.begin() after MESSAGE_CONNECTED received from JustWiFi and webserver goes live. How to add 0.0.0.0 as listener?
Max Prokhorov
@mcspr
@RDobrinov _server.begin() already uses 0.0.0.0, there's no option to set ip in espasyncwebserver
adbensi
@adbensi
@mcspr Hi! I try it many times before report.
If I can not connect to network, then it reset..
Only if not connect..
My Exception Decoder is
Exception 3: LoadStoreError: Processor internal physical address or data error during load or store
PC: 0x40100c58: umm_malloc_core(size_t) at C:\Users\Alexandre\Documents\Arduino\1.8.12\hardware\esp8266com\esp8266\cores\esp8266\umm_malloc\umm_malloc.cpp line 397
EXCVADDR: 0x400715a1

Decoding stack results
0x40100e48: malloc(size_t) at C:\Users\Alexandre\Documents\Arduino\1.8.12\hardware\esp8266com\esp8266\cores\esp8266\umm_malloc\umm_malloc.cpp line 511
0x40100530: ets_post(uint8, ETSSignal, ETSParam) at C:\Users\Alexandre\Documents\Arduino\1.8.12\hardware\esp8266com\esp8266\cores\esp8266\core_esp8266_main.cpp line 160
0x401010a0: calloc(size_t, size_t) at C:\Users\Alexandre\Documents\Arduino\1.8.12\hardware\esp8266com\esp8266\cores\esp8266\umm_malloc\umm_malloc.cpp line 820
0x40100758: pvPortZalloc(size_t, char const*, int) at C:\Users\Alexandre\Documents\Arduino\1.8.12\hardware\esp8266com\esp8266\cores\esp8266\heap.cpp line 301
0x40100581: __wrap_spi_flash_read(uint32_t, uint32_t*, size_t) at C:\Users\Alexandre\Documents\Arduino\1.8.12\hardware\esp8266com\esp8266\cores\esp8266\core_esp8266_phy.cpp line 309
0x40100581: __wrap_spi_flash_read(uint32_t, uint32_t*, size_t) at C:\Users\Alexandre\Documents\Arduino\1.8.12\hardware\esp8266com\esp8266\cores\esp8266\core_esp8266_phy.cpp line 309
0x4021e8f4: ESP8266WiFiSTAClass::disconnect(bool) at C:\Users\Alexandre\Documents\Arduino\1.8.12\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src\ESP8266WiFiSTA.cpp line 367
0x4021e8d0: ESP8266WiFiSTAClass::disconnect(bool) at C:\Users\Alexandre\Documents\Arduino\1.8.12\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src\ESP8266WiFiSTA.cpp line 360
0x40100628: millis() at C:\Users\Alexandre\Documents\Arduino\1.8.12\hardware\esp8266com\esp8266\cores\esp8266\core_esp8266_wiring.cpp line 188
0x40100b88: umm_free_core(void*) at C:\Users\Alexandre\Documents\Arduino\1.8.12\hardware\esp8266com\esp8266\cores\esp8266\umm_malloc\umm_malloc.cpp line 316
0x40100e13: free(void*) at C:\Users\Alexandre\Documents\Arduino\1.8.12\hardware\esp8266com\esp8266\cores\esp8266\umm_malloc\umm_malloc.cpp line 362
0x40220afd: JustWifi::_doScan() at C:\Users\Alexandre\Documents\Arduino\build\libraries\justwifi-master\src\JustWifi.cpp line 360
0x40220f39: JustWifi::_machine() at C:\Users\Alexandre\Documents\Arduino\build\libraries\justwifi-master\src\JustWifi.cpp line 465
0x4022101c: JustWifi::loop() at C:\Users\Alexandre\Documents\Arduino\build\libraries\justwifi-master\src\JustWifi.cpp line 905
0x402079b2: wifiLoop() at C:\Users\Alexandre\Documents\Arduino\build\teste_espurna\espurna\code\espurna/wifi.ino line 719
0x4020367b: loop() at C:\Users\Alexandre\Documents\Arduino\build\teste_espurna\espurna\code\espurna/espurna.ino line 310
0x402359fc: loop_wrapper() at C:\Users\Alexandre\Documents\Arduino\1.8.12\hardware\esp8266com\esp8266\cores\esp8266\core_esp8266_main.cpp line 180
What You think?
ziggurat29
@ziggurat29

Hi folks; OK, noob question, but I am trying to make a new 'board' in the platform.io config, and it is not clear to me how. (Please do refer me to any existing docco, though I did not find such).
I gather this from reading source:

  • there's a 'platformio.ini' that looks like one place where boards are defined in some way
  • there's a 'board.ino', a 'migrate.ino', a 'arduinio.h', and a 'hardware.h' that looks like they need modifications to coordinate with stuff in 'platformio.ini' that might be added

Background: I am exploring support for a Gosund plug, which doesn't appear to be explicitly supported ATPIT. Those haven't arrived, but I have a handful of ESP01 modules (old, 512kB) that I wanted to kick the tires of the build system in advance.
I have never used PlatformIO, or Arduino, but I do have a few decades of C/C++ and embedded experience.
TIA; Cheers!

adbensi
@adbensi
@ziggurat29 see hardware.h on the config folder
ziggurat29
@ziggurat29
@adbensi I did look at that, but I'm sure I will need to munge the other files as well? platformio.ini seems the most arcane -- the C stuff I can grok. Well, except one thing that may be arduinoesque:
  • the '#define RELAY1_PIN' number. My board has one GPIO called '2' (in ESP8266 parlance). So, would it also be '2' in this codebase, or is there some different numbering?
adbensi
@adbensi
Yes... gpio is the port of the esp8266
You can put here:
```CPP
#if defined(MANUFACTURER) and defined(DEVICE)

    // user has defined custom hardware, no need to check anything else
ziggurat29
@ziggurat29
Ok, thanks, I'll give it a go. I'm still mystified by the platformio.ini, which seems to 'drive' it. I do notice a definition for the 512 kb boards, but I don't see any examples that actually use it, alas. (these are 5 year old boards, good times)