Skip to content
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

More than 3 wemo device, esp is crashing #4

Open
dr-apple opened this issue Feb 21, 2017 · 6 comments
Open

More than 3 wemo device, esp is crashing #4

dr-apple opened this issue Feb 21, 2017 · 6 comments

Comments

@dr-apple
Copy link

dr-apple commented Feb 21, 2017

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

@witnessmenow
Copy link
Owner

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

@dr-apple
Copy link
Author

I'm using a wemos d1 mini

@BlackyS
Copy link

BlackyS commented Jan 4, 2018

@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

@samazw
Copy link

samazw commented Jan 5, 2018 via email

@BlackyS
Copy link

BlackyS commented Jan 5, 2018

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

@witnessmenow
Copy link
Owner

witnessmenow commented Jan 5, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants