BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Find board type

I bought new board as attached and I want to set its type in IED software but couldn’t know the right name for it.
I used WeMos D1 R1 and load the blink example for Node MCU and ESP8266_ standalon but i got this error below and the Blynk app show it is not online.

((Arduino: 1.8.5 (Windows 7), Board: “WeMos D1 R1, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 115200”

Build options changed, rebuilding all
Executable segment sizes:

IROM : 247828 - code in flash (default or ICACHE_FLASH_ATTR)

IRAM : 27928 / 32768 - code in IRAM (ICACHE_RAM_ATTR, ISRs…)

DATA : 1308 ) - initialized variables (global, static) in RAM/HEAP

RODATA : 2220 ) / 81920 - constants (global, static) in RAM/HEAP

BSS : 25544 ) - zeroed variables (global, static) in RAM/HEAP

Sketch uses 279284 bytes (26%) of program storage space. Maximum is 1044464 bytes.
Global variables use 29072 bytes (35%) of dynamic memory, leaving 52848 bytes for local variables. Maximum is 81920 bytes.
esptool.py v2.8
Serial port COM7
Traceback (most recent call last):
File “C:\Users\Mustafa\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.3/tools/upload.py”, line 65, in
esptool.main(cmdline)
File “C:/Users/Mustafa/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.3/tools/esptool\esptool.py”, line 2889, in main
esp = chip_class(each_port, initial_baud, args.trace)
File “C:/Users/Mustafa/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.3/tools/esptool\esptool.py”, line 237, in init
self. port = serial.serial_for_url(port)
File “C:/Users/Mustafa/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.3/tools/pyserial\serial_ init
.py”, line 88, in serial_for_url
instance.open()
File “C:/Users/Mustafa/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.3/tools/pyserial\serial\serialwin32.py”, line 78, in open
self._reconfigure_port()
File “C:/Users/Mustafa/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.3/tools/pyserial\serial\serialwin32.py”, line 222, in _reconfigure_port
‘Original message: {!r}’.format(ctypes.WinError()))
serial.serialutil.SerialException: Cannot configure port, something went wrong. Original message: PermissionError(13, ‘A device attached to the system is not functioning.’, None, 31)
serial.serialutil.SerialException: Cannot configure port, something went wrong. Original message: PermissionError(13, ‘A device attached to the system is not functioning.’, None, 31)

This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.))

where is problem please ??

The board certainly looks like a D1 R1.
Have you tried closing the IDE fully and re-launching, maybe with a reboot as well?

Pete.

I did as you say
now what suggest to select board type ?? WeMos may be ??

The correct board type is “Wemos D1 R1”

Are you sure you have the correct port selected? if you unplug the board and re-open the Tools /Port menu in the IDE does COM7 disappear?

Maybe try a different USB cable or USB port on your PC?

Pete.

port is ok and it gone when unpluged
also i changed the cable
and still get the below in red color and still the Blynk offline :
((Executable segment sizes:

IROM : 247828 - code in flash (default or ICACHE_FLASH_ATTR)

IRAM : 27928 / 32768 - code in IRAM (ICACHE_RAM_ATTR, ISRs…)

DATA : 1308 ) - initialized variables (global, static) in RAM/HEAP

RODATA : 2220 ) / 81920 - constants (global, static) in RAM/HEAP

BSS : 25544 ) - zeroed variables (global, static) in RAM/HEAP

Sketch uses 279284 bytes (26%) of program storage space. Maximum is 1044464 bytes.
Global variables use 29072 bytes (35%) of dynamic memory, leaving 52848 bytes for local variables. Maximum is 81920 bytes.
esptool.py v2.8
Serial port COM7
Connecting…
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 48:3f:da:56:15:a0
Uploading stub…
Running stub…
Stub running…
Changing baud rate to 460800
Changed.
Configuring flash size…
Auto-detected Flash size: 4MB
Compressed 283440 bytes to 207533…

