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

After enabling OTA dynamically provisioned devices always reconnecting again and again #359

Closed doom369 closed 7 years ago

doom369 commented 7 years ago
[28482] Connecting to qa.blynk.cc:8442
[29949] Ready (ping: 16ms).
[30429] Connecting to qa.blynk.cc:8442
[45433] Connecting to qa.blynk.cc:8442
[52181] Ready (ping: 0ms).
[52496] Connecting to qa.blynk.cc:8442
[67670] Connecting to qa.blynk.cc:8442
[68135] Ready (ping: 2ms).
[69106] Connecting to qa.blynk.cc:8442

Turning off OTA fixes the issue. Server only sends "ota url" command with OTA enabled.

1)залил дефолт скетч
2)логин на КУА
3)запустил BlynkBoard provisioning
4)железка законектилась и сразу отконектилась
5)через пару сек. появилась на секунду онлайн и снова офф
Refenz commented 7 years ago

@vshymanskyy How much time will it take?

vshymanskyy commented 7 years ago

Please show full sketch

On 24 Aug 2017 1:18 a.m., "Refenz" notifications@github.com wrote:

@vshymanskyy https://github.com/vshymanskyy How much time will it take?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/blynkkk/blynk-library/issues/359#issuecomment-324478744, or mute the thread https://github.com/notifications/unsubscribe-auth/ABb9lM6v-ISi_noyed5iTwKyJ2Cvh2ifks5sbKVFgaJpZM4PAWd4 .

Refenz commented 7 years ago

@vshymanskyy Default OTA sketch. "Template_ESP8266"

Refenz commented 7 years ago

@vshymanskyy ping

Refenz commented 7 years ago

@vshymanskyy What is the status of the issue? The customer-launch is scheduled for early September.

Refenz commented 7 years ago

@vshymanskyy After 4 days @doom369 will go on vacation and fix the server side will be difficult. I think it's better to fix the problem before that. Any news?

vshymanskyy commented 7 years ago

@Refenz I'm checking it

vshymanskyy commented 7 years ago

Cannot reproduce. Tried several times, sometimes i see several connection attempts, but eventually it connect to server, possibly after 1 reboot:

[6582] Hardware v1.0.0
[6582] Firmware v1.0.1
[6582] WAIT_CONFIG => CONNECTING_NET
[6582] Connecting to WiFi: structure7
[11687] CONNECTING_NET => CONNECTING_CLOUD
[11688] Disconnected
[11688] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v0.4.8 on NodeMCU

[11694] Free RAM: 36640
[11697] Connecting to qa.blynk.cc:8442
[16698] Connecting to qa.blynk.cc:8442
[21699] Connecting to qa.blynk.cc:8442
[22988] <[02|00|01|00] 9f7ccfcb6a8d4b61a548a8499134fee9
[24066] >[00|00|01|00|C8]
[24067] Ready (ping: 1078ms).
[24067] <[11|00|02|00]Hver[00]0.4.8[00]h-beat[00]10[00]buff-in[00]1024[00]dev[00]NodeMCU[00]build[00]Sep  2 2017 14:00:21[00]
[24072] CONNECTING_CLOUD => RUNNING
Woa!!!

After 10-15 secs it's always back online.

vshymanskyy commented 7 years ago

@Refenz can you re-check and confirm if it recovers connection?

Refenz commented 7 years ago

@vshymanskyy Yes, it seems all right. You can close it. It seems the problem was in a very bad wi-fi connection. Thank you.