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.39k forks source link

Dynamic Provisioning. Can't connect the board after unlocking the screen #392

Closed Refenz closed 6 years ago

Refenz commented 6 years ago

Blynk library version: [0.5.0] IDE: [Arduino] IDE version: [1.8.4] Board type: [ESP8266]

Scenario, steps to reproduce

1)Start Dynamic Provisioning flow (Use default Template_ESP8266 sketch) 2)Press "Begin" 3)Choose Wifi and enter password 4)Press "Continue" 5)Lock screen(perhaps this action is not necessary) 6)Unlock screen 7)Choose board WiFi AP 8)Press "Connect to device"

Expected Result

The board connects to the access point and confirms the completion of the Dynamic Provisioning

Actual Result

The board reboots:

[549] 
[549] Hardware v1.0.0
[549] Firmware v1.0.1
[1207] AP SSID: Our Product
[1207] AP IP:   192.168.4.1
[1208] AP URL:  our-product.cc
[14036] WAIT_CONFIG => CONFIGURING
[17540] WiFi SSID: Home Pass: Pass
[17540] Blynk cloud: ec539d7ffd1f454da08b0685fa61f017 @ gr-connect.blynk.cc:8442
[17542] CONFIGURING => SWITCH_TO_STA
[17543] Switching to STA...
[18653] SWITCH_TO_STA => CONNECTING_NET
[18654] Connecting to WiFi: Home

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

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

>>>stack>>>
3ffffcf0:  4022d6ae 3ffedf10 3fff25ac 3ffedf10  
3ffffd00:  4021fb08 3fff296c 3fff25ac 3fff34b0  
3ffffd10:  3fff350a 00000000 3ffedf10 3fff2d6a  
3ffffd20:  000005e0 00000020 401030c9 3ffee920  
3ffffd30:  3fff350a 40104456 3fff296c 3fff34b0  
3ffffd40:  00000090 3fff1a34 3fff296c 401043d1  
3ffffd50:  3fff34d4 00000020 401030c9 3ffee920  
3ffffd60:  0000003c 00000000 3fff1a34 3fff1a69  
3ffffd70:  3fff1a34 3fff1a34 3fff34d4 4010453d  
3ffffd80:  4021437f 3fff34d4 3fff350a 40214388  
3ffffd90:  00000008 3fff189c 3fff2d6a 40214388  
3ffffda0:  40103e13 3ffee920 00000000 3fff18a0  
3ffffdb0:  3fff1a69 00000000 3fff1a34 4021a1a4  
3ffffdc0:  3fffc278 40101f8c 3fffc200 00000022  
3ffffdd0:  00000000 3fff34d4 0000001f ffffffff  
3ffffde0:  4023fc1e 00000030 00000011 3fff3518  
3ffffdf0:  3fff34d4 3fff2c90 3fff1a34 4021a3fc  
3ffffe00:  40210000 3fff3e84 3ffeb722 3ffeefc0  
3ffffe10:  00000014 3fff2c90 3fff34d4 4021ada8  
3ffffe20:  3ffeed38 3ffeec68 3ffef3b8 00000018  
3ffffe30:  3fff2c8c 000000ff 00000000 00000006  
3ffffe40:  3fff198c 3ffffed0 3ffffed0 00000001  
3ffffe50:  326d6f44 01347e00 401021f2 3fff1a34  
3ffffe60:  3fff2c8c 3fff1be4 00000000 4021ade8  
3ffffe70:  3fff1a34 00000000 00000000 00000022  
3ffffe80:  ffffffcf 3ffeb6c0 ffffffcf 4021ae0e  
3ffffe90:  3fff1a34 00000000 00000000 4021b507  
3ffffea0:  4000050c 3fff3e84 3ffeb6c0 4021854e  
3ffffeb0:  3fff1a34 00000030 00000011 ffffffff  
3ffffec0:  00000218 3fff2c90 3fff352c 3fff352c  
3ffffed0:  00000007 40215444 00003a98 3fff2c8c  
3ffffee0:  40215344 00000000 3fff1a7c 40218891  
3ffffef0:  00000000 3fffdcb0 3ffefa48 402148f9  
3fffff00:  3fff04a8 000002ca 000002ca 4010020c  
3fffff10:  40215344 3fff164c 3fff3144 3fff1648  
3fffff20:  40215344 3fff164c 00000001 40214e3c  
3fffff30:  4022c7e4 3ffee230 3fff3e84 4021534c  
3fffff40:  40104d9e 0060667a 00000001 40215494  
3fffff50:  00000000 3ffea5b4 0060667a 00000000  
3fffff60:  402338bc 3ffef9f8 3ffefa20 60000600  
3fffff70:  0134f090 3ffefa20 3ffef9f8 402338c9  
3fffff80:  4023390e 3fffdab0 00000000 3fffdcb0  
3fffff90:  3ffefa30 3fffdab0 00000000 40237afa  
3fffffa0:  40000f49 40000f49 3fffdab0 40000f49  
<<<stack<<<

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

wdt reset
load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
v4ceabea9
~ld
[551] 
[551] Hardware v1.0.0
[551] Firmware v1.0.1
[1260] AP SSID: Our Product
[1260] AP IP:   192.168.4.1
[1261] AP URL:  our-product.cc

P.S. The problem is not permanent.

vshymanskyy commented 6 years ago

@Refenz please validate if this is reproducible. If not, close the issue