blynkkk / blynk-library

Blynk library for IoT boards. Works with Arduino, ESP32, ESP8266, Raspberry Pi, Particle, ARM Mbed, etc.
https://blynk.io
MIT License
3.83k stars 1.38k forks source link

Dynamic Provisioning template. WDT reset while connected to the network. #403

Closed Refenz closed 6 years ago

Refenz commented 6 years ago

Blynk library version: 0.5.1 IDE: Arduino IDE version: 1.8.4 Board type: NodeMCU Additional modules:

Scenario, steps to reproduce

Use the default sketch(Template_ESP8266.ino) 1)Start Dynamic Provisioning 2)Phone starts to connect the board to the network P.S.doesn't always reproducible.

Expected Result

The board connects to the network and saves credentials.

Actual Result

[22248] 
[22248] Hardware v1.0.0
[22248] Firmware v1.0.1
[22960] AP SSID: Our Product
[22960] AP IP:   192.168.4.1
[22961] AP URL:  our-product.cc
[36434] Hold the button to reset configuration...
[45516] WAIT_CONFIG => CONFIGURING
[49192] WiFi SSID: Home Pass: ******
[49193] Blynk cloud: 4f37d21686834f46b9cd736f8676e20d @ server.blynk.cc:8442
[49194] CONFIGURING => SWITCH_TO_STA
[49195] Switching to STA...
[50307] SWITCH_TO_STA => CONNECTING_NET
[50308] Connecting to WiFi: Home 

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

ctx: sys 
sp: 3ffffba0 end: 3fffffb0 offset: 01a0

>>>stack>>>
3ffffd40:  00000090 3fff1a34 3fff1f8c 401043d1  
3ffffd50:  3fff34cc 3fff1a34 3fff1f8c 401043d1  
3ffffd60:  00000000 00000000 0000001f 3fff1a69  
3ffffd70:  3fff1a34 3fff1a34 3fff34cc 4010453d  
3ffffd80:  4021437f 3fff34cc 3fff3502 40214388  
3ffffd90:  00000008 3fff189c 3ffeed94 0000000e  
3ffffda0:  00000000 00000001 00000010 3fff18a0  
3ffffdb0:  3fff1a69 00000000 3fff1a34 4021a1a4  
3ffffdc0:  3ffecff4 3ffee230 3ffed0bc 00000030  
3ffffdd0:  00000000 3fff34cc 00040000 000000bd  
3ffffde0:  40103fd8 00080000 7fffffff 3fff3510  
3ffffdf0:  3fff34cc 3fff2c20 3fff1a34 4021a3fc  
3ffffe00:  40210000 3fff3e7c 3ffec9ee 3ffeefc0  
3ffffe10:  00000014 3fff2c20 3fff34cc 4021ada8  
3ffffe20:  3ffeed38 3ffeec68 3ffef3b8 00000018  
3ffffe30:  3fff2c1c 000000ff 00000000 00000006  
3ffffe40:  3fff198c 3ffffed0 3ffffed0 00000001  
3ffffe50:  326d6f44 03174800 401021f2 3fff1a34  
3ffffe60:  3fff2c1c 3fff2e1c 00000000 4021ade8  
3ffffe70:  3fff1a34 00000000 00000000 3fff3104  
3ffffe80:  ffffffd2 3ffec98c ffffffd2 4021ae0e  
3ffffe90:  3fff1a34 00000000 00000000 4021b507  
3ffffea0:  4000050c 3fff3e7c 3ffec98c 4021854e  
3ffffeb0:  3fff1a34 00000030 00000010 ffffffff  
3ffffec0:  00000218 3fff2c20 3fff3524 3fff3524  
3ffffed0:  00000006 40215444 00003a98 3fff2c1c  
3ffffee0:  40215344 00000000 3fff1a7c 40218891  
3ffffef0:  00000000 3fffdcb0 3ffefa48 402148f9  
3fffff00:  3fff04a8 000000d8 000000d8 4010020c  
3fffff10:  40215344 3fff164c 3fff21b4 3fff1648  
3fffff20:  40215344 3fff164c 00000000 40214e3c  
3fffff30:  00000000 008feba6 4022c067 4021534c  
3fffff40:  40104d9e 009014ae 00000000 40215494  
3fffff50:  00000000 3ffef390 009014ae 00000000  
3fffff60:  402338bc 3ffef9f8 3ffefa20 60000600  
3fffff70:  031895ad 3ffefa20 3ffef9f8 402338c9  
3fffff80:  4023390e 3fffdab0 00000000 3fffdcb0  
3fffff90:  3ffefa30 3fffdad0 3fff05a8 4020cf4f  
3fffffa0:  40000f49 40000f49 3fffdab0 40000f49  
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(1,7)

 ets Jan  8 2013,rst cause:4, boot mode:(1,7)

