esp8266-alexa-wemo-emulator
esp8266-alexa-wemo-emulator copied to clipboard
More than 3 wemo device, esp is crashing
I testet your lib, very cool ! Thank you !
But then i add 3 devices, it works, but wenn alexa scan the wemo devices, the esp crash :-(
Why ?
Log:
Adding switch : Keller Licht 1 index : 0 Adding switch : Keller Licht 2 index : 1 Adding switch : Keller Licht 3 index : 2 Got UDP Belkin Request..
Sending response to 192.168.0.171 Port : 50000 Response sent !
Sending response to 192.168.0.171 Port : 50000
Exception (28): epc1=0x40210eea epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000004 depc=0x00000000
ctx: cont sp: 3fff5bb0 end: 3fff5fd0 offset: 01a0
stack>>> 3fff5d50: 0000019a 3fff4788 3fffbf6c 40210ee8
3fff5d60: 0000001a 3fff478c 3fffbf6c 402110cc
3fff5d70: 3ffedb8a 3fff4788 3fff4eec 3fffb7c4
3fff5d80: 3fff478c 3fff4788 3fff4eec 40214fab
3fff5d90: 2e323931 2e383631 32322e30 40100033
3fff5da0: 3ffee068 ab00a8c0 00000000 00000000
3fff5db0: 00000000 00000000 00000000 00000000
3fff5dc0: 00000000 3fffb7c4 0000019f 0000019a
3fff5dd0: 3ffee068 df00a8c0 3fff4eec 402177f1
3fff5de0: 0000c350 0000006b 3fff4eec 402178ec
3fff5df0: 3ffed370 3fff4278 3fff4eec 0000c350
3fff5e00: 00000001 3fff4788 3fff4738 4021480c
3fff5e10: 00000000 00000000 00000000 3fffb414
3fff5e20: 000001ff 000001f3 3ffee068 ab00a8c0
3fff5e30: 3fff6944 4020ffb8 00000064 3fff4fa8
3fff5e40: 3fffdad0 00000000 3fff4fa1 402075a4
3fff5e50: 3ffed150 00000000 000003e8 402177f1
3fff5e60: 3fffa780 00000000 00000000 00000000
3fff5e70: 00000000 3fff5f10 3fff5e9e 40217a25
3fff5e80: 3fff4ec4 000000db 000000db 00000000
3fff5e90: 00000000 00000000 00000000 00000000
3fff5ea0: 00000000 00000000 00000000 00000000
3fff5eb0: 00000000 00000000 00000000 00000000
3fff5ec0: 00000000 00000000 3fff47fc 40218334
3fff5ed0: 3fffa714 00000032 3fff47fc 40218383
3fff5ee0: 4010547c 002ee163 3fff4d8c 00000000
3fff5ef0: 3fff4ec4 00000014 00000014 4010020c
3fff5f00: 3fff42d4 3fffa5fc 3fff5f78 4010068c
3fff5f10: 4020124a 00000064 00000064 402182d8
3fff5f20: 3fff42d4 3fffa5fc 3fff42dc 40206c5a
3fff5f30: 00000000 00000000 00000000 00000000
3fff5f40: 00000000 00000000 00000000 00000000
3fff5f50: 00000000 00000000 00000000 00000000
3fff5f60: 00000000 00000000 00000000 00000000
3fff5f70: 00000000 00000000 00000000 00000000
3fff5f80: 00000000 feefeffe feefeffe feefeffe
3fff5f90: 00000000 00000015 00000027 00000004
3fff5fa0: 00000000 00000000 00000001 3fff4fa8
3fff5fb0: 3fffdad0 00000000 3fff4fa1 40218f94
3fff5fc0: feefeffe feefeffe 3fff4fb0 40100718
<<<stack<<<
ets Jan 8 2013,rst cause:2, boot mode:(3,0)
load 0x4010f000, len 1384, room 16 tail 8 chksum 0x2d csum 0x2d v3de0c112 ~ld
Hey, which type of ESP8266 are you using?
I've definitely used more than 3 before, but will test again in the next couple of days
I'm using a wemos d1 mini
@dr-apple: did you find a solution for you problem? I'm facing the same issue? (Could it be a heap issue in the code? Br Martin
Could you please provide your coding? My crystal ball does not show it to analyse your problem ;-) Do you also declare GPIO´s in your sketch? Or does it crash even without declaring GPIOs?
Br Sascha
Von: BlackyS [mailto:[email protected]] Gesendet: Donnerstag, 4. Januar 2018 23:44 An: witnessmenow/esp8266-alexa-wemo-emulator [email protected] Cc: Subscribed [email protected] Betreff: Re: [witnessmenow/esp8266-alexa-wemo-emulator] More than 3 wemo device, esp is crashing (#4)
@dr-applehttps://github.com/dr-apple: did you find a solution for you problem? I'm facing the same issue? (Could it be a heap issue in the code? Br Martin
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/witnessmenow/esp8266-alexa-wemo-emulator/issues/4#issuecomment-355420411, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKwM-wmEfsd35wXnxFPSJ-yKvDqH_gnwks5tHVQYgaJpZM4MHxXw.
Hi Sascha, Sure - this make sense ;) I just thought that this problem could be some sort of a general issue ... and I think I solved it myself in the meantime ;) I used this code together with some other ressource hungry code (WIFIManger, WifiClientSecure und ESPAsyncTCP, MQTT Lib...) ... and I finally noticed that it has something to do with running low on heap memory ... 3 Switches were ok, but the 4th switch just hit the limit.... By using the latest builds of ESP Bordmanager (Arduino IDE) + updated all used Lib's + removed all debugging stuff - I noticed that I have some heap memory left und my code runs now smoothly with 4 switches (and that's all I need). So thank you for your help! BR Martin
WiFi client secure uses 20k of heap I'm pretty sure so it definitely limits what else you can do on a board
On 5 Jan 2018 5:38 pm, "BlackyS" [email protected] wrote:
Hi Sascha, Sure - this make sense ;) I just thought that this problem could be some sort of a general issue ... and I think I solved it myself in the meantime ;) I used this code together with some other ressource hungry code (WIFIManger, WifiClientSecure und ESPAsyncTCP, MQTT Lib...) ... and I finally noticed that it has something to do with running low on heap memory ... 3 Switches were ok, but the 4th switch just hit the limit.... By using the latest builds of ESP Bordmanager (Arduino IDE) + updated all used Lib's + removed all debugging stuff - I noticed that I have some heap memory left und my code runs now smoothly with 4 switches (and that's all I need). So thank you for your help! BR Martin
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/witnessmenow/esp8266-alexa-wemo-emulator/issues/4#issuecomment-355616741, or mute the thread https://github.com/notifications/unsubscribe-auth/ABfXwoNCHEErs21mQ-irwlQo0qoAbRaJks5tHl4NgaJpZM4MHxXw .