Why Does My Computer Upload Pages Endlessly Unless I Click the Red X

The ESP8266 has a few common issues, particularly when you are trying to flash a new firmware or uploading scripts.

This is a companion guide to the Abode Automation using ESP8266 and Countersign Protected Spider web Server eBooks.

Here's a compilation with some of the almost common problems with the ESP8266 and how to prepare them.

ESP8266 Troubleshooting – NodeMCU Flasher

Where do I download the NodeMCU flasher?

Go to the NodeMCU flasher GitHub repository and download the flasher for your Windows PC chip version past clicking the button that says "Raw":

  • NodeMCU flasher Windows 64 bits
  • NodeMCU flasher Windows 32 bits

Which settings should I use with the NodeMCU flasher?

The NodeMCU flasher already comes with the right settings past default.

If you have changed some of the settings, I highly recommend that you re-download the NodeMCU flasher.

Here's my electric current settings:

nodemcu flasher

Subsequently I press the "Wink" push zilch happens, the NodeMCU flasher doesn't start the flashing process

If you pressed the "Flash" push and nothing happens… It means one of these two things:

  • Problem i – Your ESP isn't in flash manner (double-cheque if GPIO 0 is continued to GND on ability upwardly)
  • Problem 2 – Your FTDI Developer can't supply enough current to your ESP

nothing happens

Trouble 1 – How to make your ESP become into wink mode:

  1. Close the NodeMCU flasher window
  2. Remove power from your ESP8266
  3. Having your ESP connected like this (double cheque that GPIO 0 is continued to GND)
  4. Use ability to your ESP8266 and open the NodeMCU flasher
  5. Printing the "Flash" button

If information technology'south however saying "Waiting MAC", then try the following:

  1. Having the NodeMCU flasher notwithstanding open
  2. Connect a wire from your ESP8266 reset pin to GND
  3. Remove that wire from GND and connect to VCC

Repeat steps ii and 3 a few times until your ESP reboots and hopefully the NodeMCU flasher can detect your ESP and start the flashing process.

Problem ii – If your FTDI can't supply enough current, y'all might need to purchase a new FTDI developer or ability your ESP8266 with an external power supply.

NodeMCU flasher gets stuck at a sure percentage

nodemcu stuck

  1. Remove power from your ESP+FTDI:
  2. Close the NodeMCU flasher window
  3. Plug your ESP+FTDI to your computer once again
  4. Open NodeMCU flasher and try the 19200 baud rate

If this process fails, delight echo the same process for the next baud rates (38400, 57600, 74880 and 115200).

I don't know why, but at least 5 people faced the same problem and this play a trick on solved information technology. So at a baud rate of 57600 or 115200 I think information technology will wink 100%. I don't have any logical explanation, since this is non very common.

How does the NodeMCU flasher should expect after a successful flash?

It should have a green arrow in the lesser left.

nodemcu flasher flashed

Unbricking the FTDI Programmer on Windows PC

If you have a brand new FTDI Developer and you lot demand to install your FTDI drivers on Windows, visit this website for the official drivers: http://www.ftdichip.com/Drivers/VCP.htm.

In alternative, yous tin can contact the seller that sold you lot the FTDI Programmer.

If you're having trouble installing the FTDI drivers on Windows seven/viii/eight.1/10 it's very likely that FTDI is bricked.

Follow this tutorial to fix that: http://youtu.be/SPdSKT6KdF8.

In the video I mentioned earlier, the guy tells you to download the drivers from the FTDI website, read carefully the YouTube clarification of his video to find all the links. Here's the drivers you need: http://www.ftdichip.com/Drivers/CDM/CDM%20v2.12.00%20WHQL%20Certified.nada

ESP8266 Troubleshooting – ESPlorer IDE

ESPlorer IDE Error: only one tcp server allowed

This ways that you tried to upload multiple scripts and you ESP is still running the onetime script with a web server. To fix it, yous just need to transport these commands to delete all the files and restart your ESP:

  1. file.format()
  2. node.restart()

Upload the script once more and name it 'init.lua' and you shouldn't run across that error once again.

ESPlorer IDE Mistake: can't autodetect firmware

and

ESPlorer IDE Error: Waiting respond from ESP – Timeout reached. Command aborted.Waiting answer from ESP – Timeout reached. Command aborted.

can't autodetect firmware

This sounds like your ESP information technology'southward nonetheless in flash mode. How to make your ESP go into user mode:

  1. Close the ESPlorer IDE connection
  2. Remove power from your ESP8266
  3. Having your ESP with GPIO 0 connected to VCC
  4. Use ability to your ESP8266 and re-found the connection with ESPlorer IDE

If information technology'south notwithstanding saying "can't autodetect firmware", then attempt the following:

  1. Having the ESPlorer IDE connection nonetheless printing "….."
  2. Connect a wire from your ESP8266 reset pin to GND
  3. Remove that wire from GND and connect to VCC

Repeat steps 2 and 3 a few times until your ESP reboots and hopefully the ESPlorer IDE can detect your ESP.

My code disappears when I restart the ESP8266

If you upload a script to your ESP and when you restart it your ESP doesn't do anything. Information technology means that your ESP couldn't discover the script or it occurred a memory consequence.

This can exist solved like this:

  1. You didn't save your script with this exact name 'init.lua'. Re-uploading the same script, just with the 'init.lua' name should solve your problem
  2. Information technology can be a retentivity event. Re-flashing the ESP with NodeMCU flasher ordinarily solves that problem

Finding the ESP8266 IP Address

Earlier you outset brand certain yous check these ii items:

  1. Verify that the script uploaded to your ESP has the right network credentials
  2. Make sure your ESP is near your router

Here's what yous tin do to find the IP address:

Solution 1 – Sending a command with the ESPlorer IDE

  1. Transport the command "print(wifi.sta.getip())" with the ESPlorer IDE and it should impress your IP Address

ESP IP Address

Solution 2 – Install an IP Scanner Software

  1. An IP Scanner software searches for all the devices in your network
  2. Download this free software:
    1. Windows PC: world wide web.advanced-ip-scanner.com
    2. MAC OS X, Windows or Linux: http://angryip.org
  3. Install i of these softwares (while having your ESP running with that spider web server script)
  4. Open the IP Scanner software and click "Browse"
  5. Allow that process stop (it can accept a couple of minutes)

In my case, information technology found my ESP. Now if I type 192.168.one.95 in my browser I can see the ESP web server.

advanced ip scanner

ESP8266 Troubleshooting – Arduino IDE

I tin can't upload scripts to my ESP8266 using the Arduino IDE

How to brand your ESP go into upload mode when using the Arduino IDE:

  1. Remove power from your ESP8266
  2. Having your ESP continued like this (double bank check that GPIO 0 is continued to GND)
  3. Apply ability to your ESP8266 and open the Arduino IDE
  4. Press the "Upload" push button

Did you experience other problems?

Please leave a comment below, so I can update the troubleshooting guide with more problems and solutions.

Cheers for reading,

-Rui Santos

woodsephat1949.blogspot.com

Source: https://randomnerdtutorials.com/esp8266-troubleshooting-guide/

0 Response to "Why Does My Computer Upload Pages Endlessly Unless I Click the Red X"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel