Hello folks!
I received the gratifying order from my wife to implement monitoring for her ‘ollas’ in the raised bed. During my research I came across blynk and got myself an “AZ-Delivery D1 Mini” (WiFi, see https://www.az-delivery.de/products/d1-mini). Unfortunately, there is a problem which I can’t solve even after hours of research.
Code:
#define BLYNK_TEMPLATE_ID "XXX"
#define BLYNK_DEVICE_NAME "XXX"
#define BLYNK_AUTH_TOKEN "XXX"
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
char auth[] = BLYNK_AUTH_TOKEN;
char ssid[] = "XXX";
char pass[] = "XXX";
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
Serial.begin(115200);
Blynk.begin(auth, ssid, pass);
}
void loop() {
//Blynk.run();
digitalWrite(LED_BUILTIN, LOW);
delay(1000);
digitalWrite(LED_BUILTIN, HIGH);
delay(1000);
}
Behavior according to Searial log:
...
00:35:45.805 -> [71] Connecting to soumas-motog6 **NOTE:CONNECT**
00:35:53.554 -> [7801] Connected to WiFi
00:35:53.554 -> [7802] IP: 192.168.43.11
00:35:53.554 -> [7802]
00:35:53.554 -> ___ __ __
00:35:53.554 -> / _ )/ /_ _____ / /__
00:35:53.554 -> / _ / / // / _ \/ '_/
00:35:53.554 -> /____/_/\_, /_//_/_/\_\
00:35:53.554 -> /___/ v1.0.1 on ESP8266
00:35:53.554 ->
00:35:53.554 -> [7808] Connecting to blynk.cloud:80
00:35:53.695 -> [7966] Re⸮ **NOTE:CRASH**
00:36:00.593 -> ets Jan 8 2013,rst cause:4, boot mode:(3,6) **NOTE:REBOOT**
00:36:00.593 ->
00:36:00.593 -> wdt reset
00:36:00.593 -> load 0x4010f000, len 3460, room 16
00:36:00.593 -> tail 4
00:36:00.593 -> chksum 0xcc
00:36:00.593 -> load 0x3fff20b8, len 40, room 4
00:36:00.593 -> tail 4
00:36:00.593 -> chksum 0xc9
00:36:00.593 -> csum 0xc9
00:36:00.593 -> v000461d0
00:36:00.642 -> ~ld
00:36:00.688 -> [72] Connecting to soumas-motog6 **NOTE:CONNECT**
00:36:08.428 -> [7803] Connected to WiFi
00:36:08.428 -> [7803] IP: 192.168.43.11
00:36:08.428 -> [7803]
00:36:08.428 -> ___ __ __
00:36:08.428 -> / _ )/ /_ _____ / /__
00:36:08.428 -> / _ / / // / _ \/ '_/
00:36:08.428 -> /____/_/\_, /_//_/_/\_\
00:36:08.428 -> /___/ v1.0.1 on ESP8266
00:36:08.428 ->
00:36:08.428 -> [7810] Connecting to blynk.cloud:80
00:36:08.568 -> [7938] Re⸮ **NOTE:CRASH**
00:36:15.464 -> ets Jan 8 2013,rst cause:4, boot mode:(3,6) **NOTE:REBOOT**
00:36:15.464 ->
00:36:15.464 -> wdt reset
00:36:15.464 -> load 0x4010f000, len 3460, room 16
00:36:15.464 -> tail 4
00:36:15.464 -> chksum 0xcc
00:36:15.464 -> load 0x3fff20b8, len 40, room 4
00:36:15.464 -> tail 4
00:36:15.464 -> chksum 0xc9
00:36:15.464 -> csum 0xc9
00:36:15.464 -> v000461d0
00:36:15.464 -> ~ld
00:36:15.558 -> [71] Connecting to soumas-motog6 **NOTE:CONNECT**
...
So when Blynk.begin(…) is called, a connection to the router is successfully established. The status of the device in blynk.cloud also switches to “ON” briefly. Shortly thereafter, the D1 crashed and the connection setup starts from the beginning (status in blynk.cloud switches to “OFF”).
I have already tried:
- Different USB cables
- Different D1 boards (of the same type/series)
- Power supply via laboratory power supply (5V & 3.3V)
- current and older versions of the ESP-Lib
- current and older versions of the Blynk Lib
- lots of board-settings in Arduino IDE
- try to connect to another TCP Server with the D1 board (works without problem)
- …
Notable observation: When I use a Blynk lib with version < 1.0.0 the D1 tries to connect to blynk-cloud.com by default. As expected, I get the error “Invalid auth token” and there is no crash. If I force the same version “blynk.cloud” to be used, the D1 crashes like described above.
I am at the end of my options and would be grateful if I could get some hints for a solution from you.
Thank you, Tom