BLYNK
BLYNK.IO       📲 GETTING STARTED       📗 DOCS       👉 SKETCH BUILDER

Blynk.Air on Blynk v2 starts shipping and the disconnects

Hi,

I am trying to ship code to my Nodemcu OTA.
I have upgraded the version (#define BLYNK_FIRMWARE_VERSION “0.1.7”).
The nodemcu works without problems on my WiFi.
I have access with terminal
In the “Shipping Status” on Blynk Console, I get “error” as shown below.

Please help?!

The output I get on terminal is:

    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v1.1.0 on ESP8266

 #StandWithUkraine    https://bit.ly/swua


[1320] --------------------------
[1323] Product:  Filothei Boiler
[1326] Firmware: 0.1.5 (build Sep 11 2022 14:23:18)
[1331] Token:    ...NhMr
[1333] Device:   ESP8266 @ 80MHz
[1336] MAC:      5C:CF:7F:88:DF:11
[1339] Flash:    4096K
[1341] ESP core: 3.0.2
[1343] ESP SDK:  2.2.2-dev(38a443e)
[1346] Boot Ver: 31
[1348] Boot Mode:1
[1350] FW info:  475680/1617920, MD5:e6e695ee0355f8bf9b385095283cd954
[1535] Free mem: 27032
[1535] --------------------------
[1535] INIT => CONNECTING_NET
Startin App - Setup Proc
[1539] Connecting to WiFi: AndreasVDSL

>[9405] Using Dynamic IP: 10.10.10.124
[9405] CONNECTING_NET => CONNECTING_CLOUD
[17150] Current time: Sun Sep 11 11:28:33 2022
[17150] Connecting to blynk.cloud:443
[25202] <[1D|00|01|00] pE7T9kzTCmifeSzhWJmpN-brBbj4NhMr
[25273] >[00|00|01|00|C8]
[25274] Ready (ping: 12ms).
[25274] Free RAM: 18264
[25341] <[11|00|02|00]xver[00]1.1.0[00]h-beat[00]45[00]buff-in[00]1024[00]dev[00]ESP8266[00]fw-type[00]TMPLJBiY56G9[00]fw[00]0.1.5[00]build[00]Sep 11 2022 14:23:18[00]tmpl[00]TMPLJBiY56G9[00]
[25409] >[11|1E]a[00]o
[25412] >ota[00]http://fra1.blynk.cloud/static/fw_6383844389718718422_-838595071.bin?token=QlzURz3VjaIZWjyZdKr02UCHYAa9Oq5Y
[25413] >[00|00|02|00|C8]
[25474] <[11|00|03|00|08]rtc[00]sync
[25534] >[11|00|03|00|0E]
[25534] >rtc[00]1662906521
[25600] <[14|00|04|00]1vw[00]1[00]Connected - Device - Firmware Version: 0.1.5
[25723] CONNECTING_CLOUD => RUNNING
[26352] <[14|00|05|00|0B]vw[00]0[00]27.625
[26483] <[11|00|06|00|08]rtc[00]sync
[26544] >[11|00|06|00|0E]
[26544] >rtc[00]1662906522
[26609] <[14|00|07|00|06]vw[00]2[00]0
[26741] <[14|00|08|00|06]vw[00]3[00]0
[26870] <[14|00|09|00|06]vw[00]4[00]0
[26997] <[14|00|0A|00|06]vw[00]5[00]0
[27688] <[14|00|0B|00|0B]vw[00]0[00]27.625
[27819] <[14|00|0C|00|06]vw[00]2[00]1
[27945] <[14|00|0D|00|06]vw[00]3[00]0
[28071] <[14|00|0E|00|06]vw[00]4[00]0
[28200] <[14|00|0F|00|06]vw[00]5[00]0
[28259] <@[00|10|00|13]sys_ota[00]OTA started
[28320] Disconnected
[28320] RUNNING => OTA_UPGRADE
[28320] Disconnected
[28320] OTA: http://fra1.blynk.cloud/static/fw_6383844389718718422_-838595071.bin?token=QlzURz3VjaIZWjyZdKr02UCHYAa9Oq5Y
[28326] Connecting to fra1.blynk.cloud:80
[33331] Client not connected

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

load 0x4010f000, len 3460, room 16 
tail 4
chksum 0xcc
load 0x3fff20b8, len 40, room 4 
tail 4
chksum 0xc9
csum 0xc9
v00074220
~ld
[1314] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v1.1.0 on ESP8266

 #StandWithUkraine    https://bit.ly/swua


[1320] --------------------------
[1323] Product:  Filothei Boiler
[1326] Firmware: 0.1.5 (build Sep 11 2022 14:23:18)
[1330] Token:    ...NhMr
[1333] Device:   ESP8266 @ 80MHz
[1336] MAC:      5C:CF:7F:88:DF:11
[1339] Flash:    4096K
[1341] ESP core: 3.0.2
[1343] ESP SDK:  2.2.2-dev(38a443e)
[1346] Boot Ver: 31
[1348] Boot Mode:1
[1350] FW info:  475680/1617920, MD5:e6e695ee0355f8bf9b385095283cd954
[1535] Free mem: 27032
[1535] --------------------------
[1535] INIT => CONNECTING_NET
Startin App - Setup Proc
[1539] Connecting to WiFi: AndreasVDSL

>[9434] Using Dynamic IP: 10.10.10.124
[9434] CONNECTING_NET => CONNECTING_CLOUD
[17277] Current time: Sun Sep 11 11:29:07 2022
[17277] Connecting to blynk.cloud:443
[25198] <[1D|00|01|00] pE7T9kzTCmifeSzhWJmpN-brBbj4NhMr
[25270] >[00|00|01|00|C8]
[25270] Ready (ping: 11ms).
[25270] Free RAM: 18328
[25337] <[11|00|02|00]xver[00]1.1.0[00]h-beat[00]45[00]buff-in[00]1024[00]dev[00]ESP8266[00]fw-type[00]TMPLJBiY56G9[00]fw[00]0.1.5[00]build[00]Sep 11 2022 14:23:18[00]tmpl[00]TMPLJBiY56G9[00]
[25464] >[11|1E]a[00]o
[25467] >ota[00]http://fra1.blynk.cloud/static/fw_6383844389718718422_-838595071.bin?token=AetU_wmO47x57ZJSYGD2EE4wUGMHPbAb
[25468] >[00|00|02|00|C8]
[25528] <[11|00|03|00|08]rtc[00]sync
[25593] >[11|00|03|00|0E]
[25594] >rtc[00]1662906556
[25659] <[14|00|04|00]1vw[00]1[00]Connected - Device - Firmware Version: 0.1.5
[25871] CONNECTING_CLOUD => RUNNING
[26500] <[14|00|05|00|0B]vw[00]0[00]27.562
[26629] <[11|00|06|00|08]rtc[00]sync
[26690] >[11|00|06|00|0E]
[26690] >rtc[00]1662906557
[26755] <[14|00|07|00|06]vw[00]2[00]0
[26885] <[14|00|08|00|06]vw[00]3[00]0
[27014] <[14|00|09|00|06]vw[00]4[00]0
[27141] <[14|00|0A|00|06]vw[00]5[00]0
[27833] <[14|00|0B|00|0B]vw[00]0[00]27.562
[27962] <[14|00|0C|00|06]vw[00]2[00]1
[28088] <[14|00|0D|00|06]vw[00]3[00]0
[28220] <[14|00|0E|00|06]vw[00]4[00]0
[28348] <[14|00|0F|00|06]vw[00]5[00]0
[28409] <@[00|10|00|13]sys_ota[00]OTA started
[28474] Disconnected
[28474] RUNNING => OTA_UPGRADE
[28474] Disconnected
[28474] OTA: http://fra1.blynk.cloud/static/fw_6383844389718718422_-838595071.bin?token=AetU_wmO47x57ZJSYGD2EE4wUGMHPbAb
[28480] Connecting to fra1.blynk.cloud:80
[33484] Client not connected

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

load 0x4010f000, len 3460, room 16 
tail 4
chksum 0xcc
load 0x3fff20b8, len 40, room 4 
tail 4
chksum 0xc9
csum 0xc9
v00074220
~ld
[1313] 

What version of the ESP8266 core do you have installed?

Are you using the standard Edgent sketch, and have you made any changes to anything other than the .ino tab?

When you post serial output, please use triple backticks at the beginning and end, rather than using Blockquotes.
Triple backticks look like this:
```

Pete.

[414] ESP core: 3.0.2
[416] ESP SDK:  2.2.2-dev(38a443e)

To test I created a new Edgent sketch which is the following…
Nothing else was changed.
Still have the same problem

#define BLYNK_TEMPLATE_ID        "xxx"
#define BLYNK_DEVICE_NAME        "xxx"
#define BLYNK_FIRMWARE_VERSION   "0.1.0"
#define BLYNK_PRINT Serial
#define USE_NODE_MCU_BOARD
#define APP_DEBUG

#include "BlynkEdgent.h"

void setup()
{
  Serial.begin(115200);
  delay(100);

  BlynkEdgent.begin();
}

void loop() {
  BlynkEdgent.run();
}

then changed this line to update the version

#define BLYNK_FIRMWARE_VERSION   "0.1.1"

This is what I get on terminal:

    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v1.1.0 on ESP8266

 #StandWithUkraine    https://bit.ly/swua


[390] --------------------------
[393] Product:  Filothei Boiler
[395] Firmware: 0.1.0 (build Sep 13 2022 06:05:11)
[400] Token:    pE7T - •••• - •••• - ••••
[406] Device:   ESP8266 @ 80MHz
[409] MAC:      5C:CF:7F:88:DF:11
[412] Flash:    4096K
[414] ESP core: 3.0.2
[416] ESP SDK:  2.2.2-dev(38a443e)
[419] Boot Ver: 31
[420] Boot Mode:1
[422] FW info:  468816/1626112, MD5:2673fb60b78b10db2a039bb2424fdff9
[630] Free mem: 31000
[630] --------------------------

>[630] INIT => CONNECTING_NET
[632] Connecting to WiFi: AndreasVDSL
[8429] Using Dynamic IP: 10.10.10.124
[8429] CONNECTING_NET => CONNECTING_CLOUD
[15245] Current time: Tue Sep 13 03:10:39 2022
[15246] Connecting to blynk.cloud:443
[23307] Ready (ping: 11ms).
[23443] CONNECTING_CLOUD => RUNNING
[25502] Disconnected
[25502] RUNNING => OTA_UPGRADE
[25503] Disconnected
[25503] OTA: http://fra1.blynk.cloud/static/fw_11731680799097754466_-838595071.bin?token=91ctpIjkSStna0Uu10myknAI7fTqQhjd
[25509] Connecting to fra1.blynk.cloud:80
[30513] Client not connected

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

load 0x4010f000, len 3460, room 16 
tail 4
chksum 0xcc
load 0x3fff20b8, len 40, room 4 
tail 4
chksum 0xc9
csum 0xc9
v00072750
~ld
[385] 

When you post serial output, please use triple backticks at the beginning and end, rather than using Blockquotes. Triple backticks look like this:

Sorry - fixed that in my post.

Please help!

Still cat OTA sketch update.

  • Created a sketch from scratch (BlynkEdgent) - No code added just BLYNK_DEVICE_NAME and BLYNK_TEMPLATE_ID
  • Uploaded to nodemcu 0.9 and saw it running on the web
  • Raised BLYNK_FIRMWARE_VERSION and created an OTA update
  • Nothing is connected to the board.

Then nodemcu seems to crash. Replaced with another nodemcu and got the same result

    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v1.1.0 on ESP8266

 #StandWithUkraine    https://bit.ly/swua


[385] --------------------------
[388] Product:  Test OTA
[390] Firmware: 0.1.0 (build Sep 24 2022 11:17:25)
[394] Token:    Zq6T - •••• - •••• - ••••
[400] Device:   ESP8266 @ 80MHz
[403] MAC:      5C:CF:7F:88:DF:11
[406] Flash:    4096K
[408] ESP core: 3.0.2
[410] ESP SDK:  2.2.2-dev(38a443e)
[413] Boot Ver: 31
[415] Boot Mode:1
[417] FW info:  468816/1626112, MD5:7b53b0a775286fe2658f6d746afe6e02
[599] Free mem: 31000
[599] --------------------------

>[599] INIT => CONNECTING_NET
[601] Connecting to WiFi: AndreasVDSL
[8442] Using Dynamic IP: 10.10.10.147
[8442] CONNECTING_NET => CONNECTING_CLOUD
11:57:04.179 -> [15257] Current time: Sat Sep 24 08:57:03 2022
11:57:04.179 -> [15257] Connecting to blynk.cloud:443
11:57:12.168 -> [23249] Ready (ping: 11ms).
11:57:12.309 -> [23380] CONNECTING_CLOUD => RUNNING
11:57:14.363 -> [25440] Disconnected
11:57:14.363 -> [25440] RUNNING => OTA_UPGRADE
11:57:14.363 -> [25440] Disconnected
11:57:14.363 -> [25440] OTA: http://fra1.blynk.cloud/static/fw_2736322334862991205_-838595071.bin?token=UXoxRbtgpa5wfIVkdiQsuy6Mx2uCZhc6
11:57:14.363 -> [25446] Connecting to fra1.blynk.cloud:80
11:57:19.363 -> [30451] Client not connected
11:57:20.485 -> 
**11:57:20.485 ->  ets Jan  8 2013,rst cause:2, boot mode:(3,6)**
11:57:20.485 -> 
11:57:20.485 -> load 0x4010f000, len 3460, room 16 
11:57:20.485 -> tail 4
11:57:20.485 -> chksum 0xcc
11:57:20.485 -> load 0x3fff20b8, len 40, room 4 
11:57:20.485 -> tail 4
11:57:20.485 -> chksum 0xc9
11:57:20.485 -> csum 0xc9
11:57:20.485 -> v00072750
11:57:20.485 -> ~ld
11:57:20.859 -> [377] 

.
Follows the Sketch
.


// Fill-in information from your Blynk Template here
#define BLYNK_TEMPLATE_ID "........."
#define BLYNK_DEVICE_NAME "Test OTA"
#define BLYNK_FIRMWARE_VERSION        "0.1.1"

#define BLYNK_PRINT Serial
//#define BLYNK_DEBUG

#define APP_DEBUG

#define USE_NODE_MCU_BOARD

#include "BlynkEdgent.h"

void setup()
{
  Serial.begin(115200);
  delay(100);

  BlynkEdgent.begin();
}

void loop() {
  BlynkEdgent.run();
}

PLEASE help!

What information do you see in the web console about why the B,ynk.Air shipment failed? You may need to click the three dots in the Actions column and choose Open Details to see this info.

What compiler settings are you choosing in the IDE?

Pete.

Nodemcu 0.9

image

There are many compiler settings in the IDE, not just board type.
How much memory have you allocated to OTA in these IDE options?

Pete.

Hi Pete,
Is this info what you ask for?

image

Just to be clear: Nodemcu crashes only when I upload OTA a sketch.

Yes, I understood that, I wanted to know what this setting was:

image

so that I could understand if you’d allocated sufficient memory to hold the OTA image during the update process. It appears that you have.

I’m out of other ideas I’m afraid, but maybe someone else has some additional insight.

Pete.

@Pavel

Please Pavel - any suggestions?