wdt reset

One more:

[22228] 
[22228] Hardware v1.0.0
[22228] Firmware v1.0.1
[22941] AP SSID: Our Product
[22941] AP IP:   192.168.4.1
[22941] AP URL:  our-product.cc
[30345] WAIT_CONFIG => CONFIGURING
[33735] WiFi SSID: HomePass: ******
[33735] Blynk cloud: 71c4a5f525f24e239bf61a621f6a1152 @ myserver.blynk.cc:8442
[33736] CONFIGURING => SWITCH_TO_STA
[33737] Switching to STA...
[34852] SWITCH_TO_STA => CONNECTING_NET
[34853] Connecting to WiFi: Home

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

ctx: sys 
sp: 3ffffba0 end: 3fffffb0 offset: 01a0

>>>stack>>>
3ffffd40:  00000090 3fff1a34 3fff1f8c 401043d1  
3ffffd50:  3fff34cc 00000020 401030c9 3ffee920  
3ffffd60:  0000003c 00000000 3fff1a34 3fff1a69  
3ffffd70:  3fff1a34 3fff1a34 3fff34cc 4010453d  
3ffffd80:  4021437f 3fff34cc 3fff3502 40214388  
3ffffd90:  00000008 3fff189c 3fff2d62 40214388  
3ffffda0:  40103e13 3ffee920 3ffee078 3fff18a0  
3ffffdb0:  3fff1a69 00000000 3fff1a34 4021a1a4  
3ffffdc0:  000005e0 00000020 401030c9 3ffee920  
3ffffdd0:  00000000 3fff34cc 00040000 000000bd  
3ffffde0:  00000000 00000000 00000020 3fff3510  
3ffffdf0:  3fff34cc 3fff2c88 3fff1a34 4021a3fc  
3ffffe00:  40210000 3fff3e7c 3ffec3aa 3ffeefc0  
3ffffe10:  00000014 3fff2c88 3fff34cc 4021ada8  
3ffffe20:  3ffeed38 3ffeec68 3ffef3b8 00000018  
3ffffe30:  3fff2c84 000000ff 00000000 00000006  
3ffffe40:  3fff198c 3ffffed0 3ffffed0 00000001  
3ffffe50:  326d6f44 022b2600 401021f2 3fff1a34  
3ffffe60:  3fff2c84 3fff2dcc 00000000 4021ade8  
3ffffe70:  3fff1a34 00000000 00000000 3fff21b4  
3ffffe80:  ffffffd1 3ffec348 ffffffd1 4021ae0e  
3ffffe90:  3fff1a34 00000000 00000000 4021b507  
3ffffea0:  4000050c 3fff3e7c 3ffec348 4021854e  
3ffffeb0:  3fff1a34 00000030 00000008 ffffffff  
3ffffec0:  00000218 3fff2c88 3fff3524 3fff3524  
3ffffed0:  402153c8 3ffea448 3ffea448 3fff2c84  
3ffffee0:  40215344 00000000 3fff1a7c 40218891  
3ffffef0:  00000000 3fffdcc0 3ffea8d8 402148f9  
3fffff00:  3fff04a8 000002bc 000002bc 4010020c  
3fffff10:  40215344 3fff164c 3fff30d4 3fff1648  
3fffff20:  40215344 3fff164c 00000000 40214e3c  
3fffff30:  402153c8 3fff164c 3ffea448 4021534c  
3fffff40:  40104d9e 00462d1e 00000000 40215494  
3fffff50:  00000000 3ffea5b4 00462d1e 00000000  
3fffff60:  402338bc 3ffef9f8 3ffefa20 60000600  
3fffff70:  022b67a7 3ffefa20 3ffef9f8 402338c9  
3fffff80:  4023390e 3fffdab0 00000000 3fffdcb0  
3fffff90:  3ffefa40 3fffdab0 00000000 40237afa  
3fffffa0:  40000f49 40000f49 3fffdab0 40000f49  
<<<stack<<<

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

 ets Jan  8 2013,rst cause:4, boot mode:(1,6)

wdt reset
vshymanskyy commented 6 years ago

What is ESP8266 core version?

Refenz commented 6 years ago

@vshymanskyy 2.4.0 Should I upgrade to 2.4.1?

Refenz commented 6 years ago

@vshymanskyy It looks like the new version(2.4.1) solved this issue.