Writing at 0x00000000… (7 %)
Writing at 0x00004000… (15 %)
Writing at 0x00008000… (23 %)
Writing at 0x0000c000… (30 %)
Writing at 0x00010000… (38 %)
Writing at 0x00014000… (46 %)
Writing at 0x00018000… (53 %)
Writing at 0x0001c000… (61 %)
Writing at 0x00020000… (69 %)
Writing at 0x00024000… (76 %)
Writing at 0x00028000… (84 %)
Writing at 0x0002c000… (92 %)
Writing at 0x00030000… (100 %)
Wrote 283440 bytes (207533 compressed) at 0x00000000 in 5.1 seconds (effective 447.1 kbit/s)…
Hash of data verified.

Leaving…
Hard resetting via RTS pin.))

That’s what a good sketch upload looks like, it’s exactly what you want to see.

What does your serial monitor show when the device boots and attempts to connect to Blynk?

Pete.

Code is

  Download latest Blynk library here:
    https://github.com/blynkkk/blynk-library/releases/latest

  Blynk is a platform with iOS and Android apps to control
  Arduino, Raspberry Pi and the likes over the Internet.
  You can easily build graphic interfaces for all your
  projects by simply dragging and dropping widgets.

    Downloads, docs, tutorials: http://www.blynk.cc
    Sketch generator:           http://examples.blynk.cc
    Blynk community:            http://community.blynk.cc
    Follow us:                  http://www.fb.com/blynkapp
                                http://twitter.com/blynk_app

  Blynk library is licensed under MIT license
  This example code is in public domain.

 *************************************************************
  This example runs directly on NodeMCU.

  Note: This requires ESP8266 support package:
    https://github.com/esp8266/Arduino

  Please be sure to select the right NodeMCU module
  in the Tools -> Board menu!

  For advanced settings please follow ESP examples :
   - ESP8266_Standalone_Manual_IP.ino
   - ESP8266_Standalone_SmartConfig.ino
   - ESP8266_Standalone_SSL.ino

  Change WiFi ssid, pass, and Blynk auth token to run :)
  Feel free to apply it to any other example. It's simple!
 *************************************************************/

/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial


#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "eRijA-Mg0veGlkQiq55iHdR2DYM3T7V6";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "Relion";
char pass[] = "mypass";

void setup()
{
  // Debug console
  Serial.begin(9600);

  Blynk.begin(auth, ssid, pass);
  // You can also specify server:
  //Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 80);
  //Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8080);
}

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


serial monitor on PC show nothing

Do you have your serial monitor baud rate set to 9600 ?

Pete.

Please find below:

[152299] Connecting to blynk-cloud.com:80
[155400] Login timeout
[157400] Connecting to blynk-cloud.com:80
[160483] Login timeout
[162483] Connecting to blynk-cloud.com:80
[167566] Connecting to blynk-cloud.com:80
[170605] Login timeout
[172605] Connecting to blynk-cloud.com:80
[177613] Connecting to blynk-cloud.com:80
[180818] Login timeout
[182818] Connecting to blynk-cloud.com:80
[186648] Login timeout
[188648] Connecting to blynk-cloud.com:80
[191756] Login timeout
[193756] Connecting to blynk-cloud.com:80
[196995] Login timeout
[198995] Connecting to blynk-cloud.com:80
[204732] Connecting to blynk-cloud.com:80
[208037] Login timeout
[210037] Connecting to blynk-cloud.com:80
[213048] Login timeout
[215048] Connecting to blynk-cloud.com:80
[218117] Login timeout
[220117] Connecting to blynk-cloud.com:80
[223355] Login timeout
[225355] Connecting to blynk-cloud.com:80
[231937] Connecting to blynk-cloud.com:80
[235124] Login timeout
[237124] Connecting to blynk-cloud.com:80
[240133] Login timeout
[242133] Connecting to blynk-cloud.com:80

I’d prefer to see the first part of the serial output, from the point when the device is booted and initialises the WiFi connection.

What happens if you change this:

Blynk.begin(auth, ssid, pass);

to this:

Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 8080);

Pete.

that’s great it is work now
I really appreciate your support and time
thank you

1 Like