B4R Question WEMOS D1 WIFI not working [solved]

mading1309

Member
Licensed User
Longtime User
run into a problem with WEMOS D1 and B4R Version 2.51
Same results if the WEMOS D1 is supply by external power or USB.

Uploading the a program let the LED blinking runs as expected.
Starting the AP or searching for networks does not work any longer. The AP of the WEMOS is not listed now.

Since that time the LOG shows garbage characters starting the application like this (blinking LED example)

upload_2019-3-4_5-30-28-png.77949

(NOT possible to copy and paste the garbage characters as plain text)

Any idea what is going wrong?

Looking forward any hints


In the meantime I tried to get more information about this garbage characters.
It is something like
"ets Jan 8 2013,rst cause:4, boot mode: (3,0)"
I found out that the rst cause:4 is a watchdog reset.
http://espressif.com/sites/default/...uses_and_common_fatal_exception_causes_en.pdf
What could be the reason? Possible to take influence on the hardware watch dog?
I am using a ESP8266-12E on a WEMOS D1R1
looking forward any hints
 
Last edited:

mading1309

Member
Licensed User
Longtime User
Thanks your answer Erel
Any idea what could be the problem that even the AP is not found by other WiFi networks?
Any idea why I cannot connect to an active AP?

B4R does not give any error messages. All runs as expected
 
Upvote 0

thetahsk

Active Member
Licensed User
Longtime User
Thanks your answer Erel
Any idea what could be the problem that even the AP is not found by other WiFi networks?
Any idea why I cannot connect to an active AP?

B4R does not give any error messages. All runs as expected

First thing to do is to check your Wifi AP Point with a small Arduino Sketch.
Use this sample from https://arduino-esp8266.readthedocs.io/en/latest/esp8266wifi/scan-examples.html
You should see all AP in the serial monitor.

B4X:
#include "ESP8266WiFi.h"

#define BLINK_PERIOD 250
long lastBlinkMillis;
boolean ledState;

#define SCAN_PERIOD 5000
long lastScanMillis;


void setup()
 {
  Serial.begin(115200);
  Serial.println();

  pinMode(LED_BUILTIN, OUTPUT);

  WiFi.mode(WIFI_STA);
  WiFi.disconnect();
  delay(100);
}

void loop()
{
  long currentMillis = millis();

  // blink LED
  if (currentMillis - lastBlinkMillis > BLINK_PERIOD)
  {
    digitalWrite(LED_BUILTIN, ledState);
    ledState = !ledState;
    lastBlinkMillis = currentMillis;
  }

  // trigger Wi-Fi network scan
  if (currentMillis - lastScanMillis > SCAN_PERIOD)
  {
    WiFi.scanNetworks(true);
    Serial.print("\nScan start ... ");
    lastScanMillis = currentMillis;
  }

  // print out Wi-Fi network scan result uppon completion
  int n = WiFi.scanComplete();
  if(n >= 0)
  {
    Serial.printf("%d network(s) found\n", n);
    for (int i = 0; i < n; i++)
    {
      Serial.printf("%d: %s, Ch:%d (%ddBm) %s\n", i+1, WiFi.SSID(i).c_str(), WiFi.channel(i), WiFi.RSSI(i), WiFi.encryptionType(i) == ENC_TYPE_NONE ? "open" : "");
    }
    WiFi.scanDelete();
  }
}

First thing to do is to check your Wifi AP Point with a small Arduino Sketch.
Use this sample from https://arduino-esp8266.readthedocs.io/en/latest/esp8266wifi/scan-examples.html
 
Upvote 0

mading1309

Member
Licensed User
Longtime User
Thanks thetashsk for your reply

I upload the Arduino sketch
Compiler run without error or warning message
As Board I select WEMOS D1 (retired)

The LED is blinking
The Serial Monitor screenshot
upload_2019-3-5_14-10-48.png


shows the scan interval is 5s as expected but no network is found.

The WEMOS D1R1 is new, not used before. I have 3 identical WEMOS D1R1, all with same behavior

With the Boardmanager is installed Version 2.3.0 for ESP8266
upload_2019-3-5_14-10-2.png


Looking forward any further successions, hints or help?

EDIT

I delete the Boardmanager JSON files.
Now I was able to install the Version 2.5.0 stable for ESP8266
This Version allows to delete the FLASH and the WIFI settings.
Now I get reported all networks found with WIFI.SCAN
Seems there were wrong WIFI settings for some reason.

Thanks to all read my Post and give reply.
I wish my problem is solved now.
 
Last edited:
Upvote 0
Top